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

style_callback param for add_geojson() not working? #692

Closed
deeplook opened this issue Oct 3, 2021 · 3 comments
Closed

style_callback param for add_geojson() not working? #692

deeplook opened this issue Oct 3, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@deeplook
Copy link
Contributor

deeplook commented Oct 3, 2021

Environment Information

  • geemap version: 0.9.2
  • Python version: 3.9
  • Operating System: Linux/macOS

Description

Essentially the same as opengeos/leafmap#119.

Screen Shot 2021-10-03 at 23 28 34

@deeplook deeplook added the bug Something isn't working label Oct 3, 2021
giswqs added a commit that referenced this issue Oct 4, 2021
@giswqs
Copy link
Member

giswqs commented Oct 4, 2021

This bug has been fixed. Thanks for reporting.

import geemap
m = geemap.Map(center=[0, 0], zoom=2, height="400px")
in_geojson = 'https://raw.githubusercontent.com/telegeography/www.submarinecablemap.com/master/web/public/api/v3/cable/cable-geo.json'
callback = lambda feat: {"color": feat["properties"]["color"]}
m.add_geojson(in_geojson, layer_name="Cable lines", style_callback=callback)
m

image

@giswqs giswqs closed this as completed Oct 4, 2021
@deeplook
Copy link
Contributor Author

Any idea when a release > 0.9.2 will be available? (No rush...!)

@giswqs
Copy link
Member

giswqs commented Oct 22, 2021

Probably tonight or tomorrow morning. I am working on some new features to add to this new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants