detect user click street view

104 views
Skip to first unread message

Kevin worthington

unread,
Jun 27, 2011, 8:13:41 PM6/27/11
to google-map...@googlegroups.com
I have a map which is set to show the street view with an event listener set for "click".
The event fires perfectly when in map view but does not work in street view.
Does anyone know how I can can capture this "click" event in street view.

Any help is greatly appreciated.

Esa

unread,
Jun 29, 2011, 7:44:36 AM6/29/11
to Google Maps JavaScript API v3
Confirmed. I haven't discovered any 'click' event for StreetView
either.

You can construct a 'click' listener on the div element by
addDomListener(). However that will also be triggered when the control
elements are clicked. If you want to separate clicks on map and on
StreetView, you can use getVisible() method.

Kevin worthington

unread,
Jun 29, 2011, 10:14:58 AM6/29/11
to google-map...@googlegroups.com
Thanks for the feedback Esa. I will venture beyond the API and add my own listener to the div as mentioned.
Have a great day.
Reply all
Reply to author
Forward
0 new messages