<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>RE: [mapguide-users] fusion - default tool selected?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Andrew,<BR>
<BR>
You are correct. I actually saw this thread and decided to implement this myself and that function is where I placed the code and it works great!<BR>
<BR>
- Tim<BR>
<BR>
----<BR>
Timothy J Nolte - tnolte@ilpcs.com<BR>
Network Planning Engineer<BR>
<BR>
iPCS Wireless, Inc.<BR>
4717 Broadmoor Ave, Suite G<BR>
Kentwood, MI 49512<BR>
<BR>
Office: 616-656-5163<BR>
PCS: 616-706-2438<BR>
Fax: 616-554-6484<BR>
Web: www.ipcswirelessinc.com<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: mapguide-users-bounces@lists.osgeo.org on behalf of Andrew DeMerchant<BR>
Sent: Wed 8/6/2008 7:06 PM<BR>
To: MapGuide Users Mail List<BR>
Subject: Re: [mapguide-users] fusion - default tool selected?<BR>
<BR>
I'm using Studio / Maestro to design this, so I'm not 100% sure where<BR>
this would be getting called. Judging by the content of the index.html<BR>
files in the templates folders, it looks to me like I just modify the<BR>
"fusionInitialized" function....is that right? (I'd just try it right<BR>
now, but I'm home!)<BR>
<BR>
Andrew<BR>
<BR>
<BR>
Mike Adair wrote:<BR>
> In your Fusion init method (i.e. a function registered to the<BR>
> FUSION_INITIALIZED event), you can activate a widget like so:<BR>
><BR>
> var mapWidget = Fusion.getMapById('mainMap');<BR>
> //enable pan widget<BR>
> mapWidget.activateWidget(Fusion.getWidgetsByType('Pan')[0]);<BR>
><BR>
> getWidgetsByType returns an array of widgets so the [0] in the above<BR>
> statement just selects the first instance of the Pan widget.<BR>
><BR>
> Mike<BR>
><BR>
><BR>
> Andrew DeMerchant wrote:<BR>
>> Is there a way to make the Select tool selected by default in fusion?<BR>
>> What I mean is, if I load a Fusion map there is no tool selected. So<BR>
>> the user can click and click all they want, but nothing will ever<BR>
>> happen until they pick the Select tool (or some other tool). In AJAX<BR>
>> and DWF, the Select tool is selected by default - so as soon as the<BR>
>> map loads, you can start clicking on the map to see stuff....Is there<BR>
>> an easy way to do that in Fusion? Is it a matter of editing the<BR>
>> templates somehow?<BR>
>><BR>
>> Andrew<BR>
>><BR>
>> --<BR>
>> *Andrew DeMerchant*<BR>
>> *Computer Technologist*<BR>
>> ph.1-877-2GEMTEC x.163<BR>
>> fax 506-453-9470<BR>
>><BR>
>> /GEMTEC Limited <<A HREF="http://www.gemtec.ca">http://www.gemtec.ca</A>><BR>
>> /191 Doak Road<BR>
>> Fredericton, NB, Canada<BR>
>> E3C 2E6<BR>
>><BR>
>> ------------------------------------------------------------------------<BR>
>><BR>
>> _______________________________________________<BR>
>> mapguide-users mailing list<BR>
>> mapguide-users@lists.osgeo.org<BR>
>> <A HREF="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR>
>> <BR>
> _______________________________________________<BR>
> mapguide-users mailing list<BR>
> mapguide-users@lists.osgeo.org<BR>
> <A HREF="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR>
><BR>
><BR>
_______________________________________________<BR>
mapguide-users mailing list<BR>
mapguide-users@lists.osgeo.org<BR>
<A HREF="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>