Is there a way to control the granularity of the map zoom levels using OpenLayers? That is, my boss keeps complaining that on smaller monitors zoom level 5 is too close (it cuts off part of the state), but zoom level 4 is too wide (it shows a lot of the surrounding map and makes the markers too crowded). Ideally, I would like to be able to smoothly zoom in to the exact level I want, but even if I could just get one or two more discrete zoom levels in the proper range I would be happy. Is this possible? asked 16 Jul '12, 19:46 ibrewster SomeoneElse ♦ |
I am not sure if this is meant to be an OpenStreetMap question or an OpenLayers question. If it is an OpenLayers question then this is the wrong place to ask; therefore I'll treat it as if you were asking for OSM specifically. OpenStreetMap data on the OSM tile server is rendered to tiles on the fixed zoom leves that you see. You have two options:
answered 16 Jul '12, 19:55 Frederik Ramm ♦ |
Another noddy way of getting a map at half-zoom-level, is to tell your browser to zoom. 'View' menu. Zoom out. This works with firefox and safari. Not sure about I.E. It amounts to the interpolation technique federik describes, which introduces unpleasant scaling artefacts. In fact because the browser is scaling quickly on-the-fly, it'll not do a particularly nice job of it. It can even result in spurious gridlines appearing (pixel gaps between tiles). In other words this is a completely half-assed solution :-) Having said that, I've actually found this handy on a number of occasions when trying to get a quick map screenshot (usually for creating cake diagram images) Don't forget to do view -> zoom -> reset afterwards though. answered 17 Jul '12, 16:28 Harry Wood |