[mapguide-users] Zoom to selected feature point doesn't work

amorsell andy.morsell at autodesk.com
Fri Jan 31 10:49:38 PST 2014


Hi,
We recently modified ZoomToSelection.js for a customer to work-around this
problem.  Here is the modified file.  The code changes start around line 75. 
Please note that this is for AIMS 2013 which is MGOS 2.4 so please be
careful when replacing the js file for whatever version you're using.  Also,
you will need to edit your Fusion template application definition index.html
to reference fusion.js instead of fusionSF-compressed.js or the widget
changes will not be picked up.  Or you can attempt to recompile
fusionSF-compressed.js using this process:
http://themapguyde.blogspot.com.au/2012/10/modifying-and-patching-production.html

This was a quick and dirty fix with the scale factor hard-coded.  This could
fairly easily be parametrized in the ZoomToSelection widget instead so that
you can change it on a layout by layout basis instead of it being site-wide
ZoomToSelection_fixed_scale_for_points.zip
<http://osgeo-org.1560.x6.nabble.com/file/n5101280/ZoomToSelection_fixed_scale_for_points.zip> 
.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Zoom-to-selected-feature-point-doesn-t-work-tp5095926p5101280.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list