unvt / charites

It is an application to style vector tiles easily
https://unvt.github.io/charites/
MIT License
51 stars 13 forks source link

"/" in layer id #56

Closed ubukawa closed 1 year ago

ubukawa commented 2 years ago

Warm greetings.

Today, I found an issue. If there is a "/" in any layer id, we see "the permission denied" and the "convert" command does not work. (See attached image.) 2021-11-24-error

I think this is because the layer "id" will be the name of each layer's yml file.

But, if we look at the style file from ArcGIS series, we may see a lot of "/" in layers' id. Do you think is there any way to overcome this issue? Otherwise, the charites will not be used to import a style file from ESRI sometimes.

Thank you for your kind attention and kind advice!

(FYI) An default style of Esri Living Atlas https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/resources/styles/root.json

ubukawa commented 2 years ago

Tentatively, I replaced "/" with "(slash)" using the text editor. Then, we can import the style.json into yaml files.

ubukawa commented 2 years ago

This is how I tentatively avoid this issue. https://qiita.com/T-ubu/items/e6794b81e45dea34548c

Then, I close this issue.

JinIgarashi commented 2 years ago

@naogify I think this issue should be solved by source code. What do you think?

naogify commented 2 years ago

@JinIgarashi @ubukawa Yes, I agree with your opinion. I think we can solve the problem by source code.