if(basemapList.getItemAt(basemapSelectionComponent.selectedIndex).forcescaleonswitch && map.scale < basemapList.getItemAt(basemapSelectionComponent.selectedIndex).forcescaleonswitch){ map.scale = basemapList.getItemAt(basemapSelectionComponent.selectedIndex).forcescaleonswitch; if(basemapList.getItemAt(basemapSelectionComponent.selectedIndex).label == "myspecialbasemap"){ map.centerAt(new MapPoint(x,y, map.spatialReference)); } }
if(basemapList.getItemAt(event.newIndex).forcescaleonswitch && map.scale < basemapList.getItemAt(event.newIndex).forcescaleonswitch){ map.scale = basemapList.getItemAt(event.newIndex).forcescaleonswitch; if(basemapList.getItemAt(basemapSelectionComponent.selectedIndex).label == "myspecialbasemap"){ map.centerAt(new MapPoint(x,y, map.spatialReference)); } }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.