Layers created with the 'raw' type through hook_openlayers_layers() are missing the drupalID.

I tracked it down to openlayers/includes/layer_types/js/raw.js line 9 - there's a commented out line that looks like it was intended to pass the drupalID. The patch fixes this.

Uncommenting the line options.options.drupalID = options.drupalID; throws the javascript TypeError: "options.options is undefined" (Firefox 3.6.8)

The patch defines options.options before adding the drupalID to it.

CommentFileSizeAuthor
openlayer-raw.patch774 bytestom_o_t

Comments

tmcw’s picture

You might need to cvs up? Pretty sure that this is already covered in -dev.

tmcw’s picture

Or, rather, half of it, commit here: http://drupal.org/cvs?commit=415936

tom_o_t’s picture

Yeah - I'll update and reroll patch.

tom_o_t’s picture

Status: Needs review » Closed (fixed)

Confirming that commit #415936 fixes this issue. Thanks!