# Changing individual marker colour?

**URL:** <https://community.thunkable.com/t/changing-individual-marker-colour/2983818>\
**Category:** Questions about Thunkable X\
**Created:** [May 3, 2024, 10:10pm UTC](https://community.thunkable.com/t/changing-individual-marker-colour/2983818 "2024-05-03T22:10:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuuzonessqnzvv](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@nuuzonessqnzvv](https://community.thunkable.com/u/nuuzonessqnzvv)\
**Post date:** [May 3, 2024, 10:10pm UTC](https://community.thunkable.com/t/changing-individual-marker-colour/2983818/1 "2024-05-03T22:10:03Z")

</div>

Hi all,

I’m using a map with multiple markers on. These markers are being called from a google sheet database. After someone presses one of the markers i would like it to change colour to show it has been pressed.

So far I have been able to change all the markers colour on press, but am struggling to just change to one. Does anyone know anyway around this problem??

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![nuuzonessqnzvv](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@nuuzonessqnzvv](https://community.thunkable.com/u/nuuzonessqnzvv)\
**Post date:** [May 6, 2024, 2:08pm UTC](https://community.thunkable.com/t/changing-individual-marker-colour/2983818/2 "2024-05-06T14:08:41Z")

</div>

![Screenshot 2024-05-06 150504](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/1/415bf4fd12eab448c82d90fd34ab1afdcb125419.png)

I have previously declared pinColour as a variable and upon button press changed it to the desired colour, however this changes all the markers colour.

Without creating multiple separate markers each with it’s own variable, is there a smart way to change pinColour of an individual marker using a block setup as seen above??

Thank you

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [May 17, 2024, 2:36pm UTC](https://community.thunkable.com/t/changing-individual-marker-colour/2983818/3 "2024-05-17T14:36:07Z")

</div>

Hi @nuuzonessqnzvv, thanks for your patience. You could always use the random color block to change the color of the pin for each item in your list.  
 ![Screenshot 2024-05-17 at 10.35.59 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/a/badc4e2025786338e2ed669af6ada1520172cedb.png)

---

<div class="post-metadata">

**Author:** ![nuuzonessqnzvv](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@nuuzonessqnzvv](https://community.thunkable.com/u/nuuzonessqnzvv)\
**Post date:** [May 17, 2024, 3:47pm UTC](https://community.thunkable.com/t/changing-individual-marker-colour/2983818/4 "2024-05-17T15:47:13Z")

</div>

Hi @matt_conroy

Ok pretty sure this is something Thunkable can not do.

Do you know if you can call stored colours from a database like the lat & long coordinates in the example?

So if a certain marker was clicked, then it could change the stored colour value in the database?

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [May 17, 2024, 4:07pm UTC](https://community.thunkable.com/t/changing-individual-marker-colour/2983818/5 "2024-05-17T16:07:50Z")

</div>

The pin color does accept hex values so you could store those in the cloud and then call the variable for the variable.  
 ![Screenshot 2024-05-17 at 12.07.07 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/a/da71d325b53bf43b378c022fd52886a54381b070.png)

---

<div class="post-metadata">

**Author:** ![nuuzonessqnzvv](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@nuuzonessqnzvv](https://community.thunkable.com/u/nuuzonessqnzvv)\
**Post date:** [May 17, 2024, 4:51pm UTC](https://community.thunkable.com/t/changing-individual-marker-colour/2983818/6 "2024-05-17T16:51:44Z")

</div>

Not a bad shout. I need to work locally as the app may be used in low mobile service area so cloud variables wouldn’t work.

But will keep trying ideas

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [August 15, 2024, 4:52pm UTC](https://community.thunkable.com/t/changing-individual-marker-colour/2983818/7 "2024-08-15T16:52:01Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
