Bing! Map How to create an info window popup

I have a pin on my bing! version 7, although I can’t find out how to create an onclick event to display the info window!

Can someone point me in the right direction or provide an example?

I have the following code! I need a popup to overlay the map panel.

Thanks so much as always!

var map = null; function GetMap() { map = new Microsoft.Maps.Map(document.getElementById('myMap'), { credentials: 'xxx' }); map.entities.clear(); var pushpinOptions = { icon: 'icon.png', width: 53, height: 61 }; var pushpin = new Microsoft.Maps.Pushpin(map.getCenter(), pushpinOptions); var infoboxOptions = {title:'Infobox Title', description:'Infobox description'}; var defaultInfobox = new Microsoft.Maps.Infobox(map.getCenter(), infoboxOptions ); map.entities.push(defaultInfobox); map.entities.push(pushpin); } 
+4
source share
2 answers

On this page on the Bing sdk website there are many examples with code examples below the map:

http://www.bingmapsportal.com/isdk/ajaxv7

+1
source
+2
source

All Articles