Skip to content

Commit 04d876e

Browse files
committed
【fix】修复GeoJSON转化不对的bug review by zhurch
1 parent fd93266 commit 04d876e

File tree

14 files changed

+18
-14
lines changed

14 files changed

+18
-14
lines changed

src/common/commontypes/geometry/Collection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class Collection extends Geometry {
4040
this.addComponents(components);
4141
}
4242
this.CLASS_NAME = "SuperMap.Geometry.Collection";
43-
this.type = "Collection";
43+
this.geometryType = "Collection";
4444
}
4545

4646
/**

src/common/commontypes/geometry/Curve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class Curve extends MultiPoint {
2626
*/
2727
this.componentTypes = ["SuperMap.Geometry.Point", "SuperMap.PointWithMeasure"];
2828
this.CLASS_NAME = "SuperMap.Geometry.Curve";
29-
this.type = "Curve";
29+
this.geometryType = "Curve";
3030

3131
}
3232

src/common/commontypes/geometry/GeoText.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class GeoText extends Geometry {
5353
};
5454
this.element = document.createElement('span');
5555
this.CLASS_NAME = "SuperMap.Geometry.GeoText";
56-
this.type = "GeoText";
56+
this.geometryType = "GeoText";
5757
}
5858

5959
/**

src/common/commontypes/geometry/LineString.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class LineString extends Curve {
2424
constructor(points) {
2525
super(points);
2626
this.CLASS_NAME = "SuperMap.Geometry.LineString";
27-
this.type = "LineString";
27+
this.geometryType = "LineString";
2828
}
2929

3030
/**

src/common/commontypes/geometry/LinearRing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class LinearRing extends LineString {
3131
*/
3232
this.componentTypes = ["SuperMap.Geometry.Point"];
3333
this.CLASS_NAME = "SuperMap.Geometry.LinearRing";
34-
this.type = "LinearRing";
34+
this.geometryType = "LinearRing";
3535
}
3636

3737
/**

src/common/commontypes/geometry/MultiLineString.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class MultiLineString extends Collection {
3232
*/
3333
this.componentTypes = ["SuperMap.Geometry.LineString"];
3434
this.CLASS_NAME = "SuperMap.Geometry.MultiLineString";
35-
this.type = "MultiLineString";
35+
this.geometryType = "MultiLineString";
3636
}
3737

3838

src/common/commontypes/geometry/MultiPoint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class MultiPoint extends Collection {
2727
*/
2828
this.componentTypes = ["SuperMap.Geometry.Point"];
2929
this.CLASS_NAME = "SuperMap.Geometry.MultiPoint";
30-
this.type = "MultiPoint";
30+
this.geometryType = "MultiPoint";
3131
}
3232

3333
/**

src/common/commontypes/geometry/MultiPolygon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class MultiPolygon extends Collection {
3434
*/
3535
this.componentTypes = ["SuperMap.Geometry.Polygon"];
3636
this.CLASS_NAME = "SuperMap.Geometry.MultiPolygon";
37-
this.type = "MultiPolygon";
37+
this.geometryType = "MultiPolygon";
3838
}
3939

4040

src/common/commontypes/geometry/Point.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class Point extends Geometry {
4747
*/
4848
this.type = type || "Point";
4949
this.CLASS_NAME = "SuperMap.Geometry.Point";
50-
this.type = "Point";
50+
this.geometryType = "Point";
5151
}
5252

5353
/**

src/common/commontypes/geometry/Polygon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class Polygon extends Collection {
3434
*/
3535
this.componentTypes = ["SuperMap.Geometry.LinearRing"];
3636
this.CLASS_NAME = "SuperMap.Geometry.Polygon";
37-
this.type = "Polygon";
37+
this.geometryType = "Polygon";
3838
}
3939

4040
/**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy