[mapguide-users] Zoom to a coordinate in fusion

web web at infogeo.ch
Wed Oct 21 06:24:48 EDT 2009


You can use the javascript MapguideViewerAPI in Fusion and then, continue to use the function you have in your code.


You will have to add thoses js scripts (please adapt pathes):

<script language="javascript" src="../Common/browserdetect.js"></script>
    <script language="javascript" src="../Common/json.js"></script>
    <script language="javascript" src="../../../layers/MapGuide/MapGuideViewerApi.js"></script>


These files are located somewhere under the the "fusion" directory. If you cannot find them, download the fusion2.0 beta from maptools.org and pick them from there.


Now that the MapGuideViewerApi is loaded, you can take advantage of these functions.

For example, you can call directly ZoomToView(x, y, scale, refresh) because this function is inside the MapGuideViewerApi.js file.


Got it?
Regards, 
Remy


More information about the mapguide-users mailing list