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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/OM.js +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cd-mapgis",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "main": "./src/index.js",
5
5
  "types": "./src/index.d.ts",
6
6
  "type": "module",
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)}