Hey folks,
The latest dev version has a WIP field formatter that doesn't quite work. I've spruced it up to a point I think is workable. Attached below is a patch that adds a field formatter with the following settings:
Zoom level
Map size
Map style (satellite, roadmap etc.)
Advanced configuration block
The first 3 are self explanatory, but the last one requires a little explaining. You can choose between block 1 and 2, and the field formatter will take the rest of the settings (link, link target, map type, map api key) from the block. Putting all of those configurations in the field formatter would have been overkill, in my opinion.
Please test and let me know any issues with the patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | addressfield_staticmap-fieldformatter-1600840-1.patch | 6.81 KB | wbobeirne |
Comments
Comment #1
wbobeirne commentedPatch
Comment #2
tirdadc commentedThanks Will, I'll check this out.
Comment #3
tirdadc commentedhttp://drupalcode.org/project/addressfield_staticmap.git/commit/24d8416
There are still some minor issues with the zoom and map type that are selected in the field formatter not carrying over correctly, but since the major stuff is there, I've pushed it anyway. Still needs some additional testing and finalizing.
Comment #4
tirdadc commentedOK, that issue was only happening because I had the original block still on that page. Once it was removed, the settings did go through as expected. Closing this now, thanks!