egovamap 0.29.2 → 0.29.4
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/egovamap/egovaBI.js +8 -2
- package/egovamap/egovagisviewer.js +4 -0
- package/egovamap/egovamap.js +10 -0
- package/package.json +1 -1
package/egovamap/egovaBI.js
CHANGED
|
@@ -155,10 +155,16 @@ var egovaBI = function (globeMap, gisMap, mapType) {
|
|
|
155
155
|
}
|
|
156
156
|
//textValue
|
|
157
157
|
if (options.textStyle.enableText) {
|
|
158
|
+
let labelMinZoom = options.common.beginLevel;
|
|
159
|
+
let labelMaxZoom = options.common.endLevel;
|
|
160
|
+
if(options.textStyle.labelZoomEnabled) {
|
|
161
|
+
labelMinZoom = options.textStyle.textBeginLevel;
|
|
162
|
+
labelMaxZoom = options.textStyle.textEndLevel;
|
|
163
|
+
}
|
|
158
164
|
p.labelStyle = {
|
|
159
165
|
type: "text",
|
|
160
|
-
minZoom:
|
|
161
|
-
maxZoom:
|
|
166
|
+
minZoom: labelMinZoom,
|
|
167
|
+
maxZoom: labelMaxZoom,
|
|
162
168
|
xoffset: options.textStyle.xoffset + "px",
|
|
163
169
|
yoffset: options.textStyle.yoffset + "px",
|
|
164
170
|
text: p.textValue,
|
package/egovamap/egovamap.js
CHANGED
|
@@ -5212,6 +5212,16 @@ var EGovaMap = function (
|
|
|
5212
5212
|
}
|
|
5213
5213
|
}
|
|
5214
5214
|
|
|
5215
|
+
// 坐标转换
|
|
5216
|
+
that.coordConvert = function (type, x, y, callback) {
|
|
5217
|
+
if (scene == null) {
|
|
5218
|
+
return;
|
|
5219
|
+
}
|
|
5220
|
+
if (gisMap != null) {
|
|
5221
|
+
gisMap.coordConvert(type, x, y, callback);
|
|
5222
|
+
}
|
|
5223
|
+
}
|
|
5224
|
+
|
|
5215
5225
|
that.initMap(containerID, callback, mapType, mapConfig);
|
|
5216
5226
|
|
|
5217
5227
|
// EGovaBI(globeMap).bind(this)();
|