Skip to content

Commit

Permalink
feat: support styling all layer types
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbasgaard committed Oct 9, 2023
1 parent be0e24a commit 5636f0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/components/MapComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ export default {
if (!layerSelected) {
return
}
console.log(layer.id)
}
const mapboxLayer = {}
Object.entries(layer.properties).forEach(([id, prop]) => {
Expand Down
5 changes: 1 addition & 4 deletions src/lib/mapbox/styling/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
export function decorateLayerStyling(layerData) {
if (
layerData.properties['deltares:source-layer'] &&
layerData.properties['deltares:type'] === 'circle'
) {
if (layerData.properties['deltares:source-layer']) {
const style = process.env.VUE_APP_MAPBOX_LAYERS_STYLE || ''
const token = process.env.VUE_APP_MAPBOX_TOKEN || ''
const target = layerData.properties['deltares:source-layer'] || ''
Expand Down

0 comments on commit 5636f0c

Please sign in to comment.