You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
When clicking on geojson from type MultiPolygon then setOnFeatureClickListener receives not feature and crashes when you want to use a getProperty
Steps to reproduce:
Use following JSON in the GeoJsonDemoActivity.
replace for example the content of raw/earthquakes.json with this:
Hello Team ,
i am unable to get different different polygon properties on Click of Multy polygon click listener. , could you suggest me how to resolve this issue,
layer.setOnFeatureClickListener(new GeoJsonLayer.GeoJsonOnFeatureClickListener() { @OverRide
public void onFeatureClick(GeoJsonFeature geoJsonFeature) {
if(geoJsonFeature.hasProperty("id")){
Log.e("get feature",geoJsonFeature.getPropertyKeys().toString());
Log.e("id",geoJsonFeature.getProperty("id"));
Log.e("Name",geoJsonFeature.getProperty("Name"));
}
Summary:
When clicking on geojson from type MultiPolygon then setOnFeatureClickListener receives not feature and crashes when you want to use a getProperty
Steps to reproduce:
Use following JSON in the GeoJsonDemoActivity.
replace for example the content of raw/earthquakes.json with this:
ps: i've worked around this issue by splitting all MultiPolygons into Polygons in the app, but that is a "little" ugly ;)
The text was updated successfully, but these errors were encountered: