Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) Error: "layer.canvas" not properly defined #110

Open
dig22 opened this issue Nov 2, 2021 · 3 comments
Open

Uncaught (in promise) Error: "layer.canvas" not properly defined #110

dig22 opened this issue Nov 2, 2021 · 3 comments

Comments

@dig22
Copy link

dig22 commented Nov 2, 2021

image

I'm getting this error, please advice

@alex-oko
Copy link

have you been able to find a solution to the problem?

@robopzet
Copy link

I get the same error in a browser using the browser build of Leaflet.glify, glify-browser.js.

This is how the map is created:

L.map('map', {maxZoom: 18, minZoom: 8, preferCanvas: true})

The error occurs when a layer with GeoJSON is created using this map:

L.glify.points({
    map,
    data: {
        features    : pts,
        type        : 'FeatureCollection',
    },
    size: 5
})

pts is an array of GeoJSON Point features, which can be processed by L.geoJSON from Leaflet.

@charlieforward9
Copy link
Contributor

charlieforward9 commented Dec 1, 2024

+1. normal functionality in dev, throws during testing using vitest jsdom environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants