Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

unable to implement infowindow #155

Description

@shu8hamrajput

i am trying to implement multiple marker with infowindows when marker id clicked but somwhow value of infowindow is undefined. i am new to jquery but all other issues and code examples on internet seems similar to this.
I am really confused if it is happening to me only or there is some change in usage of infowindow functionality.

$('#map')
      .gmap3({
          center:[stores[0].latitude, stores[0].longitude],
          zoom:10,
          mapTypeId: google.maps.MapTypeId.ROADMAP,
          mapTypeControl: true,
          mapTypeControlOptions: {
              style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
            },
            navigationControl: true,
            scrollwheel: true,
            streetViewControl: true
        })
        .marker(markers)
        .infowindow(markers)
        .then(function(infowindow) {
            console.log("info: ", infowindow)
            var map = this.get(0);
            var marker = this.get(1);
            marker.forEach(function(item,i){
                item.addListener('click', function() {
                    infowindow.open(map, item);
                });
            })

        })

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions