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
c9cae469
authored
2020-08-17 15:39:20 +0800
by
jikai
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
11111111
1 parent
fe6457a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
src/components/arcgisMap.vue
src/components/arcgisMap.vue
0 → 100644
View file @
c9cae46
<
template
>
<div>
<div
id=
"arcgisMap"
></div>
</div>
</
template
>
<
script
>
import
{
loadModules
}
from
"esri-loader"
;
export
default
{
data
()
{
return
{}
},
mounted
()
{
loadModules
([
"esri/Map"
,
"esri/views/MapView"
,
"esri/layers/WebTileLayer"
,
"esri/geometry/Extent"
,
"dojo/domReady!"
]).
then
(([
Map
,
MapView
,
WebTileLayer
,
Extent
])
=>
{
this
.
$parent
.
mapView
=
new
MapView
({
container
:
"arcgisMap"
,
map
:
new
Map
({
basemap
:
{
baseLayers
:
[
new
WebTileLayer
({
urlTemplate
:
"http://mt{subDomain}.google.cn/vt/lyrs=s&hl=zh-CN&gl=CN&x={col}&y={row}&z={level}&s=Gali"
,
subDomains
:
[
"0"
,
"1"
,
"2"
]
}),
new
WebTileLayer
({
urlTemplate
:
"http://mt{subDomain}.google.cn/vt/imgtp=png32&lyrs=h@207000000&hl=zh-CN&gl=cn&x={col}&y={row}&z={level}&s=Galil"
,
subDomains
:
[
"0"
,
"1"
,
"2"
]
})
]
}
}),
extent
:
new
Extent
({
xmin
:
413417
,
ymin
:
3715140
,
xmax
:
665512
,
ymax
:
3902165
,
spatialReference
:
4545
}),
zoom
:
5
});
});
},
methods
:
{
}
}
</
script
>
<
style
>
#arcgisMap
{
width
:
100%
;
height
:
100%
;
}
</
style
>
\ No newline at end of file
Please
register
or
sign in
to post a comment