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.
Unfortunately, activation email could not send to your email. Please try again.

Using Openstreetmap in Mvc 5

Thread ID:

Created:

Updated:

Platform:

Replies:

124141 May 19,2016 02:09 PM May 23,2016 05:11 AM ASP.NET MVC 3
loading
Tags: Map
Edmund Herbert
Asked On May 19, 2016 02:09 PM

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

Jaganprabu D [Syncfusion]
Replied On May 20, 2016 08:39 AM

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 


Edmund Herbert
Replied On May 20, 2016 09:38 AM

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


Jaganprabu D [Syncfusion]
Replied On May 23, 2016 05:11 AM

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;