// Create an array with a large number of pushpins:
var center = map.GetCenter();
var shapes = new Array();
for (i=0 ; i < 150; ++i)
{
var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(center.Latitude + Math.random()*20 - 10, center.Longitude + Math.random()*20 - 10));
shapes.push(shape);
}
// Create an empty shape layer and add it to the map:
var shapeLayer = new VEShapeLayer();
map.AddShapeLayer(shapeLayer);
// Add the array of pushpins to the shape layer:
shapeLayer.AddShape(shapes);