Open thdoan opened 8 years ago
For now here is my workaround:
...
marker = $gmap.markers[0];
$gmap.info.setPosition(marker.getPosition());
$gmap.info.open($gmap.map);
Great, thanks for sharing the solution .. it worked for me :+1:
@thdoan great, thx for sharing. helped me also out at the moment :) 👌🏿
I found that it was because the 'map' attribute of clusterer's markers[0] is null that when i open infowindow with markers[0]'s position it showed in the wrong position.so i rewrite this line 'this.markers[i].setMap(null);' to 'this.markers[i].setVisible(false);',then the infowindow shows in correct position
@QueridaChin Can you please write us in which file we should make the code update you advice us? and write us the file path?
Thanks, Daniel
When marker clusterer is enabled and an info window is dynamically populated using
setContent()
, the info window opens up in the upper left hand corner instead of being positioned near the marker:The interesting thing is, if I comment out
setContent()
then the info window shows up next to the marker. If I comment outnew MarkerClusterer()
, then the info window shows up correctly regardless.