Skip to content

Issue with multiple maps on a page? #64

Open
@cchance27

Description

@cchance27

When i have 2 components that are Map's on a page I get the following error not sure how to fix this.

map-action.js:31
Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'accessToken')
at init (map-action.js:31:31)
at map-action.js:19:14
at load (asset-loader.js:7:9)
at action (map-action.js:18:3)
at mount (Map.svelte? [sm]:15:6)
at Object.targetCmp.$$.fragment.m (svelte-hooks.js:216:24)
at mount_component (index.mjs:1798:26)
at mount (MapBox.svelte:36:12)
at Object.targetCmp.$$.fragment.m (svelte-hooks.js:216:24)
at mount_component (index.mjs:1798:26)

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