Select to view content in your preferred language

lose the "find an address" widget

732
3
07-30-2010 12:54 PM
JustinRiggs
Emerging Contributor
this is another question I vaguely remember one of the presenters addressing at the UC (maybe I should have taken better notes?).

I'd really like it if I could open the site without a rogue widget already opened up. Is there any way to tuck that away until I actually want to use it? 🙂

Thanks!
Tags (2)
0 Kudos
3 Replies
DasaPaddock
Esri Regular Contributor
You can remove the preload property in the config.

Reference:
http://help.arcgis.com/en/webapps/flexviewer/help/widgets.htm
0 Kudos
DerekLaw
Esri Esteemed Contributor
Hi Justin,

In the config.xml file for your Viewer, under the <widgetcontainer> subsection, find the following XML code:

<widget label="Find an address"   x="70" y="94" preload="open" icon="assets/images/i_target.png"
                config="widgets/Locate/LocateWidget_US.xml"
                url="widgets/Locate/LocateWidget.swf"/>


And simply delete this part of the code:
preload="open"


This will make the "Find an address" widget not auto-load when the Viewer application loads.

Hope this helps,
0 Kudos
JustinRiggs
Emerging Contributor
baaah... feeling a bit sheepish over here. Thanks, folks.
0 Kudos