Problem/Motivation

When using an Openlayers Geofield on an entity, then the label is not displayed when the field is displayed. On the form, neither the label nor the help text are displayed.
Also the field is displayed when there is no value (for example as a map without a marker).

Proposed resolution

Bring the behaviour of the OL Geofield inline with the behaviour of other fields so that labels and help texts can be displayed, and to hide the empty map by default when the field is empty

Remaining tasks

User interface changes

API changes

Data model changes

Original report by [username]

CommentFileSizeAuthor
#2 2677844-01-formatter_empty.patch948 bytesekes

Comments

ifrik created an issue. See original summary.

ekes’s picture

StatusFileSize
new948 bytes

This fixes empty.

Most formatters only add an $element[] when they loop through $items, so $items empty then no loop, then no $element added.

  • Pol committed 0910fc9 on 7.x-3.x authored by ekes
    Issue #2677844 by ekes: OL geofield does not behave like other fields:...
pol’s picture

Status: Active » Fixed

Thanks @Ekes.

  • Pol committed f30b7b3 on 7.x-3.x authored by ekes
    Issue #2677844 by ekes: OL geofield does not behave like other fields:...

Status: Fixed » Closed (fixed)

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