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

create polygon with name #127

Open
lunaeidi opened this issue Feb 24, 2024 · 0 comments
Open

create polygon with name #127

lunaeidi opened this issue Feb 24, 2024 · 0 comments

Comments

@lunaeidi
Copy link

When I try creating a polygon with a name, such as : self.map_widget.set_polygon([coordinates_tuple], name="Test")

I get an error that set_polygon only expects 1 argument.

This is from the Readme:

polygon_1 = map_widget.set_polygon([(46.0732306, 6.0095215),
...
(46.3772542, 6.4160156)],
# fill_color=None,
# outline_color="red",
# border_width=12,
command=polygon_click,
name="switzerland_polygon")

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

No branches or pull requests

1 participant