I'm not entirely sure if this is possible, or the right way to go about this, however here goes.
I have a front end entry form that members use to create entries. These entries contain location data. I'm looking at using a maps plugin but nothing out there supports front end directly. I'm currently testing Squarebit Maps. (Smartmap is next!)
Now, from checking out the db, Squarebit Maps stores it's field data in the craft_content
table in a format like so:
{"mapLat":"50.89150121867578","mapLng":"-1.4487441291137202","mapZoom":"15","pinLat":"50.89150121867578","pinLng":"-1.4487441291137202","__model__":"Craft\\SquareBitMaps_MapModel"}
I was wondering, if I included a map for users to choose a location within the front end form using something like Geocomplete could I pass through the lat & long in a hidden field to the squarebit field?
Hope that makes sense?
50.89150121867578|-1.4530571212096688|14|50.89150121867578|-1.4487441291137202
straight to the field and it sets the map correctly. This is good, obviously just need to join these values together when the form is submitted. Good to know. Lindsey, I'd be happy to hear any suggestions as to how I would achieve this using Smartmap. I have my copy you sent ready for testing! :)