Just to clarify the situation. Put it in order for me to figure it out.
Create a pushpin in JavaScipt:
var thisPin; var location new Microsoft.Maps.Location(YourLatitude, Your.longitude); thisPin = new Microsoft.Maps.Pushpin(location, { icon: 'path to image', anchor: new Microsoft.Maps.Point(YourOffsetX, YourOffsetY) }); map.entities.push(thisPin);
To remove the output, you still need to have thisPin pointer pointing to this particular output.
map.entities.remove(thisPin);
This method is not well documented in the examples.
Henry source share