Skip to content

Commit bb8366e

Browse files
feat: allow all styles in add markers (#140)
1 parent b3b8030 commit bb8366e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/core/createMarkers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function createMarkers(markers = {}, isRecentlyCreated = false) {
3434
index,
3535
map: this,
3636
// Merge the `markerStyle` object with the marker config `style` if presented.
37-
style: merge(this.params.markerStyle, { initial: config.style || {} }, true),
37+
style: merge(this.params.markerStyle, { ...config.style || {} }, true),
3838
label: this.params.labels && this.params.labels.markers,
3939
labelsGroup: this._markerLabelsGroup,
4040
cx: point.x,

0 commit comments

Comments
 (0)