[mapguide-users] How to set Default Tool & Units
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Sun May 10 16:01:47 EDT 2009
To set the tool, you need to attach javascript code to the maploaded
function in the viewer frame.
Then call the ExecuteMapAction() function to select the desired tool (9
in your case).
The maploaded function/event is described in the developers guide.
The ExecuteMapAction is described here:
http://mapguide.osgeo.org/files/mapguide/docs/viewerapi/viewerapi.html
To change to Meters, edit the ajaxmappane.templ file located here:
C:\Program
Files\MapGuideOpenSource2.0\WebServerExtensions\www\viewerfiles\ajaxmappane.templ
change line 293 from:
var us = true;
to:
var us = false;
You can only change it on a "per server" basis.
Regards, Kenneth Skovhede, GEOGRAF A/S
stoff skrev:
> Hi! I have been searching how to switch the default tool to "Zoom by
> rectangle" on application start, because I don't need selection
> features in my application. ... without success Any ideas? Second
> question: Where can I configure "Kilometers/Meters" as startup -Unit ?
> Looking forward to your hints, stoff
> ------------------------------------------------------------------------
> View this message in context: How to set Default Tool & Units
> <http://n2.nabble.com/How-to-set-Default-Tool---Units-tp2826969p2826969.html>
> Sent from the MapGuide Users mailing list archive
> <http://n2.nabble.com/MapGuide-Users-f1803227.html> at Nabble.com.
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090510/bea93c02/attachment.html
More information about the mapguide-users
mailing list