nguyenbinhking


Hi All,

I have a problem about as following:

On Virtual Earth Map of Microsoft, I want to show push pin popup when user need to find an address. Example: I have a text box that user enter an address in order to find. On map I put per pushpin for per an address. When user click OK so find, if found then pushpin popup automatically show on that needn't mouseover on pushpin match of this address.

Please give me a solution. Thanks so much anyone.





Re: How to show pushpin popup when an address has been located

Derrick


Firstly, when doing a search for address, it doesn't automatically add the pushpin, so you will have to do it yourself.

Here's some code.

Code Snippet

function cb(a,b,c,d,e)

{

if(c)

{

//Create the pushpin

var pin = new VEShape(VEShapeType.Pushpin, c[0].LatLong);

pin.SetTitle(c[0].Name);

map.AddShape(pin);

//Show the info box

map.ShowInfoBox(pin);

}

}

map.Find(null, "Seattle, wa",null,null,null,null,null,null,null,null, cb);






Re: How to show pushpin popup when an address has been located

nguyenbinhking

Hello Derrick,

I was very happy when your support helped me so much. It solved successful my problem. Thanks you very much.