Skip to content

setProjection is not a function #269

@johanohly

Description

@johanohly

I honestly have no idea what is causing this. I am just passing projection to the <MapLibre /> component.

<MapLibre
  onload={(event) => {
    // event.addControl(new GlobeControl(), 'top-left');
  }}
  projection={{type: "globe"}}
  bind:map
  {style}
  diffStyleUpdates
  class="relative h-full"
  attributionControl={false}
>
  {#snippet children({ map }: { map: maplibregl.Map })}
    <AttributionControl compact={true} />
    <NavigationControl />
    <GeolocateControl />
	...
 {/snippet} 
</Maplibre>
    "maplibre-gl": "5.4.0",
    "svelte-maplibre": "^1.0.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions