angularjs-google-maps icon indicating copy to clipboard operation
angularjs-google-maps copied to clipboard

How to show all the info windows simultaneously on the placed markers when they appear, not on click.!

Open angelobsks opened this issue 11 years ago • 2 comments

Let's say we have a map, an info window defined and a number of marker placed on the map with ng-repeat. How can i show for each marker its info-window opened when the marker appears ? Not on the click event. I have already do it on click and it works fine.

image

Something like that below ... image

angelobsks avatar May 11 '15 15:05 angelobsks

You cannot do that with only one infowindow. When clicked other marker, the infoWindow simply re-compile and moves its position. it's not multiple infoWindow because you defined it as only one.

You need to create multiple infoWindow to open multiple infoWindow at the same time.

Please checkout this example, https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/infowindow_compile.html

and also this example that uses visible-on-marker attribute. https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/infowindow-simple.html

For more examples, please visit index page https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/index.html

allenhwkim avatar May 17 '15 15:05 allenhwkim

Closing

allenhwkim avatar May 20 '15 04:05 allenhwkim