-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
add_cog_layer(zoom_to_layer=False) overrides zoom and location set in leafmap.Map #507
Comments
It works fine on my end. Please run import leafmap
m = leafmap.Map()
url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'
m.add_cog_layer(url, name="Fire (pre-event)", zoom_to_layer=True)
m |
Thanks giswqs |
Again, it works as expected on my end. Setting import leafmap
m = leafmap.Map(google_map="HYBRID", location=[-31.562117, 147.194643], zoom=5, locate_control=False, latlon_control=True, draw_export=False, minimap_control=False)
url = 'https://opendata.digitalglobe.com/events/california-fire-2020/pre-event/2018-02-16/pine-gulch-fire20/1030010076004E00.tif'
m.add_cog_layer(url, name="Fire (pre-event)", zoom_to_layer=False)
m |
Thanks again! |
Actually the location issue still persists. It should centre on the East coast of Australia |
Use import leafmap
m = leafmap.Map(center=[-31.562117, 147.194643], zoom=5)
m |
The folium bug has been fixed. Run |
Yep. Just noticed that. Thank you |
Environment Information
Description
Using add_cog_layer overrides location and zoom level.
add_cog_layer()
What I Did
The text was updated successfully, but these errors were encountered: