mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-25 16:02:50 +00:00
Co-authored-by: Yovarni Yearwood <yovarni@hawser.org>
This commit is contained in:
parent
89af36b53a
commit
f9cd7b5aa8
@ -26,7 +26,7 @@ let sourceCounter = 0;
|
||||
|
||||
function createSource(map: MapInstance, id: string, props: SourceProps) {
|
||||
// @ts-ignore
|
||||
if (map.style && map.style._loaded) {
|
||||
if (map.isStyleLoaded()) {
|
||||
const options = {...props};
|
||||
delete options.id;
|
||||
delete options.children;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user