Options available for styling
Andyjd86 opened this issue · 3 comments
I've just started to use this extension, and I can render GeoJSON objects on a map no problems. However, I wanted to style the features and haven't been able to find the correct format for this. Are there any examples?
Also, I see the potential move to MapBox, is this still happening?
Thanks
There are some limited options that can be passed in if you are creating GeoJSON from a kernel display message, examples of which are in this notebook.
For more advanced styling and layer composition, ipyleaflet
will probably take you farther.
Hi Ian, thank you for the quick response. I had started with ipyleaflet, but at that time couldn't get my database query to output correctly. I will go back and have another play around with it, knowing that I can at least display GeoJSON with this renderer.
Would be great if GeoJson renderer would be compatible to the styles supported by GitHub GeoJson renderer:
https://docs.github.com/en/free-pro-team@latest/github/managing-files-in-a-repository/mapping-geojson-files-on-github
marker-size - small, medium, or large
marker-color - valid RGB hex color
marker-symbol - an icon ID from the Maki project or a single alphanumeric character (a-z or 0-9).
stroke - color of a polygon edge or line (RGB)
stroke-opacity - opacity of a polygon edge or line (0.0 - 1.0)
stroke-width - width of a polygon edge or line
fill - the color of the interior of a polygon (GRB)
fill-opacity - the opacity of the interior of a polygon (0.0-1.0)
Also see
https://github.com/mapbox/simplestyle-spec/tree/master/1.1.0