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

Custom Icon #2514

Open
SincerelyUnique opened this issue Jan 18, 2024 · 0 comments
Open

Custom Icon #2514

SincerelyUnique opened this issue Jan 18, 2024 · 0 comments
Assignees

Comments

@SincerelyUnique
Copy link

image

How to set custom Icon to map

layer config

        {
          "id": "2dsuao",
          "type": "icon",
          "config": {
            "dataId": "dc-point",
            "label": "DC",
            "color": [
              18,
              147,
              154
            ],
            "highlightColor": [
              252,
              242,
              26,
              255
            ],
            "columns": {
              "lat": "latitude",
              "lng": "longitude",
              "icon": "icon"
            },
            "isVisible": true,
            "visConfig": {
              "radius": 53.9,
              "fixedRadius": false,
              "opacity": 0.8,
              "colorRange": {
                "name": "Ice And Fire 3",
                "type": "diverging",
                "category": "Uber",
                "colors": [
                  "#D50255",
                  "#FAFEB3",
                  "#0198BD"
                ],
                "reversed": true
              },
              "radiusRange": [
                20,
                40
              ]
            },
            "hidden": false,
            "textLabel": [
              {
                "field": {
                  "name": "DC",
                  "type": "string"
                },
                "color": [
                  255,
                  242,
                  230
                ],
                "size": 21,
                "offset": [
                  0,
                  0
                ],
                "anchor": "start",
                "alignment": "center",
                "outlineWidth": 0.12,
                "outlineColor": [
                  255,
                  0,
                  0,
                  255
                ],
                "background": false,
                "backgroundColor": [
                  0,
                  0,
                  200,
                  255
                ]
              }
            ]
          },
          "visualChannels": {
            "colorField": {
              "name": "DC",
              "type": "string"
            },
            "colorScale": "ordinal",
            "sizeField": null,
            "sizeScale": "linear"
          }
        }
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

2 participants