constmapgl=require('maplibre-gl');// or require('mapbox-gl');constmap=newmapgl.Map({...});// or:importUfrom'map-gl-utils';U.init(map);// if you need to explicitly import the ESM version:importUfrom'map-gl-utils/dist/index.esm.js'U.init(map);// A small number of methods ...
Mapmost SDK for WebGL Mapmost 工具(Utils)版本:9.2.0 工具(Utils) 二维数据的量测方法集合。 用法 let Utils = mapmost.Utils;方法 area(data) 计算一连串坐标构成闭合面数据的面积,输入数据为经纬度坐标和地方2000坐标的三维数组,返回值单位为平方米。
Utils 二维数据的量测方法集合。 用法 letUtils=mapmost.Utils; 方法 area(data) 计算一连串坐标构成闭合面数据的面积,输入数据为经纬度坐标和地方2000坐标的三维数组,返回值单位为平方米。 Utils.area([[[120,31],[122,31],[122,30],[120,30],[120,31],[122,31]]])...