iOS Question get icon from json and show in map

cloner7801

Active Member
Licensed User
Longtime User
Hi ,
I have a api to get pins locations (lat ,lon) and I have icon field in that json rows and i want to show that icon on pin , how can I download that link and show in pin marker icon ?
 

cloner7801

Active Member
Licensed User
Longtime User
What do you mean with icon field? How is it stored?

Downloading images is trivial with iHttpUtils2.
[B4X] OkHttpUtils2 with Wait For
for example this is my json
B4X:
{"pins":[{"id":"1","lat":"41.637602,","lon":"-77.944543","icon":"http://example.com/1.png"},{"id":"2","lat":"42.637602,","lon":"-78.944543","icon":"http://example.com/2.png"}]}

I parse this and I can add makers but I dont know how can I set that image in json(icon) to marker's image
 
Upvote 0
Top