src/components/helpers/LocateHelper.js
@@ -51,6 +51,11 @@ } export const highlight = function (feature, icon) { if (Array.isArray(feature)) { for (let i = 0; i < feature.length; i++) { highlight(feature[i], icon) } } else { const L = window.L const type = feature.geometry.type window.mapManager.clearHighlight() @@ -83,6 +88,7 @@ L.polyline(reversePolyLine(feature), { color: 'red' }).addTo(highlightLayer) } } } /** * 弹出属性列表展示窗口