try to improve "moving" callsigns

This commit is contained in:
Jakob Ketterl 2019-07-28 16:36:12 +02:00
parent 3b5883dd55
commit e40b400f6f

View File

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