Forum Post: RE: Rollbase selectQuery and Google maps callstack

  • Thread starter Thread starter romain.pennes@foederis.fr
  • Start date Start date
Status
Not open for further replies.
R

romain.pennes@foederis.fr

Guest
Hello, We have done the exact same implementation in our Rollbase apps and encountered the same problems. What we ended up doing (which is one possible solution) is we created a Rollbase "HTTP GET" trigger in our object that calls Google Maps Geocoder, retrieves the result, and saves latitude and longitude into two Rollbase Text Fields that we created. (A faster way to do this, would be to use a Object Script type of trigger and the rbv_api.sendHttpGet function) Then in our client-side JavaScript, we use rbf_selectQuery to retrive latitudes and longitudes, instead of the adresses, and create Google Maps markers, before putting them onto the map. Don't hesitate to contact me should you want some more info or code samples. Cheers, Romain.

Continue reading...
 
Status
Not open for further replies.
Back
Top