This is a place devoted to giving you deeper insight
into the news, trends, people and technology behind Bing.
Using Pushpin objects in Microsoft Virtual Earth is pretty straightforward – you pass in latitude and longitude coordinates and drop a pushpin on the map; however, what if you want to move the pin to a new location while it’s already planted on a map? You could have this requirement for any multitude of reasons – correcting a inaccurate or interpolated geocode, ease of use for allowing users to move pins to correct the origin or destination of a route or moving a location to then regenerate spatial query analysis (demographic or other) based on the new location. Sweet, huh?
Here’s a map with two pins.
Now, let’s say you want to just click on the pushpin in Dallas and move it to Seattle. You simply click the pushpin, hold down the mouse button and move the pushpin to Seattle. Simple! While the food in Dallas is amazing, the pushpin will be much happier here in Seattle for a multitude of other reasons – this is all based on my spatial analysis I mentioned
Here’s the code:
<body onload="GetMap();"> <div id='myMap' style="position:relative; width:800px; height:600px;"></div> <div id='resultDiv' style="position:relative; width:400px;">Drag the pushpins around on the map.</div> </body> </html>
I also uploaded it to my Skydrive site so you can just play with it.
Was wondering why on your first map the push pins are at Dallas and LA then on the next map they're on LA and Seattle? Why not Dallas straight to Seattle? Why would someone travel from Dallas to Seattle by way of LA? Just wondering...ILY
Los Angeles was sort of a random pin....but then again, it could represent LA --> Dallas --> Seattle.
I see now..it wasn't quite clear earlier. Paint fumes.
Bing is a really overlord!! support Bing~~
Just found this today as I'm looking to add some geo-spatial extensions to Awasu (a cool, highly extensible feed reader).
This is a nice example, thanks for sharing it Chris!
© 2013 Microsoft