scale icons a bit depending on aircraft size
This commit is contained in:
@@ -800,7 +800,8 @@ function initialize_map() {
|
||||
scaleFactor = 1.2*Math.max(0.2, Math.min(1.2, 0.15 * Math.pow(1.25, ZoomLvl)));
|
||||
for (var plane in Planes) {
|
||||
if (Planes[plane].markerIcon)
|
||||
Planes[plane].markerIcon.setScale(scaleFactor);
|
||||
this.scaleCache = scaleFactor * this.baseScale;
|
||||
Planes[plane].markerIcon.setScale(this.scaleCache);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user