circle = new Microsoft.Maps.Polygon([e.location, e.location, e.location]);
mouseMoveEventHandler = Microsoft.Maps.Events.addHandler(map, 'mousemove', function (e) {
if (circle) {
UpdateCircle(e);
}
}
I found this sample code on the internet and I don't understand what "if(circle)" means. Also, what is "e"? I'm trying to create this Polygon object without using an event handler and I don't know how to go about it and I was hoping that understanding what this code does would help. I don't know what to search on the internet, either. Thanks.