Setting a style for the "raw" layer type has no effect. This seems to be because the raw layer type Javascript handler doesn't call Drupal.openlayers.getStyleMap().

Comments

davideads’s picture

StatusFileSize
new1.14 KB

Here's a patch which makes styles work for the raw layer type.

tmcw’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

agileware’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new868 bytes

This still doesn't work because the styleMap is added to the options after the layer is created.

Patch fixes it for me.

Status: Needs review » Needs work

The last submitted patch, openlayers-raw_layer_styles-872008-4.patch, failed testing.

zzolo’s picture

Status: Needs work » Closed (duplicate)

This has been fixed: #1123274: Styles in Raw Layers, patch attached
Thanks for the patch, sorry for the delay.