This is a migrated thread and some comments may be shown as answers.

OpenStreetMapProvider not working anymore

4 Answers 206 Views
Map
This is a migrated thread and some comments may be shown as answers.
Erich
Top achievements
Rank 1
Erich asked on 14 Jul 2016, 01:49 PM

Hi everyone,

 

I'm using the OpenStreetMapProvider for a long time now, but since this monday I have a problem. Instead of the real map tiles see the the pictures you can see in the attached file. I don't understand whats wrong here. I'm not using MapQuest. And Openstreetmap is still free to use.

 

Can someone tell me how to solve this, so I can have my map back?

 

Best Regards

Erich

4 Answers, 1 is accepted

Sort by
0
David Ramos
Top achievements
Rank 1
answered on 14 Jul 2016, 06:50 PM

If you are getting this it means you must be using the Map Quest Open Street Map tile server. That server was shutdown on 7/11/2016.

Maybe you are using the OpenStreetMapQuestSource class provided by Telerik?

You will need to switch map providers. You might try MapBox, you will need to have an account and you may need to create a custom map provider and source.

We created a TitleProovider that allows us to try multiple services by swapping out the TiledMapSource, so when MapQuest shutdown their service, we moved to Mapbox which we had already implemented.

Here is the bit of our MapBoxSimpleItsSource class that does the work:

protected override Uri GetTile(int tileLevel, int tilePositionX, int tilePositionY)
{
    int zoomLevel = ConvertTileToZoomLevel(tileLevel);
 
    string tileUrl = string.Format(
        "http://b.tiles.mapbox.com/v3/{0}/{1}/{2}/{3}.png",
        MapboxUserMapName,
        zoomLevel,
        tilePositionX,
        tilePositionY);
 
    return new Uri(tileUrl);
}

 

0
Erich
Top achievements
Rank 1
answered on 15 Jul 2016, 06:02 AM

No, unless Telerik is doing so in the background, I'm actually not using MapQuest.

I'm using the the Telerik.Windows.Controls.Map.OpenStreetMapProvider. Just like it is explained this article

 

0
BOARD LAB
Top achievements
Rank 1
answered on 15 Jul 2016, 08:31 AM

Hi,

same problem for us...I removed  the SetMapSource method from OpenStreetMapProvider

 

var ret = new OpenStreetMapProvider();              //ret.SetMapSource("Telerik.Windows.Controls.Map.OpenStreetMapQuestSource");

 

Regards

0
Petar Mladenov
Telerik team
answered on 15 Jul 2016, 02:48 PM
Hi,

Please find more info in a related feature request in our feedback portal. You can follow in order to receive future notifications.

Regards,
Petar Mladenov
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
Map
Asked by
Erich
Top achievements
Rank 1
Answers by
David Ramos
Top achievements
Rank 1
Erich
Top achievements
Rank 1
BOARD LAB
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or