<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
To set the tool, you need to attach javascript code to the maploaded
function in the viewer frame.<br>
Then call the ExecuteMapAction() function to select the desired tool (9
in your case).<br>
The maploaded function/event is described in the developers guide.<br>
<br>
The ExecuteMapAction is described here:<br>
<a class="moz-txt-link-freetext" href="http://mapguide.osgeo.org/files/mapguide/docs/viewerapi/viewerapi.html">http://mapguide.osgeo.org/files/mapguide/docs/viewerapi/viewerapi.html</a><br>
<br>
To change to Meters, edit the ajaxmappane.templ file located here:<br>
C:\Program
Files\MapGuideOpenSource2.0\WebServerExtensions\www\viewerfiles\ajaxmappane.templ<br>
change line 293 from:<br>
var us = true;<br>
to:<br>
var us = false;<br>
<br>
You can only change it on a "per server" basis.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
stoff skrev:
<blockquote cite="mid:1241688413653-2826969.post@n2.nabble.com"
type="cite">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
<br>
<hr align="left" width="300">View this message in context: <a
moz-do-not-send="true"
href="http://n2.nabble.com/How-to-set-Default-Tool---Units-tp2826969p2826969.html">How
to set Default Tool & Units</a><br>
Sent from the <a moz-do-not-send="true"
href="http://n2.nabble.com/MapGuide-Users-f1803227.html">MapGuide
Users mailing list archive</a> at Nabble.com.<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
</body>
</html>