Select to view content in your preferred language

OpenStreetMap basemap - setting any scale

3896
4
10-28-2014 03:05 AM
AnnaWoszczyna
Deactivated User

Hi

I'm using basemapgallery widget with OpenStreetMap as a default basemap for my application. I'm trying to allow user to set any scale for the map. I've been testing the map.setScale() method and whatever scale I pass as a parameter, the map zooms to nearest scale defined with osm lods.

Is it because osm is tiled? Is there a way to set whatever scale I need?

0 Kudos
4 Replies
BjornSvensson
Esri Regular Contributor

Yes, it is because OpenStreetMap is a tiled service.

0 Kudos
AnnaWoszczyna
Deactivated User

Thank you for the answer.

So there is no way to set custom scale, unless I use other, not tiled basemap?

0 Kudos
BjornSvensson
Esri Regular Contributor

The JS API does not stretch tiles for in-between scales. 

You can set the map to have more Levels of Details, but that still wont stretch existing tiles.

You can change the map to use non-tiled basemaps.

0 Kudos
AnnaWoszczyna
Deactivated User

Thank you very much for clarifying that.

0 Kudos