Texte (Label) im Styling funktioinieren für einige Fälle nicht.

Issue #1169 open
Sven Junker-Beyel created an issue

Das Attribute labelField in der style.json führt in einigen Fällen zu Fehlern.

Kann nachvollzogen werden im portal/basic.

Bespiel, beim Layer Krankehäuser kann das Attribute “ort” ohne Probleme angezeigt werden, bei “planbetten” werden keine Features und Labels angezeigt und es werden Errors geworfen.

style_v3.json funktioniert:

{
    "styleId": "1711",
    "rules": [
      {
        "style": {
          "type": "icon",
          "clusterType": "icon",
          "imageName": "krankenhaus.png",
          "imageScale": 0.7,
          "clusterImageName": "krankenhaus.png",
          "clusterTextOffsetX": 30,
          "clusterTextOffsetY": 0,
          "clusterTextFillColor": [
            0,
            0,
            255,
            1
          ],
          "labelField": "ort",
          "textFillColor": [0, 0, 0, 1]
        }
      }
    ]
  },

style_v3.json funktioniert nicht:

 {
    "styleId": "1711",
    "rules": [
      {
        "style": {
          "type": "icon",
          "clusterType": "icon",
          "imageName": "krankenhaus.png",
          "imageScale": 0.7,
          "clusterImageName": "krankenhaus.png",
          "clusterTextOffsetX": 30,
          "clusterTextOffsetY": 0,
          "clusterTextFillColor": [
            0,
            0,
            255,
            1
          ],
          "labelField": "planbetten",
          "textFillColor": [0, 0, 0, 1]
        }
      }
    ]
  },

Comments (1)

  1. Log in to comment