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(); } } } };
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.