[OpenLayers-Users] With resolutions set map is gone

juhulian hansfux1 at web.de
Fri Mar 30 09:21:57 EDT 2012


Hi guys,

all the different ways to have fixed zoom levels confuse me quite a lot, so
if anyone could give me a little hint I would be really happy about that!

After I set some resolutions for a CloudMade baselayer, the map won't appear
anymore, though the zoom level is just as I want it to be.

here is the code:

var cloudmade_k = new OpenLayers.Layer.CloudMade("CloudMade", {
			key: '****',
			styleId: 49748,
  resolutions:
[76.4370282714844,38.2185141357422,19.1092570678711,9.55462853393555,4.77731426696777,2.38865713348389,1.19432856674194]
		});

and the map options:

	  var options = {
                      numZoomLevels: null,
                      units: 'm',
            };


Any help is very appreciated!

cheers, Julian

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/With-resolutions-set-map-is-gone-tp4671303p4671303.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list