cuba-platform / charts

Charts and Maps Addon
https://www.cuba-platform.com/
Apache License 2.0
5 stars 2 forks source link

Method for close infowindow is not working #107

Closed Saeron closed 3 years ago

Saeron commented 3 years ago

I am usgin this method to remove the previus popup, so I just have one popu at the same time, but is not closing and still showing in the map. So closeInfoWindow is not closing the popup.

map.addMarkerClickListener(e-> {
            Marker marker = e.getMarker();
            if(w!=null && map.isInfoWindowOpen(w)){
                map.closeInfoWindow(w);
            }
            w = map.createInfoWindow(marker.getCaption(), marker);
            map.openInfoWindow(w);
        });

I am using last version of cuba and I install the addon from the market.

skatova commented 3 years ago

This problem is reproduced. See attached project testmap.zip

Saeron commented 3 years ago

I am getting this warning in the browser: Google Maps JavaScript API warning: RetiredVersion https://developers.google.com/maps/documentation/javascript/error-messages#retired-version

So it migth be because the google api.