Map Component: Applying styles/properties to geoJSON data

I have a shaded region using geoJSON data on the map component I would like to toggle visibility on. My initial thought was to toggle the opacity of the feature on the map component but it does not change when I change any of the properties.

I generated the JSON data from geojson.io. Is there something I am missing?

image

1 Like

A little late, but I ran into this issue and manually updated the property names to match what is required for Ignition.

For example, I changed:

"properties": {
        "stroke": "#0f3df5"
      },

To:

"styleOptions": {
        "color": "#0f3df5"
      },

However, I found the section in the Ignition Docs that walks through the process of Adding GeoJSON Shapes. Following these instructions will expedite the process.

Also, here is a related forum post, Importing KMS/KML data into ignition perspective Map using GeoJSON property

1 Like