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.

Comments

wbobeirne’s picture

Status: Active » Needs review
StatusFileSize
new6.81 KB

Patch

tirdadc’s picture

Assigned: Unassigned » tirdadc

Thanks Will, I'll check this out.

tirdadc’s picture

Status: Needs review » Needs work

http://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.

tirdadc’s picture

Status: Needs work » Fixed

OK, 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!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.