[OpenLayers-Users] Map changes zoom level when switching maps

Gregor Mosheh gregor at hostgis.com
Sat Jul 7 19:25:15 EDT 2007


Gregor Mosheh wrote:
 >     http://www.lynxmaps.com/openlayersdemo/

Oh, a tad more info, to help out those generous folks who feel like 
helping. :)
These JS files do the map setup:
   http://www.lynxmaps.com/openlayersdemo/map_config.js
   http://www.lynxmaps.com/openlayersdemo/map_load.js

The first is configuration: bounding box, list of layers. The second is 
the code to make the map, set the extent, and so on.

I am setting a maxres, minres, and maxextent on each layer, in addition 
to the map. Is that a no-no, or at least rife with caveats?


-- 
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA



More information about the Users mailing list