mapshaper icon indicating copy to clipboard operation
mapshaper copied to clipboard

GUI: Add custom layer

Open Nekzuris opened this issue 5 months ago • 8 comments

Would it be possible to add a custom layer option? I would like to draw shapes with a specific TMS background layer url.

Nekzuris avatar Aug 07 '25 12:08 Nekzuris

You're talking about a background tiled layer, right? I've thought about adding support for custom base layers. Do you know if the TMS layer you want to use is compatible with the Mapbox GL api? If so, adding support should not be difficult.

mbloch avatar Aug 07 '25 14:08 mbloch

Yes a TMS layer like this one (check over France) https://data.geopf.fr/tms/1.0.0/ORTHOIMAGERY.ORTHOPHOTOS.ORTHO-EXPRESS.2025/{z}/{x}/{y}.jpeg I don't know if it's compatible with the Mapbox GL api.

Nekzuris avatar Aug 07 '25 14:08 Nekzuris

Looking at the URL, it probably will work. I'll put this near the top of my todo list, hope to get support added within a few days.

mbloch avatar Aug 07 '25 14:08 mbloch

Meanwhile, this tool already supports custom tile layers and drawing. You might see if it meets your needs: https://play.placemark.io/

Here's a screenshot of the menu path to add custom layers

Image

mbloch avatar Aug 07 '25 14:08 mbloch

Thanks, it could work but it's not ideal, I want the console command like buffer and simplify, and I don't understand how to delete a single point from a polygon?

Nekzuris avatar Aug 07 '25 16:08 Nekzuris

Hey @mbloch , is this still on your todo list?

Nekzuris avatar Sep 19 '25 16:09 Nekzuris

Hi, I just updated Mapshaper with a first-pass version of custom layers. The xyz URL template you gave above seems to work.

Image Image

mbloch avatar Sep 30 '25 01:09 mbloch

It works perfectly thank you very much!

Nekzuris avatar Sep 30 '25 03:09 Nekzuris