POST
|
Hello. I've met the same issue. I did not resolved it yet, but I assume that the problem is in featureLayer.getPopupInfo() method. It returns null and the following code do not work. if (featureLayer.getPopupInfo() != null && featureLayer.getPopupInfo().isInitialized()) { // Query feature layer which is associated with a popup definition. ... } I've tried featureLayer.createPopupInfo(), and then featureLayer.setPopupInfos(...), but this is not enough for editing feature (popup does not show any editable content). Continue exploring...
... View more
07-30-2014
08:10 AM
|
0
|
0
|
787
|
POST
|
I don't know exactly how to deal with this, but I've found that ArcGISFeatureLayer's method createPopupInfo() can create an instance of PopupInfo that can be added to FeatureLayer via setPopupInfos method. Have you resolved your problem already?
... View more
07-30-2014
06:47 AM
|
0
|
0
|
168
|
POST
|
Try to call retrieveLegendInfo() in separate thread after layer is loaded, like this: mapView.setOnStatusChangedListener(new OnStatusChangedListener() { @Override public void onStatusChanged(Object o, STATUS status) { if (status == STATUS.LAYER_LOADED) { if (o instanceof ArcGISDynamicMapServiceLayer) { //retrieving legend info new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void... voids) { dynamicLayer.retrieveLegendInfo(); return null; } }.execute(); } } } });
... View more
07-08-2014
01:00 AM
|
0
|
0
|
151
|
POST
|
According to documentation, to have layer legend info available for your ArcGISDynamicMapServiceLayer you must call retrieveLegendInfo() method on this layer instance. Also it must be called in separate thread. The following seems to be good approach: mapView.setOnStatusChangedListener(new OnStatusChangedListener() { @Override public void onStatusChanged(Object o, STATUS status) { if (status == STATUS.LAYER_LOADED) { if (o instanceof ArcGISDynamicMapServiceLayer) { //retrieving legend info new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void... voids) { dynamicLayer.retrieveLegendInfo(); return null; } }.execute(); } } } });
... View more
07-08-2014
12:58 AM
|
0
|
0
|
477
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|