Skip to content

Commit d16d1cc

Browse files
committed
fix ol 专题图传入ol.Polygon不出图bug.
1 parent 95830cc commit d16d1cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/iclient9-openlayers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21235,7 +21235,7 @@ var Theme = exports.Theme = function (_ol$source$ImageCanva) {
2123521235
geometry = new _iclientCommon.LineString(points);
2123621236
}
2123721237
if (geometry instanceof _openlayers2.default.geom.Polygon) {
21238-
var _coords = geometry.getCoordinates()[0];
21238+
var _coords = geometry.getCoordinates()[0][0];
2123921239
var _points = [];
2124021240
for (var _i = 0; _i < _coords.length; _i++) {
2124121241
_points.push(new _iclientCommon.GeometryPoint(_coords[_i][0], _coords[_i][1]));

dist/iclient9-openlayers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/openlayers/overlay/theme/Theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ export class Theme extends ol.source.ImageCanvas {
561561
geometry = new LineString(points);
562562
}
563563
if (geometry instanceof ol.geom.Polygon) {
564-
let coords = geometry.getCoordinates()[0];
564+
let coords = geometry.getCoordinates()[0][0];
565565
let points = [];
566566
for (let i = 0; i < coords.length; i++) {
567567
points.push(new GeometryPoint(coords[i][0], coords[i][1]));

0 commit comments

Comments
 (0)