Closed iamsolankiamit closed 9 years ago
At first glance, it cant work because -webkit-border-radius:
is not valid json.
Btw I have no idea why you pass css there
Since adding a class or id didn't work hence i had to add it here. the html is working fine it displays the content as it should
but on click function is not working as expected. it works only for custom info window, but doesn't adds works with event listener
here is an example to show you its completely feasible: http://plnkr.co/edit/uYj7hFpf21TPNgi02WR3?p=preview
As a note for anyone adding an event to multiple markers, you should iterate through the markers and call marker = handler.addMarker(marker)
on each object, and also add the event in the same block.
I initially used markers = handler.addMarkers(markers)
and attempted to add events to the return value of addMarkers()
, which is probably not an array of the markers.
I have been trying to make custom markers clickable to display alert box when clicked. There is no error but still the functionality doesn't works.