Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
刘远
/
3d_dc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
60e01dde
authored
2020-09-11 09:25:53 +0800
by
刘远
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
jikai commit
1 parent
a501ecb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
src/views/Home.vue
src/views/Home.vue
View file @
60e01dd
...
...
@@ -209,6 +209,7 @@
is2D
(
flag
)
{
this
.
map
=
flag
?
''
:
'threeMap'
;
this
.
isFullscreenLoading
=
true
;
// this.leftPanel = flag ? 'taskList' : 'leftAssert';
loadModules
([
"esri/Map"
,
"esri/Basemap"
,
...
...
@@ -220,7 +221,7 @@
"esri/geometry/Extent"
,
"dojo/domReady!"
]).
then
(([
Map
,
Basemap
,
MapView
,
TileLayer
,
WebTileLayer
,
MapImageLayer
,
SpatialReference
,
Extent
])
=>
{
if
(
!
this
.
mapView
)
{
if
(
!
mapManage
.
mapView
)
{
mapManage
.
mapView
=
new
MapView
({
map
:
new
Map
({
basemap
:
new
Basemap
({
...
...
@@ -237,37 +238,41 @@
})
}),
container
:
"arcgisMap"
,
center
:
[
117.73289858455101
,
36.255126757404966
],
zoom
:
9
,
extent
:
new
Extent
({
xmin
:
1.1332182150213555E7
,
ymin
:
4379415.470661429
,
xmax
:
1.1339935515720293E7
,
ymax
:
4383168.328167147
,
spatialReference
:
3857
})
// center: [117.73289858455101, 36.255126757404966],
// zoom: 9,
});
mapManage
.
mapView
.
when
(()
=>
{
this
.
isFullscreenLoading
=
false
;
// this.leftPanel = flag ? 'taskList' : 'leftAssert';
this
.
leftPanel
=
'taskList'
;
// object
Manage.mapView.map.add(new MapImageLayer({
//
url: "https://192.168.3.194:6443/arcgis/rest/services/xzsj/ygyx/MapServer"
//
}));
map
Manage
.
mapView
.
map
.
add
(
new
MapImageLayer
({
url
:
"https://192.168.3.194:6443/arcgis/rest/services/xzsj/ygyx/MapServer"
}));
this
.
mapInit
();
},
function
(
error
){
console
.
log
(
"The view's resources failed to load: "
,
error
);
});
return
;
}
console
.
log
(
'三维......'
);
this
.
isFullscreenLoading
=
false
;
objectManage
.
mapView
&&
(
this
.
leftPanel
=
flag
?
'taskList'
:
'leftAssert'
);
objectManage
.
mapView
.
destroy
();
objectManage
.
mapView
=
undefined
;
this
.
leftPanel
=
'leftAssert'
;
// objectManage.mapView && (this.leftPanel = flag ? 'taskList' : 'leftAssert');
mapManage
.
mapView
.
destroy
();
mapManage
.
mapView
=
undefined
;
});
},
mapInit
()
{
GraphicAttributeManager
.
getInstance
();
DrawTool
.
getInstance
();
mapManage
.
drawTool
.
activate
(
'point1'
,
function
()
{
});
},
isCamera
(
flag
)
{
// this.commons.log(flag)
},
isLayer
(
flag
)
{
...
...
Please
register
or
sign in
to post a comment