-
Hello, I'm considering to migrate my small app to work with Svelte5 and Svelte-Maplibre 1.0 and got a question on Cluster PoP example: <!-- File: ClusterPopup.svelte -->
<script lang="ts">
import { getSource, getMapContext } from '$lib/context.svelte.js';
import type { Feature, Geometry } from 'geojson';
import type { GeoJSONSource } from 'maplibre-gl';
import type { ClusterProperties, SingleProperties } from './cluster_feature_properties.js';
const { map } = $derived(getMapContext());
const source = getSource(); methods Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You should actually be able to just import those directly from |
Beta Was this translation helpful? Give feedback.
-
The existing |
Beta Was this translation helpful? Give feedback.
Published v1.0.0-next.4 which lets you import those functions directly from the top-level
svelte-maplibre
too.