web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Map shapes color

(0) ShareShare
ReportReport
Posted on by 160

Hello,

I tried to put geoJson shapes in my map. works fine, but colors don't change as requested. I create a collection and pointed the shapes color to the column color, but this doesn't work.

Any idea about what I'm doing wrong ?

best regards

Paul

polo1604_0-1670963632915.png

 

Categories:
I have the same question (0)
  • LaurensM Profile Picture
    12,516 Moderator on at

    @polo1604 could you change the RGBA(0;128;0;1) to "RGB(0,128,0)" (with quotes).
    Should that not work try your syntax variant (; instead of ,) "RGB(0;128;0)".

    Changing the RGBA to a string RGB value fixed the issue during my testing.

    If this solves your question, would you be so kind as to accept it as a solution.

  • polo1604 Profile Picture
    160 on at

    @LaurensM 

     

    thanks for your message, but changing to a string RGB did not work, neither with ";" nor with ",".

     

  • polo1604 Profile Picture
    160 on at

    Hello,

    there is no way to put the color value in a string.

    I tried this, the color is shown in the collection (table) but not interpreted by the shape color..

    polo1604_0-1671134175207.png

     

  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @polo1604 indeed that was also the case with my test.

    However swapping this to {color: "RGB(0,128,0)"; ....} fixed it for me.

  • polo1604 Profile Picture
    160 on at

    Hi @LaurensM 

     

    thanks very much for your help!

     

    it looks like as there is a standard color which is overwriting my collection. is there somewhere a standard color of shapes ?

     

  • LaurensM Profile Picture
    12,516 Moderator on at

    @polo1604 the shapes have a default color (blue) if no valid color is chosen (it will not overwrite a valid custom color).
    I tried it again and the "RGB(0,128,0)" worked and I have noted down the necessary steps.

    Could you give this another try:

     

    1. Change your RGBA() to "RGB(0,128,0)" (with double quotes, so as a string value)
      • {color: "RGB(0,128,0)"; Lbl: .....}
    2. ClearCollect your collection
    3. Remove your "color" from the shape_colors
    4. Add "color" again in the shape_colors property
    5. After readding "color" in the shape_colors property, the shape should now have the correct color.

     

    I hope this helps!

  • polo1604 Profile Picture
    160 on at

    Hi,

     

    it doesn't accept the "RGB(0,128,0)"... error is shown (type not compatible)

    polo1604_0-1671138505487.png

     

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    @polo1604 could you try renaming Circle to Circle1 for a second to see if the error still occurs?

    Should the error disappear, use Circle1 as datasource for the map during this test.

  • polo1604 Profile Picture
    160 on at

    You are the best @LaurensM 

     

    it works now, after changing to circle1 and removing and adding the items and color etc.

     

    how is this possible?

     

    thanks a lot !

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard