Unplanned
Last Updated: 04 Jun 2024 09:45 by ADMIN
Sebastian
Created on: 28 May 2024 12:32
Category: Map
Type: Bug Report
0
I can't render UriVectorTileMapProvider correctly with my style file

i have UriVectorTileMapProvider and i have files pbf.

When i create my style file json i cant get render corectly.

i have two example:

1)one in my style json i have three layers:buildings,military,hospital (ex1.png)

When I use such a file, one polygon is lying with buildings on top where the other polygon covers the buildings

 "layers": [
    {
      "id": "landcover_wood",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landuse",
      "filter": [
        "==",
        "class",
        "military"
      ],
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "fill-color": "green"
      }
    },
    {
      "id": "landcover_hos",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landuse",
      "filter": [
        "==",
        "class",
        "hospital"
      ],
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "fill-color": "yellow"
      }
    },
   ,
    {
      "id": "building",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "building",
      "minzoom": 12,
      "maxzoom": 24,
      "paint": {
        "fill-color": {
          "stops": [
            [
              13,
              "yellow"
            ],
            [
              16,
              "red"
            ]
          ]
        }
      }
    }
  ]

2) if i have this style json, telering dont recognize color for every layers like hospital or military i have black (ex2.png)

"layers": [

    
    {
      "id": "landuse_classes",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landuse",
      "minzoom": 7,
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "fill-color": [
          [
            "military"
          ],
          "green",
          [
            "hospital"
          ],
          "red",
          "purle"
        ]
      },
      "metadata": {},
      "filter": [
        "all",
        [
          "in",
          "class",
          "military",
          "hospital"
        ]
      ]
    },
    
    {
      "id": "building",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "building",
      "minzoom": 12,
      "maxzoom": 24,
      "paint": {
        "fill-color": {
          "stops": [
            [
              13,
              "yellow"
            ],
            [
              16,
              "red"
            ]
          ]
        }
      }
    }
  ]
}

 

whats wrong with my json file style?

Attached Files:
2 comments
ADMIN
Stenly
Posted on: 04 Jun 2024 09:45

Hello Sebastian,

Is there a possibility to isolate this behavior in a sample project, so that I could test it on my end? This way, I can check the behavior of the RadMap control in this scenario and take further action based on it.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Sebastian
Posted on: 28 May 2024 13:08
both olygons are in one tile pbf, if tile has only military or hospital render is corectly