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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users