public void onStatusChanged(Object source, STATUS status) { if (OnStatusChangedListener.STATUS.INITIALIZED == status && source == mMapView) { ArcGISDynamicMapServiceLayer layer = (ArcGISDynamicMapServiceLayer) mMapView.getLayer(0); MapServiceInfo mapServiceInfo = layer.getMapServiceInfo(); TimeInfo timeInfo = mapServiceInfo.getTimeInfo(); if (timeInfo != null) { timeExtent = timeInfo.getTimeExtent(); interval = timeInfo.getTimeInterval(); units = timeInfo.getTimeIntervalUnits(); timeReference = timeInfo.getTimeReference(); } } } };
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.