fix: Don't name osm layers based on source names.
MODIFY
CHANGELOG.md
CHANGELOG.md
# GeoJS Change Log
+## Version 1.6.2
+
+### Bug Fixes
+
+- Do not name osm layers based on the tile source ([#1154](../../pull/1154))
+
+## Version 1.6.1
+
+### Changes
+
+- Build for older browsers ([#1145](../../issues/1145))
+
## Version 1.6.0
### Changes

MODIFY
src/osmLayer.js
src/osmLayer.js
@@ -44,6 +44,8 @@ var osmLayer = function (arg) {
this.constructor.defaults,
osmLayer.tileSources[this.constructor.defaults.source] || {},
osmLayer.tileSources[arg.source] || {},
+ // don't name the layer based on the source
+ {name: ''},
arg);
tileLayer.call(this, arg);

MODIFY
tests/cases/osmLayer.js
tests/cases/osmLayer.js
@@ -473,6 +473,7 @@ describe('geo.core.osmLayer', function () {
expect(layer.source('osm')).toBe(layer);
expect(layer._options.maxLevel).toBe(19);
expect(layer.source()).toBe('osm');
+ expect(layer.name()).toBe('');
layer = map.createLayer('osm', {renderer: null, url: '/data/tilefancy.png'});
expect(layer.source()).toBe(undefined);
expect(layer.source('stamen-toner-lite')).toBe(layer);

fix: Don't name osm layers based on source names.