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)); } }
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.