C cloner7801 Active Member Licensed User Longtime User Apr 8, 2018 #1 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 ?
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 ?
Erel B4X founder Staff member Licensed User Longtime User Apr 8, 2018 #2 What do you mean with icon field? How is it stored? Downloading images is trivial with iHttpUtils2. [B4X] OkHttpUtils2 with Wait For Upvote 0
What do you mean with icon field? How is it stored? Downloading images is trivial with iHttpUtils2. [B4X] OkHttpUtils2 with Wait For
C cloner7801 Active Member Licensed User Longtime User Apr 8, 2018 #3 Erel said: What do you mean with icon field? How is it stored? Downloading images is trivial with iHttpUtils2. [B4X] OkHttpUtils2 with Wait For Click to expand... 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
Erel said: What do you mean with icon field? How is it stored? Downloading images is trivial with iHttpUtils2. [B4X] OkHttpUtils2 with Wait For Click to expand... 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
Erel B4X founder Staff member Licensed User Longtime User Apr 8, 2018 #4 Parse json: http://b4x.com:51042/json/index.html Download: [B4X] OkHttpUtils2 with Wait For Upvote 0