Flashing Google Maps Tips

In the upper left corner of the map, the white lower tip of the marker appears, which quickly moves along both markers left-right-left.

See here in action http://jsfiddle.net/WGy4g/3/

var map = null; initialize(); function initialize() { var mapOptions = {center: new google.maps.LatLng(-34.397, 150.644),zoom: 8}; map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions); addMarker(-34.397, 150.644); addMarker(-34.377, 150.534); } function addMarker(lat,lng) { var marker = new google.maps.Marker({position: new google.maps.LatLng(lat,lng), title: "marker"}); marker.setMap(map); google.maps.event.addListener(marker, 'mouseover', function() { if (!this.infowindow) { this.infowindow = new google.maps.InfoWindow({content: 'abc'}); } this.infowindow.open(map, this); }); google.maps.event.addListener(marker, 'mouseout', function() { this.infowindow.close(); }); } 

Sent error report: https://code.google.com/p/gmaps-api-issues/issues/detail?id=6746&thanks=6746&ts=1401343988

+7
javascript google-maps google-maps-api-3
source share
1 answer

Possible duplicate of Google map js api version 3 infowindow glitch

I can confirm that this is happening in both IE and Google Chrome. This seems to be a problem with the Google Maps API, so you were correct in pointing this out as an error. To try to solve the problem in one of my own scripts, I tried; Using the setPosition method of the InfoWindow class to set specific LatLng coordinates to 0.0 before calling the open method; and scrolling using the pixelOffset property using the setOptions method, but to no avail. I also looked at changing the state of visibility of InfoWindow back and forth, but there is no easy way to do this.

Waiting for a bug fix is ​​the only option.

+1
source share

All Articles