Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yangpu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭铭瑶
yangpu
Commits
83cbb3d5
Commit
83cbb3d5
authored
Jul 21, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
换新版地图包
parent
e6d97de5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
31 additions
and
9 deletions
+31
-9
index.html
index.html
+1
-4
monitor-map.vue
src/components/MonitorComponents/MonitorMap/monitor-map.vue
+4
-2
api.js
src/server/api.js
+8
-3
README.md
static/internet-old/README.md
+0
-0
SMap.min.js
static/internet-old/SMap.min.js
+0
-0
SMap.min.js.map
static/internet-old/SMap.min.js.map
+0
-0
README.md
static/shanghaiwuye_gis_map_api_3.2.210421/README.md
+7
-0
SMap.min.js
static/shanghaiwuye_gis_map_api_3.2.210421/SMap.min.js
+2
-0
SMap.min.js.map
static/shanghaiwuye_gis_map_api_3.2.210421/SMap.min.js.map
+1
-0
网络参数说明.txt
static/shanghaiwuye_gis_map_api_3.2.210421/网络参数说明.txt
+8
-0
README.md
static/zhengwu-esm/README.md
+0
-0
SMap.min.js
static/zhengwu-esm/SMap.min.js
+0
-0
SMap.min.js.map
static/zhengwu-esm/SMap.min.js.map
+0
-0
No files found.
index.html
View file @
83cbb3d5
...
@@ -18,10 +18,7 @@
...
@@ -18,10 +18,7 @@
<!-- built files will be auto injected -->
<!-- built files will be auto injected -->
</body>
</body>
<script
src=
"./static/hls.js"
></script>
<script
src=
"./static/hls.js"
></script>
<!-- 下面是开发用 -->
<script
src=
"./static/shanghaiwuye_gis_map_api_3.2.210421/SMap.min.js"
></script>
<script
src=
"./static/SMap.min.js"
></script>
<!-- 下面是生产用 -->
<!-- <script src="./static/esm/SMap.min.js"></script> -->
<script
src=
"./static/Plugins.min.js"
></script>
<script
src=
"./static/Plugins.min.js"
></script>
<script
src=
"./static/GeoTask.min.js"
></script>
<script
src=
"./static/GeoTask.min.js"
></script>
...
...
src/components/MonitorComponents/MonitorMap/monitor-map.vue
View file @
83cbb3d5
...
@@ -22,16 +22,18 @@ export default {
...
@@ -22,16 +22,18 @@ export default {
},
},
methods
:
{
methods
:
{
initMap
()
{
initMap
()
{
new
SMap
.
Network
().
setNet
(
this
.
$api
.
MAP_NET
)
this
.
map
=
new
SMap
.
Map
(
'mapContainer'
,
{
this
.
map
=
new
SMap
.
Map
(
'mapContainer'
,
{
viewMode
:
'2D'
,
viewMode
:
'2D'
,
// center: [0, 0],
// center: [0, 0],
// zoom: 4,
// zoom: 4,
// zooms: [1, 12],
// zooms: [1, 12],
mapStyle
:
'smap://styles/dark'
,
mapStyle
:
'smap://styles/dark'
,
appKey
:
'ACF69EDK17LON63GHPF081'
,
}).
on
(
SMap
.
MapEvent
.
maploaded
,
()
=>
{
}).
on
(
SMap
.
MapEvent
.
maploaded
,
()
=>
{
// this.map.hideXQ_Poly()
// this.map.hideXQ_Poly()
this
.
map
.
hideXQ_Point
()
//
this.map.hideXQ_Point()
this
.
map
.
hideMPZ
()
//
this.map.hideMPZ()
// this.addGridListener()
// this.addGridListener()
this
.
identifytask
=
new
GeoTask
.
Identify
(
this
.
map
.
view
)
this
.
identifytask
=
new
GeoTask
.
Identify
(
this
.
map
.
view
)
this
.
addListener
()
this
.
addListener
()
...
...
src/server/api.js
View file @
83cbb3d5
let
MAP_NET
=
''
let
BASE_URL
=
''
let
BASE_URL
=
''
const
DATA_URL
=
'http://10.89.1.208:10005'
const
DATA_URL
=
'http://10.89.1.208:10005'
const
VIDEO_URL
=
'http://10.89.4.179:27343'
const
VIDEO_URL
=
'http://10.89.4.179:27343'
switch
(
process
.
env
.
NODE_ENV
)
{
switch
(
process
.
env
.
NODE_ENV
)
{
case
'production'
:
case
'production'
:
// BASE_URL = 'http://10.89.4.164:18080/api'
MAP_NET
=
'affairs'
// 政务网地图
BASE_URL
=
'http://yangpu.hm.omniview.pro/api'
BASE_URL
=
'http://10.89.4.164:18080/api'
// BASE_URL = 'http://yangpu.hm.omniview.pro/api' // 废弃
break
break
default
:
default
:
BASE_URL
=
'http://yangpu.hm.omniview.pro/api'
MAP_NET
=
'internet'
// 互联网地图
BASE_URL
=
'http://yangpu-hm.omniview.pro/api/v2'
// BASE_URL = 'http://yangpu.hm.omniview.pro/api' // 废弃
}
}
export
default
{
export
default
{
MAP_NET
,
BASE_URL
,
BASE_URL
,
DATA_URL
,
DATA_URL
,
GET_DISCOVER_TREND
:
'/service-special-ddd/public/alarm/unremoved/statistics'
,
// 智能发现趋势图
GET_DISCOVER_TREND
:
'/service-special-ddd/public/alarm/unremoved/statistics'
,
// 智能发现趋势图
...
...
static/README.md
→
static/
internet-old/
README.md
View file @
83cbb3d5
File moved
static/SMap.min.js
→
static/
internet-old/
SMap.min.js
View file @
83cbb3d5
File moved
static/SMap.min.js.map
→
static/
internet-old/
SMap.min.js.map
View file @
83cbb3d5
File moved
static/
README-new
.md
→
static/
shanghaiwuye_gis_map_api_3.2.210421/README
.md
View file @
83cbb3d5
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
-
[
示例
](
#示例
)
-
[
示例
](
#示例
)
-
[
地图
](
#地图
)
-
[
地图
](
#地图
)
-
[
生命周期
](
#生命周期
)
-
[
生命周期
](
#生命周期
)
-
[
设置网络模式
](
#设置网络模式
)
-
[
创建二维地图
](
#创建二维地图
)
-
[
创建二维地图
](
#创建二维地图
)
-
[
创建三维地图
](
#创建三维地图
)
-
[
创建三维地图
](
#创建三维地图
)
-
[
地图样式
](
#地图样式
)
-
[
地图样式
](
#地图样式
)
...
@@ -165,6 +166,11 @@ import SMap from 'smap-xh'
...
@@ -165,6 +166,11 @@ import SMap from 'smap-xh'
## 示例
## 示例
### [地图]
### [地图]
#### [生命周期]
#### [生命周期]
##### [设置网络模式]
```
js
import
SMap
from
'smap-xh'
new
SMap
.
Network
().
setNet
(
网络参数
);
```
##### [创建二维地图]
##### [创建二维地图]
```
js
```
js
import
SMap
from
'smap-xh'
import
SMap
from
'smap-xh'
...
@@ -220,6 +226,7 @@ const map = new SMap.Map('container', {
...
@@ -220,6 +226,7 @@ const map = new SMap.Map('container', {
```
js
```
js
//"wg_gis_xq_point"为小区点,
//"wg_gis_xq_point"为小区点,
//"wg_gis_xq_poly"为小区面,
//"wg_gis_xq_poly"为小区面,
//"wg_gis_zb_jkd"为小区健康度
//"wg_gis_mpz"为门牌幢点,
//"wg_gis_mpz"为门牌幢点,
//"wg_gis_elevator"为电梯点,
//"wg_gis_elevator"为电梯点,
//"wg_gis_sensor"为传感器
//"wg_gis_sensor"为传感器
...
...
static/shanghaiwuye_gis_map_api_3.2.210421/SMap.min.js
0 → 100644
View file @
83cbb3d5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
static/shanghaiwuye_gis_map_api_3.2.210421/SMap.min.js.map
0 → 100644
View file @
83cbb3d5
This diff is collapsed.
Click to expand it.
static/shanghaiwuye_gis_map_api_3.2.210421/网络参数说明.txt
0 → 100644
View file @
83cbb3d5
new SMap.Network().setNet(网络参数);
网络参数包括以下几个值:
'internet':表示互联网2D;
'affairs':表示政务网2D;
'local3D':表示局域网3D;
'affairs3D':表示政务网3D;
'njdl':表示南京东路政务网3D;
\ No newline at end of file
static/esm/README.md
→
static/
zhengwu-
esm/README.md
View file @
83cbb3d5
File moved
static/esm/SMap.min.js
→
static/
zhengwu-
esm/SMap.min.js
View file @
83cbb3d5
File moved
static/esm/SMap.min.js.map
→
static/
zhengwu-
esm/SMap.min.js.map
View file @
83cbb3d5
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment