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 tile layer params for split map #711

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Add tile layer params for split map #711

merged 1 commit into from
Apr 2, 2024

Conversation

giswqs
Copy link
Member

@giswqs giswqs commented Apr 2, 2024

This PR adds tile layer params to the split map so that it can supports params such as opacity

import leafmap

url = "https://open.gishub.org/data/raster/srtm90.tif"

m = leafmap.Map(center=[37.6, -119], zoom=9)
m.split_map(
    url,
    url,
    left_args={"layer_name": "DEM", "colormap_name": "terrain", "opacity": 0.7},
    right_args={"layer_name": "Classified DEM", "colormap_name": "coolwarm", "opacity": 0.5}
)
m

image

Copy link

github-actions bot commented Apr 2, 2024

@github-actions github-actions bot temporarily deployed to pull request April 2, 2024 12:35 Inactive
@giswqs giswqs merged commit 496d878 into master Apr 2, 2024
15 checks passed
@giswqs giswqs deleted the split-map branch April 2, 2024 12:35
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.

None yet

1 participant