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

Bad tiles base URL (layer0) #939

Open
simon-contreras-deel opened this issue Apr 12, 2018 · 0 comments
Open

Bad tiles base URL (layer0) #939

simon-contreras-deel opened this issue Apr 12, 2018 · 0 comments
Assignees

Comments

@simon-contreras-deel
Copy link
Contributor

I have instantiated a map with:

GET {HOST}/api/v1/map?config={"version":"1.3.0","stat_tag":"API","layers":[{"type":"cartodb","options":{"sql":"SELECT * FROM XXX","cartocss":"#layer { polygon-fill: #555000; }","cartocss_version":"2.1.0"}}]}&callback=XXX

And I have received:

{
  "layergroupid": "XXXX",
  "metadata": {
    "layers": [
      {
        "type": "mapnik",
        "id": "layer0",
        "meta": {
          "cartocss": "#layer { polygon-fill: #555000; }",
          ...
        },
        "tilejson": {
          "vector": {
            "tilejson": "2.2.0",
            "tiles": [
              "https://HOST/USER/api/v1/map/XXXXXXXX/layer0/{z}/{x}/{y}.mvt",
              "https://HOST/USER/api/v1/map/XXXXXXXX/layer0/{z}/{x}/{y}.mvt",
              "https://HOST/USER/api/v1/map/XXXXXXXX/layer0/{z}/{x}/{y}.mvt",
              "https://HOST/USER/api/v1/map/XXXXXXXX/layer0/{z}/{x}/{y}.mvt"
            ]
          },
          "raster": {
            "tilejson": "2.2.0",
            "tiles": [
              "https://HOST/USER/api/v1/map/XXXXXXXX/layer0/{z}/{x}/{y}.png",
              "https://HOST/USER/api/v1/map/XXXXXXXX/layer0/{z}/{x}/{y}.png",
              "https://HOST/USER/api/v1/map/XXXXXXXX/layer0/{z}/{x}/{y}.png",
              "https://HOST/USER/api/v1/map/XXXXXXXX/layer0/{z}/{x}/{y}.png"
            ]
          }
        }
      }
    ],
    ...
}

But https://HOST/USER/api/v1/map/XXXXXXXX/layer0/{z}/{x}/{y}.mvt not works and I needed to use:
https://HOST/USER/api/v1/map/XXXXXXXX/0/{z}/{x}/{y}.mvt

As you can see, I have requested a mvt, and I dont check it with raster

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

1 participant