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

PolyLine, Polygon, not first Map usage #118

Closed
SpilkoRobert opened this issue Mar 7, 2024 · 0 comments · Fixed by #120
Closed

PolyLine, Polygon, not first Map usage #118

SpilkoRobert opened this issue Mar 7, 2024 · 0 comments · Fixed by #120
Assignees
Labels
bug Something isn't working

Comments

@SpilkoRobert
Copy link

SpilkoRobert commented Mar 7, 2024

Hi,

I am facing an issue, that if it is NOT the first time a GoogleMap is rendered on the browser session, the addPolygon and the addPolyline functions are not working.

I was able to reproduce the issue on the demo project as well, by replacing the content with a button, which brings up a Dialog everty time it is clicked, whith the original content...
The funtions are working on the first dialog, but not after. Refreshing the browser means it will again work, but only for the first time.

AddPolygonsDemo:

Button b = new Button("Bring up");
b.addClickListener(e -> {
        Dialog dialog = new Dialog();
        dialog.setHeight("500px");
        dialog.setWidth("500px");

	// original content

	dialog.add(gmaps, layout);
	dialog.open();
});
add(b);
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants