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
357ea03e
Commit
357ea03e
authored
Aug 11, 2019
by
niuxiaolin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
latest ui 08/11/2019 16:26:52
parent
7cce844b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
11 deletions
+14
-11
main.component.ts
src/app/main/main.component.ts
+4
-1
baseline-assessment.svg
src/assets/baseline-assessment.svg
+2
-2
baseline-featured_play.svg
src/assets/baseline-featured_play.svg
+2
-2
baseline-security.svg
src/assets/baseline-security.svg
+2
-2
baseline-table_chart-24px.svg
src/assets/baseline-table_chart-24px.svg
+2
-2
video.svg
src/assets/video.svg
+2
-2
No files found.
src/app/main/main.component.ts
View file @
357ea03e
...
...
@@ -46,7 +46,7 @@ export class MainComponent implements OnInit {
theme
:
any
;
markers
:
any
;
map
:
any
;
wheelEvent
:
any
=
{
clientX
:
944
,
clientY
:
588
,
currentTarget
:
document
.
getElementById
(
"baidu-map"
),
deltaX
:
0
,
deltaY
:
-
500
,
type
:
"mousewheel"
,
wheelDelta
:
300
,
wheelDeltaX
:
0
,
wheelDeltaY
:
30
0
,
which
:
0
,
x
:
944
,
y
:
488
};
wheelEvent
:
any
=
{
clientX
:
944
,
clientY
:
588
,
currentTarget
:
document
.
getElementById
(
"baidu-map"
),
deltaX
:
0
,
deltaY
:
-
600
,
type
:
"mousewheel"
,
wheelDelta
:
450
,
wheelDeltaX
:
0
,
wheelDeltaY
:
45
0
,
which
:
0
,
x
:
944
,
y
:
488
};
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
.
polylineOptions
=
{
...
...
@@ -324,6 +324,7 @@ export class MainComponent implements OnInit {
return
JSON
.
parse
(
json
).
map
(
r
=>
({
lng
:
r
[
0
],
lat
:
r
[
1
]
}));
}
highLight
(
i
:
number
,
obj
,
type
)
{
if
(
obj
.
hadZoom
)
return
;
this
.
currProj
=
Object
.
assign
({},
obj
);
var
overlays
=
this
.
map
.
getOverlays
();
var
cur
=
overlays
.
find
(
o
=>
o
.
id
==
type
+
obj
.
id
);
...
...
@@ -360,7 +361,9 @@ export class MainComponent implements OnInit {
setTimeout
(()
=>
{
(
window
as
any
).
xiaolinMouseWheel
(
this
.
wheelEvent
);
(
window
as
any
).
xiaolinMouseWheel
(
this
.
wheelEvent
);
},
500
);
obj
.
hadZoom
=
true
;
// setTimeout(() => {
// this.map.centerAndZoom(view.center,view.zoom);
// }, 4000);
...
...
src/assets/baseline-assessment.svg
View file @
357ea03e
<svg
fill=
"#16e8d6"
xmlns=
"http://www.w3.org/2000/svg"
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
><path
d=
"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"
/><path
d=
"M0 0h24v24H0z"
fill=
"none"
/></svg>
\ No newline at end of file
<svg
fill=
"#fff"
xmlns=
"http://www.w3.org/2000/svg"
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
><path
d=
"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"
/><path
d=
"M0 0h24v24H0z"
fill=
"none"
/></svg>
\ No newline at end of file
src/assets/baseline-featured_play.svg
View file @
357ea03e
<svg
fill=
"#16e8d6"
xmlns=
"http://www.w3.org/2000/svg"
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
><path
fill=
"none"
d=
"M0 0h24v24H0V0z"
/><path
d=
"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 8H3V9h9v2zm0-4H3V5h9v2z"
/></svg>
\ No newline at end of file
<svg
fill=
"#fff"
xmlns=
"http://www.w3.org/2000/svg"
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
><path
fill=
"none"
d=
"M0 0h24v24H0V0z"
/><path
d=
"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 8H3V9h9v2zm0-4H3V5h9v2z"
/></svg>
\ No newline at end of file
src/assets/baseline-security.svg
View file @
357ea03e
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"24"
fill=
"#16e8d6"
height=
"24"
viewBox=
"0 0 24 24"
><path
d=
"M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"
/><path
d=
"M0 0h24v24H0z"
fill=
"none"
/></svg>
\ No newline at end of file
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"24"
fill=
"#fff"
height=
"24"
viewBox=
"0 0 24 24"
><path
d=
"M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"
/><path
d=
"M0 0h24v24H0z"
fill=
"none"
/></svg>
\ No newline at end of file
src/assets/baseline-table_chart-24px.svg
View file @
357ea03e
<svg
fill=
"#16e8d6"
xmlns=
"http://www.w3.org/2000/svg"
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
><path
fill=
"none"
d=
"M0 0h24v24H0V0z"
/><path
d=
"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z"
/></svg>
\ No newline at end of file
<svg
fill=
"#fff"
xmlns=
"http://www.w3.org/2000/svg"
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
><path
fill=
"none"
d=
"M0 0h24v24H0V0z"
/><path
d=
"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z"
/></svg>
\ No newline at end of file
src/assets/video.svg
View file @
357ea03e
<svg
xmlns=
"http://www.w3.org/2000/svg"
fill=
"#16e8d6"
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
><path
fill=
"none"
d=
"M0 0h24v24H0V0z"
/><path
d=
"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM10 15l-3.89-3.89v2.55H5V9.22h4.44v1.11H6.89l3.11 3.1 4.22-4.22.78.79-5 5z"
/></svg>
\ No newline at end of file
<svg
xmlns=
"http://www.w3.org/2000/svg"
fill=
"#fff"
width=
"24"
height=
"24"
viewBox=
"0 0 24 24"
><path
fill=
"none"
d=
"M0 0h24v24H0V0z"
/><path
d=
"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM10 15l-3.89-3.89v2.55H5V9.22h4.44v1.11H6.89l3.11 3.1 4.22-4.22.78.79-5 5z"
/></svg>
\ No newline at end of file
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