The ZoomToSource component provides an option to select which sources should be zoomed to. But the component doesn't check those sources, and instead zooms to the source of every layer in the map.
This bug was introduced in this commit: http://cgit.drupalcode.org/openlayers/commit/?h=7.x-3.x&id=7023fd78b55ce...
The following condition was removed which checks to see if the source is in the list of sources:
if (typeof data.opt.source[source.mn] !== 'undefined') {
...
}
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | openlayers_zoomtosource-2626172-1.patch | 1.01 KB | m.stenta |
Comments
Comment #2
m.stentaPatch attached - I'm just wrapping the new code that changed in the commit above with the condition that went missing.
Comment #3
polThanks!