Rename _ol_geom_Polygon_ to Polygon
This commit is contained in:
+3
-3
@@ -4,7 +4,7 @@ import _ol_Overlay_ from '../src/ol/Overlay.js';
|
||||
import _ol_Sphere_ from '../src/ol/Sphere.js';
|
||||
import _ol_View_ from '../src/ol/View.js';
|
||||
import LineString from '../src/ol/geom/LineString.js';
|
||||
import _ol_geom_Polygon_ from '../src/ol/geom/Polygon.js';
|
||||
import Polygon from '../src/ol/geom/Polygon.js';
|
||||
import _ol_interaction_Draw_ from '../src/ol/interaction/Draw.js';
|
||||
import _ol_layer_Tile_ from '../src/ol/layer/Tile.js';
|
||||
import _ol_layer_Vector_ from '../src/ol/layer/Vector.js';
|
||||
@@ -104,7 +104,7 @@ var pointerMoveHandler = function(evt) {
|
||||
|
||||
if (sketch) {
|
||||
var geom = (sketch.getGeometry());
|
||||
if (geom instanceof _ol_geom_Polygon_) {
|
||||
if (geom instanceof Polygon) {
|
||||
helpMsg = continuePolygonMsg;
|
||||
} else if (geom instanceof LineString) {
|
||||
helpMsg = continueLineMsg;
|
||||
@@ -217,7 +217,7 @@ function addInteraction() {
|
||||
listener = sketch.getGeometry().on('change', function(evt) {
|
||||
var geom = evt.target;
|
||||
var output;
|
||||
if (geom instanceof _ol_geom_Polygon_) {
|
||||
if (geom instanceof Polygon) {
|
||||
output = formatArea(geom);
|
||||
tooltipCoord = geom.getInteriorPoint().getCoordinates();
|
||||
} else if (geom instanceof LineString) {
|
||||
|
||||
Reference in New Issue
Block a user