We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Using Openstreetmap in Mvc 5

Hi I am trying to use map control with Openstreetmap your demo url do not work could you supply example with latitude and longitude
Thanks Edmund Herbert

3 Replies

JD Jaganprabu D Syncfusion Team May 20, 2016 12:39 PM UTC

Hi Herbert,

We have prepared Map sample for OpenStreetMap (OSM) based on your requirement. Please find the sample from the below location.

http://www.syncfusion.com/downloads/support/directtrac/general/ze/osmsample652783617.zip 

In this sample, we are showing the open street map and placed markers on the map

Regards,
Jaganprabu.D 



EH Edmund Herbert May 20, 2016 01:38 PM UTC

Hi the solution that you provided does not solve this:

@(Html.EJ().Map("map") .Layers(lr => { lr.LayerType(Syncfusion.JavaScript.DataVisualization.Models.LayerType.OSM) .UrlTemplate("http://a.tile.openstreetmap.org/level/tileX/tileY.png”); }) )

I cannot get url to work as per your sample, please also provide example of plotting position on map using Latitude and Longitude.

Thanks

Edmund Herbert



JD Jaganprabu D Syncfusion Team May 23, 2016 09:11 AM UTC

Hi Herbert,

We have added mentioned Url link in cshtml page and map is rendered as per the url template. Please replace the below file in already given sample.

http://www.syncfusion.com/downloads/support/directtrac/general/ze/MapsFeatures657420299.zip 

Regards,
Jaganprabu.D 


Loader.
Live Chat Icon For mobile
Up arrow icon