Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Geoportal Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
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
GeoPortal
Geoportal Frontend
Commits
0beee5ad
Commit
0beee5ad
authored
Aug 06, 2019
by
Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
work on the styling for the bli filter icons
parent
9aef7737
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
FilterBLIDimensonsControl.ts
src/app/alexander/FilterBLIDimensonsControl.ts
+16
-16
No files found.
src/app/alexander/FilterBLIDimensonsControl.ts
View file @
0beee5ad
...
...
@@ -16,17 +16,21 @@ export class FilterBLIDimensionsControl extends Control{
constructor
(
opt_options
){
super
({});
let
button
=
document
.
createElement
(
'button'
);
button
.
type
=
'button'
;
button
.
className
=
'ol-control'
;
button
.
innerHTML
=
'NXXXX'
;
let
rowContainer
=
document
.
createElement
(
'div'
);
rowContainer
.
className
=
'row justify-content-center'
;
rowContainer
.
setAttribute
(
'style'
,
'position:absolute; bottom:80px; width:100%;'
);
let
element
=
document
.
createElement
(
'div'
);
//element.className='ol-feature ol-control';
element
.
className
=
'ol-control'
;
//element.className='col-md-10 row justify-content-center';
element
.
classList
.
add
(
'col-md-10'
);
element
.
classList
.
add
(
'row'
);
element
.
classList
.
add
(
'justify-content-center'
);
//we do not set the control class because it gives a background color
//which is unwanted
//element.className='ol-control';
element
.
setAttribute
(
"style"
,
"position: absolute; bottom:80px; left:20px;"
);
element
.
appendChild
(
button
);
//element.setAttribute("style","position: absolute; bottom:80px; left:20px;");
const
arr
:
string
[]
=
[
'community'
,
'education'
,
'engagement'
,
'governance'
,
...
...
@@ -49,26 +53,22 @@ export class FilterBLIDimensionsControl extends Control{
}
}
rowContainer
.
appendChild
(
element
);
Control
.
call
(
this
,{
element
:
element
,
element
:
rowContainer
,
target
:
opt_options
.
target
});
button
.
addEventListener
(
'click'
,()
=>
this
.
click
());
}
make_bli_icon
(
file
:
string
)
:
HTMLElement
{
let
icon
=
document
.
createElement
(
'img'
);
icon
.
src
=
'/assets/img/bli/'
+
file
;
icon
.
setAttribute
(
'style'
,
'width:
5
em;height:auto'
);
icon
.
setAttribute
(
'style'
,
'width:
3
em;height:auto'
);
return
icon
;
}
click
(){
console
.
log
(
'click'
);
//console.log(this.getMap());
}
clickToggleFilterIcons
(){
console
.
log
(
'click toggle filter icons'
);
}
...
...
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