An empty Geofield will still render some output if the field is set to display as a GeoField Map. This presents itself as an empty label. Probably something in the formatter_view hook.
An empty Geofield will still render some output if the field is set to display as a GeoField Map. This presents itself as an empty label. Probably something in the formatter_view hook.
Comments
Comment #1
Brandonian commentedAnd I just fixed it. Much easier to debug than I originally thought... :-)
Comment #3
bcobin commentedCould you describe how you fixed this? In my case, I'm building a directory of county officeholders - some have addresses, some don't. I'm using "Geocode from another field" and using addressfield, displaying as a Geofield map.
Where there's no address, the map still displays, showing a location relatively equidistant between Wichita KS, Joplin MO and Tulsa OK - which I assume is the geographical center of the US. In this case (where nothing is entered into the address field), the map should not display at all.
Does my case relate to your issue? Thanks for any guidance...
Comment #4
henryblyth commentedI have the same issue as @bcobin. And yes, @Brandonian, please explain your fix for the "label still present" issue.
I have raised a separate issue here for what @bcobin and I are experiencing.