Push Pin Click Events RRS feed

  • Question

  • This is a common example provided by Bing Team  (see below).

    When I use this I never get the infobox to show up because is not included.   After the pin is created the metadata is set and the event handler for the click is added.  Which is included in the example.

    I have a for loop that adds a dozen pins to a layer, but the click events for each pin is not working as expected.  

    What am I missing here and why/how to get the event data?

     function pushpinClicked(e) {
            //Make sure the infobox has metadata to display.
            if ( {
                //Set the infobox options with the metadata of the pushpin.
                    visible: true

    Sunday, August 12, 2018 7:17 PM

All replies