Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d082e4

Browse files
committed
make 'circle' the default layer type
1 parent 60e4285 commit 0d082e4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/plots/mapbox/layout_attributes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ module.exports = {
129129
type: {
130130
valType: 'enumerated',
131131
values: ['circle', 'line', 'fill', 'symbol'],
132-
dflt: 'line',
132+
dflt: 'circle',
133133
role: 'info',
134134
description: [
135135
'Sets the layer type.',
136136
'Support for *raster*, *background* types is coming soon.',
137137
'Note that *line* and *fill* are not compatible with Point',
138-
'GeoJSON geometry.'
138+
'GeoJSON geometries.'
139139
].join(' ')
140140
},
141141

test/image/mocks/mapbox_layers.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,10 @@
539539
"sourcetype": "vector",
540540
"source": "mapbox://mapbox.mapbox-terrain-v2",
541541
"sourcelayer": "contour",
542+
"type": "line",
543+
"color": "red",
542544
"line": {
543-
"width": 2,
544-
"color": "red"
545+
"width": 2
545546
}
546547
}
547548
]

0 commit comments

Comments
 (0)