App Connect Google Maps Support Product Page

Answered

Dynamic marker icons

Asked 20 Jun 2018 18:20:33
1
has this question
20 Jun 2018 18:20:33 Baub Eis posted:
If I am using dynamic data for my marker locations, how can I change the custom icon based on a field in the DB. So my data would have GPS location, and then have a field for icon type or something like that, so if it shows bicycle in the icon field, it would load the bicycle icon?

Thanks
Baub

Replies

Replied 21 Jun 2018 07:04:30
21 Jun 2018 07:04:30 Teodor Kuduschiev replied:
Hey Baub,
You can add your custom image from the data source:
prntscr.com/jxh1gx
Replied 11 Jul 2018 15:49:05
11 Jul 2018 15:49:05 Baub Eis replied:
Right, I know where to add them. Lets say I have 4 types of map markers, bikes, boats, cars, houses and each one is going to have its own unique marker. So each table will have a field that will say bike, boats, cars or houses. How do I get it to show the unique marker for each one.

ie
If map_marker = "bike" then use bikemapmarker.jpg etc...
Replied 12 Jul 2018 07:05:41
12 Jul 2018 07:05:41 Teodor Kuduschiev replied:
Hey Baub,
That is really easy. Just name your icons as the category is called. So if category is called bike, then the icon is bike.jpg.

This way you can do it like on my screenshot:
Replied 25 Jul 2018 16:24:32
25 Jul 2018 16:24:32 Baub Eis replied:
This worked great! Thanks Teodor!

Reply to this topic