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

Uncaught Error: Unimplemented type: 3 #248

Open
manuelep opened this issue Oct 23, 2020 · 2 comments
Open

Uncaught Error: Unimplemented type: 3 #248

manuelep opened this issue Oct 23, 2020 · 2 comments

Comments

@manuelep
Copy link

Hi *!

Trying to render subsequent data encoded server side with python using mapbox_vector_tile encoder I obtain this error:

[{
  "name": "re",
  "features": [
    {
      "geometry": "POLYGON ((298 439, 297 444, 300 447, 304 445, 306 441, 302 438, 298 439))",
      "properties": {
        "id": "8c1f9b7680697ff",
        "rate": 0.206364124597207,
        "mrate": 0.206364124597207,
        "pricemax": 320000,
        "pricemin": 320000,
        "count": 1,
        "upricemax": 2206,
        "upricemin": 2206,
        "color": "#f3b692"
      }
    },
    {
      "geometry": "POLYGON ((81 649, 80 653, 83 656, 88 655, 89 650, 85 647, 81 649))",
      "properties": {
        "id": "8c1f9b7680887ff",
        "rate": 0.514366272824919,
        "mrate": 0.514366272824919,
        "pricemax": 450000,
        "pricemin": 450000,
        "count": 1,
        "upricemax": 4500,
        "upricemin": 4500,
        "color": "#dc759f"
      }
    },
    {
      "geometry": "POLYGON ((-1 590, -2 595, 1 598, 5 596, 7 592, 3 589, -1 590))",
      "properties": {
        "id": "8c1f9b7680a29ff",
        "rate": 0.416219119226638,
        "mrate": 0.416219119226638,
        "pricemax": 490000,
        "pricemin": 490000,
        "count": 1,
        "upricemax": 3769,
        "upricemin": 3769,
        "color": "#e6869a"
      }
    }
  ]
}]

Here it is how I have instantiated the layer:

var tilesUrl = "/testapp/ws/vtile/{x}/{y}/{z}?classic=true";
this.vectorTileLayer = L.vectorGrid.protobuf(tilesUrl, {
        vectorTileLayerStyles: vectorTileStyling,
});
this.vectorTileLayer.addTo(this.map);

I tryed to follow the example at this url using a custom web service

Thanks a lot for any help!

Cheers

@adolgarevntnx
Copy link

@manuelep use uncompressed pbf tiles

@CalRobert
Copy link

If anyone else is using tippecanoe, you can generate uncompressed tiles with tippecanoe --no-tile-compression

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

3 participants