chore(package): update closure-util to version 1.11.0
- Remove closure-util.json, we're now using the same library version as closure-util - Disable analyzerChecks errors from closure-compiler - Remove WheelEvent constants from externs (fixed upstream) - Activate the unnecessaryCasts compiler check
This commit is contained in:
committed by
Frederic Junod
parent
4e11a86b4e
commit
7e7d8ac4e2
@@ -243,10 +243,10 @@ function addInteraction() {
|
||||
var geom = evt.target;
|
||||
var output;
|
||||
if (geom instanceof ol.geom.Polygon) {
|
||||
output = formatArea(/** @type {ol.geom.Polygon} */ (geom));
|
||||
output = formatArea(geom);
|
||||
tooltipCoord = geom.getInteriorPoint().getCoordinates();
|
||||
} else if (geom instanceof ol.geom.LineString) {
|
||||
output = formatLength(/** @type {ol.geom.LineString} */ (geom));
|
||||
output = formatLength(geom);
|
||||
tooltipCoord = geom.getLastCoordinate();
|
||||
}
|
||||
measureTooltipElement.innerHTML = output;
|
||||
|
||||
Reference in New Issue
Block a user