MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / toSuperMapGeometry

Function toSuperMapGeometry

src/mapboxgl/core/Util.js:41–47  ·  view source on GitHub ↗

* @function Util.toSuperMapGeometry * @description 将 GeoJSON 对象转为 SuperMap 几何图形。 * @param {GeoJSONObject} geoJSON - GeoJSON 对象。 * @returns {Geometry}

(geoJSON)

Source from the content-addressed store, hash-verified

39 * @returns {Geometry}
40 */
41 toSuperMapGeometry(geoJSON) {
42 if (geoJSON && geoJSON.type) {
43 var format = new GeoJSONFormat();
44 var result = format.read(geoJSON, "FeatureCollection");
45 return result && result[0].geometry;
46 }
47 },
48
49 toSuperMapBounds(bounds) {
50 if (isArray(bounds)) {

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected