POST
|
Hi Does anyone know how to change the zoom level for the toolbar.navigation.ZOOM_IN and toolbar.navigation.ZOOM_OUT. It is zooming in and out out three slider scale levels. I want to change that to one. Thanks Traci
... View more
10-27-2010
12:35 PM
|
0
|
0
|
580
|
POST
|
Sorry I got it. For anyone else stuck on this. Here is an answer. var options = new dojo.data.ItemFileWriteStore({ data: { identifier: 'name', items: []} }); s = "ALL BOUNDARIES"; options.newItem({ name: s }); s = ""; var count = map.layerIds.length; for (var i=1;i<count-1;i++) { var layerName = map.layerIds; var layer = map.getLayer(layerName); if (layer.visible) { options.newItem({name:layerName}); } } var combo3 = dijit.byId('selectBoundary'); combo3.attr('store', options);
... View more
08-03-2010
12:56 PM
|
0
|
0
|
546
|
POST
|
Hi All, I have added serveral layers to my map using id: as in the statement below. I want to iterate/loop through the layers and if it is a visible layer add it to a dojo.combobox. I have tried everything to loop through the layers unsuccessfully. Can anyone please help. Thanks Traci var schools = new esri.layers.ArcGISDynamicMapServiceLayer("http://gisservice.mt.gov/ArcGIS/rest/services/MSDI_Framework/SchoolDistrictBoundaries/MapServer", { id: "School Districts", visible: true });
... View more
08-03-2010
12:41 PM
|
0
|
1
|
4264
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|