# \[FEATURE-723\] Perspective map GeoJSON doesn't accept style

**URL:** <https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354>\
**Category:** Ignition Early Access\
**Created:** [October 4, 2020, 7:24pm UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354 "2020-10-04T19:24:45Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [April 26, 2024, 5:03pm UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/21 "2024-04-26T17:03:16Z")

</div>

I assume you tried adding `"className": "psc-power"` to styleOptions already, and it didn't work?

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [April 26, 2024, 7:20pm UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/22 "2024-04-26T19:20:23Z")

</div>

I try both in styleOptions:

```python
"className": "psc-power"
"className": "power"

```

Of course, if I write power class into the main style of map component it works but I want to specify this class to only selected plotlines not all of them.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/f/1f58f0e42fe74c461305ded5638b94e377ee0bf8.png)  
I believe behind the sense, there is no binding for className in styleOptions.  
Please add this option, it really gives a cool effect to map objects.

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [April 29, 2024, 7:59pm UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/23 "2024-04-29T19:59:09Z")

</div>

Thanks for trying, Nader. We will look into it.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [May 9, 2024, 1:36pm UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/24 "2024-05-09T13:36:02Z")

</div>

I try to render a simple Geojdon Point on the map with a custom icon and color but it seems the color property of the object doesn't work and my icon renders in black:  
here is the Geojson object. I try to put color everywhere to figure out the correct syntax as there is no manual for Point.

```python
{
  "styleOptions": {
    "color": "#FFFFFF",
    "opacity": 1,
    "fill": true,
    "fillColor": "#FFFFFF",
    "fillOpacity": 1,
  },
  "geometry": {
    "coordinates": [
      8.097570419,
      57.17465592745406
    ],
    "type": "Point"
  },
  "type": "Feature",
  "marker": {
    "render": "icon",
    "icon": {
      "path": "map/chopper",
      "color": "#FFFFFF",
      "size": {
        "width": 12,
        "height": 12
      },
      "style": {
        "color": "#FFFFFF"
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [May 9, 2024, 6:49pm UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/25 "2024-05-09T18:49:22Z")

</div>

You referring to your original post?

> [@Regression 8.1.25: map marker color property break when the icon is changed](https://forum.inductiveautomation.com/t/regression-8-1-25-map-marker-color-property-break-when-the-icon-is-changed/71501):
>
> Hi As the following video shows changing the icon property of the map marker causes the color property breaks on the map. [Map icon]

This was fixed in 8.1.28.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [May 10, 2024, 4:44am UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/26 "2024-05-10T04:44:50Z")

</div>

No this is new in version 8.1.39.  
If you just copy my JSON into the Geojson layer you will see it is not possible to change the color of the Point(Marker).

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [May 14, 2024, 3:03pm UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/27 "2024-05-14T15:03:32Z")

</div>

I see what you're saying. We will take care of that as well. Thanks, Nader.

---

<div class="post-metadata">

**Author:** ![cross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cross/32/76508_2.png) [@cross](https://forum.inductiveautomation.com/u/cross)\
**Post date:** [June 20, 2024, 5:55pm UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/28 "2024-06-20T17:55:06Z")

</div>

This has been resolved with Ignition 8.1.42, released today.

---

<div class="post-metadata">

**Author:** ![dbollatti](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@dbollatti](https://forum.inductiveautomation.com/u/dbollatti)\
**Post date:** [October 24, 2024, 5:41pm UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/29 "2024-10-24T17:41:33Z")

</div>

It doesn't work for me, I've tried putting the color in different places but it still doesn't change.

 ![geojson_test](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/a/0ac1d11fae9726979e75a2727723ca17a32a44c9.png)

I'm using version 8.1.43

---

<div class="post-metadata">

**Author:** ![djb.bunting](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@djb.bunting](https://forum.inductiveautomation.com/u/djb.bunting)\
**Post date:** [November 5, 2024, 3:22pm UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/30 "2024-11-05T15:22:35Z")

</div>

I'm also having the same issue, I can't change the colour of any markers created from GeoJSON. I've tried using both the fill and color properties, in many places, but nothing seems to work, see the screen shot below. I've also create a style class and tried to apply that, but also doesn't work.

I'm using 8.1.44.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/1/c1ceac9bba91d2d6b12815117f8b4a3f9369c41c.png)

---

<div class="post-metadata">

**Author:** ![r.lebohec](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/r.lebohec/32/3704_2.png) [@r.lebohec](https://forum.inductiveautomation.com/u/r.lebohec)\
**Post date:** [January 27, 2025, 11:09am UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/31 "2025-01-27T11:09:11Z")

</div>

Hi @ynejati, it seems that the geojson point styling issue on markers is also valid for ui.marker. Any idea? (8.1.45)

---

<div class="post-metadata">

**Author:** ![hunterdg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hunterdg/32/67774_2.png) [@hunterdg](https://forum.inductiveautomation.com/u/hunterdg)\
**Post date:** [March 4, 2025, 3:33am UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/32 "2025-03-04T03:33:07Z")

</div>

> [@nader.chinichian](#):
>
> Hi @ynejati  
> Do we have support vector click for GEOJSON as well?

Do we have support for vector (LineString) _ **hover** _ (tooltip) for GeoJSON?

 ![CleanShot 2025-03-03 at 21.35.20](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/b/2b9a637d4bcd97f91783311905628cdb14e4f9de.png)

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [March 16, 2025, 5:40pm UTC](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354/33 "2025-03-16T17:40:55Z")

</div>

No

[Previous page](https://forum.inductiveautomation.com/t/feature-723-perspective-map-geojson-doesnt-accept-style/39354.md?page=1)
