I face a problem: I use a marker but I can't show the info window on both c

I face a problem:
I use a marker but I can’t show the info window on both cases:

  • when a click on it,
  • or through setInfoWindowVisible() method

I can reproduce it on your official demo:
changing tab from ‘Google Maps Demo’ to another one (e.g. ‘Add Markers Demo’) and then back again to ‘Google Maps Demo’, when I do click on the marker the info window does not appear again (neither the icons on the polygon).

Please could you help display the info window?

Thanks.

18640684.png

Hello. Thanks for reporting this. We already have an open [issue]
(https://github.com/FlowingCode/GoogleMapsAddon/issues/45) regarding the polygon icons gone missing and I just created a [new one]
(https://github.com/FlowingCode/GoogleMapsAddon/issues/51) about info window. We will let you know when these issues are fixed.

Regards.

Actually I have managed to find how to reproduce the issue (and find some new issues):

When I load the add-on on a Dialog the behavior is changed:

  • marker.addDragEndEventListener() (event) is never executing,
  • polygon.addClickListener() (event) is never executing,
  • info window is not shown

But, when I load the add-on on main application’s window all the above issues are solved.

Please could you check it because is useful to me to use the Dialog component with the map?

Thank you in advance.

Hi, sorry this took so long but we managed to fix these issues in our latest release, version 1.5.0. Can you give it a try and let us know how it goes? Thanks.

Hi!

I have tried the 1.5.0 version and it seems that it solves the above issues. Thanks!

Only an issue I am still facing:
I have noticed that the markers are shown only when I remove them and add them again. I am confused a bit! No any problem with the polygons.

Could you tell me a hit for that?

Hi, sorry to hear you still have problems. Can you create an issue [here]
(https://github.com/FlowingCode/GoogleMapsAddon/issues) with an example to reproduce the issue you’re having so we can take a look? Thanks.

Hi!

After studying your example again and trying to find any differences with my code, finally I found one crucial!

I have to add the GoogleMap object to its container last. Any other place in the code no GoogleMapMarker are shown at first show of the map (I had to remove and add them again).

I don’t know the cause of that, but fortunately it works!

Thanks.

Hello, glad it worked for you! I’m not sure that having to add the map to the container as the last step in order to see the markers is the right behavior so I’ve created a [github issue]
(https://github.com/FlowingCode/GoogleMapsAddon/issues/59) to investigate that.

Regards.

Hello. Our latest release, version 1.6.0, includes a fix to the marker’s issue.

Regards.