Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options available for styling #161

Open
Andyjd86 opened this issue Sep 21, 2018 · 3 comments
Open

Options available for styling #161

Andyjd86 opened this issue Sep 21, 2018 · 3 comments
Labels

Comments

@Andyjd86
Copy link

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

@ian-r-rose
Copy link
Member

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.

@Andyjd86
Copy link
Author

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.

@stefaneidelloth
Copy link

stefaneidelloth commented Dec 18, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants