Hi,
I’m using plotly.express to display a customized (built from scratch) geojson file with several ‘Polygon’ features.
The customized geojson has the usual structure for the features,
‘geometry’: {‘type’: ‘Polygon’, ‘coordinates’: [coords]}}),
and everything works just fine with plotly.express.choropleth() and all the features show up as expected.
However, if I try to add points to the geojson as in
‘geometry’: {‘type’: ‘Point’, ‘coordinates’: [coords]}}),
they do not show up.
I know that there is a method plotly.express.scatter_geo(), but I assume this would only serve to plot the points.
So the question is: How do I mix customized geojson ‘Polygon’ and ‘Point’ features in a single figure? Do I have to “make” small polygons (circles, squares, or triangles) just to show the points? I could do that, but it seems very inefficient.
Thank you.