Closed (fixed)
Project:
OpenLayers Plus
Version:
7.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2013 at 08:37 UTC
Updated:
16 Jul 2013 at 14:42 UTC
The legend behavior breaks and throws the following errors when applied to more than one layer.
*Notice: Undefined offset: 0 in openlayers_plus_behavior_legend->render() (line 60 of /var/www/openlayers722/sites/all/modules/openlayers_plus/behaviors/openlayers_plus_behavior_legend.inc).
*Notice: Trying to get property of non-object in openlayers_plus_behavior_legend->render() (line 60 of /var/www/openlayers722/sites/all/modules/openlayers_plus/behaviors/openlayers_plus_behavior_legend.inc).
Comments
Comment #1
davidserene commentedThe legend can now be used with more than one layer in the latest version of openlayers_plus; please clone from git to fix this bug.