# Map element, using customized icon based on data field?

**URL:** <https://forum.bubble.io/t/map-element-using-customized-icon-based-on-data-field/10243>\
**Category:** Need help\
**Created:** [February 5, 2017, 6:21pm UTC](https://forum.bubble.io/t/map-element-using-customized-icon-based-on-data-field/10243 "2017-02-05T18:21:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![handsfree](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/handsfree/32/9078_2.png) [@handsfree](https://forum.bubble.io/u/handsfree)\
**Post date:** [February 5, 2017, 6:21pm UTC](https://forum.bubble.io/t/map-element-using-customized-icon-based-on-data-field/10243/1 "2017-02-05T18:21:44Z")

</div>

Hello,

I want to show three different icons as map markers.

For example:

Cars  
Motorcycles  
Gas stations

Upon registration on the website, every user have to click on a radio button. They have to check either if they have a car, motorcycle or Gas station.

The map will then display markers as either Car, Motorcycle or Gas station. Is this possible using the Data dependent field?

Or is it possible to have multiple customized icons, based on data field?

---

<div class="post-metadata">

**Author:** ![fayewatson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fayewatson/32/2686_2.png) [@fayewatson](https://forum.bubble.io/u/fayewatson)\
**Post date:** [February 6, 2017, 1:07am UTC](https://forum.bubble.io/t/map-element-using-customized-icon-based-on-data-field/10243/2 "2017-02-06T01:07:52Z")

</div>

Yes, this is definitely possible in Bubble. 🙂

To set this up, after a User selects a car, motorcycle, or gas station in the registration process, the workflow would also need to save that icon image file, as the value for the Icon image field (type: image, list: no). It would be best to have these images be .svg. Here is an example of the data structure (if the Users were registering a Place)

 ![](https://us1.discourse-cdn.com/bubble/original/2X/8/87eaa320836627baf6d6436d06c0cfd43f0ff7c9.png)

Then in the map, you would have similar settings to:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/2/24b76c3ece2b389073f985927188b1f4b7330268.jpg)

In the above property editor, I selected that the Icon is data dependent. This tell Bubble to dynamically display the icon marker which is associated with that Place.

If any of this was confusing, feel free to share a link to your app in the editor and I can definitely assist with setting this up.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [April 16, 2017, 6:28pm UTC](https://forum.bubble.io/t/map-element-using-customized-icon-based-on-data-field/10243/3 "2017-04-16T18:28:02Z")

</div>

Closed on April 16, 2017, 6:28pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
