Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elevatezoom not working when used inside an infowindow (google maps js v3) #169

Open
AnixPasBesoin opened this issue Sep 14, 2017 · 0 comments

Comments

@AnixPasBesoin
Copy link

AnixPasBesoin commented Sep 14, 2017

I've got a code that generates the content of an infowindow dynamically, and one of the dom generated dom elements is meant to be a zoomable image. In its basic form, the code looks like this:

    var infowindow = new google.maps.InfoWindow({
        content: html // The dynamically generated html which contains the infowindow
    });
    google.maps.event.addListener(infowindow, 'domready', function () {
        $(".ZoomableImage").elevateZoom();
    });
    return infowindow;

For some reason I didn't figure out, the zoomable image is not being elevated (nothing happens to the image).
Have anyone encountered this before? If yes, I'd like to know your workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant