Created
December 24, 2010 15:04
-
-
Save follesoe/754318 to your computer and use it in GitHub Desktop.
Bridging windows and web applications using JSON
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function LoadOrders(jsonOrders) | |
{ | |
var orders = eval(jsonOrders); | |
for(var i = 0; i < orders.length; ++i) | |
{ | |
var order = orders[i]; | |
var shape = new VEShape(VEShapeType.Pushpin, | |
new VELatLong(order.Customer.Location.Latitude, | |
order.Customer.Location.Longitude)); | |
shape.SetTitle(order.Customer.Name); | |
shape.SetDescription(CreateDescription(order)); | |
map.AddShape(shape); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment