[OpenLayers-Users] My map will not zoom in past 1: 1066

Adams chris at genieknows.com
Fri May 22 14:55:12 EDT 2009


Try making your maxExtent larger, see if that helps.

----- Original Message -----
From: "Robert Hicks" <robhyx at gmail.com>
To: users at openlayers.org, dev at openlayers.org
Sent: Friday, May 22, 2009 1:18:28 PM GMT -04:00 Atlantic Time (Canada)
Subject: [OpenLayers-Users] My map will not zoom in past 1: 1066


No matter what I change in my options which are passed into the map constructor I cannot zoom in on my map past a scale of 1:1066. 


Here are my options: 



var options = { 
projection: new OpenLayers.Projection("EPSG:900913"), 
displayProjection: new OpenLayers.Projection("EPSG:4326"), 
units: "m", 
numZoomLevels: 27, 
maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 

20037508, 20037508.34) 
}; 

My base map: 



var google = new OpenLayers.Layer.Google( "Google Maps", 
{ 
'sphericalMercator': true 
} 
); 


I have tried increasing numZoomLevels and adding minScale, minResolution. No effect so I have taken them out. 

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users



More information about the Users mailing list