raintee-maputils 1.0.39 → 1.0.41
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 +6 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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));
|
|
@@ -5746,7 +5745,7 @@ const RT_FitBoundsMapboxNative = (map, featureCollection) => {
|
|
|
5746
5745
|
}
|
|
5747
5746
|
};
|
|
5748
5747
|
|
|
5749
|
-
var RainteeGISUtil
|
|
5748
|
+
var RainteeGISUtil = /*#__PURE__*/Object.freeze({
|
|
5750
5749
|
__proto__: null,
|
|
5751
5750
|
RT_FitBoundsMapbox: RT_FitBoundsMapbox,
|
|
5752
5751
|
RT_FitBoundsMapboxNative: RT_FitBoundsMapboxNative,
|
|
@@ -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
|
|
|
@@ -6232,7 +6231,7 @@ const CSnapt = async (fts, lys, style) => {
|
|
|
6232
6231
|
});
|
|
6233
6232
|
map.on('load', () => {
|
|
6234
6233
|
map.getSource('userReport') && map.getSource('userReport').setData(fts);
|
|
6235
|
-
|
|
6234
|
+
RT_FitBoundsMapboxNative(map, fts);
|
|
6236
6235
|
const proccessor = (task) => {
|
|
6237
6236
|
return new Promise((resolve, reject) => {
|
|
6238
6237
|
try {
|
|
@@ -7974,5 +7973,5 @@ const useDrawCache = () => {
|
|
|
7974
7973
|
}
|
|
7975
7974
|
};
|
|
7976
7975
|
|
|
7977
|
-
export { CustomOptionsControl, CustomToggleControl, DrawCacheFeatureManager, RainteeConstants, RainteeGISUtil
|
|
7976
|
+
export { CustomOptionsControl, CustomToggleControl, DrawCacheFeatureManager, RainteeConstants, RainteeGISUtil, RainteeSourceMapTool, RasterLayerControl, RulerControl, TerrainToggleControl, useDrawCache };
|
|
7978
7977
|
//# sourceMappingURL=index.js.map
|