Skip to content

Tile: Encode Forward / Backward Property for Geometries #2980

@soupman99

Description

@soupman99

Trying to get tile service to return the vector tiles with all of the meta data but can't seem to figure it out. I keep getting

400 Bad Request - source.error

Can someone help me with setting up my style correctly to display the data?

{
    "version": 8,
    "name": "osrmtiles",
    "metadata": {
        "mapbox:autocomposite": true,
        "mapbox:type": "default"
    },
"sources": {
    "osm": {
        "url": "http://localhost:5000/tile/v1/driving/tile({x},{y},{z}).mvt",
        "type": "vector"
    }
},
    "sprite": "sprites/basic-v9",
    "glyphs": "glyphs/{fontstack}/{range}.pbf",
    "layers": [
      {
          "id": "place-town",
          "type": "symbol",
          "source": "osm",
          "source-layer": "speed",
          "minzoom": 12,
          "maxzoom": 20,
          "interactive": true,
          "filter": [
              "==",
              "type",
              "town"
          ],
          "layout": {
              "text-size": {
                  "base": 1,
                  "stops": [
                      [
                          7,
                          11.5
                      ],
                      [
                          15,
                          20
                      ]
                  ]
              },
              "text-font": {
                  "base": 1,
                  "stops": [
                      [
                          11,
                          [
                              "DIN Offc Pro Regular",
                              "Arial Unicode MS Regular"
                          ]
                      ],
                      [
                          12,
                          [
                              "DIN Offc Pro Medium",
                              "Arial Unicode MS Regular"
                          ]
                      ]
                  ]
              },
              "text-padding": 2,
              "text-offset": [
                  0,
                  0
              ],
              "text-field": "{name_en}",
              "text-max-width": 7
          },
          "paint": {
              "text-color": {
                  "base": 1,
                  "stops": [
                      [
                          10,
                          "hsl(0, 0%, 75%)"
                      ],
                      [
                          11,
                          "hsl(0, 0%, 85%)"
                      ]
                  ]
              }

          }
      }
      ]
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions