Drop Down Menu Zoom

961
3
06-12-2012 08:52 AM
PatrickKielty
New Contributor III
I do some basic Javascript Webmaps and I want to recreate this sample;


http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_zoomgrid.html

However, instead of the data grid, i want to use a drop down menu. it seems pretty simple but i don't know where to start of is there a better example available.

Thaks
0 Kudos
3 Replies
HemingZhu
Occasional Contributor III
I do some basic Javascript Webmaps and I want to recreate this sample;


http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_zoomgrid.html

However, instead of the data grid, i want to use a drop down menu. it seems pretty simple but i don't know where to start of is there a better example available.

Thaks


Are you talking about drop down menu or a drop down box -comboBox? Not sure about drop down menu. For comboBox. it is pretty much the same as you use the datagrid: create a ItemFileReadStore for comboBox' store!
0 Kudos
AdrianMarsden
Occasional Contributor III
You mean something like this?  http://maps.eastdevon.gov.uk/mapping/general/  (soon to be  upgraded, which is why it isn't perfect)

I adapted something I found here, but can't seem to find now - the old link was http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&script... - but that doesn't seem to work.  You need a JSON file of the extents - I found setting that up the hardest.

ACM

Edit found new link http://arcscripts.esri.com/details.asp?dbid=16323
0 Kudos
HemingZhu
Occasional Contributor III
You mean something like this?  http://maps.eastdevon.gov.uk/mapping/general/  (soon to be  upgraded, which is why it isn't perfect)

I adapted something I found here, but can't seem to find now - the old link was http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&script... - but that doesn't seem to work.  You need a JSON file of the extents - I found setting that up the hardest.

ACM

Edit found new link http://arcscripts.esri.com/details.asp?dbid=16323


If you only talk about use the drop down box instead of the datagrid to store the records and displayed a record on the map once the user select the record in the drop down, then use dojo.byId(yourdropdownid).value in where clause of your query. If you talk about update a dropdwon box, then see my previous answer and attached sample.
0 Kudos