try to improve "moving" callsigns

This commit is contained in:
Jakob Ketterl 2019-07-28 16:36:12 +02:00
parent 3b5883dd55
commit e40b400f6f
1 changed files with 2 additions and 1 deletions

View File

@ -136,7 +136,7 @@
} else {
rectangle = new google.maps.Rectangle();
rectangle.addListener('click', function(){
showLocatorInfoWindow(update.location.locator, center);
showLocatorInfoWindow(this.locator, this.center);
});
rectangles[update.callsign] = rectangle;
}
@ -156,6 +156,7 @@
rectangle.locator = update.location.locator;
rectangle.mode = update.mode;
rectangle.band = update.band;
rectangle.center = center;
if (expectedLocator && expectedLocator == update.location.locator) {
map.panTo(center);