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

Cannot edit with custom Raster tile layer #891

Open
Kris-B opened this issue Apr 27, 2024 · 1 comment
Open

Cannot edit with custom Raster tile layer #891

Kris-B opened this issue Apr 27, 2024 · 1 comment

Comments

@Kris-B
Copy link

Kris-B commented Apr 27, 2024

When using a custom raster tile layer, it's possible to draw polygons, but it's not possible to edit points of the created polygon

@mnalis
Copy link

mnalis commented Sep 29, 2024

I can confirm that. Edit geometries button works fine on all built-in layers (Standard, Satellite streets, OSM etc).
But when I click on custom layer (added via Meta / Add raster tile layer) it fails, and console logs:

instrument.js:108 Error: The layer 'gl-draw-symbol.cold' does not exist in the map's style and cannot be queried for features.
    at Ia.queryRenderedFeatures (mapbox-gl.js:37:565310)
    at Map.queryRenderedFeatures (mapbox-gl.js:37:665946)
    at M (mapbox-gl-draw.js:1:6331)
    at Object.touch (mapbox-gl-draw.js:1:6141)
    at i.touchstart (mapbox-gl-draw.js:1:24067)
    at Map.fire (mapbox-gl.js:31:88170)
    at i.fire (mapbox-gl-draw.js:1:23024)
    at ja._firePreventable (mapbox-gl.js:37:586084)
    at ja.touchstart (mapbox-gl.js:37:585834)
    at Sn.handleEvent (mapbox-gl.js:37:611214)
(anonymous) @ instrument.js:108
fire @ mapbox-gl.js:31
queryRenderedFeatures @ mapbox-gl.js:37
queryRenderedFeatures @ mapbox-gl.js:37
M @ mapbox-gl-draw.js:1
touch @ mapbox-gl-draw.js:1
i.touchstart @ mapbox-gl-draw.js:1
fire @ mapbox-gl.js:31
i.fire @ mapbox-gl-draw.js:1
_firePreventable @ mapbox-gl.js:37
touchstart @ mapbox-gl.js:37
handleEvent @ mapbox-gl.js:37

If I click back on any of the standard layers, it works again and I can click on the points to move/edit geometry

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

2 participants