[ka-Map-users] maintaining scale/extent when switching maps

Steve Lime Steve.Lime at dnr.state.mn.us
Thu Jun 29 17:08:34 EDT 2006

Hi folks: Is there an easy way to maintain scale/extent in the viewport when switching maps? I figured one could do something like:

function mySwitchMap(map) {
  var extents =  myKaMap.getGeoExtents();
  myKaMap.selectMap(map, extent[0], extent[1], extent[2], extent[3]);

The map switches (although IE needs a mouse click to trigger the switch) but the viewport doesn't preserve the old extent...



More information about the ka-Map-users mailing list