Closed (fixed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
Layers
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2010 at 15:34 UTC
Updated:
17 Feb 2011 at 17:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
ronan commentedOops, patched too soon.
That change breaks the default OSM layers which use 'url' instead of 'base_url'. This patch changes those default layers to 'base_url' for consistency. The two names are used variously amongst the layer types so I'm not sure which is preferred or if there is supposed to be a semantic difference between the two (base_url if it's a url template and url if it's a static url maybe?)
There's another possible bug with the default 'OpenStreetMap 426 hybrid overlay' default layer. The declaration uses 'url' but the WMS layer type uses 'base_layer'. I did not include this in the patch since I haven't actually observed this bug, I just noticed the inconsistency while going through he code.
Let me know if you want me to redo the patch using 'url' instead of 'base_url' or if you want me to make the change to the '426 hybrid overlay' layer.
Thanks again
Comment #2
ronan commentedAnd the actual patch :)
Comment #3
markabur commentedGreat, I needed this! :-) Tested and works for my custom XYZ layer.
Comment #4
tmcw commentedGreat catch: committed - http://drupal.org/cvs?commit=435712
Comment #5
strk commentedI noticed 'OpenStreetMap 426 hybrid overlay' is also using 'url' rather than 'base_url' for a 'layer_type' => 'openlayers_layer_type_wms'
Sounds wrong to me, but didn't test.
Comment #6
strk commentedOSM Overlay fixed in http://drupal.org/cvs?commit=440030 (yeah, tested)
Comment #8
alex_b commentedFor convenience, this is a patch rolled against 6.x 2.0-alpha10.