2

I have created a google maps page with custom markers and locations. I want the user to be able to click on the marker of a location and it opens a lightbox on that page. Is this possible? Thanks!

1 Answer 1

2

You'll want to check out this documentation page, on Google Maps event handling:

http://code.google.com/apis/maps/documentation/javascript/events.html#EventListeners

...and from that page...

google.maps.event.addListener(marker, 'click', function() {
    map.setZoom(8);
});

Note that this simply calls a map function (setZoom); it's up to you to launch any custom lightbox you might want, assuming you don't want to use a GoogleMaps-style popup of some kind.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.