# 【Bubble】Mapのアイコンをデータの値によってカスタマイズしたい

**URL:** <https://www.nocode-faq.com/t/topic/3731>\
**Category:** bubble\
**Tags:** フロントエンド, ツールの操作方法\
**Created:** [2023 年 6 月 20 日午後 3:07 UTC](https://www.nocode-faq.com/t/topic/3731 "2023-06-20T15:07:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matsubara.yuki](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@matsubara.yuki](https://www.nocode-faq.com/u/matsubara.yuki)\
**Post date:** [2023 年 6 月 20 日午後 3:07 UTC](https://www.nocode-faq.com/t/topic/3731/1 "2023-06-20T15:07:57Z")

</div>

### 実装したい機能

Mapのアイコンをデータの値によってカスタマイズしたいと考えております。

### スクリーンショット

 ![map_kabar](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/8/8125084af46bb8df7b04bc1c2e24b6dec92e7437.png)  
この赤いピンアイコンを風速、風向きのデータによって矢印の向きと色を変えようと試行錯誤しております。  
（以下、矢印デザイン）  
 ![名称未設定のデザイン (30)](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/e/ef39a4a2673f0858deb41b1fb54e08ba94f42e89.png)

### 試したこと

Conditionalからデータの値によってピンアイコンを変えるような設定にしようとしたのですが、対象となる設定項目がなく困っております。

 ![スクリーンショット (573)](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/e/e0232f68bbd79be6c651c1ea782258723d716faf.png)

---

<div class="post-metadata">

**Author:** ![john03tgck01a](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/john03tgck01a/32/4558_2.png) [@john03tgck01a](https://www.nocode-faq.com/u/john03tgck01a)\
**Post date:** [2023 年 6 月 24 日午前 6:20 UTC](https://www.nocode-faq.com/t/topic/3731/2 "2023-06-24T06:20:21Z")

</div>

ConditionalよりもWorkFlowから設定できそうですが、以下の設定を行うと、指定した住所をMAPに追加することができませんでした。

**Map設定**  
Number of markers：List  
Type of markers：指定したい型  
Data source ：Type元のデータリスト

 ![スクリーンショット 2023-06-24 15.09.15](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/9/9ca4fd61c0d6a419878a2039e856bd74172a92b8.png)

**WorkFlow**  
住所を送信したタイミングで条件によってMap Aに表示するアイコンの変更

 ![スクリーンショット 2023-06-24 15.14.37](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/2/2a962008d4bf5b101490b330ae13455d1867e2af.png)

◾参考

> **[Visual Elements](https://manual.bubble.io/core-resources/elements/visual-elements#type-of-markers)**

同一マップ上のアイコンを別のものに変更もできそうですが、こちらのフォーラムのように変更することはできませんでした。

> **[Customized Icon?](https://forum.bubble.io/t/customized-icon/93/8)**
>
> Hi, is there any solution to change the size of the icon/image?

他にも何かいいアイデアがある方がいたら補足お願いします。

---

<div class="post-metadata">

**Author:** ![john03tgck01a](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/john03tgck01a/32/4558_2.png) [@john03tgck01a](https://www.nocode-faq.com/u/john03tgck01a)\
**Post date:** [2023 年 6 月 24 日午前 8:36 UTC](https://www.nocode-faq.com/t/topic/3731/3 "2023-06-24T08:36:19Z")

</div>

残りはAddress fieldに住所情報を設定することでCustomized iconを条件により設定できるかもしれません。  
しかし、このAddress fieldにデータを入れることができません。

 ![スクリーンショット 2023-06-24 17.32.45](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/0/0e2d1d03c7135ddf1dc3f67b6c23c50f7a9aaf76.png)

上記を踏まえてForumに質問してみました。  
回答後に設定することができれば共有します。

> **[How to set the address field of a Map element](https://forum.bubble.io/t/how-to-set-the-address-field-of-a-map-element/269397)**
>
> I am planning to use the Map element in Bubble to change markers according to conditions. I have stored the marker image in the option set. However, I cannot select the address field to display. The geographic address was set for CustomState...

---

<div class="post-metadata">

**Author:** ![matsubara.yuki](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@matsubara.yuki](https://www.nocode-faq.com/u/matsubara.yuki)\
**Post date:** [2023 年 6 月 29 日午後 10:50 UTC](https://www.nocode-faq.com/t/topic/3731/4 "2023-06-29T22:50:59Z")

</div>

大変助かりますm(\_\_)m  
ありがとうございます！！
