I have tried this demo:
var map = new Microsoft.Maps.Map(document.getElementById('myMap'), {
center: new Microsoft.Maps.Location(47.60995, -122.34009)
});
Microsoft.Maps.loadModule('Microsoft.Maps.WellKnownText', function () {
// Add a Pushpin at Seattle
map.entities.push(Microsoft.Maps.WellKnownText.read('POINT(-122.34009 47.60995)'));
});
Works fine. But if I try to add another PushPin by adding the following lines to the above program, like this:
Microsoft.Maps.loadModule('Microsoft.Maps.WellKnownText', function () {
// Add a Pushpin somewhere
map.entities.push(Microsoft.Maps.WellKnownText.read('POINT(-122.35009 47.61995)'));
});
another PushPin should appear. But it doesn't.
Hope someone can give me some advice, I cannot see why it doesn't work.
Thanks and best regards
PoulK