Select to view content in your preferred language

customizing sample viewer and widgets?

791
2
05-12-2010 01:51 PM
SebastianRoberts
Frequent Contributor
Hi,
  I am trying to customize the live maps widget that comes with the sample viewer (for 9.3.1, Flash SDK 3.3, Flash builder 4).  I tried to change the label for <visibilitylabel> that I found in src\com\esri\solutions\flexviewer\widgets\LiveMapsWidget.xml, with no result.  I put a breakpoint in the init function in the LiveMapsWidget.mxml file but the debugger never stopped at the break.  Then I deleted the .xml and .mxml files from the widgets folder (in source) and the swf file from the widgets folder in the bin-debug folder, and i commented out the
  //<widget label="Live Maps" .....

line in the config.xml file.

When I run it, I still get the "live maps" choice under the "map" menu, and the widget still pops up and is functional.  What am I missing?  Where is this widget coming from and how do I modify it?  Is my browser caching the client side code and not seeing my modifications?

Sebstian Roberts
Tags (2)
0 Kudos
2 Replies
SebastianRoberts
Frequent Contributor
I figured out that the flex module path that was being used for the widget was not in the com\esri\solutions\flexviewer\widgets folder but rather in the com\esri\solutions\esa\widgets folder.  Both folders have a LiveMapsWidget in them (don't know what the differences are).  To add the confusion the sample viewer referenes the esa widget in source as the module, but builds the swf file in the flexviewer folder in bin-debug.  I deleted the esa widget, and pointed the module and swf path to the flexviewer folder, and now I am rolling.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Sebstian,

   The one in the esa folder is the latest version that has some improvements like the ability to add and remove a map service at runtime.
0 Kudos