map-ol-utils 0.0.46 → 0.0.48
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/dist/index.cjs +9 -3
- package/dist/index.js +9 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -145,7 +145,11 @@ var createAnimationMarker = (imgUrl, data) => {
|
|
|
145
145
|
element,
|
|
146
146
|
stopEvent: false,
|
|
147
147
|
positioning: "bottom-center",
|
|
148
|
-
position: import_gcoord.default.transform(
|
|
148
|
+
position: import_gcoord.default.transform(
|
|
149
|
+
[+lnglat[0], +lnglat[1]],
|
|
150
|
+
crsForm || import_gcoord.default.WGS84,
|
|
151
|
+
import_gcoord.default.WGS84
|
|
152
|
+
)
|
|
149
153
|
});
|
|
150
154
|
overlay.set("_isAnimationMarker", true);
|
|
151
155
|
instance.addOverlay(overlay);
|
|
@@ -386,6 +390,7 @@ var buildMassMarksStyles = (getImgUrlFn) => {
|
|
|
386
390
|
var createSelectByLayer = (vectorLayer) => {
|
|
387
391
|
const interaction = new import_interaction.Select({
|
|
388
392
|
style: null,
|
|
393
|
+
hitTolerance: 10,
|
|
389
394
|
layers: [vectorLayer],
|
|
390
395
|
condition: (evt) => {
|
|
391
396
|
let hasFeature = false;
|
|
@@ -489,14 +494,15 @@ var addMassMarksLayer = (getImgUrlFn) => {
|
|
|
489
494
|
statusNum,
|
|
490
495
|
markerIcon,
|
|
491
496
|
markerSize,
|
|
497
|
+
activeScale,
|
|
492
498
|
vectorConfig
|
|
493
499
|
} = iconConfig;
|
|
494
500
|
const massMarksStyles = buildMassMarksStyles(getImgUrlFn)({
|
|
495
501
|
baseUrl,
|
|
496
502
|
markerIcon,
|
|
497
503
|
markerSize,
|
|
498
|
-
|
|
499
|
-
|
|
504
|
+
statusNum: statusNum || 5,
|
|
505
|
+
activeScale: activeScale || 1.3
|
|
500
506
|
});
|
|
501
507
|
const massMarksLayer = createMassMarksLayer(dataList, massMarksStyles);
|
|
502
508
|
if (openClick) {
|
package/dist/index.js
CHANGED
|
@@ -87,7 +87,11 @@ var createAnimationMarker = (imgUrl, data) => {
|
|
|
87
87
|
element,
|
|
88
88
|
stopEvent: false,
|
|
89
89
|
positioning: "bottom-center",
|
|
90
|
-
position: gcoord.transform(
|
|
90
|
+
position: gcoord.transform(
|
|
91
|
+
[+lnglat[0], +lnglat[1]],
|
|
92
|
+
crsForm || gcoord.WGS84,
|
|
93
|
+
gcoord.WGS84
|
|
94
|
+
)
|
|
91
95
|
});
|
|
92
96
|
overlay.set("_isAnimationMarker", true);
|
|
93
97
|
instance.addOverlay(overlay);
|
|
@@ -328,6 +332,7 @@ var buildMassMarksStyles = (getImgUrlFn) => {
|
|
|
328
332
|
var createSelectByLayer = (vectorLayer) => {
|
|
329
333
|
const interaction = new Select({
|
|
330
334
|
style: null,
|
|
335
|
+
hitTolerance: 10,
|
|
331
336
|
layers: [vectorLayer],
|
|
332
337
|
condition: (evt) => {
|
|
333
338
|
let hasFeature = false;
|
|
@@ -431,14 +436,15 @@ var addMassMarksLayer = (getImgUrlFn) => {
|
|
|
431
436
|
statusNum,
|
|
432
437
|
markerIcon,
|
|
433
438
|
markerSize,
|
|
439
|
+
activeScale,
|
|
434
440
|
vectorConfig
|
|
435
441
|
} = iconConfig;
|
|
436
442
|
const massMarksStyles = buildMassMarksStyles(getImgUrlFn)({
|
|
437
443
|
baseUrl,
|
|
438
444
|
markerIcon,
|
|
439
445
|
markerSize,
|
|
440
|
-
|
|
441
|
-
|
|
446
|
+
statusNum: statusNum || 5,
|
|
447
|
+
activeScale: activeScale || 1.3
|
|
442
448
|
});
|
|
443
449
|
const massMarksLayer = createMassMarksLayer(dataList, massMarksStyles);
|
|
444
450
|
if (openClick) {
|