@octostar/map-component 0.1.14 → 0.1.16
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 +11 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -279,10 +279,6 @@ function DrawingToolbar({
|
|
|
279
279
|
}
|
|
280
280
|
setGoToDialogOpen(false);
|
|
281
281
|
setGoToAddress("");
|
|
282
|
-
toast({
|
|
283
|
-
title: "Location found",
|
|
284
|
-
description: shortName
|
|
285
|
-
});
|
|
286
282
|
} catch (error) {
|
|
287
283
|
toast({
|
|
288
284
|
title: "Search error",
|
|
@@ -5879,6 +5875,8 @@ const MapEditorCanvas = react.forwardRef(function MapEditorCanvas2({
|
|
|
5879
5875
|
tooltipShowTimeout = null;
|
|
5880
5876
|
}
|
|
5881
5877
|
tooltipEl2.style.display = "none";
|
|
5878
|
+
tooltipEl2.style.minWidth = "";
|
|
5879
|
+
tooltipEl2.style.minHeight = "";
|
|
5882
5880
|
tooltipLngLat = null;
|
|
5883
5881
|
tooltipFeatures = [];
|
|
5884
5882
|
tooltipPageIndex = 0;
|
|
@@ -5891,7 +5889,7 @@ const MapEditorCanvas = react.forwardRef(function MapEditorCanvas2({
|
|
|
5891
5889
|
if (!isMouseOverPopup) {
|
|
5892
5890
|
hideTooltip2();
|
|
5893
5891
|
}
|
|
5894
|
-
},
|
|
5892
|
+
}, 500);
|
|
5895
5893
|
};
|
|
5896
5894
|
const cancelTooltipHide = () => {
|
|
5897
5895
|
if (tooltipHideTimeout) {
|
|
@@ -5973,6 +5971,10 @@ const MapEditorCanvas = react.forwardRef(function MapEditorCanvas2({
|
|
|
5973
5971
|
const navHtml = `<div style="display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee;padding:4px 0 6px;margin-bottom:4px;font-size:12px;color:#666;user-select:none"><button data-tooltip-nav="prev" style="${btnBase}border:1px solid ${prevDisabled ? "#eee" : "#ddd"};cursor:${prevDisabled ? "default" : "pointer"};color:${prevDisabled ? "#ccc" : "#444"}"${prevDisabled ? " disabled" : ""}>‹</button><span>${tooltipPageIndex + 1} / ${tooltipFeatures.length}</span><button data-tooltip-nav="next" style="${btnBase}border:1px solid ${nextDisabled ? "#eee" : "#ddd"};cursor:${nextDisabled ? "default" : "pointer"};color:${nextDisabled ? "#ccc" : "#444"}"${nextDisabled ? " disabled" : ""}>›</button></div>`;
|
|
5974
5972
|
html = navHtml + html;
|
|
5975
5973
|
}
|
|
5974
|
+
if (tooltipPageIndex > 0 && tooltipFeatures.length > 1) {
|
|
5975
|
+
tooltipEl2.style.minWidth = tooltipEl2.offsetWidth + "px";
|
|
5976
|
+
tooltipEl2.style.minHeight = tooltipEl2.offsetHeight + "px";
|
|
5977
|
+
}
|
|
5976
5978
|
showTooltip2(tooltipLngLatForPagination, html);
|
|
5977
5979
|
};
|
|
5978
5980
|
customLayers.forEach((layerId) => {
|
|
@@ -5986,10 +5988,10 @@ const MapEditorCanvas = react.forwardRef(function MapEditorCanvas2({
|
|
|
5986
5988
|
clearTimeout(tooltipHideTimeout);
|
|
5987
5989
|
tooltipHideTimeout = null;
|
|
5988
5990
|
}
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5991
|
+
tooltipEl2.style.display = "none";
|
|
5992
|
+
tooltipEl2.style.minWidth = "";
|
|
5993
|
+
tooltipEl2.style.minHeight = "";
|
|
5994
|
+
tooltipLngLat = null;
|
|
5993
5995
|
if (e.features && e.features.length > 0) {
|
|
5994
5996
|
const coordinates = e.lngLat;
|
|
5995
5997
|
tooltipShowTimeout = setTimeout(() => {
|