# Perspective Map: Color Issue for added Points

**URL:** <https://forum.inductiveautomation.com/t/perspective-map-color-issue-for-added-points/82772>\
**Category:** General Discussion\
**Tags:** perspective\
**Created:** [December 6, 2023, 12:08pm UTC](https://forum.inductiveautomation.com/t/perspective-map-color-issue-for-added-points/82772 "2023-12-06T12:08:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Mehar](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rohit_mehar/32/55621_2.png) [@Rohit\_Mehar](https://forum.inductiveautomation.com/u/Rohit_Mehar)\
**Post date:** [December 6, 2023, 12:08pm UTC](https://forum.inductiveautomation.com/t/perspective-map-color-issue-for-added-points/82772/1 "2023-12-06T12:08:05Z")

</div>

Hello There,

I am working on map where is I have successfully added the different points fetching it from Database. I am going through this Manual Page ([Perspective Map - Adding GeoJSON Shapes - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/Perspective+Map+-+Adding+GeoJSON+Shapes)) of adding points for reference. But the issue is my Pointers are not added with "Blue" color. All are in "Black" color.  
What is wrong I am doing here?  
Attaching SS for reference.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/6/d6dbf506a4db7b285e8a35b532ff4b8ef95dfba7.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/b/bbfbfbfba98e5e98a29f1be62b4c1e9f8994e5e2.jpeg)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 6, 2023, 12:26pm UTC](https://forum.inductiveautomation.com/t/perspective-map-color-issue-for-added-points/82772/2 "2023-12-06T12:26:02Z")

</div>

It looks OK to me (but is hard to read). Can you post a section of the resulting JSON for one of the points?

Tip: post formatted code - not pictures of code. We would have to type out your script to test it.

> [@Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831):
>
> This thread is intended as a short help file for all those struggling to post formatted code on the forum. Posting formatted code on the forum (and most others) is as simple as selecting the code and pressing the \</\> button. It works the same as applying Bold or Italic styles to your document. It preserves indentation and applies syntax highlighting. [How to post code]

---

<div class="post-metadata">

**Author:** ![Rohit\_Mehar](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rohit_mehar/32/55621_2.png) [@Rohit\_Mehar](https://forum.inductiveautomation.com/u/Rohit_Mehar)\
**Post date:** [December 6, 2023, 1:12pm UTC](https://forum.inductiveautomation.com/t/perspective-map-color-issue-for-added-points/82772/4 "2023-12-06T13:12:35Z")

</div>

Here is the code.

```auto
`{`

` ` `"type"` `: ` `"Feature"` `,`

` ` `"properties"` `: {},`

` ` `"geometry"` `: {`

` ` `"type"` `: ` `"Point"` `,`

` ` `"coordinates"` `: [`

` ` `-` `121.16945743560791` `,`

` ` `38.6632293081453`

` ` `]`

` ` `},`

` ` `"marker"` `: {`

` ` `"icon"` `: {`

` ` `"color"` `: ` `"blue"` `,`

` ` `"size"` `: {`

` ` `"width"` `: ` `100` `,`

` ` `"height"` `: ` `100`

` ` `},`

` ` `"path"` `: ` `"material/location_on"`

` ` `},`

` ` `"tooltip"` `: {`

` ` `"content"` `: {`

` ` `"text"` `: ` `"Some text"`

` ` `}`

` ` `}`

` ` `}`

`}`

```

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 6, 2023, 1:52pm UTC](https://forum.inductiveautomation.com/t/perspective-map-color-issue-for-added-points/82772/5 "2023-12-06T13:52:57Z")

</div>

It appears that you have just copied and pasted the sample code from [Perspective Map - Adding GeoJSON Shapes - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/Perspective+Map+-+Adding+GeoJSON+Shapes) into your answer above. We need to see the result of your script.

Please preview the code / JSON to check that it is formatted correctly before hitting reply. (The JSON in your last post is a mess.)

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [December 6, 2023, 2:28pm UTC](https://forum.inductiveautomation.com/t/perspective-map-color-issue-for-added-points/82772/6 "2023-12-06T14:28:25Z")

</div>

It seems the example isnt working anymore, idk what has changed

instead of using color, you can use style fill though

```auto
"style": {
  "fill": "blue"
}

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/b/5b7a9fc22a78a3bd7e52792d99487f6ba84b8f35.jpeg)

---

<div class="post-metadata">

**Author:** ![Rohit\_Mehar](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rohit_mehar/32/55621_2.png) [@Rohit\_Mehar](https://forum.inductiveautomation.com/u/Rohit_Mehar)\
**Post date:** [December 7, 2023, 4:55am UTC](https://forum.inductiveautomation.com/t/perspective-map-color-issue-for-added-points/82772/7 "2023-12-07T04:55:44Z")

</div>

Thanks victordcq!! it worked!!

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 7, 2023, 10:02am UTC](https://forum.inductiveautomation.com/t/perspective-map-color-issue-for-added-points/82772/8 "2023-12-07T10:02:06Z")

</div>

Would it be a good idea to set both `fill` and `color` in case something gets "fixed" in a later version? I'd ask support for clarification.
