Skip to content

Commit b9562ec

Browse files
committed
2 parents 4ca3392 + c6aa02b commit b9562ec

File tree

221 files changed

+7090
-949
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+7090
-949
lines changed

build/jsdocs/template/typeLinkExt.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ var typeLinks = {
1111
"ol.geom.Polygon": olapi + "ol.geom.Polygon.html",
1212
"ol.geom.LineString": olapi + "ol.geom.LineString.html",
1313
"ol.geom.Point": olapi + "ol.geom.Point.html",
14+
"ol.geom.Geometry":olapi + "ol.geom.Geometry.html",
1415
"ol.format.GeoJSON": olapi + "ol.format.GeoJSON.html",
1516
"ol.proj.Projection": olapi + "ol.proj.Projection",
1617
"ol.Observable": olapi + "ol.Observable",
@@ -27,6 +28,7 @@ var typeLinks = {
2728
"ol.Pixel": olapi + "ol.html#.Pixel",
2829
"ol.source.State": olapi + "ol.source.html#.State",
2930
"ol.layer.Layer": olapi + "ol.layer.Layer.html",
31+
"ol.FeatureStyleFunction": olapi + "ol.html#.FeatureStyleFunction",
3032

3133

3234
//leaflet
@@ -48,6 +50,7 @@ var typeLinks = {
4850
"L.TileLayer": lfapi + '#tilelayer',
4951
"L.CircleMarker": lfapi + '#circlemarker',
5052
"L.Path-option": lfapi + '#path-option',
53+
"L.Rectangle": lfapi + '#rectangle',
5154

5255
//mapboxgl
5356
"mapboxgl.Evented": mbglapi + '#Evented',

dist/images/plot/avoid.png

2.75 KB

dist/images/plot/control.png

2.75 KB

dist/images/plot/locked.png

2.95 KB

dist/images/plot/rotate.png

1.42 KB

dist/images/plot/scale.png

2.79 KB

dist/leaflet/iclient9-leaflet-es6.js

Lines changed: 39 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -38348,7 +38348,7 @@ class TokenServiceParameter_TokenServiceParameter {
3834838348

3834938349
/**
3835038350
* @member {string} SuperMap.TokenServiceParameter.prototype.ip
38351-
* @description clientType=Referer 时,必选。如果按照指定 URL 的方式申请令牌,则传递相应的 URL
38351+
* @description clientType=IP 时,必选。
3835238352
*/
3835338353

3835438354
this.ip = null;
@@ -63449,7 +63449,26 @@ let Attributions = {
6344963449
external_L_default.a.supermap = external_L_default.a.supermap || {};
6345063450
external_L_default.a.supermap.control = external_L_default.a.supermap.control || {};
6345163451

63452-
external_L_default.a.Control.Attribution.include({options: {position: 'bottomright',prefix: core_Attributions.Prefix}});
63452+
external_L_default.a.Control.Attribution.include({
63453+
options: {
63454+
position: 'bottomright',
63455+
prefix: core_Attributions.Prefix
63456+
}
63457+
});
63458+
63459+
wrapToGeoJSON([external_L_default.a.Polyline, external_L_default.a.Polygon, external_L_default.a.Marker, external_L_default.a.CircleMarker, external_L_default.a.Circle, external_L_default.a.LayerGroup]);
63460+
63461+
function wrapToGeoJSON(objClassArray) {
63462+
for (const objClass of objClassArray) {
63463+
objClass.defaultFunction = objClass.prototype.toGeoJSON;
63464+
objClass.include({
63465+
toGeoJSON: function (precision) {
63466+
return objClass.defaultFunction.call(this, precision || 10);
63467+
}
63468+
})
63469+
}
63470+
63471+
}
6345363472
// CONCATENATED MODULE: ./src/leaflet/services/ServiceBase.js
6345463473

6345563474

@@ -66318,31 +66337,25 @@ var ThemeFeature = external_L_default.a.Class.extend({
6631866337
* @return {SuperMap.Feature.Vector} 内部矢量要素。
6631966338
*/
6632066339
toFeature: function () {
66321-
var geometry = this.geometry;
66322-
var points = [];
66323-
if (geometry instanceof external_L_default.a.Polygon) {
66324-
points = this.reverseLatLngs(geometry.getLatLngs());
66325-
geometry = new Polygon_Polygon(points);
66326-
} else if (geometry instanceof external_L_default.a.Polyline) {
66327-
points = this.reverseLatLngs(geometry.getLatLngs());
66328-
geometry = new LineString_LineString(points);
66329-
} else if (geometry.length === 3) {
66340+
let geometry = this.geometry;
66341+
const points = [];
66342+
let geojsonObject
66343+
if (geometry.toGeoJSON) {
66344+
geojsonObject = geometry.toGeoJSON();
66345+
geojsonObject.properties = this.attributes;
66346+
return new GeoJSON_GeoJSON().read(geojsonObject)[0];
66347+
}
66348+
if (geometry.length === 3) {
6633066349
geometry = new GeoText_GeoText(geometry[1], geometry[0], geometry[2]);
66331-
} else {
66332-
if (geometry instanceof external_L_default.a.LatLng) {
66333-
points = [geometry.lng, geometry.lat];
66334-
} else if (geometry instanceof external_L_default.a.Point) {
66335-
points = [geometry.x, geometry.y];
66336-
} else if (geometry instanceof external_L_default.a.CircleMarker) {
66337-
var latLng = geometry.getLatLng();
66338-
points = [latLng.lng, latLng.lat];
66339-
} else {
66340-
points = geometry;
66341-
}
66342-
if (points.length === 2) {
66343-
geometry = new Point_Point(points[0], points[1]);
66344-
}
66345-
66350+
} else if (geometry.length === 2) {
66351+
geometry = new Point_Point(points[0], points[1]);
66352+
} else if (geometry instanceof external_L_default.a.LatLng) {
66353+
geometry = new Point_Point(geometry.lng, geometry.lat);
66354+
} else if (geometry instanceof external_L_default.a.Point) {
66355+
geometry = new Point_Point(geometry.x, geometry.y);
66356+
} else if (geometry instanceof external_L_default.a.CircleMarker) {
66357+
var latLng = geometry.getLatLng();
66358+
geometry = new Point_Point(latLng.lng, latLng.lat);
6634666359
}
6634766360
return new Vector_Vector(geometry, this.attributes);
6634866361
},

dist/leaflet/iclient9-leaflet-es6.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.

dist/leaflet/iclient9-leaflet.js

Lines changed: 61 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2428,7 +2428,50 @@ _leaflet2["default"].supermap = _leaflet2["default"].supermap || {}; /**
24282428

24292429
_leaflet2["default"].supermap.control = _leaflet2["default"].supermap.control || {};
24302430

2431-
_leaflet2["default"].Control.Attribution.include({ options: { position: 'bottomright', prefix: _Attributions2["default"].Prefix } });
2431+
_leaflet2["default"].Control.Attribution.include({
2432+
options: {
2433+
position: 'bottomright',
2434+
prefix: _Attributions2["default"].Prefix
2435+
}
2436+
});
2437+
2438+
wrapToGeoJSON([_leaflet2["default"].Polyline, _leaflet2["default"].Polygon, _leaflet2["default"].Marker, _leaflet2["default"].CircleMarker, _leaflet2["default"].Circle, _leaflet2["default"].LayerGroup]);
2439+
2440+
function wrapToGeoJSON(objClassArray) {
2441+
var _iteratorNormalCompletion = true;
2442+
var _didIteratorError = false;
2443+
var _iteratorError = undefined;
2444+
2445+
try {
2446+
var _loop = function _loop() {
2447+
var objClass = _step.value;
2448+
2449+
objClass.defaultFunction = objClass.prototype.toGeoJSON;
2450+
objClass.include({
2451+
toGeoJSON: function toGeoJSON(precision) {
2452+
return objClass.defaultFunction.call(this, precision || 10);
2453+
}
2454+
});
2455+
};
2456+
2457+
for (var _iterator = objClassArray[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
2458+
_loop();
2459+
}
2460+
} catch (err) {
2461+
_didIteratorError = true;
2462+
_iteratorError = err;
2463+
} finally {
2464+
try {
2465+
if (!_iteratorNormalCompletion && _iterator["return"]) {
2466+
_iterator["return"]();
2467+
}
2468+
} finally {
2469+
if (_didIteratorError) {
2470+
throw _iteratorError;
2471+
}
2472+
}
2473+
}
2474+
}
24322475

24332476
/***/ }),
24342477
/* 5 */
@@ -21320,28 +21363,23 @@ var ThemeFeature = exports.ThemeFeature = _leaflet2["default"].Class.extend({
2132021363
toFeature: function toFeature() {
2132121364
var geometry = this.geometry;
2132221365
var points = [];
21323-
if (geometry instanceof _leaflet2["default"].Polygon) {
21324-
points = this.reverseLatLngs(geometry.getLatLngs());
21325-
geometry = new _iclientCommon.Polygon(points);
21326-
} else if (geometry instanceof _leaflet2["default"].Polyline) {
21327-
points = this.reverseLatLngs(geometry.getLatLngs());
21328-
geometry = new _iclientCommon.LineString(points);
21329-
} else if (geometry.length === 3) {
21366+
var geojsonObject = void 0;
21367+
if (geometry.toGeoJSON) {
21368+
geojsonObject = geometry.toGeoJSON();
21369+
geojsonObject.properties = this.attributes;
21370+
return new _iclientCommon.GeoJSON().read(geojsonObject)[0];
21371+
}
21372+
if (geometry.length === 3) {
2133021373
geometry = new _iclientCommon.GeoText(geometry[1], geometry[0], geometry[2]);
21331-
} else {
21332-
if (geometry instanceof _leaflet2["default"].LatLng) {
21333-
points = [geometry.lng, geometry.lat];
21334-
} else if (geometry instanceof _leaflet2["default"].Point) {
21335-
points = [geometry.x, geometry.y];
21336-
} else if (geometry instanceof _leaflet2["default"].CircleMarker) {
21337-
var latLng = geometry.getLatLng();
21338-
points = [latLng.lng, latLng.lat];
21339-
} else {
21340-
points = geometry;
21341-
}
21342-
if (points.length === 2) {
21343-
geometry = new _iclientCommon.GeometryPoint(points[0], points[1]);
21344-
}
21374+
} else if (geometry.length === 2) {
21375+
geometry = new _iclientCommon.GeometryPoint(points[0], points[1]);
21376+
} else if (geometry instanceof _leaflet2["default"].LatLng) {
21377+
geometry = new _iclientCommon.GeometryPoint(geometry.lng, geometry.lat);
21378+
} else if (geometry instanceof _leaflet2["default"].Point) {
21379+
geometry = new _iclientCommon.GeometryPoint(geometry.x, geometry.y);
21380+
} else if (geometry instanceof _leaflet2["default"].CircleMarker) {
21381+
var latLng = geometry.getLatLng();
21382+
geometry = new _iclientCommon.GeometryPoint(latLng.lng, latLng.lat);
2134521383
}
2134621384
return new _iclientCommon.GeometryVector(geometry, this.attributes);
2134721385
},
@@ -84583,7 +84621,7 @@ var TokenServiceParameter = exports.TokenServiceParameter = function () {
8458384621

8458484622
/**
8458584623
* @member {string} SuperMap.TokenServiceParameter.prototype.ip
84586-
* @description clientType=Referer 时,必选。如果按照指定 URL 的方式申请令牌,则传递相应的 URL
84624+
* @description clientType=IP 时,必选。
8458784625
*/
8458884626

8458984627
this.ip = null;

dist/leaflet/iclient9-leaflet.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.

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