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

davidserene’s picture

Status: Active » Closed (fixed)

The 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.