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

Add support for 3D visualization with MapLibre #2117

Merged
merged 3 commits into from
Aug 18, 2024
Merged

Add support for 3D visualization with MapLibre #2117

merged 3 commits into from
Aug 18, 2024

Conversation

giswqs
Copy link
Member

@giswqs giswqs commented Aug 18, 2024

import ee
import geemap.maplibregl as geemap

geemap.ee_initialize()

m = geemap.Map(
    center=[-120.4482, 38.03994], zoom=13, pitch=60, bearing=30, style="3d-terrain"
)
dataset = ee.ImageCollection("ESA/WorldCover/v200").first()
vis_params = {"bands": ["Map"]}
m.add_ee_layer(dataset, vis_params, name="ESA Worldcover", opacity=0.5)
m.add_legend(builtin_legend="ESA_WorldCover", title="ESA Landcover")
m.add_layer_control()
m

Copy link

github-actions bot commented Aug 18, 2024

@github-actions github-actions bot temporarily deployed to pull request August 18, 2024 00:24 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 18, 2024 00:33 Inactive
@giswqs giswqs merged commit b9bfb37 into master Aug 18, 2024
12 checks passed
@giswqs giswqs deleted the maplibre branch August 18, 2024 00:37
@github-actions github-actions bot temporarily deployed to pull request August 18, 2024 00:44 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant