I solved this, and it was actually my misunderstanding of how Timber works.
I was getting the field value like this: post.field
, whereas I should have been using the get_field
method: post.get_field('field')
.
I realise that this is an old thread, but I have a few suggestions for this field type that would make it more powerful:
– Return the zoom level.
– Set the map lat/lng by clicking a point on the map (like this).
– Save and return the map type (map, satellite).
I’d like the returned object to look something like this:
array
'address' => string 'Marco Island, FL, United States'
'lat' => string '25.9397412'
'lng' => string '-81.7075355'
'zoom' => string '12'
'type' => string 'map'
I ended up using web inspector to unhide the element. Hopefully this will be solved in an update soon.