Lefteris, Do you have the ability to change code in the Viewer?
private function initBasemapButtonBar():void { basemapList = new ArrayList(); var labels:Array = []; for each (var basemap:Object in configData.basemaps.reverse()) { var label:String = basemap.label; if (labels.indexOf(label) == -1) // avoid duplicates using the labels { labels.push(label); basemapList.addItem(basemap); } } if (basemapList.length <= 1) { this.currentState = "noBasemaps"; } else { setBasemapButtonBarIndexToTopmostVisibleBasemap(); } }
Lefteris, Than the cahnge is a simple as this, In the MapSwitcherWidget.mxml change this function as indicated below: private function initBasemapButtonBar():void { basemapList = new ArrayList(); var labels:Array = []; for each (var basemap:Object in configData.basemaps.reverse()) { var label:String = basemap.label; if (labels.indexOf(label) == -1) // avoid duplicates using the labels { labels.push(label); basemapList.addItem(basemap); } } if (basemapList.length <= 1) { this.currentState = "noBasemaps"; } else { setBasemapButtonBarIndexToTopmostVisibleBasemap(); } }Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
Lefteris, So do you see anything displayed in your problems window in Flash Builder? I tested this on my end and it works fine...
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.