From ee29cf3cb78586a41ada809f90f6483404cc3aa4 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Fri, 21 May 2021 17:25:06 +0800
Subject: [PATCH] 地图模式问题修复,海康视频问题修复
---
public/map/index.html | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/public/map/index.html b/public/map/index.html
index 2d2dd89..8228655 100644
--- a/public/map/index.html
+++ b/public/map/index.html
@@ -51,9 +51,11 @@
_framework.onSiderContainerShow();
_framework.resize();
_AppEvent = AppEvent;
- //获取设备id
- window.clientID = locationObj.clientID;
+ if (locationObj != null){
+ //获取设备id
+ window.clientID = locationObj.clientID;
+ }
_AppEvent.addAppEventListener("mapLoad", function(map){
if (locationObj && locationObj != null) {
map.centerAndZoom(new esri.geometry.Point(locationObj.x,locationObj.y, new esri.SpatialReference({ wkid: 4326 })), 16);
--
Gitblit v1.9.3