{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"marker-color": "#e010cf",
"marker-size": "medium",
"marker-symbol": "",
"ArticleID": 123,
"ArticleUrl": "https://www.google.com",
"Name": "Test"
},
"geometry": {
"type": "Point",
"coordinates": [
121.51479721069336,
25.046880875550418
]
}
}
]
}
I want to use the GeoJSON marker-color in my Android app to be the #e010cf color, but it's show the default color, why doesn't my google map show the color I want?
Is it because android Google map can't read the marker-color property in geojson?
> for(GeoJsonFeature feature : layer.getFeatures()){
> GeoJsonPointStyle pointStyle = new GeoJsonPointStyle();
> if(feature.hasProperty("marker-color")){
> feature.setPointStyle(pointStyle);
> pointStyle.setIcon(BitmapDescriptorFactory.
> defaultMarker(BitmapDescriptorFactory.HUE_AZURE));
> feature.setPointStyle(pointStyle);
>
> }
>
> }
In addition, such a setting style is not what I want, is there only such a setting method?
Finally, thank you for your patience to watch whether there is an answer or not, thank you very much