[mapguide-users] Search Function

James - MapGuide n00b Jamie.Loy at US.Army.MIL
Wed Dec 3 17:27:49 EST 2008


You're the man James, Thanks!

James Card wrote:
> 
> On Wed, 05 Nov 2008 05:43:35 -0800, James - MapGuide n00b  
> <Jamie.Loy at us.army.mil> wrote:
> 
>> To add to this question….How can you control the level of zoom that  
>> clicking the result of the search will display?  I have a building  
>> layer, when I search and click the result I am zoomed into about 100’.   
>> When I search for Man Holes and click the result I am zoomed into like 2  
>> inches!
> 
> I'm guessing that your buildings layer is polygons and the manholes layer  
> is points. The zoom function looks at the size of the polygon and sets the  
> zoom scale accordingly, but points have no size so there is a minimum zoom  
> scale specified in the AJAX viewer code. This 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 (but remember that it will affect all layers in all maps,  
> and that file will be overwritten when you upgrade MapGuide to the next  
> release).
> 
> -- 
> James Card
> California CAD Solutions, Inc.
> 209-578-5580 - Voice
> 209-521-6493 - FAX
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Search-Function-tp16180141p20823052.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list