Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
9aa4e12e
authored
2020-12-15 14:02:24 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
gis前端工具条等功能实现
1 parent
1f374220
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
src/components/map/EsriMap.vue
src/views/systemTX/map.vue
src/components/map/EsriMap.vue
View file @
9aa4e12
...
...
@@ -37,8 +37,9 @@
MapView
,
esriMap
])
=>
{
//
var
map
=
new
esriMap
();
var
map
=
new
esriMap
({
basemap
:
"osm"
});
//108.95 34.27
var
view
=
new
MapView
({
container
:
self
.
viewId
,
...
...
src/views/systemTX/map.vue
View file @
9aa4e12
...
...
@@ -98,11 +98,9 @@ export default {
var
view
=
maps
[
this
.
viewId
];
view
.
ui
.
remove
(
'zoom'
);
loadModules
([
"esri/layers/MapImageLayer"
,
"esri/geometry/Extent"
"esri/layers/MapImageLayer"
]).
then
(([
MapImageLayer
,
Extent
MapImageLayer
])
=>
{
var
mapImageLayer
=
new
MapImageLayer
({
url
:
self
.
layerUrl
,
...
...
@@ -122,13 +120,6 @@ export default {
}]
});
view
.
map
.
add
(
mapImageLayer
,
1
);
mapImageLayer
.
when
(
function
()
{
var
extent
=
new
Extent
(
JSON
.
parse
(
JSON
.
stringify
(
mapImageLayer
.
fullExtent
)))
extent
.
spatialReference
=
view
.
spatialReference
;
view
.
center
=
extent
.
center
;
view
.
zoom
=
15
;
// view.extent = mapImageLayer.fullExtent;
});
var
query
=
self
.
$route
.
query
;
if
(
query
&&
JSON
.
stringify
(
query
)
!=
"{}"
){
self
.
addGeoByBsm
(
query
.
bsm
,
query
.
type
,
self
.
viewId
);
...
...
Please
register
or
sign in
to post a comment