diff --git a/apps/demo/app/context/map.tsx b/apps/demo/app/context/map.tsx index ba40762..544a9dc 100644 --- a/apps/demo/app/context/map.tsx +++ b/apps/demo/app/context/map.tsx @@ -39,7 +39,7 @@ export const MapProvider: FC<{ children: ReactNode }> = ({ children }) => { ); const ensureApi = async () => { - const api = await loadMapApi('https://mapgl.2gis.com/api/js/v0.0.335'); + const api = await loadMapApi(); setApi(api); return api; }; diff --git a/packages/lighting-control/src/index.ts b/packages/lighting-control/src/index.ts index 3842b0c..6c2891b 100644 --- a/packages/lighting-control/src/index.ts +++ b/packages/lighting-control/src/index.ts @@ -93,7 +93,7 @@ export class MapglLightingControl { global: ["sun", "moon", "atmosphere"], }, defaultLightingMode: "global", - shadow: { + shadows: { source: lightingConfig.shadowSource, }, });