更新环境变量;新增favicon
This commit is contained in:
@@ -529,7 +529,7 @@ const StyleEditorPanel: React.FC<StyleEditorPanelProps> = ({
|
||||
const resetStyle = useCallback(() => {
|
||||
if (!selectedRenderLayer) return;
|
||||
// 重置 WebGL 图层样式
|
||||
const defaultFlatStyle: FlatStyleLike = config.mapDefaultStyle;
|
||||
const defaultFlatStyle: FlatStyleLike = config.MAP_DEFAULT_STYLE;
|
||||
selectedRenderLayer.setStyle(defaultFlatStyle);
|
||||
|
||||
// 删除对应图层的样式状态,从而移除图例显示
|
||||
|
||||
@@ -28,7 +28,7 @@ import { FiSkipBack, FiSkipForward } from "react-icons/fi";
|
||||
import { useData } from "../MapComponent";
|
||||
import { config, NETWORK_NAME } from "@/config/config";
|
||||
import { useMap } from "../MapComponent";
|
||||
const backendUrl = config.backendUrl;
|
||||
const backendUrl = config.BACKEND_URL;
|
||||
|
||||
interface TimelineProps {
|
||||
schemeDate?: Date;
|
||||
|
||||
@@ -18,7 +18,7 @@ import StyleLegend from "./StyleLegend"; // 引入图例组件
|
||||
import { handleMapClickSelectFeatures as mapClickSelectFeatures } from "@/utils/mapQueryService";
|
||||
|
||||
import { config } from "@/config/config";
|
||||
const backendUrl = config.backendUrl;
|
||||
const backendUrl = config.BACKEND_URL;
|
||||
|
||||
// 图层样式状态接口
|
||||
interface StyleConfig {
|
||||
|
||||
@@ -26,7 +26,7 @@ const Zoom: React.FC = () => {
|
||||
const handleFitScreen = () => {
|
||||
if (!map) return;
|
||||
const view = map.getView();
|
||||
view.fit(config.mapExtent, { duration: 500 });
|
||||
view.fit(config.MAP_EXTENT, { duration: 500 });
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user