Select to view content in your preferred language

Created a floating widget/menu or copy the one in the SFV

624
3
05-11-2010 01:42 PM
DustinKosmach
Emerging Contributor
I am trying to learn to how to use widgets and I am not finding a lot of documentation on how to use them.  I would like to have a few widgets overlayed on my map, just like in the ESTI SFW.  I have tried downloading a few other widgets from the code gallery just to see how they get copied over.  They say to modify the config.xml, but I dont even have one yet, nor know how to reference one. 

At the very least, I would like to have a widget for navigation, and maybe 1 or 2 more for searching or identify.  I dont need anything as complex as SFV with nested menus or any of that, I am just trying to learn how to get a floating widget on my map.  Thanks for your help.
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
dhellriegel,

   The problem is that there are very few (only 2 widgets that I can think of) widgets that are in the code gallery that are not explicitly designed for the SFV framework. You can not just take a widget that is designed for the SFV and add it to a non-SFV project without some moderate reworking of the code. The Weather Underground Widget is one that I produced that the download contains a non-SFV and a SFV version of the widget. The Weather Underground Widget also would be a good one to study as to how you can take a SFV widget and make it a non-SFV widget. It will require you to take the time to compare each version and see the differences. No matter what you need to be prepared to do alot of code adjustment if you want to use SFV widget in a non-SFV app.

   Another one is the Redlining Graphics Toolbar
0 Kudos
DustinKosmach
Emerging Contributor
Thanks for the tips.  Ill take a look at yours and see if I can understand it.  Im just trying to figure out how to add a floating menu, or any kind of floating or overlaying container.  I tried adding a panel to <esri:map> and set it to not visible, but I guess you cant put other containers in the map block because it would not compile.

Hopefully your code will help, thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
dhellriegel,

    The only child elements that a map can have are elements like layers, spatial reference, extent, etc.
If you want a panel in your app than it needs to be added as a child to the application on top of the map so that it's visible. You can add a canvas with a width of 100% and Height of 100% to the application and add any child element to it that you want.
0 Kudos