更新地图样式;调整时间轴,新增前进/后退一天按钮;新增爆管分析页面
This commit is contained in:
@@ -21,6 +21,7 @@ import VectorTileSource from "ol/source/VectorTile";
|
||||
import TileState from "ol/TileState";
|
||||
import { toLonLat } from "ol/proj";
|
||||
import { booleanIntersects, buffer, point, toWgs84 } from "@turf/turf";
|
||||
// import { handleMapClickSelectFeatures as mapClickSelectFeatures } from "@/utils/mapQueryService";
|
||||
import RenderFeature from "ol/render/Feature";
|
||||
|
||||
import { config } from "@/config/config";
|
||||
@@ -329,7 +330,13 @@ const Toolbar: React.FC<ToolbarProps> = ({ hiddenButtons }) => {
|
||||
},
|
||||
[map, highlightLayer, setHighlightFeature]
|
||||
);
|
||||
|
||||
// const handleMapClickSelectFeatures = useCallback(
|
||||
// (event: { coordinate: number[] }) => {
|
||||
// if (!map) return;
|
||||
// mapClickSelectFeatures(event, map, setHighlightFeature); // 调用导入的函数
|
||||
// },
|
||||
// [map, setHighlightFeature]
|
||||
// );
|
||||
// 添加矢量属性查询事件监听器
|
||||
useEffect(() => {
|
||||
if (!activeTools.includes("info") || !map) return;
|
||||
|
||||
Reference in New Issue
Block a user