{ event.setMaxZoom(18); event.on('click', handleMapClick); if (!simplified) { event.addControl(new GlobeControl(), 'top-left'); } }} bind:map > {#snippet children({ map }: { map: maplibregl.Map })} {#if !simplified} {/if} {#if showSettingsModal !== undefined} (showSettingsModal = true)}> {/if} {#if onOpenInMapView} onOpenInMapView()}> {/if} asFeature(marker)), }} id="geojson" cluster={{ radius: 35, maxZoom: 17 }} > handlePromiseError(handleClusterClick(event.feature.properties?.cluster_id, map))} > {#snippet children({ feature })}
{feature.properties?.point_count}
{/snippet}
{ if (!popup) { handleAssetClick(event.feature.properties?.id, map); } }} > {#snippet children({ feature }: { feature: Feature })} {#if useLocationPin} {:else} {feature.properties?.city {/if} {#if popup} {@render popup?.({ marker: asMarker(feature) })} {/if} {/snippet}
{/snippet}