Skip to content

multiple legend #365

Answered by giswqs
5luca asked this question in Q&A
Discussion options

You must be logged in to vote

Update the package using geemap.update_package() and follow the example below to add multiple legends. The limitation is that the legends might not have equal width.

import ee
import geemap

Map = geemap.Map()

# Add first legend
legend_dict = {
    '11 Open Water': '466b9f',
    '12 Perennial Ice/Snow': 'd1def8',
    '21 Developed, Open Space': 'dec5c5',
    '22 Developed, Low Intensity': 'd99282',
    '23 Developed, Medium Intensity': 'eb0000',
    '24 Developed High Intensity': 'ab0000',
    '31 Barren Land (Rock/Sand/Clay)': 'b3ac9f',
    '41 Deciduous Forest': '68ab5f',
    '42 Evergreen Forest': '1c5f2c',
    '43 Mixed Forest': 'b5c58f',
    '51 Dwarf Scrub': 'af963c',
    '52 Shrub…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by giswqs
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants