[mapguide-users] fusion - default tool selected?
Nolte, Tim
Tim.Nolte at ipcswirelessinc.com
Wed Aug 6 19:46:31 EDT 2008
Andrew,
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!
- Tim
----
Timothy J Nolte - tnolte at ilpcs.com
Network Planning Engineer
iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512
Office: 616-656-5163
PCS: 616-706-2438
Fax: 616-554-6484
Web: www.ipcswirelessinc.com
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org on behalf of Andrew DeMerchant
Sent: Wed 8/6/2008 7:06 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] fusion - default tool selected?
I'm using Studio / Maestro to design this, so I'm not 100% sure where
this would be getting called. Judging by the content of the index.html
files in the templates folders, it looks to me like I just modify the
"fusionInitialized" function....is that right? (I'd just try it right
now, but I'm home!)
Andrew
Mike Adair wrote:
> In your Fusion init method (i.e. a function registered to the
> FUSION_INITIALIZED event), you can activate a widget like so:
>
> var mapWidget = Fusion.getMapById('mainMap');
> //enable pan widget
> mapWidget.activateWidget(Fusion.getWidgetsByType('Pan')[0]);
>
> getWidgetsByType returns an array of widgets so the [0] in the above
> statement just selects the first instance of the Pan widget.
>
> Mike
>
>
> Andrew DeMerchant wrote:
>> Is there a way to make the Select tool selected by default in fusion?
>> What I mean is, if I load a Fusion map there is no tool selected. So
>> the user can click and click all they want, but nothing will ever
>> happen until they pick the Select tool (or some other tool). In AJAX
>> and DWF, the Select tool is selected by default - so as soon as the
>> map loads, you can start clicking on the map to see stuff....Is there
>> an easy way to do that in Fusion? Is it a matter of editing the
>> templates somehow?
>>
>> Andrew
>>
>> --
>> *Andrew DeMerchant*
>> *Computer Technologist*
>> ph.1-877-2GEMTEC x.163
>> fax 506-453-9470
>>
>> /GEMTEC Limited <http://www.gemtec.ca>
>> /191 Doak Road
>> Fredericton, NB, Canada
>> E3C 2E6
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
_______________________________________________
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/20080806/9673e50b/attachment.html
More information about the mapguide-users
mailing list