Skip to content

Mapbox GL JS bundled instead of imported #1

@bothness

Description

@bothness

The Mapbox GL JS library is currently bundled rather than imported. This is done for two reasons:

  1. The Svelte REPL imports the latest version of dependencies rather than the versions in the package.json, which means it tries to import v2 (pay-per-use) instead of v1 (open-source).
  2. Mapbox GL JS is not coded as an ES6 module, which means that it doesn't seem to play nicely with SvelteKit. As the library is currently using an ES6-compatible version of the JS file generated by Skypack, although SvelteKit still seems to be experiencing issues.

Ideally, we should find a better way to import the dependency, or to explore the use of MapLibre GL JS as a plug-in replacement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions