⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Location Coordinates Field with GoogleMaps



Omar Juarez

Omar Juarez
  • profile picture
  • Member

Posted 18 June 2013 - 23:40 PM

Hi, I would like to know what approach should I use to implement 

a field or maybe 2 fields to set coordinates value using a google maps view.

 

So I can set a point in the google maps view and the latitude and longitude values

are set in those 2 fields.

 

I know grocery doesnt do this by default, so probably I will have to add some extra HTML and javascript or some sort to get those values and place them on the fields.

 

 

Thanks, grocery crud is great.


Mas Tiyo

Mas Tiyo
  • profile picture
  • Member

Posted 19 June 2013 - 03:27 AM

Hi Omar, you can just set up 1 field for coordinates, and 1 field for id, you can see my project here http://direktori.kopertis4.or.id, i'm using 1 field for coordinates and using Google Maps API v3, that is very nice library.

 

Thanks.


davidoster

davidoster
  • profile picture
  • Member

Posted 20 June 2013 - 14:53 PM

Hello [member=omar juarez] and welcome to the forums.

Check here: https://github.com/EllisLab/CodeIgniter/wiki/Google-Maps-API-V3-Library

Check also here: http://stackoverflow.com/questions/15197618/how-can-i-load-markers-using-an-ajax-call