We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b07df54 commit 34855b7Copy full SHA for 34855b7
1 file changed
modules/react-maplibre/src/maplibre/maplibre.ts
@@ -462,7 +462,7 @@ export default class Maplibre {
462
const map = this._map;
463
const currProps = this._styleComponents;
464
// We can safely manipulate map style once it's loaded
465
- if (map.style._loaded) {
+ if (map.style?._loaded) {
466
if (light && !deepEqual(light, currProps.light)) {
467
currProps.light = light;
468
map.setLight(light);
0 commit comments