[mapguide-users] Search and Zoom - Minscale?

Jackie Ng jumpinjackie at gmail.com
Thu Jan 29 01:36:21 EST 2009


If you look at this example:

http://trac.osgeo.org/mapguide/wiki/CodeSamples/JavaScript/AJAXViewerEventHooking

you'll see that it is able to access the "private" mapInit variable of the
map frame.

You should be able to apply the same technique to access/change the minScale
variable.

- Jackie


JamesDudden wrote:
> 
> Hi,
> 
> I want to edit the zoom level of the search function. I followed a post
> which described how to edit the MinScale (though this affected all layers)
> which has been fine until now:
> 
> ... definition "var minScale =   
> 0.001, maxScale = 1000000000000;" is in the   
> WebServerExtensions/www/viewerfiles/ajaxmappane.templ file. You can   
> override that value in your own JavaScript code, or just modify it in the   
> template file...
> 
> Now I have started making a more complex map I need the MinScale to return
> to it's original setting but this will affect my search function. Is there
> a way to set the MinScale somewhere else or just set it for the search
> function.
> 
> Any help or advice is appreciated
> 
> Regards
> 

-- 
View this message in context: http://n2.nabble.com/Search-and-Zoom---Minscale--tp2223712p2237407.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list