Fix tabs and add comment about crazy equation
This commit is contained in:
parent
d4903c6ce7
commit
7c019e1eb8
@ -546,6 +546,8 @@ window.renderField = function(ent) {
|
|||||||
new L.LatLng(reg.vertexB.location.latE6/1E6, reg.vertexB.location.lngE6/1E6),
|
new L.LatLng(reg.vertexB.location.latE6/1E6, reg.vertexB.location.lngE6/1E6),
|
||||||
new L.LatLng(reg.vertexC.location.latE6/1E6, reg.vertexC.location.lngE6/1E6)
|
new L.LatLng(reg.vertexC.location.latE6/1E6, reg.vertexC.location.lngE6/1E6)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Curve fit equation to normalize zoom window area
|
||||||
var areaZoomRatio = calcTriArea(latlngs)/Math.exp(14.2714860198866-1.384987247*map.getZoom())
|
var areaZoomRatio = calcTriArea(latlngs)/Math.exp(14.2714860198866-1.384987247*map.getZoom())
|
||||||
|
|
||||||
// Do nothing if zoom did not change. We need to recheck the field if the
|
// Do nothing if zoom did not change. We need to recheck the field if the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user