go-spatial / fresco

An open source vector tile style editor
https://fresco.go-spatial.org
Apache License 2.0
228 stars 26 forks source link

Unable to remove style when JSON id differs from URL #114

Open pnorman opened 3 years ago

pnorman commented 3 years ago

I have a style I want to remove. When I brows from the front page I land on https://fresco.gospatial.org/style/caf038b1-0323-4981-869c-10cec80101bc/settings/actions and press remove style. The style remains on the front page list.

Style:

{
  "name": "OpenStreetMap Cartographic",
  "id": "72328c7d-c3ec-45e5-aa71-114b3c400c81",
  "version": 8,
  "sources": {
    "vector": {
      "type": "vector",
      "url": "https://took.paulnorman.ca/dev.json"
    }
  },
  "glyphs": "https://fonts.openmaptiles.org/{fontstack}/{range}.pbf",
  "layers": [
    {
      "id": "land",
      "type": "background",
      "paint": {
        "background-color": "red"
      }
    }
  ]
}

When I changed the id in the json to caf038b1-0323-4981-869c-10cec80101bc I was then able to remove the style.