Skip to content

Instantly share code, notes, and snippets.

@follesoe
Created December 24, 2010 15:04
Show Gist options
  • Save follesoe/754318 to your computer and use it in GitHub Desktop.
Save follesoe/754318 to your computer and use it in GitHub Desktop.
Bridging windows and web applications using JSON
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