Hi, I upgraded to the latest dev (2012-Aug-28) to fix the wms url length problem (http://drupal.org/node/1512486). It seams that since that, the Base URL field is always empty. It remains empty after saving a new layer and edit it. But it is also empty if you edit an existing default layer like "MapQuest Open Aerial". Fortunately the existing layers still work.

Files: 
CommentFileSizeAuthor
#2 openlayers-fill_layer_options_form-1761768-2.patch3.06 KBfriedjoff
PASSED: [[SimpleTest]]: [MySQL] 238 pass(es).
[ View ]

Comments

Having the same issue

Status:Active» Needs review
StatusFileSize
new3.06 KB
PASSED: [[SimpleTest]]: [MySQL] 238 pass(es).
[ View ]

The options form that is specific to the layer type is always created by a new layer instance and all specific options get lost. This patch creates the options form using the current layer instance.

Title:WMS Base URL field emptyLayer options don't load

Above patch solved the issue for me.

Status:Needs review» Fixed

Thanks, fixed!

Status:Fixed» Needs work

I don't know yet if it's related but, the mapbox layers type are no more working.
It looks like the $data['urls'] from the form are not saved as an array. (see the to_record() method).

I'll set this to active, maybe someone knows how to help.

Status:Needs work» Fixed

This is not related to this, see #814220: Utilize CTools Export UI.

Status:Fixed» Closed (fixed)

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