raintee-maputils 1.0.40 → 1.0.42
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.js +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -5728,7 +5728,6 @@ const RT_FitBoundsMapboxNative = (map, featureCollection) => {
|
|
|
5728
5728
|
[minLng, minLat], // 左下角
|
|
5729
5729
|
[maxLng, maxLat] // 右上角
|
|
5730
5730
|
];
|
|
5731
|
-
console.log(`output->bounds`, bounds);
|
|
5732
5731
|
bounds.forEach(item => {
|
|
5733
5732
|
item.forEach((i, index) => {
|
|
5734
5733
|
item[index] = Number((i).toFixed(6));
|
|
@@ -6156,9 +6155,9 @@ function createElementById(id, callback, options = {}) {
|
|
|
6156
6155
|
height: config.height + 'px',
|
|
6157
6156
|
position: 'absolute',
|
|
6158
6157
|
zIndex: config.zIndex.toString(),
|
|
6159
|
-
left:
|
|
6160
|
-
top:
|
|
6161
|
-
transform: 'translate(-
|
|
6158
|
+
left: 0,
|
|
6159
|
+
top: 0,
|
|
6160
|
+
transform: 'translate(-100%, -100%)',
|
|
6162
6161
|
...config.styles
|
|
6163
6162
|
};
|
|
6164
6163
|
|
|
@@ -6502,7 +6501,7 @@ class RulerControl {
|
|
|
6502
6501
|
this.removeDragEvents = null;
|
|
6503
6502
|
if (!this.options.invisible) {
|
|
6504
6503
|
this.button = controlButton({
|
|
6505
|
-
title: 'Ruler',
|
|
6504
|
+
title: options.title || 'Ruler',
|
|
6506
6505
|
icon: icons.ruler(),
|
|
6507
6506
|
onClick: () => this.onControlButtonClick(),
|
|
6508
6507
|
});
|