Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fordecyt_2019
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
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rodrigo Tapia-McClung
fordecyt_2019
Commits
e6ae7109
Commit
e6ae7109
authored
Aug 19, 2019
by
Anne Blankert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust paint properties for layer type
parent
51a2313b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
attrinfo.html
public/attrinfo.html
+10
-9
No files found.
public/attrinfo.html
View file @
e6ae7109
...
...
@@ -344,20 +344,21 @@
count
:
rowCount
-
classValuesRowCount
})
const
schemes
=
getColorSchemes
(
classCount
,
'qual'
);
const
mapboxPaint
=
{
"line-color"
:
[
const
mapboxPaint
=
[
"match"
,
[
"get"
,
"bicycle"
]
],
"line-width"
:
1
}
];
classValues
.
forEach
((
value
,
index
)
=>
{
addLegendLine
(
schemes
[
0
].
colors
[
index
],
value
.
value
);
mapboxPaint
[
"line-color"
].
push
(
value
.
value
);
mapboxPaint
[
"line-color"
].
push
(
schemes
[
0
].
colors
[
index
]);
if
(
value
.
value
!==
'other'
)
{
mapboxPaint
.
push
(
value
.
value
);
mapboxPaint
.
push
(
schemes
[
0
].
colors
[
index
]);
}
});
mapboxPaint
[
"line-color"
].
push
(
schemes
[
0
].
colors
[
classValues
.
length
-
1
]);
map
.
setPaintProperty
(
'attrlayer'
,
'line-color'
,
mapboxPaint
[
"line-color"
]);
mapboxPaint
.
push
(
schemes
[
0
].
colors
[
classValues
.
length
-
1
]);
const
layerType
=
map
.
getLayer
(
'attrlayer'
).
type
;
const
colorprop
=
`
${
layerType
}
-color`
;
map
.
setPaintProperty
(
'attrlayer'
,
colorprop
,
mapboxPaint
);
}
}
...
...
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