decrease numZoomLevels to 2 to ensure that people will not zoom too much, and feel disturbed

git-svn-id: http://svn.openlayers.org/trunk/openlayers@8639 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
pgiraud
2009-01-13 14:09:15 +00:00
parent 8b08f79898
commit 94203ec0f8

View File

@@ -34,7 +34,7 @@
});
function init(){
map = new OpenLayers.Map('map');
map = new OpenLayers.Map('map', {numZoomLevels: 2});
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
@@ -45,7 +45,7 @@
click.activate();
map.addControl(new OpenLayers.Control.OverviewMap());
map2 = new OpenLayers.Map('map2', {'panMethod': null} );
map2 = new OpenLayers.Map('map2', {'panMethod': null, numZoomLevels: 2} );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );