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

Fix add_geojson style callback bug #898

Merged
merged 2 commits into from
Sep 22, 2024
Merged

Fix add_geojson style callback bug #898

merged 2 commits into from
Sep 22, 2024

Conversation

giswqs
Copy link
Member

@giswqs giswqs commented Sep 22, 2024

Fix the bug reported in #119 (comment)

Copy link

github-actions bot commented Sep 22, 2024

@github-actions github-actions bot temporarily deployed to pull request September 22, 2024 00:39 Inactive
@giswqs giswqs merged commit 01f9055 into master Sep 22, 2024
13 checks passed
@giswqs giswqs deleted the vector branch September 22, 2024 01:22
@github-actions github-actions bot temporarily deployed to pull request September 22, 2024 01:44 Inactive
@pakrajausama
Copy link

One more question Many thanks for your previous kind response, @giswqs
Can we add custom markers in png or jpeg to our point-shape file or geojson or csv data?
i have tried a lot but all in vien
can we add png as marker in this code?
i have learned on website too but am unable to understand it

import leafmap
m = leafmap.Map(center=[23, 69], zoom=4)
shp_path = 'data/point.shp'
point_style = {
'radius': 0.1,
'opacity': 1.0
}
m.add_shp(
shp_path,
layer_name='Point Layer',
style=point_style,
info_mode='on_click',
zoom_to_layer=True
)
m

@giswqs
Copy link
Member Author

giswqs commented Sep 22, 2024

See https://leafmap.org/notebooks/50_marker_cluster/

@pakrajausama
Copy link

pakrajausama commented Sep 22, 2024

thanku soo much... i tried it..so easy to use

@pakrajausama
Copy link

Aslam alikm @giswqs
I dont know why but after this code there are 2 color ramp in map canvas


leafmap version 0.38.0

code:

from leafmap import leafmap
m = leafmap.Map(center=[30, 70], zoom=6)
dem = 'data/Dem agropak.tif'
m.add_raster(
dem,
colormap="terrain",
layer_name='Pak elevation',
vmin=0,
vmax=3000,
zoom_to_layer=True,

)
m.add_colormap(
"terrain",
label="Elevation",
width=3.0,
height=0.2,
orientation="horizontal",
vmin=0,
vmax=3000,
)
m

====
Screenshot 2024-09-23 174249

@giswqs
Copy link
Member Author

giswqs commented Sep 23, 2024

Restart VS Code

@pakrajausama
Copy link

resolved—many thanks

giswqs added a commit that referenced this pull request Oct 30, 2024
* Fix add_geojson style callback bug

* Fix folium style callback bug
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.

2 participants