-
Dear Dr. Wu, It seems that the geemap.vector_styling can not finish this work. For example, a shp file of ROIs, it contains a property of 'name' which indicates different land cover. I want to show 'forest' in green, and 'water' in blue. I can make a dictionary of proerty/color in advance, but don't kown how to realize it. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I have a project that covers Hundreds of gis figures. I want to automaticly generate them using geemap other than ArcGIS one by one. Great appreciate if you can realize such function. |
Beta Was this translation helpful? Give feedback.
-
Update geemap using
|
Beta Was this translation helpful? Give feedback.
-
It's great, thank you
…On Thu, Apr 22, 2021 at 9:10 AM Qiusheng Wu ***@***.***> wrote:
Update geemap using geemap.update_package() and then try the following
example. You can pass a dictionary with label and color to palette
Map = geemap.Map()
states = ee.FeatureCollection("TIGER/2018/States") \
.filter(ee.Filter.inList('NAME', ['California', 'Nevada', 'Utah', 'Arizona']))
palette = {
'California': 'ff0000',
'Nevada': '00ff00',
'Utah': '0000ff',
'Arizona': 'ffff00'
}
vis_params = {
'color': '000000',
'colorOpacity': 1,
'width': 2,
'lineType': 'solid',
'fillColorOpacity': 0.66
}
Map.add_styled_vector(states, column="NAME", palette=palette, layer_name="Styled vector", **vis_params)
Map
[image: image]
<https://user-images.githubusercontent.com/5016453/115640779-bbfc0b80-a2e5-11eb-8047-cc491b9229fa.png>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#432 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE5J3HSJ2IDIJBHUG66XCG3TJ5ZR7ANCNFSM43EKGTYQ>
.
|
Beta Was this translation helpful? Give feedback.
Update geemap using
geemap.update_package()
and then try the following example. You can pass a dictionary with label and color topalette