Skip to content

Commit 4c9c8e9

Browse files
committed
fix: moved getFormat to source
1 parent c653e4c commit 4c9c8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vendors/helpers/Layers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export function setFeatures(map, data, name, clear) {
272272
source.clear()
273273
undos.forEach((c) => { c.clear() })
274274
}
275-
const reader = (layer.getFormat ? layer.getFormat() : null) || new GeoJSON()
275+
const reader = (source.getFormat ? source.getFormat() : null) || new GeoJSON()
276276
if (reader && data) {
277277
//Now add the features based on types
278278
if (Array.isArray(data)) {

0 commit comments

Comments
 (0)