Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supervise-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
牛晓林
supervise-front
Commits
184e2f8a
Commit
184e2f8a
authored
Aug 09, 2019
by
niuxiaolin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
latest ui 08/09/2019 15:11:52
parent
384dbcf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
main.component.ts
src/app/main/main.component.ts
+5
-17
No files found.
src/app/main/main.component.ts
View file @
184e2f8a
...
@@ -47,19 +47,7 @@ export class MainComponent implements OnInit {
...
@@ -47,19 +47,7 @@ export class MainComponent implements OnInit {
markers
:
any
;
markers
:
any
;
map
:
any
;
map
:
any
;
constructor
(
private
m
:
SelfMapService
,
private
router
:
Router
,
private
idService
:
IdService
,
private
route
:
ActivatedRoute
,
private
cd
:
ChangeDetectorRef
,
private
http
:
HttpClient
,
private
dynamicScriptLoader
:
DynamicScriptLoaderService
,
private
modalService
:
ModalService
,
private
s
:
DefaultService
)
{
constructor
(
private
m
:
SelfMapService
,
private
router
:
Router
,
private
idService
:
IdService
,
private
route
:
ActivatedRoute
,
private
cd
:
ChangeDetectorRef
,
private
http
:
HttpClient
,
private
dynamicScriptLoader
:
DynamicScriptLoaderService
,
private
modalService
:
ModalService
,
private
s
:
DefaultService
)
{
//定位山西省地图
this
.
opts
=
{
centerAndZoom
:
{
lat
:
37.78663390039693
,
lng
:
112.43176242674386
,
zoom
:
10
,
},
mapType
:
MapTypeEnum
.
BMAP_HYBRID_MAP
}
// this.opts = {
// currentCity:"山西省",
// mapType:MapTypeEnum.BMAP_HYBRID_MAP
// }
this
.
polylineOptions
=
{
this
.
polylineOptions
=
{
strokeColor
:
'yellow'
,
strokeColor
:
'yellow'
,
strokeWeight
:
10
strokeWeight
:
10
...
@@ -178,16 +166,16 @@ export class MainComponent implements OnInit {
...
@@ -178,16 +166,16 @@ export class MainComponent implements OnInit {
this
.
http
.
get
<
any
>
(
this
.
s
.
basePath
+
"/course/list"
).
subscribe
(
res
=>
{
this
.
http
.
get
<
any
>
(
this
.
s
.
basePath
+
"/course/list"
).
subscribe
(
res
=>
{
this
.
courses
=
res
.
data
;
this
.
courses
=
res
.
data
;
//加载全局线路
//加载全局线路
setTimeout
(()
=>
{
//
setTimeout(() => {
this
.
loadPolys
(
res
,
false
);
this
.
loadPolys
(
res
,
false
);
},
5000
);
//
}, 5000);
});
});
this
.
http
.
get
<
any
>
(
this
.
s
.
basePath
+
"/mapLable/list"
).
subscribe
(
res
=>
{
this
.
http
.
get
<
any
>
(
this
.
s
.
basePath
+
"/mapLable/list"
).
subscribe
(
res
=>
{
// this.maplabes = res.data;
// this.maplabes = res.data;
//加载labels
//加载labels
setTimeout
(()
=>
{
//
setTimeout(() => {
this
.
loadLabels
(
res
.
data
);
this
.
loadLabels
(
res
.
data
);
},
5000
);
//
}, 5000);
});
});
this
.
http
.
get
<
any
>
(
this
.
s
.
basePath
+
"/scetion/list"
).
subscribe
(
res
=>
{
this
.
http
.
get
<
any
>
(
this
.
s
.
basePath
+
"/scetion/list"
).
subscribe
(
res
=>
{
this
.
allsecs
=
res
.
data
;
this
.
allsecs
=
res
.
data
;
...
...
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