[mapguide-users] Re: Zoom to a coordinate in fusion

Rico (giskit) rico at giskit.nl
Mon May 10 11:48:28 EDT 2010


Maybe a bit late but i got it. 
It worked. 
thanks


web wrote:
> 
> 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
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Zoom-to-a-coordinate-in-fusion-tp3863697p5031280.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list