mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
prefer tms sources over wms if duplicates exist with same name
This commit is contained in:
@@ -59,6 +59,9 @@ sources.concat(whitelist).forEach(function(source) {
|
||||
})
|
||||
});
|
||||
if (source.type === 'wms' && supportedProjection === undefined) return;
|
||||
if (source.type === 'wms' && sources.some(function(otherSource) {
|
||||
return otherSource.name === source.name && otherSource.type !== source.type;
|
||||
})) return;
|
||||
|
||||
var im = {
|
||||
id: source.id,
|
||||
|
||||
Reference in New Issue
Block a user