[mapguide-users] Restrict zoom to max extent overlay layer with Google Maps as base layer

Berg, Leandros van den [FGSBV] L.vdBerg at fugro.nl
Mon Feb 27 11:48:19 EST 2012


Hi All,
 
The question has been asked before but unfortunately was unanswered
(http://osgeo-org.1560.n6.nabble.com/Zoom-Restriction-Google-Map-td41872
54.html), so I'll ask it again.
 
I use MapGuide Maestro to set up my application definition. I've been
going through Generic.js, which is executed when the Google Maps layer
is added, to see what kind of Options (i.e. minScale, maxScale,
maxExtent, and numZoomLevels) can be added to the Extension element of
the Maps in the Mapgroup. I've also been going through Map.js to see out
what can be added to the Extension element of the MapWidget (i.e.
Scales, MaxScale, MaxExtent, and, ConstrainMapExtent).
 
ConstrainMapExtent and numZoomLevels do work but the rest seem to haven
no affect. Checking with Firebug, the values are properly processed but
they seem to be overruled by something. I've also been trying to fiddle
around with the resolutions but I can't seen to make that work either.
 
So, if anybody has any idea about how to fix this, much appreciated.
 
Kind regards,
 
Leandros


More information about the mapguide-users mailing list