cd-mapgis 1.0.35 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/OM.js +16 -0
package/package.json
CHANGED
package/src/OM.js
CHANGED
|
@@ -96,6 +96,22 @@ export default class OM {
|
|
|
96
96
|
static checkPushLayers(p) {
|
|
97
97
|
return OM.post("/map/checkPushLayers", p);
|
|
98
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* 单点查询图斑属性
|
|
101
|
+
* @param {*} p {tableName:[],lng,lat}
|
|
102
|
+
* @returns
|
|
103
|
+
*/
|
|
104
|
+
static getLayerAttr(p) {
|
|
105
|
+
return OM.post("/map/getLayerAttr", p);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 通过经纬度获取地址
|
|
109
|
+
* @param {*} p {lng,lat}
|
|
110
|
+
* @returns
|
|
111
|
+
*/
|
|
112
|
+
static getAddressByPoint(p) {
|
|
113
|
+
return OM.post("/map/getAddressByPoint", p);
|
|
114
|
+
}
|
|
99
115
|
/**
|
|
100
116
|
* 向地图视图添加图层
|
|
101
117
|
* @param {*} p {mapViews(单个对象或者数组),geoLayers(geoServer固定图层),server(url,data,sort,layerCall)}
|