mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:47:07 +00:00
Add preplot point layers (sail / source line)
This commit is contained in:
@@ -379,9 +379,41 @@ export default {
|
||||
},
|
||||
|
||||
preplotSaillinesPointLayer (options = {}) {
|
||||
return new DougalSequenceLayer({
|
||||
id: 'pslp',
|
||||
data: `/api/project/${this.$route.params.project}/line/sail`, // API endpoint returning binary data
|
||||
loaders: [DougalBinaryLoader],
|
||||
loadOptions: {
|
||||
fetch: {
|
||||
method: 'GET',
|
||||
headers: { Accept: 'application/vnd.aaltronav.dougal+octet-stream' }
|
||||
}
|
||||
},
|
||||
getRadius: 2,
|
||||
getFillColor: (d, {data, index}) => data.attributes.value2.value[index] ? [240, 248, 255, 200] : [85, 170, 255, 200],
|
||||
//getFillColor: [0, 120, 220, 200],
|
||||
pickable: true,
|
||||
...options
|
||||
});
|
||||
},
|
||||
|
||||
preplotPointsLayer (options = {}) {
|
||||
return new DougalSequenceLayer({
|
||||
id: 'pplp',
|
||||
data: `/api/project/${this.$route.params.project}/line/source`, // API endpoint returning binary data
|
||||
loaders: [DougalBinaryLoader],
|
||||
loadOptions: {
|
||||
fetch: {
|
||||
method: 'GET',
|
||||
headers: { Accept: 'application/vnd.aaltronav.dougal+octet-stream' }
|
||||
}
|
||||
},
|
||||
getRadius: 2,
|
||||
getFillColor: (d, {data, index}) => data.attributes.value2.value[index] ? [240, 248, 255, 200] : [85, 170, 255, 200],
|
||||
//getFillColor: [0, 120, 220, 200],
|
||||
pickable: true,
|
||||
...options
|
||||
});
|
||||
},
|
||||
|
||||
plannedLinesPointsLayer (options = {}) {
|
||||
|
||||
Reference in New Issue
Block a user