Problem/Motivation

Openlayers views that set the Format to 'OpenLayers Vector Data Overlay' in the master/default display and don't override this in additional displays through the following errors when the data layer is used as an overlay layer on a map:

Notice: Undefined index: style_options in openlayers_views_openlayers_layers() (line 124 of /openlayers/modules/openlayers_views/openlayers_views.module).
Exception: Projection lacks an authority code. Read http://drupal.org/node/1944074 for hints. in openlayers_get_projection_by_identifier() (line 1066 of /openlayers/openlayers.module).

Proposed resolution

Two options are to either use the default display options if the projection is not set for the current display, or to use the default display options as defaults to complement the current display options.

Temporarily you can override the Format for each display.

Remaining tasks

  • Settle on correct fix
  • Create patch
  • Test
  • Commit
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jantoine’s picture

Status: Active » Needs review
FileSize
1.16 KB

I was able to implement the first option in the proposed resolutions falling back to the default display options if the current display options don't contain a projection. Patch attached!

Pol’s picture

Assigned: Unassigned » Pol

  • Pol committed 311d788 on 7.x-2.x authored by jantoine
    Issue #2378725 by jantoine: Openlayers views data displays through...
Pol’s picture

Status: Needs review » Fixed

Thanks !

Status: Fixed » Closed (fixed)

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