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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Using Openstreetmap in Mvc 5

Thread ID:





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

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 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.


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


Edmund Herbert
Replied On 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.


Edmund Herbert

Jaganprabu D [Syncfusion]
Replied On 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.




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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon