Update to iD v1.3.2
authorJohn Firebaugh <john.firebaugh@gmail.com>
Fri, 15 Nov 2013 02:07:33 +0000 (18:07 -0800)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Fri, 15 Nov 2013 02:07:45 +0000 (18:07 -0800)
48 files changed:
vendor/assets/iD/iD.css.erb
vendor/assets/iD/iD.js
vendor/assets/iD/iD/img/maki-sprite.png
vendor/assets/iD/iD/img/sprite.svg
vendor/assets/iD/iD/locales/af.json
vendor/assets/iD/iD/locales/ar.json
vendor/assets/iD/iD/locales/ast.json
vendor/assets/iD/iD/locales/bg-BG.json
vendor/assets/iD/iD/locales/bn.json
vendor/assets/iD/iD/locales/bs.json
vendor/assets/iD/iD/locales/ca.json
vendor/assets/iD/iD/locales/cs.json
vendor/assets/iD/iD/locales/da.json
vendor/assets/iD/iD/locales/de.json
vendor/assets/iD/iD/locales/el.json
vendor/assets/iD/iD/locales/en-GB.json
vendor/assets/iD/iD/locales/en.json
vendor/assets/iD/iD/locales/es.json
vendor/assets/iD/iD/locales/et.json
vendor/assets/iD/iD/locales/fi.json
vendor/assets/iD/iD/locales/fr.json
vendor/assets/iD/iD/locales/hr.json
vendor/assets/iD/iD/locales/hu.json
vendor/assets/iD/iD/locales/id.json
vendor/assets/iD/iD/locales/is.json
vendor/assets/iD/iD/locales/it.json
vendor/assets/iD/iD/locales/ja.json
vendor/assets/iD/iD/locales/ko.json
vendor/assets/iD/iD/locales/lt.json
vendor/assets/iD/iD/locales/lv.json
vendor/assets/iD/iD/locales/nl.json
vendor/assets/iD/iD/locales/no.json
vendor/assets/iD/iD/locales/pl.json
vendor/assets/iD/iD/locales/pt-BR.json
vendor/assets/iD/iD/locales/pt.json
vendor/assets/iD/iD/locales/ru.json
vendor/assets/iD/iD/locales/sk.json
vendor/assets/iD/iD/locales/sl.json
vendor/assets/iD/iD/locales/sr.json
vendor/assets/iD/iD/locales/sv.json
vendor/assets/iD/iD/locales/te.json
vendor/assets/iD/iD/locales/tr.json
vendor/assets/iD/iD/locales/uk.json
vendor/assets/iD/iD/locales/vi.json
vendor/assets/iD/iD/locales/yue.json [new file with mode: 0644]
vendor/assets/iD/iD/locales/zh-CN.json
vendor/assets/iD/iD/locales/zh-TW.json
vendor/assets/iD/iD/locales/zh.json

index 206ceb621d03c8f23923d3b80402baff5a2c2555..0f7ec70f17aa49c10c30ac38dc00b7b81ea730f6 100644 (file)
@@ -572,13 +572,13 @@ path.stroke.tag-highway {
     stroke-width:8;
 }
 
-svg[data-zoom="16"] path.shadow.tag-highway {
+.low-zoom path.shadow.tag-highway {
     stroke-width:12;
 }
-svg[data-zoom="16"] path.casing.tag-highway {
+.low-zoom path.casing.tag-highway {
     stroke-width:6;
 }
-svg[data-zoom="16"] path.stroke.tag-highway {
+.low-zoom path.stroke.tag-highway {
     stroke-width:4;
 }
 
@@ -691,10 +691,10 @@ path.casing.tag-highway-service {
     stroke:#666;
     stroke-width:6;
 }
-svg[data-zoom="16"] path.stroke.tag-highway-service {
+.low-zoom path.stroke.tag-highway-service {
     stroke-width:2;
 }
-svg[data-zoom="16"] path.casing.tag-highway-service {
+.low-zoom path.casing.tag-highway-service {
     stroke-width:4;
 }
 
@@ -708,10 +708,10 @@ path.casing.tag-highway-track {
     stroke-linecap: butt;
     stroke-dasharray: 6, 6;
 }
-svg[data-zoom="16"] path.stroke.tag-highway-track {
+.low-zoom path.stroke.tag-highway-track {
     stroke-width:2;
 }
-svg[data-zoom="16"] path.casing.tag-highway-track {
+.low-zoom path.casing.tag-highway-track {
     stroke-width:4;
 }
 
@@ -740,14 +740,14 @@ path.casing.tag-highway-bridleway {
     stroke: #fff;
 }
 
-svg[data-zoom="16"] path.stroke.tag-highway-footway,
-svg[data-zoom="16"] path.stroke.tag-highway-cycleway,
-svg[data-zoom="16"] path.stroke.tag-highway-bridleway {
+.low-zoom path.stroke.tag-highway-footway,
+.low-zoom path.stroke.tag-highway-cycleway,
+.low-zoom path.stroke.tag-highway-bridleway {
     stroke-width: 2;
 }
-svg[data-zoom="16"] path.casing.tag-highway-footway,
-svg[data-zoom="16"] path.casing.tag-highway-cycleway,
-svg[data-zoom="16"] path.casing.tag-highway-bridleway {
+.low-zoom path.casing.tag-highway-footway,
+.low-zoom path.casing.tag-highway-cycleway,
+.low-zoom path.casing.tag-highway-bridleway {
     stroke-width: 4;
 }
 
@@ -862,8 +862,8 @@ path.casing.tag-highway-construction {
 
 /* construction */
 
-svg[data-zoom="16"] path.stroke.tag-highway-construction,
-svg[data-zoom="16"] path.casing.tag-highway-construction {
+.low-zoom path.stroke.tag-highway-construction,
+.low-zoom path.casing.tag-highway-construction {
     stroke-linecap: butt;
     stroke-dasharray: 5, 5;
 }
@@ -926,13 +926,6 @@ path.casing.tag-waterway-river {
     stroke-width: 6;
 }
 
-svg[data-zoom="16"] path.stroke.tag-waterway-river {
-    stroke-width: 4;
-}
-svg[data-zoom="16"] path.casing.tag-waterway-river {
-    stroke-width: 6;
-}
-
 path.stroke.tag-waterway-ditch {
     stroke: #6591ff;
     stroke-width: 1;
@@ -1804,7 +1797,7 @@ button[disabled] .icon.nearby     { background-position: -340px -40px;}
 .icon.line.created   { background-position: -320px -100px;}
 .icon.area.created   { background-position: -340px -100px;}
 
-.icon.point.modified  { background-position: -24px 0; }
+.icon.point.modified  { background-position: -22px 0; }
 
 .icon.modified { opacity: .5; }
 
@@ -3051,21 +3044,11 @@ img.wiki-image {
     background: rgba(0, 0, 0, .8);
 }
 
+.map-control > button.active,
 .map-control > button.active:hover {
     background: #7092ff;
 }
 
-.map-overlay {
-    z-index: -1;
-    right: 75%;
-    max-width: 260px;
-    min-width: 210px;
-    position: fixed;
-    left: 30px;
-    display: block;
-    padding: 10px 10px 0 10px;
-}
-
 /* Zoomer */
 
 .zoombuttons button.zoom-in {
@@ -3078,22 +3061,12 @@ img.wiki-image {
     border-radius: 4px 0 0 0;
 }
 
-.background-control button.active {
-    border-radius: 0;
-}
-
 .background-control {
     position: relative;
 }
 
-.background-control .map-overlay {
-    position: absolute;
-    top: 0;
-}
-
 .nudge-container {
-    border-top: 1px solid #CCC;
-    margin: 0 -10px;
+    border: 1px solid #CCC;
 }
 
 .background-control .adjustments button:last-child {
@@ -3184,7 +3157,6 @@ img.wiki-image {
     float: left;
     display: block;
     width:20%;
-    border-radius: 0;
     border-right: 1px solid #CCC;
     position: relative;
 }
@@ -3228,8 +3200,8 @@ img.wiki-image {
     height:20px;
     width:82px;
     position: absolute;
-    right: 10px;
-    top: 10px;
+    right: 50px;
+    top: 20px;
     border: 1px solid #ccc;
 }
 
@@ -3291,19 +3263,22 @@ img.wiki-image {
     border-radius: 0 0 0 4px;
 }
 
-/* Help */
-
-.help-control button {
-    border-radius: 0 0 0 4px;
-}
-
-.help-wrap {
+.map-overlay.content {
     position: fixed;
     top:60px;
     bottom: 30px;
     padding: 20px 50px 20px 20px;
     right: 0;
-    overflow-y: scroll;
+    overflow: auto;
+}
+
+.background-control .map-overlay {
+    z-index: -1;
+}
+/* Help */
+
+.help-control button {
+    border-radius: 0 0 0 4px;
 }
 
 .help-wrap p {
@@ -3927,23 +3902,28 @@ img.wiki-image {
 
 /* Exceptions for tooltip layouts */
 
-/* make tooltips in editor pane dark */
+/* make tooltips in panels dark */
+.map-overlay .tooltip.top .tooltip-arrow,
 .entity-editor-pane .tooltip.top .tooltip-arrow {
     border-top-color: #000;
 }
 
+.map-overlay .tooltip.bottom .tooltip-arrow,
 .entity-editor-pane .tooltip.bottom .tooltip-arrow {
     border-bottom-color: #000;
 }
 
+.map-overlay .tooltip.left .tooltip-arrow,
 .entity-editor-pane .tooltip.left .tooltip-arrow {
     border-left-color: #000;
 }
 
+.map-overlay .tooltip.right .tooltip-arrow,
 .entity-editor-pane .tooltip.right .tooltip-arrow {
     border-right-color: #000;
 }
 
+.map-overlay .tooltip-inner,
 .entity-editor-pane .tooltip-inner {
     background: #000;
     color: #ccc;
@@ -4164,8 +4144,8 @@ img.wiki-image {
 .feature-airport{background-position:-54px -72px;}
 .feature-heliport{background-position:-108px -72px;}
 .feature-rail{background-position:-162px -72px;}
-.feature-rail-underground{background-position:-216px -72px;}
-.feature-rail-above{background-position:-0px -96px;}
+.feature-rail-metro{background-position:-216px -72px;}
+.feature-rail-light{background-position:-0px -96px;}
 .feature-bus{background-position:-54px -96px;}
 .feature-fuel{background-position:-108px -96px;}
 .feature-parking{background-position:-162px -96px;}
@@ -4243,9 +4223,18 @@ img.wiki-image {
 .feature-dog-park{background-position:-0px -456px;}
 .feature-lighthouse{background-position:-54px -456px;}
 .feature-clothing-store{background-position:-108px -456px;}
-.feature-london-underground{background-position:-162px -456px;}
-.feature-minefield{background-position:-216px -456px;}
-.feature-camera{background-position:-0px -480px;}
+.feature-polling-place{background-position:-162px -456px;}
+.feature-playground{background-position:-216px -456px;}
+.feature-entrance{background-position:-0px -480px;}
+.feature-heart{background-position:-54px -480px;}
+.feature-london-underground{background-position:-108px -480px;}
+.feature-minefield{background-position:-162px -480px;}
+.feature-rail-underground{background-position:-216px -480px;}
+.feature-rail-above{background-position:-0px -504px;}
+.feature-camera{background-position:-54px -504px;}
+.feature-laundry{background-position:-108px -504px;}
+.feature-car{background-position:-162px -504px;}
+.feature-suitcase{background-position:-216px -504px;}
 .preset-icon-line.feature-highway-motorway{background-position:-20px -25px;}
 .preset-icon-line.feature-highway-trunk{background-position:-80px -25px;}
 .preset-icon-line.feature-highway-primary{background-position:-140px -25px;}
index 9fe1e16e2eb7230dadde5ce08744f859ad28b88f..a19dc713e3f0b0d9c02d1bedb61c04e3a948b267 100644 (file)
@@ -15693,7 +15693,7 @@ window.iD = function () {
     return d3.rebind(context, dispatch, 'on');
 };
 
-iD.version = '1.3.1';
+iD.version = '1.3.2';
 
 (function() {
     var detected = {};
@@ -16116,6 +16116,34 @@ iD.util.SessionMutex = function(name) {
 
     return mutex;
 };
+iD.util.SuggestNames = function(preset, suggestions) {
+    preset = preset.id.split('/', 2);
+    var k = preset[0],
+        v = preset[1];
+
+    return function(value, callback) {
+        var result = [];
+        if (value && value.length > 2) {
+            if (suggestions[k] && suggestions[k][v]) {
+                for (var sugg in suggestions[k][v]) {
+                    var dist = iD.util.editDistance(value, sugg.substring(0, value.length));
+                    if (dist < 3) {
+                        result.push({
+                            title: sugg,
+                            value: sugg,
+                            dist: dist
+                        });
+                    }
+                }
+            }
+            result.sort(function(a, b) {
+                return a.dist - b.dist;
+            });
+        }
+        result = result.slice(0,3);
+        callback(result);
+    };
+};
 iD.geo = {};
 
 iD.geo.roundCoords = function(c) {
@@ -16961,7 +16989,7 @@ iD.actions.Disconnect = function(nodeId, newNodeId) {
         replacements.forEach(function(replacement) {
             var newNode = iD.Node({id: newNodeId, loc: node.loc, tags: node.tags});
             graph = graph.replace(newNode);
-            graph = graph.replace(replacement.way.updateNode(newNode.id, replacement.index));
+            graph = graph.replace(graph.entity(replacement.wayID).updateNode(newNode.id, replacement.index));
         });
 
         return graph;
@@ -16980,7 +17008,7 @@ iD.actions.Disconnect = function(nodeId, newNodeId) {
 
             parent.nodes.forEach(function(waynode, index) {
                 if (waynode === nodeId) {
-                    candidates.push({way: parent, index: index});
+                    candidates.push({wayID: parent.id, index: index});
                 }
             });
         });
@@ -20329,7 +20357,7 @@ iD.Connection = function() {
             url + '/api/0.6/' + type + '/' + osmID + (type !== 'node' ? '/full' : ''),
             function(err, entities) {
                 event.load(err, {data: entities});
-                if (callback) callback(err, entities && entities[id]);
+                if (callback) callback(err, entities && _.find(entities, function(e) { return e.id === id; }));
             });
     };
 
@@ -20414,15 +20442,13 @@ iD.Connection = function() {
 
         var root = dom.childNodes[0],
             children = root.childNodes,
-            entities = {};
+            entities = [];
 
-        var i, o, l;
-        for (i = 0, l = children.length; i < l; i++) {
+        for (var i = 0, l = children.length; i < l; i++) {
             var child = children[i],
                 parser = parsers[child.nodeName];
             if (parser) {
-                o = parser(child);
-                entities[o.id] = o;
+                entities.push(parser(child));
             }
         }
 
@@ -20759,14 +20785,6 @@ iD.Difference = function(base, head) {
         return result;
     };
 
-    difference.addParents = function(entities) {
-        for (var i in entities) {
-            addParents(head.parentWays(entities[i]), entities);
-            addParents(head.parentRelations(entities[i]), entities);
-        }
-        return entities;
-    };
-
     difference.summary = function() {
         var relevant = {};
 
@@ -20962,12 +20980,6 @@ iD.Entity.prototype = {
             resolver.parentRelations(this).length > 0;
     },
 
-    area: function(resolver) {
-        return resolver.transient(this, 'area', function() {
-            return d3.geo.area(this.asGeoJSON(resolver, true));
-        });
-    },
-
     hasInterestingTags: function() {
         return _.keys(this.tags).some(function(key) {
             return key !== 'attribution' &&
@@ -21006,17 +21018,10 @@ iD.Graph = function(other, mutable) {
         this.inherited = true;
 
     } else {
-        if (Array.isArray(other)) {
-            var entities = {};
-            for (var i = 0; i < other.length; i++) {
-                entities[other[i].id] = other[i];
-            }
-            other = entities;
-        }
         this.entities = Object.create({});
         this._parentWays = Object.create({});
         this._parentRels = Object.create({});
-        this.rebase(other || {});
+        this.rebase(other || []);
     }
 
     this.transients = {};
@@ -21105,11 +21110,12 @@ iD.Graph.prototype = {
 
         // Merging of data only needed if graph is the base graph
         if (!this.inherited) {
-            for (i in entities) {
-                if (!base.entities[i]) {
-                    base.entities[i] = entities[i];
-                    this._updateCalculated(undefined, entities[i],
-                            base.parentWays, base.parentRels);
+            for (i = 0; i < entities.length; i++) {
+                var entity = entities[i];
+                if (!base.entities[entity.id]) {
+                    base.entities[entity.id] = entity;
+                    this._updateCalculated(undefined, entity,
+                        base.parentWays, base.parentRels);
                 }
             }
         }
@@ -21239,24 +21245,6 @@ iD.Graph.prototype = {
         return this;
     },
 
-    hasAllChildren: function(entity) {
-        // we're only checking changed entities, since we assume fetched data
-        // must have all children present
-        var i;
-        if (this.entities.hasOwnProperty(entity.id)) {
-            if (entity.type === 'way') {
-                for (i = 0; i < entity.nodes.length; i++) {
-                    if (!this.entities[entity.nodes[i]]) return false;
-                }
-            } else if (entity.type === 'relation') {
-                for (i = 0; i < entity.members.length; i++) {
-                    if (!this.entities[entity.members[i].id]) return false;
-                }
-            }
-        }
-        return true;
-    },
-
     // Obliterates any existing entities
     load: function(entities) {
         var base = this.base();
@@ -21314,17 +21302,11 @@ iD.History = function(context) {
         },
 
         merge: function(entities, extent) {
-
-            var base = stack[0].graph.base(),
-                newentities = Object.keys(entities).filter(function(i) {
-                    return !base.entities[i];
-                });
-
             for (var i = 0; i < stack.length; i++) {
                 stack[i].graph.rebase(entities);
             }
 
-            tree.rebase(newentities);
+            tree.rebase(entities);
 
             dispatch.change(undefined, extent);
         },
@@ -21806,6 +21788,12 @@ _.extend(iD.Relation.prototype, {
         });
     },
 
+    area: function(resolver) {
+        return resolver.transient(this, 'area', function() {
+            return d3.geo.area(this.asGeoJSON(resolver));
+        });
+    },
+
     isMultipolygon: function() {
         return this.tags.type === 'multipolygon';
     },
@@ -21882,14 +21870,9 @@ _.extend(iD.Relation.prototype, {
         return result;
     }
 });
-iD.Tree = function(graph) {
-
+iD.Tree = function(head) {
     var rtree = rbush(),
-        head = graph,
-        queuedCreated = [],
-        queuedModified = [],
-        rectangles = {},
-        rebased;
+        rectangles = {};
 
     function extentRectangle(extent) {
         return [
@@ -21907,90 +21890,69 @@ iD.Tree = function(graph) {
         return rect;
     }
 
-    function remove(entity) {
-        rtree.remove(rectangles[entity.id]);
-        delete rectangles[entity.id];
-    }
-
-    function bulkInsert(entities) {
-        for (var i = 0, rects = []; i < entities.length; i++) {
-            rects.push(entityRectangle(entities[i]));
-        }
-        rtree.load(rects);
-    }
-
-    function bulkReinsert(entities) {
-        entities.forEach(remove);
-        bulkInsert(entities);
-    }
-
-    var tree = {
-
-        rebase: function(entities) {
-            for (var i = 0, inserted = []; i < entities.length; i++) {
-                if (!graph.entities.hasOwnProperty(entities[i])) {
-                    inserted.push(graph.entity(entities[i]));
-                }
+    function updateParents(entity, insertions) {
+        head.parentWays(entity).forEach(function(parent) {
+            if (rectangles[parent.id]) {
+                rtree.remove(rectangles[parent.id]);
+                insertions.push(entityRectangle(parent));
             }
-            bulkInsert(inserted);
-            rebased = true;
-            return tree;
-        },
+        });
 
-        intersects: function(extent, g) {
+        head.parentRelations(entity).forEach(function(parent) {
+            if (rectangles[parent.id]) {
+                rtree.remove(rectangles[parent.id]);
+                insertions.push(entityRectangle(parent));
+            }
+            updateParents(parent, insertions);
+        });
+    }
 
-            head = g;
+    var tree = {};
 
-            if (graph !== head || rebased) {
-                var diff = iD.Difference(graph, head),
-                    modified = {};
+    tree.rebase = function(entities) {
+        var insertions = [];
 
-                diff.modified().forEach(function(d) {
-                    var loc = graph.entities[d.id].loc;
-                    if (!loc || loc[0] !== d.loc[0] || loc[1] !== d.loc[1]) {
-                        modified[d.id] = d;
-                    }
-                });
+        entities.forEach(function(entity) {
+            if (head.entities.hasOwnProperty(entity.id) || rectangles[entity.id])
+                return;
 
-                var created = diff.created().concat(queuedCreated);
-                modified = d3.values(diff.addParents(modified))
-                    // some parents might be created, not modified
-                    .filter(function(d) { return !!graph.hasEntity(d.id); })
-                    .concat(queuedModified);
-                queuedCreated = [];
-                queuedModified = [];
+            insertions.push(entityRectangle(entity));
+            updateParents(entity, insertions);
+        });
 
-                var reinserted = [],
-                    inserted = [];
+        rtree.load(insertions);
 
-                modified.forEach(function(d) {
-                    if (head.hasAllChildren(d)) reinserted.push(d);
-                    else queuedModified.push(d);
-                });
+        return tree;
+    };
 
-                created.forEach(function(d) {
-                    if (head.hasAllChildren(d)) inserted.push(d);
-                    else queuedCreated.push(d);
-                });
+    tree.intersects = function(extent, graph) {
+        if (graph !== head) {
+            var diff = iD.Difference(head, graph),
+                insertions = [];
 
-                bulkReinsert(reinserted);
-                bulkInsert(inserted);
+            head = graph;
 
-                diff.deleted().forEach(remove);
+            diff.deleted().forEach(function(entity) {
+                rtree.remove(rectangles[entity.id]);
+                delete rectangles[entity.id];
+            });
 
-                graph = head;
-                rebased = false;
-            }
+            diff.modified().forEach(function(entity) {
+                rtree.remove(rectangles[entity.id]);
+                insertions.push(entityRectangle(entity));
+                updateParents(entity, insertions);
+            });
 
-            return rtree.search(extentRectangle(extent)).map(function (rect) {
-                return graph.entities[rect.id];
+            diff.created().forEach(function(entity) {
+                insertions.push(entityRectangle(entity));
             });
-        },
 
-        graph: function() {
-            return graph;
+            rtree.load(insertions);
         }
 
+        return rtree.search(extentRectangle(extent)).map(function(rect) {
+            return head.entity(rect.id);
+        });
     };
 
     return tree;
@@ -22012,7 +21974,12 @@ _.extend(iD.Way.prototype, {
     extent: function(resolver) {
         return resolver.transient(this, 'extent', function() {
             return this.nodes.reduce(function(extent, id) {
-                return extent.extend(resolver.entity(id).extent(resolver));
+                var node = resolver.hasEntity(id);
+                if (node) {
+                    return extent.extend(node.extent());
+                } else {
+                    return extent;
+                }
             }, iD.geo.Extent());
         });
     },
@@ -22138,34 +22105,47 @@ _.extend(iD.Way.prototype, {
         return r;
     },
 
-    asGeoJSON: function(resolver, polygon) {
+    asGeoJSON: function(resolver) {
         return resolver.transient(this, 'GeoJSON', function() {
-            var nodes = resolver.childNodes(this);
-
-            if (this.isArea() && polygon && nodes.length >= 4) {
-                if (!this.isClosed()) {
-                    nodes = nodes.concat([nodes[0]]);
-                }
-
-                var json = {
+            var coordinates = _.pluck(resolver.childNodes(this), 'loc');
+            if (this.isArea() && this.isClosed()) {
+                return {
                     type: 'Polygon',
-                    coordinates: [_.pluck(nodes, 'loc')]
+                    coordinates: [coordinates]
                 };
-
-                // Heuristic for detecting counterclockwise winding order. Assumes
-                // that OpenStreetMap polygons are not hemisphere-spanning.
-                if (d3.geo.area(json) > 2 * Math.PI) {
-                    json.coordinates[0] = json.coordinates[0].reverse();
-                }
-
-                return json;
             } else {
                 return {
                     type: 'LineString',
-                    coordinates: _.pluck(nodes, 'loc')
+                    coordinates: coordinates
                 };
             }
         });
+    },
+
+    area: function(resolver) {
+        return resolver.transient(this, 'area', function() {
+            var nodes = resolver.childNodes(this);
+
+            if (!this.isClosed() && nodes.length) {
+                nodes = nodes.concat([nodes[0]]);
+            }
+
+            var json = {
+                type: 'Polygon',
+                coordinates: [_.pluck(nodes, 'loc')]
+            };
+
+            var area = d3.geo.area(json);
+
+            // Heuristic for detecting counterclockwise winding order. Assumes
+            // that OpenStreetMap polygons are not hemisphere-spanning.
+            if (d3.geo.area(json) > 2 * Math.PI) {
+                json.coordinates[0] = json.coordinates[0].reverse();
+                area = d3.geo.area(json);
+            }
+
+            return isNaN(area) ? 0 : area;
+        });
     }
 });
 
@@ -22224,7 +22204,7 @@ iD.Background = function(context) {
             q = iD.util.stringQs(location.hash.substring(1));
 
         var id = b.id;
-        if (!id && b.name === 'Custom') {
+        if (id === 'custom') {
             id = 'custom:' + b.template;
         }
 
@@ -22242,17 +22222,12 @@ iD.Background = function(context) {
 
         location.replace('#' + iD.util.qsString(q, true));
 
-        var imageryUsed = [];
-        if (b.name === 'Custom') {
-            imageryUsed.push('Custom (' + b.template + ')');
-        } else {
-            imageryUsed.push(b.id || b.name);
-        }
+        var imageryUsed = [b.imageryUsed()];
 
         overlayLayers.forEach(function (d) {
             var source = d.source();
             if (!source.isLocatorOverlay()) {
-                imageryUsed.push(source.id || source.name);
+                imageryUsed.push(source.imageryUsed());
             }
         });
 
@@ -22281,7 +22256,7 @@ iD.Background = function(context) {
         gpx.call(gpxLayer);
 
         var overlays = selection.selectAll('.overlay-layer')
-            .data(overlayLayers, function(d) { return d.source().name; });
+            .data(overlayLayers, function(d) { return d.source().name(); });
 
         overlays.enter().insert('div', '.layer-data')
             .attr('class', 'layer-layer overlay-layer');
@@ -22362,7 +22337,7 @@ iD.Background = function(context) {
 
     background.showsLayer = function(d) {
         return d === baseLayer.source() ||
-            (d.name === 'Custom' && baseLayer.source().name === 'Custom') ||
+            (d.id === 'custom' && baseLayer.source().id === 'custom') ||
             overlayLayers.some(function(l) { return l.source() === d; });
     };
 
@@ -22410,10 +22385,7 @@ iD.Background = function(context) {
         chosen = q.background || q.layer;
 
     if (chosen && chosen.indexOf('custom:') === 0) {
-        background.baseLayerSource(iD.BackgroundSource({
-            template: chosen.replace(/^custom:/, ''),
-            name: 'Custom'
-        }));
+        background.baseLayerSource(iD.BackgroundSource.Custom(chosen.replace(/^custom:/, '')));
     } else {
         background.baseLayerSource(findSource(chosen) || findSource('Bing'));
     }
@@ -22436,7 +22408,8 @@ iD.Background = function(context) {
 };
 iD.BackgroundSource = function(data) {
     var source = _.clone(data),
-        offset = [0, 0];
+        offset = [0, 0],
+        name = source.name;
 
     source.scaleExtent = data.scaleExtent || [0, 20];
 
@@ -22452,6 +22425,14 @@ iD.BackgroundSource = function(data) {
         return source;
     };
 
+    source.name = function() {
+        return name;
+    };
+
+    source.imageryUsed = function() {
+        return source.id || name;
+    };
+
     source.url = function(coord) {
         return data.template
             .replace('{x}', coord[0])
@@ -22478,7 +22459,7 @@ iD.BackgroundSource = function(data) {
     };
 
     source.isLocatorOverlay = function() {
-        return source.name === 'Locator Overlay';
+        return name === 'Locator Overlay';
     };
 
     source.copyrightNotices = function() {};
@@ -22550,7 +22531,31 @@ iD.BackgroundSource.Bing = function(data, dispatch) {
 };
 
 iD.BackgroundSource.None = function() {
-    return iD.BackgroundSource({ name: t('background.none'), id: 'None', template: '' });
+    var source = iD.BackgroundSource({id: 'none', template: ''});
+
+    source.name = function() {
+        return t('background.none');
+    };
+
+    source.imageryUsed = function() {
+        return 'None';
+    };
+
+    return source;
+};
+
+iD.BackgroundSource.Custom = function(template) {
+    var source = iD.BackgroundSource({id: 'custom', template: template});
+
+    source.name = function() {
+        return t('background.custom');
+    };
+
+    source.imageryUsed = function() {
+        return 'Custom (' + template + ')';
+    };
+
+    return source;
 };
 iD.GpxLayer = function(context) {
     var projection,
@@ -22869,7 +22874,8 @@ iD.Map = function(context) {
 
         var zoom = String(~~map.zoom());
         if (surface.attr('data-zoom') !== zoom) {
-            surface.attr('data-zoom', zoom);
+            surface.attr('data-zoom', zoom)
+                .classed('low-zoom', zoom <= 16);
         }
 
         if (!difference) {
@@ -23274,7 +23280,7 @@ iD.svg = {
             if (entity.id in cache) {
                 return cache[entity.id];
             } else {
-                return cache[entity.id] = path(entity.asGeoJSON(graph, polygon)); // jshint ignore:line
+                return cache[entity.id] = path(entity.asGeoJSON(graph)); // jshint ignore:line
             }
         };
     },
@@ -24585,7 +24591,7 @@ iD.ui = function(context) {
 
         content.append('div')
             .style('display', 'none')
-            .attr('class', 'help-wrap fillL col5 content');
+            .attr('class', 'help-wrap map-overlay fillL col5 content');
 
         var controls = bar.append('div')
             .attr('class', 'map-controls');
@@ -24779,7 +24785,7 @@ iD.ui.Attribution = function(context) {
             .attr('class', klass);
 
         var background = div.selectAll('.attribution')
-            .data(data, function(d) { return d.name; });
+            .data(data, function(d) { return d.name(); });
 
         background.enter()
             .append('span')
@@ -24791,7 +24797,7 @@ iD.ui.Attribution = function(context) {
                     return;
                 }
 
-                var source = d.terms_text || d.id || d.name;
+                var source = d.terms_text || d.id || d.name();
 
                 if (d.logo) {
                     source = '<img class="source-image" src="' + context.imagePath(d.logo) + '">';
@@ -24858,6 +24864,9 @@ iD.ui.Background = function(context) {
         opacityDefault = (context.storage('background-opacity') !== null) ?
             (+context.storage('background-opacity')) : 0.5;
 
+    // Can be 0 from <1.3.0 use or due to issue #1923.
+    if (opacityDefault === 0) opacityDefault = 0.5;
+
     function background(selection) {
 
         function setOpacity(d) {
@@ -24898,10 +24907,7 @@ iD.ui.Background = function(context) {
                 selectLayer();
                 return;
             }
-            context.background().baseLayerSource(iD.BackgroundSource({
-                template: template,
-                name: 'Custom'
-            }));
+            context.background().baseLayerSource(iD.BackgroundSource.Custom(template));
             selectLayer();
         }
 
@@ -24922,7 +24928,7 @@ iD.ui.Background = function(context) {
                 .filter(filter);
 
             var layerLinks = layerList.selectAll('li.layer')
-                .data(sources, function(d) { return d.name; });
+                .data(sources, function(d) { return d.name(); });
 
             var enter = layerLinks.enter()
                 .insert('li', '.custom_layer')
@@ -24932,7 +24938,7 @@ iD.ui.Background = function(context) {
             enter.filter(function(d) { return d.description; })
                 .call(bootstrap.tooltip()
                     .title(function(d) { return d.description; })
-                    .placement('left'));
+                    .placement('top'));
 
             var label = enter.append('label');
 
@@ -24942,7 +24948,7 @@ iD.ui.Background = function(context) {
                 .on('change', change);
 
             label.append('span')
-                .text(function(d) { return d.name; });
+                .text(function(d) { return d.name(); });
 
             layerLinks.exit()
                 .remove();
@@ -24988,7 +24994,7 @@ iD.ui.Background = function(context) {
         }
 
         var content = selection.append('div')
-                .attr('class', 'fillL map-overlay content hide'),
+                .attr('class', 'fillL map-overlay col3 content hide'),
             tooltip = bootstrap.tooltip()
                 .placement('left')
                 .html(true)
@@ -25012,16 +25018,16 @@ iD.ui.Background = function(context) {
                         return d3.event.stopPropagation();
                     });
                     content.style('display', 'block')
-                        .style('left', '0px')
+                        .style('right', '-300px')
                         .transition()
                         .duration(200)
-                        .style('left', '-260px');
+                        .style('right', '0px');
                 } else {
                     content.style('display', 'block')
-                        .style('left', '-260px')
+                        .style('right', '0px')
                         .transition()
                         .duration(200)
-                        .style('left', '0px')
+                        .style('right', '-300px')
                         .each('end', function() {
                             d3.select(this).style('display', 'none');
                         });
@@ -25058,7 +25064,7 @@ iD.ui.Background = function(context) {
             .on('click.set-opacity', setOpacity)
             .html('<div class="select-box"></div>')
             .call(bootstrap.tooltip()
-                .placement('top'))
+                .placement('left'))
             .append('div')
             .attr('class', 'opacity')
             .style('opacity', String);
@@ -25068,7 +25074,7 @@ iD.ui.Background = function(context) {
 
         var custom = backgroundList.append('li')
             .attr('class', 'custom_layer')
-            .datum({name: 'Custom'});
+            .datum(iD.BackgroundSource.Custom());
 
         var label = custom.append('label');
 
@@ -25121,7 +25127,7 @@ iD.ui.Background = function(context) {
         label = gpxLayerItem.append('label')
             .call(bootstrap.tooltip()
                 .title(t('gpx.drag_drop'))
-                .placement('left'));
+                .placement('top'));
 
         label.append('input')
             .attr('type', 'checkbox')
@@ -25166,10 +25172,6 @@ iD.ui.Background = function(context) {
         resetButton.append('div')
             .attr('class', 'icon undo');
 
-        resetButton.call(bootstrap.tooltip()
-            .title(t('background.reset'))
-            .placement('bottom'));
-
         context.map()
             .on('move.background-update', _.debounce(update, 1000));
         update();
@@ -26143,9 +26145,6 @@ iD.ui.Help = function(context) {
             return d3.event.stopPropagation();
         });
 
-        selection.on('mousedown.help-inside', function() {
-            return d3.event.stopPropagation();
-        });
     }
 
     return help;
@@ -26270,7 +26269,7 @@ iD.ui.intro = function(context) {
         for (var key in introGraph) {
             introGraph[key] = iD.Entity(introGraph[key]);
         }
-        context.history().merge(iD.Graph().load(introGraph).entities);
+        context.history().merge(d3.values(iD.Graph().load(introGraph).entities));
         context.background().bing();
 
         // Block saving
@@ -26306,7 +26305,7 @@ iD.ui.intro = function(context) {
             navwrap.remove();
             d3.select('.background-layer').style('opacity', opacity);
             context.connection().toggle(true).flush().loadedTiles(loadedTiles);
-            context.history().reset().merge(baseEntities);
+            context.history().reset().merge(d3.values(baseEntities));
             context.background().baseLayerSource(background);
             if (history) context.history().fromJSON(history);
             window.location.replace(hash);
@@ -26655,11 +26654,7 @@ iD.ui.preset = function(context) {
         field.input = iD.ui.preset[field.type](field, context)
             .on('change', event.change);
 
-        if (field.type === 'address' ||
-            field.type === 'wikipedia' ||
-            field.type === 'maxspeed') {
-            field.input.entity(entity);
-        }
+        if (field.input.entity) field.input.entity(entity);
 
         field.keys = field.keys || [field.key];
 
@@ -28592,7 +28587,6 @@ iD.ui.Zoom = function(context) {
 };
 iD.ui.preset.access = function(field) {
     var event = d3.dispatch('change'),
-        entity,
         items;
 
     function access(selection) {
@@ -28656,18 +28650,84 @@ iD.ui.preset.access = function(field) {
         });
     };
 
-    access.entity = function(_) {
-        if (!arguments.length) return entity;
-        entity = _;
-        return access;
+    var placeholders = {
+        footway: {
+            foot: 'yes',
+            motor_vehicle: 'no'
+        },
+        steps: {
+            foot: 'yes',
+            motor_vehicle: 'no'
+        },
+        pedestrian: {
+            foot: 'yes',
+            motor_vehicle: 'no'
+        },
+        cycleway: {
+            bicycle: 'yes',
+            motor_vehicle: 'no'
+        },
+        bridleway: {
+            horse: 'yes'
+        },
+        path: {
+            motor_vehicle: 'no'
+        },
+        motorway: {
+            motor_vehicle: 'yes'
+        },
+        trunk: {
+            motor_vehicle: 'yes'
+        },
+        primary: {
+            motor_vehicle: 'yes'
+        },
+        secondary: {
+            motor_vehicle: 'yes'
+        },
+        tertiary: {
+            motor_vehicle: 'yes'
+        },
+        residential: {
+            motor_vehicle: 'yes'
+        },
+        unclassified: {
+            motor_vehicle: 'yes'
+        },
+        service: {
+            motor_vehicle: 'yes'
+        },
+        motorway_link: {
+            motor_vehicle: 'yes'
+        },
+        trunk_link: {
+            motor_vehicle: 'yes'
+        },
+        primary_link: {
+            motor_vehicle: 'yes'
+        },
+        secondary_link: {
+            motor_vehicle: 'yes'
+        },
+        tertiary_link: {
+            motor_vehicle: 'yes'
+        }
     };
 
     access.tags = function(tags) {
         items.selectAll('.preset-input-access')
             .value(function(d) { return tags[d] || ''; })
-            .attr('placeholder', function(d) {
-                return d !== 'access' && tags.access ? tags.access : field.placeholder();
+            .attr('placeholder', function() {
+                return tags.access ? tags.access : field.placeholder();
             });
+
+        items.selectAll('#preset-input-access-access')
+            .attr('placeholder', 'yes');
+
+        _.forEach(placeholders[tags.highway], function(value, key) {
+            items.selectAll('#preset-input-access-' + key)
+                .attr('placeholder', value);
+        });
     };
 
     access.focus = function() {
@@ -29076,11 +29136,12 @@ iD.ui.preset.url = function(field) {
 
     return d3.rebind(i, event, 'on');
 };
-iD.ui.preset.localized = function(field) {
+iD.ui.preset.localized = function(field, context) {
 
     var event = d3.dispatch('change'),
         wikipedia = iD.wikipedia(),
-        input, localizedInputs, wikiTitles;
+        input, localizedInputs, wikiTitles,
+        entity;
 
     function i(selection) {
         input = selection.selectAll('.localized-main')
@@ -29096,6 +29157,13 @@ iD.ui.preset.localized = function(field) {
             .on('blur', change)
             .on('change', change);
 
+        if (field.id === 'name') {
+            var preset = context.presets().match(entity, context.graph());
+            input.call(d3.combobox().fetcher(
+                iD.util.SuggestNames(preset, iD.data.suggestions)
+            ));
+        }
+
         var translateButton = selection.selectAll('.localized-add')
             .data([0]);
 
@@ -29294,6 +29362,10 @@ iD.ui.preset.localized = function(field) {
         input.node().focus();
     };
 
+    i.entity = function(_) {
+        entity = _;
+    };
+
     return d3.rebind(i, event, 'on');
 };
 iD.ui.preset.maxspeed = function(field, context) {
@@ -29604,7 +29676,7 @@ iD.ui.preset.wikipedia = function(field, context) {
 
     function change() {
         var value = title.value(),
-            m = value.match(/http:\/\/([a-z]+)\.wikipedia\.org\/wiki\/(.+)/),
+            m = value.match(/https?:\/\/([a-z]+)\.wikipedia\.org\/wiki\/(.+)/),
             l = m && _.find(iD.data.wikipedia, function(d) { return m[1] === d[2]; });
 
         if (l) {
@@ -33490,14913 +33562,15085 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081],"
             "terms_text": "Fugro Aerial Mapping"
         },
         {
-            "name": "Imagerie Drone (Haiti)",
+            "name": "Geoimage.at MaxRes",
             "type": "tms",
-            "template": "http://wms.openstreetmap.fr/tms/1.0.0/iomhaiti/{zoom}/{x}/{y}",
+            "template": "http://geoimage.openstreetmap.at/4d80de696cd562a63ce463a58a61488d/{zoom}/{x}/{y}.jpg",
             "polygon": [
                 [
                     [
-                        -72.1547401,
-                        19.6878969
+                        16.5073284,
+                        46.9929304
                     ],
                     [
-                        -72.162234,
-                        19.689011
+                        16.283417,
+                        46.9929304
                     ],
                     [
-                        -72.164995,
-                        19.6932445
+                        16.135839,
+                        46.8713046
                     ],
                     [
-                        -72.1657838,
-                        19.6979977
+                        15.9831722,
+                        46.8190947
                     ],
                     [
-                        -72.161603,
-                        19.7035677
+                        16.0493278,
+                        46.655175
                     ],
                     [
-                        -72.1487449,
-                        19.7028993
+                        15.8610387,
+                        46.7180116
                     ],
                     [
-                        -72.1477194,
-                        19.7026765
+                        15.7592608,
+                        46.6900933
                     ],
                     [
-                        -72.1485082,
-                        19.7001514
+                        15.5607938,
+                        46.6796202
                     ],
                     [
-                        -72.1436963,
-                        19.7011169
+                        15.5760605,
+                        46.6342132
                     ],
                     [
-                        -72.1410143,
-                        19.7000029
+                        15.4793715,
+                        46.6027553
                     ],
                     [
-                        -72.139476,
-                        19.6973664
+                        15.4335715,
+                        46.6516819
                     ],
                     [
-                        -72.1382533,
-                        19.6927617
+                        15.2249267,
+                        46.6342132
                     ],
                     [
-                        -72.1386872,
-                        19.6923161
+                        15.0468154,
+                        46.6481886
                     ],
                     [
-                        -72.1380561,
-                        19.6896423
+                        14.9908376,
+                        46.5887681
                     ],
                     [
-                        -72.1385294,
-                        19.6894938
+                        14.9603042,
+                        46.6237293
                     ],
                     [
-                        -72.1388055,
-                        19.6901251
+                        14.8534374,
+                        46.6027553
                     ],
                     [
-                        -72.1388844,
-                        19.6876741
+                        14.8330818,
+                        46.5012666
                     ],
                     [
-                        -72.1378195,
-                        19.6872656
+                        14.7516595,
+                        46.4977636
                     ],
                     [
-                        -72.13778,
-                        19.6850003
+                        14.6804149,
+                        46.4381781
                     ],
                     [
-                        -72.1369517,
-                        19.6855945
+                        14.6142593,
+                        46.4381781
                     ],
                     [
-                        -72.136794,
-                        19.6840719
+                        14.578637,
+                        46.3785275
                     ],
                     [
-                        -72.135729,
-                        19.6835148
+                        14.4412369,
+                        46.4311638
                     ],
                     [
-                        -72.1355713,
-                        19.6740817
+                        14.1613476,
+                        46.4276563
                     ],
                     [
-                        -72.1366362,
-                        19.6708133
+                        14.1257253,
+                        46.4767409
                     ],
                     [
-                        -72.1487843,
-                        19.6710733
+                        14.0188585,
+                        46.4767409
                     ],
                     [
-                        -72.1534779,
-                        19.6763843
+                        13.9119917,
+                        46.5257813
                     ],
                     [
-                        -72.1530835,
-                        19.6769414
+                        13.8254805,
+                        46.5047694
                     ],
                     [
-                        -72.1533251,
-                        19.6769768
+                        13.4438134,
+                        46.560783
                     ],
                     [
-                        -72.1532807,
-                        19.6796525
+                        13.3064132,
+                        46.5502848
                     ],
                     [
-                        -72.1523834,
-                        19.6797175
+                        13.1283019,
+                        46.5887681
                     ],
                     [
-                        -72.1522749,
-                        19.6803488
+                        12.8433237,
+                        46.6132433
                     ],
                     [
-                        -72.1519101,
-                        19.6803395
+                        12.7262791,
+                        46.6412014
                     ],
                     [
-                        -72.1518608,
-                        19.6805067
+                        12.5125455,
+                        46.6656529
                     ],
                     [
-                        -72.1528173,
-                        19.6806552
+                        12.3598787,
+                        46.7040543
                     ],
                     [
-                        -72.1522299,
-                        19.6833011
+                        12.3649676,
+                        46.7703197
                     ],
                     [
-                        -72.1507801,
-                        19.6831499
+                        12.2886341,
+                        46.7772902
                     ],
                     [
-                        -72.1504457,
-                        19.6847862
+                        12.2733674,
+                        46.8852187
                     ],
                     [
-                        -72.1508591,
-                        19.6843492
+                        12.2072118,
+                        46.8747835
                     ],
                     [
-                        -72.1530087,
-                        19.6849898
+                        12.1308784,
+                        46.9026062
                     ],
                     [
-                        -72.1546258,
-                        19.6854354
+                        12.1156117,
+                        46.9998721
                     ],
                     [
-                        -72.1543103,
-                        19.6870694
+                        12.2530119,
+                        47.0657733
                     ],
                     [
-                        -72.1547244,
-                        19.6868466
+                        12.2123007,
+                        47.0934969
                     ],
                     [
-                        -72.1548501,
-                        19.6877564
+                        11.9833004,
+                        47.0449712
                     ],
                     [
-                        -72.1545814,
-                        19.6877982
-                    ]
-                ],
-                [
+                        11.7339445,
+                        46.9616816
+                    ],
                     [
-                        -72.1310601,
-                        19.6718929
+                        11.6321666,
+                        47.010283
                     ],
                     [
-                        -72.1259842,
-                        19.6772765
+                        11.5405665,
+                        46.9755722
                     ],
                     [
-                        -72.1255379,
-                        19.6776179
+                        11.4998553,
+                        47.0068129
                     ],
                     [
-                        -72.1216891,
-                        19.6776442
+                        11.418433,
+                        46.9651546
                     ],
                     [
-                        -72.1149677,
-                        19.672602
+                        11.2555884,
+                        46.9755722
                     ],
                     [
-                        -72.1152745,
-                        19.6687152
+                        11.1130993,
+                        46.913036
                     ],
                     [
-                        -72.1198205,
-                        19.6627535
+                        11.0418548,
+                        46.7633482
                     ],
                     [
-                        -72.1227768,
-                        19.6625696
+                        10.8891879,
+                        46.7598621
                     ],
                     [
-                        -72.1248965,
-                        19.662701
+                        10.7416099,
+                        46.7842599
                     ],
                     [
-                        -72.1285779,
-                        19.6645394
+                        10.7059877,
+                        46.8643462
                     ],
                     [
-                        -72.1308091,
-                        19.6661677
+                        10.5787653,
+                        46.8399847
                     ],
                     [
-                        -72.1316737,
-                        19.668794
+                        10.4566318,
+                        46.8504267
                     ],
                     [
-                        -72.1315621,
-                        19.671
-                    ]
-                ],
-                [
+                        10.4769874,
+                        46.9269392
+                    ],
                     [
-                        -71.845795,
-                        19.6709758
+                        10.3853873,
+                        46.9894592
                     ],
                     [
-                        -71.8429354,
-                        19.6759525
+                        10.2327204,
+                        46.8643462
                     ],
                     [
-                        -71.8410027,
-                        19.6759525
+                        10.1207647,
+                        46.8330223
                     ],
                     [
-                        -71.8380249,
-                        19.6755254
+                        9.8663199,
+                        46.9408389
                     ],
                     [
-                        -71.8378671,
-                        19.6745041
+                        9.9019422,
+                        47.0033426
                     ],
                     [
-                        -71.8390504,
-                        19.6743927
+                        9.6831197,
+                        47.0588402
                     ],
                     [
-                        -71.8390109,
-                        19.6741141
+                        9.6118752,
+                        47.0380354
                     ],
                     [
-                        -71.8398392,
-                        19.673947
+                        9.6322307,
+                        47.128131
                     ],
                     [
-                        -71.8389123,
-                        19.6736127
+                        9.5813418,
+                        47.1662025
                     ],
                     [
-                        -71.8380249,
-                        19.67209
+                        9.5406306,
+                        47.2664422
                     ],
                     [
-                        -71.8380052,
-                        19.6726285
+                        9.6067863,
+                        47.3492559
                     ],
                     [
-                        -71.8376699,
-                        19.6727214
+                        9.6729419,
+                        47.369939
                     ],
                     [
-                        -71.8376305,
-                        19.672545
+                        9.6424085,
+                        47.4457079
                     ],
                     [
-                        -71.8354414,
-                        19.6732135
+                        9.5660751,
+                        47.4801122
                     ],
                     [
-                        -71.835333,
-                        19.6729999
+                        9.7136531,
+                        47.5282405
                     ],
                     [
-                        -71.8331242,
-                        19.6734642
+                        9.7848976,
+                        47.5969187
                     ],
                     [
-                        -71.8326706,
-                        19.6716815
+                        9.8357866,
+                        47.5454185
                     ],
                     [
-                        -71.8321579,
-                        19.67209
+                        9.9477423,
+                        47.538548
                     ],
                     [
-                        -71.8307183,
-                        19.6694902
+                        10.0902313,
+                        47.4491493
                     ],
                     [
-                        -71.8306009,
-                        19.6697594
+                        10.1105869,
+                        47.3664924
                     ],
                     [
-                        -71.8302174,
-                        19.6698907
+                        10.2428982,
+                        47.3871688
                     ],
                     [
-                        -71.8291833,
-                        19.6672095
+                        10.1869203,
+                        47.2698953
                     ],
                     [
-                        -71.8290749,
-                        19.6672095
+                        10.3243205,
+                        47.2975125
                     ],
                     [
-                        -71.8289122,
-                        19.6667916
+                        10.4820763,
+                        47.4491493
                     ],
                     [
-                        -71.8289516,
-                        19.6666199
+                        10.4311873,
+                        47.4869904
                     ],
                     [
-                        -71.8288333,
-                        19.6663506
+                        10.4413651,
+                        47.5900549
                     ],
                     [
-                        -71.8285572,
-                        19.6664759
+                        10.4871652,
+                        47.5522881
                     ],
                     [
-                        -71.8288678,
-                        19.6672466
+                        10.5482319,
+                        47.5351124
                     ],
                     [
-                        -71.8287593,
-                        19.6674138
+                        10.5991209,
+                        47.5660246
                     ],
                     [
-                        -71.8277979,
-                        19.6678177
+                        10.7568766,
+                        47.5316766
                     ],
                     [
-                        -71.8277112,
-                        19.6678586
+                        10.8891879,
+                        47.5454185
                     ],
                     [
-                        -71.8278263,
-                        19.6679637
+                        10.9400769,
+                        47.4869904
                     ],
                     [
-                        -71.8271831,
-                        19.6681212
+                        10.9960547,
+                        47.3906141
                     ],
                     [
-                        -71.8271761,
-                        19.6680917
+                        11.2352328,
+                        47.4422662
                     ],
                     [
-                        -71.8264405,
-                        19.6683921
+                        11.2810328,
+                        47.3975039
                     ],
                     [
-                        -71.8264074,
-                        19.6683231
+                        11.4235219,
+                        47.5144941
                     ],
                     [
-                        -71.8261954,
-                        19.6684253
+                        11.5761888,
+                        47.5076195
                     ],
                     [
-                        -71.8261806,
-                        19.6683556
+                        11.6067221,
+                        47.5900549
                     ],
                     [
-                        -71.8258946,
-                        19.6684206
+                        11.8357224,
+                        47.5866227
                     ],
                     [
-                        -71.8258897,
-                        19.6686574
+                        12.003656,
+                        47.6243647
                     ],
                     [
-                        -71.8251551,
-                        19.6687549
+                        12.2072118,
+                        47.6037815
                     ],
                     [
-                        -71.8254509,
-                        19.6691588
+                        12.1614117,
+                        47.6963421
                     ],
                     [
-                        -71.8229332,
-                        19.6695739
+                        12.2581008,
+                        47.7442718
                     ],
                     [
-                        -71.822713,
-                        19.6696658
+                        12.2530119,
+                        47.6792136
                     ],
                     [
-                        -71.8227688,
-                        19.6697577
+                        12.4311232,
+                        47.7100408
                     ],
                     [
-                        -71.8201751,
-                        19.6709855
+                        12.4921899,
+                        47.631224
                     ],
                     [
-                        -71.8198474,
-                        19.6704537
+                        12.5685234,
+                        47.6277944
                     ],
                     [
-                        -71.8197985,
-                        19.6706014
+                        12.6295901,
+                        47.6894913
                     ],
                     [
-                        -71.8194674,
-                        19.6707557
+                        12.7720792,
+                        47.6689338
                     ],
                     [
-                        -71.8182472,
-                        19.6713433
+                        12.8331459,
+                        47.5419833
                     ],
                     [
-                        -71.8181426,
-                        19.6711431
+                        12.975635,
+                        47.4732332
                     ],
                     [
-                        -71.8175813,
-                        19.6714254
+                        13.0417906,
+                        47.4938677
                     ],
                     [
-                        -71.816959,
-                        19.6707672
+                        13.0367017,
+                        47.5557226
                     ],
                     [
-                        -71.8176388,
-                        19.6718965
+                        13.0977685,
+                        47.6415112
                     ],
                     [
-                        -71.8171403,
-                        19.6720376
+                        13.0316128,
+                        47.7100408
                     ],
                     [
-                        -71.8158225,
-                        19.6718045
+                        12.9043905,
+                        47.7203125
                     ],
                     [
-                        -71.8138354,
-                        19.6711874
+                        13.0061684,
+                        47.84683
                     ],
                     [
-                        -71.8123259,
-                        19.6706982
+                        12.9451016,
+                        47.9355501
                     ],
                     [
-                        -71.8121759,
-                        19.6704258
+                        12.8636793,
+                        47.9594103
                     ],
                     [
-                        -71.8124304,
-                        19.6701467
+                        12.8636793,
+                        48.0036929
                     ],
                     [
-                        -71.8119184,
-                        19.6700141
+                        12.7517236,
+                        48.0989418
                     ],
                     [
-                        -71.8118765,
-                        19.6705828
+                        12.8738571,
+                        48.2109733
                     ],
                     [
-                        -71.811169,
-                        19.6703483
+                        12.9603683,
+                        48.2109733
                     ],
                     [
-                        -71.8095938,
-                        19.6698516
+                        13.0417906,
+                        48.2652035
                     ],
                     [
-                        -71.8077992,
-                        19.6692829
+                        13.1842797,
+                        48.2990682
                     ],
                     [
-                        -71.8056028,
-                        19.668612
+                        13.2606131,
+                        48.2922971
                     ],
                     [
-                        -71.8051443,
-                        19.6668942
+                        13.3980133,
+                        48.3565867
                     ],
                     [
-                        -71.8051196,
-                        19.6652322
+                        13.4438134,
+                        48.417418
                     ],
                     [
-                        -71.8052315,
-                        19.661979
+                        13.4387245,
+                        48.5523383
                     ],
                     [
-                        -71.8065603,
-                        19.6523921
+                        13.509969,
+                        48.5860123
                     ],
                     [
-                        -71.8073412,
-                        19.6482946
+                        13.6117469,
+                        48.5725454
                     ],
                     [
-                        -71.8099686,
-                        19.6468292
+                        13.7287915,
+                        48.5118999
                     ],
                     [
-                        -71.8147517,
-                        19.6454502
+                        13.7847694,
+                        48.5725454
                     ],
                     [
-                        -71.8147726,
-                        19.6455619
+                        13.8203916,
+                        48.6263915
                     ],
                     [
-                        -71.8150027,
-                        19.6455093
+                        13.7949471,
+                        48.7171267
                     ],
                     [
-                        -71.8149469,
-                        19.6453846
+                        13.850925,
+                        48.7741724
                     ],
                     [
-                        -71.8159928,
-                        19.6450234
+                        14.0595697,
+                        48.6633774
                     ],
                     [
-                        -71.8158882,
-                        19.6448855
+                        14.0137696,
+                        48.6331182
                     ],
                     [
-                        -71.8165854,
-                        19.6446097
+                        14.0748364,
+                        48.5927444
                     ],
                     [
-                        -71.8190119,
-                        19.643802
+                        14.2173255,
+                        48.5961101
                     ],
                     [
-                        -71.8211524,
-                        19.643454
+                        14.3649034,
+                        48.5489696
                     ],
                     [
-                        -71.8221564,
-                        19.6433292
+                        14.4666813,
+                        48.6499311
                     ],
                     [
-                        -71.8269046,
-                        19.643211
+                        14.5582815,
+                        48.5961101
                     ],
                     [
-                        -71.8280481,
-                        19.6432241
+                        14.5989926,
+                        48.6263915
                     ],
                     [
-                        -71.8304466,
-                        19.6440778
+                        14.7211261,
+                        48.5759124
                     ],
                     [
-                        -71.8306419,
-                        19.6448592
+                        14.7211261,
+                        48.6868997
                     ],
                     [
-                        -71.8295263,
-                        19.6450365
+                        14.822904,
+                        48.7271983
                     ],
                     [
-                        -71.8296064,
-                        19.6456111
+                        14.8178151,
+                        48.777526
                     ],
                     [
-                        -71.8299411,
-                        19.6455651
+                        14.9647227,
+                        48.7851754
                     ],
                     [
-                        -71.8303699,
-                        19.6451744
+                        14.9893637,
+                        49.0126611
                     ],
                     [
-                        -71.830471,
-                        19.6453452
+                        15.1485933,
+                        48.9950306
                     ],
                     [
-                        -71.8308092,
-                        19.6451974
+                        15.1943934,
+                        48.9315502
                     ],
                     [
-                        -71.8310184,
-                        19.6451088
+                        15.3063491,
+                        48.9850128
                     ],
                     [
-                        -71.8312519,
-                        19.6458541
+                        15.3928603,
+                        48.9850128
                     ],
                     [
-                        -71.8311125,
-                        19.6458245
+                        15.4844604,
+                        48.9282069
                     ],
                     [
-                        -71.831367,
-                        19.6465862
+                        15.749083,
+                        48.8545973
                     ],
                     [
-                        -71.8328939,
-                        19.646189
+                        15.8406831,
+                        48.8880697
                     ],
                     [
-                        -71.8344566,
-                        19.6457062
+                        16.0086166,
+                        48.7808794
                     ],
                     [
-                        -71.8344664,
-                        19.6463052
+                        16.2070835,
+                        48.7339115
                     ],
                     [
-                        -71.834215,
-                        19.6461938
+                        16.3953727,
+                        48.7372678
                     ],
                     [
-                        -71.8342002,
-                        19.6465513
+                        16.4920617,
+                        48.8110498
                     ],
                     [
-                        -71.8346702,
-                        19.6463
+                        16.6905286,
+                        48.7741724
                     ],
                     [
-                        -71.8349118,
-                        19.6463905
+                        16.7057953,
+                        48.7339115
                     ],
                     [
-                        -71.8347984,
-                        19.6462187
+                        16.8991733,
+                        48.713769
                     ],
                     [
-                        -71.8354393,
-                        19.6458496
+                        16.9755067,
+                        48.515271
                     ],
                     [
-                        -71.8355034,
-                        19.6458032
+                        16.8482844,
+                        48.4511817
                     ],
                     [
-                        -71.8364747,
-                        19.6461328
+                        16.8533733,
+                        48.3464411
                     ],
                     [
-                        -71.8376382,
-                        19.6472658
+                        16.9551512,
+                        48.2516513
                     ],
                     [
-                        -71.8379143,
-                        19.647888
+                        16.9907734,
+                        48.1498955
                     ],
                     [
-                        -71.8390483,
-                        19.6508039
+                        17.0925513,
+                        48.1397088
                     ],
                     [
-                        -71.8456942,
-                        19.6696203
-                    ]
-                ],
-                [
-                    [
-                        -72.098878,
-                        18.54843
+                        17.0823736,
+                        48.0241182
                     ],
                     [
-                        -72.096993,
-                        18.5501994
+                        17.1739737,
+                        48.0207146
                     ],
                     [
-                        -72.0972888,
-                        18.5503209
+                        17.0823736,
+                        47.8741447
                     ],
                     [
-                        -72.0968451,
-                        18.5503489
+                        16.9856845,
+                        47.8673174
                     ],
                     [
-                        -72.0955632,
-                        18.551854
+                        17.0823736,
+                        47.8092489
                     ],
                     [
-                        -72.0956428,
-                        18.5526742
+                        17.0925513,
+                        47.7031919
                     ],
                     [
-                        -72.0959914,
-                        18.5533748
+                        16.7414176,
+                        47.6792136
                     ],
                     [
-                        -72.0962145,
-                        18.553203
+                        16.7057953,
+                        47.7511153
                     ],
                     [
-                        -72.0962842,
-                        18.5535665
+                        16.5378617,
+                        47.7545368
                     ],
                     [
-                        -72.0964446,
-                        18.5535533
+                        16.5480395,
+                        47.7066164
                     ],
                     [
-                        -72.0965352,
-                        18.5539764
+                        16.4208172,
+                        47.6689338
                     ],
                     [
-                        -72.0965056,
-                        18.554173
+                        16.573484,
+                        47.6175045
                     ],
                     [
-                        -72.0966085,
-                        18.5541747
+                        16.670173,
+                        47.631224
                     ],
                     [
-                        -72.0965178,
-                        18.5542127
+                        16.7108842,
+                        47.538548
                     ],
                     [
-                        -72.0968769,
-                        18.5546588
+                        16.6599952,
+                        47.4491493
                     ],
                     [
-                        -72.0979018,
-                        18.5552141
+                        16.5429506,
+                        47.3940591
                     ],
                     [
-                        -72.1006211,
-                        18.5555875
+                        16.4615283,
+                        47.3940591
                     ],
                     [
-                        -72.1014926,
-                        18.5556206
+                        16.4920617,
+                        47.276801
                     ],
                     [
-                        -72.1024339,
-                        18.5555016
+                        16.425906,
+                        47.1973317
                     ],
                     [
-                        -72.103417,
-                        18.5543515
+                        16.4717061,
+                        47.1489007
                     ],
                     [
-                        -72.1034798,
-                        18.5516215
+                        16.5480395,
+                        47.1489007
                     ],
                     [
-                        -72.1030789,
-                        18.5516149
+                        16.476795,
+                        47.0796369
                     ],
                     [
-                        -72.1033752,
-                        18.5515224
-                    ],
+                        16.527684,
+                        47.0588402
+                    ]
+                ]
+            ],
+            "terms_text": "geoimage.at",
+            "id": "geoimage.at"
+        },
+        {
+            "name": "Imagerie Drone (Haiti)",
+            "type": "tms",
+            "template": "http://wms.openstreetmap.fr/tms/1.0.0/iomhaiti/{zoom}/{x}/{y}",
+            "polygon": [
+                [
                     [
-                        -72.1035042,
-                        18.5515224
+                        -72.1547401,
+                        19.6878969
                     ],
                     [
-                        -72.1035239,
-                        18.5502417
+                        -72.162234,
+                        19.689011
                     ],
                     [
-                        -72.1028701,
-                        18.5503062
+                        -72.164995,
+                        19.6932445
                     ],
                     [
-                        -72.1029015,
-                        18.55025
+                        -72.1657838,
+                        19.6979977
                     ],
                     [
-                        -72.1028457,
-                        18.5501773
+                        -72.161603,
+                        19.7035677
                     ],
                     [
-                        -72.1035081,
-                        18.5500252
+                        -72.1487449,
+                        19.7028993
                     ],
                     [
-                        -72.103491,
-                        18.5497396
+                        -72.1477194,
+                        19.7026765
                     ],
                     [
-                        -72.1035181,
-                        18.5497361
+                        -72.1485082,
+                        19.7001514
                     ],
                     [
-                        -72.1035398,
-                        18.5489039
+                        -72.1436963,
+                        19.7011169
                     ],
                     [
-                        -72.1034317,
-                        18.5487056
+                        -72.1410143,
+                        19.7000029
                     ],
                     [
-                        -72.102717,
-                        18.5481437
+                        -72.139476,
+                        19.6973664
                     ],
                     [
-                        -72.1025601,
-                        18.5481536
+                        -72.1382533,
+                        19.6927617
                     ],
                     [
-                        -72.10229,
-                        18.5482751
+                        -72.1386872,
+                        19.6923161
                     ],
                     [
-                        -72.1022891,
-                        18.5482569
+                        -72.1380561,
+                        19.6896423
                     ],
                     [
-                        -72.1025201,
-                        18.5481396
+                        -72.1385294,
+                        19.6894938
                     ],
                     [
-                        -72.1023388,
-                        18.5481321
+                        -72.1388055,
+                        19.6901251
                     ],
                     [
-                        -72.0999082,
-                        18.5480901
+                        -72.1388844,
+                        19.6876741
                     ],
                     [
-                        -72.09907,
-                        18.5483799
-                    ]
-                ],
-                [
-                    [
-                        -72.2542503,
-                        18.568262
+                        -72.1378195,
+                        19.6872656
                     ],
                     [
-                        -72.2560252,
-                        18.5717765
+                        -72.13778,
+                        19.6850003
                     ],
                     [
-                        -72.2557886,
-                        18.5748049
+                        -72.1369517,
+                        19.6855945
                     ],
                     [
-                        -72.2535009,
-                        18.5755526
+                        -72.136794,
+                        19.6840719
                     ],
                     [
-                        -72.2522782,
-                        18.5755526
+                        -72.135729,
+                        19.6835148
                     ],
                     [
-                        -72.2499906,
-                        18.5740945
+                        -72.1355713,
+                        19.6740817
                     ],
                     [
-                        -72.2473874,
-                        18.5698323
+                        -72.1366362,
+                        19.6708133
                     ],
                     [
-                        -72.2460069,
-                        18.566729
+                        -72.1487843,
+                        19.6710733
                     ],
                     [
-                        -72.2458492,
-                        18.5629527
+                        -72.1534779,
+                        19.6763843
                     ],
                     [
-                        -72.2479396,
-                        18.5625414
+                        -72.1530835,
+                        19.6769414
                     ],
                     [
-                        -72.2501483,
-                        18.5628031
+                        -72.1533251,
+                        19.6769768
                     ],
                     [
-                        -72.2519232,
-                        18.5650839
-                    ]
-                ],
-                [
-                    [
-                        -72.303145,
-                        18.5332749
+                        -72.1532807,
+                        19.6796525
                     ],
                     [
-                        -72.3031275,
-                        18.5331799
+                        -72.1523834,
+                        19.6797175
                     ],
                     [
-                        -72.3048311,
-                        18.5311081
+                        -72.1522749,
+                        19.6803488
                     ],
                     [
-                        -72.3097397,
-                        18.5311081
+                        -72.1519101,
+                        19.6803395
                     ],
                     [
-                        -72.3164332,
-                        18.5324302
+                        -72.1518608,
+                        19.6805067
                     ],
                     [
-                        -72.3234056,
-                        18.5366083
+                        -72.1528173,
+                        19.6806552
                     ],
                     [
-                        -72.3261388,
-                        18.5387765
+                        -72.1522299,
+                        19.6833011
                     ],
                     [
-                        -72.3261946,
-                        18.5426371
+                        -72.1507801,
+                        19.6831499
                     ],
                     [
-                        -72.3170468,
-                        18.5540596
+                        -72.1504457,
+                        19.6847862
                     ],
                     [
-                        -72.3130864,
-                        18.5540596
+                        -72.1508591,
+                        19.6843492
                     ],
                     [
-                        -72.2987511,
-                        18.5453342
+                        -72.1530087,
+                        19.6849898
                     ],
                     [
-                        -72.2988627,
-                        18.5407333
+                        -72.1546258,
+                        19.6854354
                     ],
                     [
-                        -72.2962969,
-                        18.5404689
+                        -72.1543103,
+                        19.6870694
                     ],
                     [
-                        -72.2954602,
-                        18.5395169
+                        -72.1547244,
+                        19.6868466
                     ],
                     [
-                        -72.2961853,
-                        18.5338582
+                        -72.1548501,
+                        19.6877564
                     ],
                     [
-                        -72.2971893,
-                        18.5332235
-                    ],
+                        -72.1545814,
+                        19.6877982
+                    ]
+                ],
+                [
                     [
-                        -72.3007034,
-                        18.5332764
+                        -72.1310601,
+                        19.6718929
                     ],
                     [
-                        -72.3022652,
-                        18.5342284
+                        -72.1259842,
+                        19.6772765
                     ],
                     [
-                        -72.3028486,
-                        18.5335189
+                        -72.1255379,
+                        19.6776179
                     ],
                     [
-                        -72.303104,
-                        18.5333361
+                        -72.1216891,
+                        19.6776442
                     ],
                     [
-                        -72.303181,
-                        18.5334007
+                        -72.1149677,
+                        19.672602
                     ],
                     [
-                        -72.3035793,
-                        18.5335614
+                        -72.1152745,
+                        19.6687152
                     ],
                     [
-                        -72.3030793,
-                        18.5346463
+                        -72.1198205,
+                        19.6627535
                     ],
                     [
-                        -72.303715,
-                        18.5339873
+                        -72.1227768,
+                        19.6625696
                     ],
                     [
-                        -72.3045286,
-                        18.5344052
+                        -72.1248965,
+                        19.662701
                     ],
                     [
-                        -72.3044015,
-                        18.5345097
+                        -72.1285779,
+                        19.6645394
                     ],
                     [
-                        -72.3062747,
-                        18.5352571
+                        -72.1308091,
+                        19.6661677
                     ],
                     [
-                        -72.3063107,
-                        18.5352741
+                        -72.1316737,
+                        19.668794
                     ],
                     [
-                        -72.3061219,
-                        18.5357628
-                    ],
+                        -72.1315621,
+                        19.671
+                    ]
+                ],
+                [
                     [
-                        -72.3061219,
-                        18.5358196
+                        -71.845795,
+                        19.6709758
                     ],
                     [
-                        -72.30637,
-                        18.5358928
+                        -71.8429354,
+                        19.6759525
                     ],
                     [
-                        -72.3062726,
-                        18.5354869
+                        -71.8410027,
+                        19.6759525
                     ],
                     [
-                        -72.3066688,
-                        18.5350891
+                        -71.8380249,
+                        19.6755254
                     ],
                     [
-                        -72.3061963,
-                        18.5349706
+                        -71.8378671,
+                        19.6745041
                     ],
                     [
-                        -72.3058869,
-                        18.5349385
+                        -71.8390504,
+                        19.6743927
                     ],
                     [
-                        -72.3055373,
-                        18.5346833
+                        -71.8390109,
+                        19.6741141
                     ],
                     [
-                        -72.3054864,
-                        18.534613
+                        -71.8398392,
+                        19.673947
                     ],
                     [
-                        -72.3055585,
-                        18.5345065
+                        -71.8389123,
+                        19.6736127
                     ],
                     [
-                        -72.3046749,
-                        18.5342293
+                        -71.8380249,
+                        19.67209
                     ],
                     [
-                        -72.3047617,
-                        18.5338817
+                        -71.8380052,
+                        19.6726285
                     ],
                     [
-                        -72.3043252,
-                        18.5337511
+                        -71.8376699,
+                        19.6727214
                     ],
                     [
-                        -72.3042595,
-                        18.5336346
-                    ]
-                ],
-                [
+                        -71.8376305,
+                        19.672545
+                    ],
                     [
-                        -72.2981405,
-                        18.477502
+                        -71.8354414,
+                        19.6732135
                     ],
                     [
-                        -72.2935652,
-                        18.4948587
+                        -71.835333,
+                        19.6729999
                     ],
                     [
-                        -72.2922242,
-                        18.4964297
+                        -71.8331242,
+                        19.6734642
                     ],
                     [
-                        -72.2931708,
-                        18.4972526
+                        -71.8326706,
+                        19.6716815
                     ],
                     [
-                        -72.2892266,
-                        18.5057058
+                        -71.8321579,
+                        19.67209
                     ],
                     [
-                        -72.2878067,
-                        18.5080996
+                        -71.8307183,
+                        19.6694902
                     ],
                     [
-                        -72.2850458,
-                        18.5119893
+                        -71.8306009,
+                        19.6697594
                     ],
                     [
-                        -72.2840203,
-                        18.5113161
+                        -71.8302174,
+                        19.6698907
                     ],
                     [
-                        -72.2808649,
-                        18.515879
+                        -71.8291833,
+                        19.6672095
                     ],
                     [
-                        -72.2773151,
-                        18.5175994
+                        -71.8290749,
+                        19.6672095
                     ],
                     [
-                        -72.2723454,
-                        18.5175246
+                        -71.8289122,
+                        19.6667916
                     ],
                     [
-                        -72.2662714,
-                        18.5144578
+                        -71.8289516,
+                        19.6666199
                     ],
                     [
-                        -72.2665869,
-                        18.5066783
+                        -71.8288333,
+                        19.6663506
                     ],
                     [
-                        -72.2692643,
-                        18.5046154
+                        -71.8285572,
+                        19.6664759
                     ],
                     [
-                        -72.2661965,
-                        18.5029756
+                        -71.8288678,
+                        19.6672466
                     ],
                     [
-                        -72.2688181,
-                        18.4965222
+                        -71.8287593,
+                        19.6674138
                     ],
                     [
-                        -72.2691528,
-                        18.4959403
+                        -71.8277979,
+                        19.6678177
                     ],
                     [
-                        -72.2702684,
-                        18.4961519
+                        -71.8277112,
+                        19.6678586
                     ],
                     [
-                        -72.2702684,
-                        18.4955964
+                        -71.8278263,
+                        19.6679637
                     ],
                     [
-                        -72.2690691,
-                        18.49557
+                        -71.8271831,
+                        19.6681212
                     ],
                     [
-                        -72.2692922,
-                        18.4937714
+                        -71.8271761,
+                        19.6680917
                     ],
                     [
-                        -72.2736988,
-                        18.4859951
+                        -71.8264405,
+                        19.6683921
                     ],
                     [
-                        -72.2746749,
-                        18.4850429
+                        -71.8264074,
+                        19.6683231
                     ],
                     [
-                        -72.2751769,
-                        18.483403
+                        -71.8261954,
+                        19.6684253
                     ],
                     [
-                        -72.2765435,
-                        18.4813398
+                        -71.8261806,
+                        19.6683556
                     ],
                     [
-                        -72.2773523,
-                        18.4814985
+                        -71.8258946,
+                        19.6684206
                     ],
                     [
-                        -72.2783006,
-                        18.4809694
+                        -71.8258897,
+                        19.6686574
                     ],
                     [
-                        -72.2778544,
-                        18.4807049
+                        -71.8251551,
+                        19.6687549
                     ],
                     [
-                        -72.2771013,
-                        18.480123
+                        -71.8254509,
+                        19.6691588
                     ],
                     [
-                        -72.2789978,
-                        18.4775836
+                        -71.8229332,
+                        19.6695739
                     ],
                     [
-                        -72.279723,
-                        18.4772927
+                        -71.822713,
+                        19.6696658
                     ],
                     [
-                        -72.2806433,
-                        18.4776365
+                        -71.8227688,
+                        19.6697577
                     ],
                     [
-                        -72.2813685,
-                        18.4771604
+                        -71.8201751,
+                        19.6709855
                     ],
                     [
-                        -72.2808386,
-                        18.4769752
+                        -71.8198474,
+                        19.6704537
                     ],
                     [
-                        -72.2812848,
-                        18.4758378
+                        -71.8197985,
+                        19.6706014
                     ],
                     [
-                        -72.2823167,
-                        18.4751765
+                        -71.8194674,
+                        19.6707557
                     ],
                     [
-                        -72.2851615,
-                        18.4750971
+                        -71.8182472,
+                        19.6713433
                     ],
                     [
-                        -72.2849941,
-                        18.4763668
+                        -71.8181426,
+                        19.6711431
                     ],
                     [
-                        -72.2854404,
-                        18.4769752
+                        -71.8175813,
+                        19.6714254
                     ],
                     [
-                        -72.286277,
-                        18.4756262
+                        -71.816959,
+                        19.6707672
                     ],
                     [
-                        -72.2869325,
-                        18.4754675
+                        -71.8176388,
+                        19.6718965
                     ],
                     [
-                        -72.2865978,
-                        18.4751897
+                        -71.8171403,
+                        19.6720376
                     ],
                     [
-                        -72.2865978,
-                        18.4750046
+                        -71.8158225,
+                        19.6718045
                     ],
                     [
-                        -72.2909765,
-                        18.4747268
+                        -71.8138354,
+                        19.6711874
                     ],
                     [
-                        -72.2946579,
-                        18.4749384
+                        -71.8123259,
+                        19.6706982
                     ],
                     [
-                        -72.2973911,
-                        18.476843
-                    ]
-                ],
-                [
-                    [
-                        -72.3466657,
-                        18.5222375
+                        -71.8121759,
+                        19.6704258
                     ],
                     [
-                        -72.346833,
-                        18.5244325
+                        -71.8124304,
+                        19.6701467
                     ],
                     [
-                        -72.3475303,
-                        18.5277645
+                        -71.8119184,
+                        19.6700141
                     ],
                     [
-                        -72.3455501,
-                        18.5291131
+                        -71.8118765,
+                        19.6705828
                     ],
                     [
-                        -72.3403069,
-                        18.5292189
+                        -71.811169,
+                        19.6703483
                     ],
                     [
-                        -72.3383267,
-                        18.5280289
+                        -71.8095938,
+                        19.6698516
                     ],
                     [
-                        -72.3369043,
-                        18.530118
+                        -71.8077992,
+                        19.6692829
                     ],
                     [
-                        -72.3338086,
-                        18.5296684
+                        -71.8056028,
+                        19.668612
                     ],
                     [
-                        -72.3289279,
-                        18.5270769
+                        -71.8051443,
+                        19.6668942
                     ],
                     [
-                        -72.328649,
-                        18.5253316
+                        -71.8051196,
+                        19.6652322
                     ],
                     [
-                        -72.3292068,
-                        18.5232689
+                        -71.8052315,
+                        19.661979
                     ],
                     [
-                        -72.330406,
-                        18.5220524
+                        -71.8065603,
+                        19.6523921
                     ],
                     [
-                        -72.3321631,
-                        18.5221847
+                        -71.8073412,
+                        19.6482946
                     ],
                     [
-                        -72.3322467,
-                        18.5191963
+                        -71.8099686,
+                        19.6468292
                     ],
                     [
-                        -72.3369183,
-                        18.5183633
+                        -71.8147517,
+                        19.6454502
                     ],
                     [
-                        -72.3382012,
-                        18.5184691
+                        -71.8147726,
+                        19.6455619
                     ],
                     [
-                        -72.3381454,
-                        18.5181782
+                        -71.8150027,
+                        19.6455093
                     ],
                     [
-                        -72.3411993,
-                        18.5177947
+                        -71.8149469,
+                        19.6453846
                     ],
                     [
-                        -72.3454943,
-                        18.5171997
+                        -71.8159928,
+                        19.6450234
                     ],
                     [
-                        -72.3492595,
-                        18.517279
+                        -71.8158882,
+                        19.6448855
                     ],
                     [
-                        -72.3504308,
-                        18.5188922
+                        -71.8165854,
+                        19.6446097
                     ],
                     [
-                        -72.3503472,
-                        18.5206112
+                        -71.8190119,
+                        19.643802
                     ],
                     [
-                        -72.3496778,
-                        18.5220392
-                    ]
-                ],
-                [
-                    [
-                        -72.3303078,
-                        18.5486462
+                        -71.8211524,
+                        19.643454
                     ],
                     [
-                        -72.3429687,
-                        18.5508149
+                        -71.8221564,
+                        19.6433292
                     ],
                     [
-                        -72.3433236,
-                        18.5530585
+                        -71.8269046,
+                        19.643211
                     ],
                     [
-                        -72.3413121,
-                        18.5614341
+                        -71.8280481,
+                        19.6432241
                     ],
                     [
-                        -72.3390639,
-                        18.5613593
+                        -71.8304466,
+                        19.6440778
                     ],
                     [
-                        -72.3384723,
-                        18.5638271
+                        -71.8306419,
+                        19.6448592
                     ],
                     [
-                        -72.3375257,
-                        18.5654348
+                        -71.8295263,
+                        19.6450365
                     ],
                     [
-                        -72.3348436,
-                        18.5650609
+                        -71.8296064,
+                        19.6456111
                     ],
                     [
-                        -72.3311755,
-                        18.5638271
+                        -71.8299411,
+                        19.6455651
                     ],
                     [
-                        -72.3312149,
-                        18.5616211
+                        -71.8303699,
+                        19.6451744
                     ],
                     [
-                        -72.3232082,
-                        18.5606863
+                        -71.830471,
+                        19.6453452
                     ],
                     [
-                        -72.3212361,
-                        18.559602
+                        -71.8308092,
+                        19.6451974
                     ],
                     [
-                        -72.3208023,
-                        18.5587046
+                        -71.8310184,
+                        19.6451088
                     ],
                     [
-                        -72.3208811,
-                        18.557882
+                        -71.8312519,
+                        19.6458541
                     ],
                     [
-                        -72.3259493,
-                        18.5580274
+                        -71.8311125,
+                        19.6458245
                     ],
                     [
-                        -72.3266186,
-                        18.5581993
+                        -71.831367,
+                        19.6465862
                     ],
                     [
-                        -72.3259214,
-                        18.5577498
+                        -71.8328939,
+                        19.646189
                     ],
                     [
-                        -72.3250986,
-                        18.5573797
+                        -71.8344566,
+                        19.6457062
                     ],
                     [
-                        -72.3233767,
-                        18.552263
+                        -71.8344664,
+                        19.6463052
                     ],
                     [
-                        -72.3245994,
-                        18.5478507
+                        -71.834215,
+                        19.6461938
                     ],
                     [
-                        -72.3288986,
-                        18.5483742
+                        -71.8342002,
+                        19.6465513
                     ],
                     [
-                        -72.329979,
-                        18.5489548
-                    ]
-                ],
-                [
+                        -71.8346702,
+                        19.6463
+                    ],
                     [
-                        -72.3231383,
-                        18.5269828
+                        -71.8349118,
+                        19.6463905
                     ],
                     [
-                        -72.3223434,
-                        18.528067
+                        -71.8347984,
+                        19.6462187
                     ],
                     [
-                        -72.3209629,
-                        18.5279745
+                        -71.8354393,
+                        19.6458496
                     ],
                     [
-                        -72.3207816,
-                        18.5271282
+                        -71.8355034,
+                        19.6458032
                     ],
                     [
-                        -72.3208513,
-                        18.5253697
+                        -71.8364747,
+                        19.6461328
                     ],
                     [
-                        -72.3214649,
-                        18.5249598
+                        -71.8376382,
+                        19.6472658
                     ],
                     [
-                        -72.3225666,
-                        18.5248937
+                        -71.8379143,
+                        19.647888
                     ],
                     [
-                        -72.3228454,
-                        18.52533
+                        -71.8390483,
+                        19.6508039
                     ],
                     [
-                        -72.3232359,
-                        18.5264804
+                        -71.8456942,
+                        19.6696203
                     ]
                 ],
                 [
                     [
-                        -72.2160832,
-                        18.6457752
+                        -72.098878,
+                        18.54843
                     ],
                     [
-                        -72.2159649,
-                        18.6553795
+                        -72.096993,
+                        18.5501994
                     ],
                     [
-                        -72.2030279,
-                        18.6558279
+                        -72.0972888,
+                        18.5503209
                     ],
                     [
-                        -72.1947057,
-                        18.6553421
+                        -72.0968451,
+                        18.5503489
                     ],
                     [
-                        -72.1922208,
-                        18.6545573
+                        -72.0955632,
+                        18.551854
                     ],
                     [
-                        -72.1920631,
-                        18.6521283
+                        -72.0956428,
+                        18.5526742
                     ],
                     [
-                        -72.193483,
-                        18.6477559
+                        -72.0959914,
+                        18.5533748
                     ],
                     [
-                        -72.201253,
-                        18.6385249
+                        -72.0962145,
+                        18.553203
                     ],
                     [
-                        -72.2069327,
-                        18.6388239
+                        -72.0962842,
+                        18.5535665
                     ],
                     [
-                        -72.2120996,
-                        18.6424117
+                        -72.0964446,
+                        18.5535533
                     ],
                     [
-                        -72.2118068,
-                        18.6430591
+                        -72.0965352,
+                        18.5539764
                     ],
                     [
-                        -72.2121693,
-                        18.6426892
+                        -72.0965056,
+                        18.554173
                     ],
                     [
-                        -72.2127968,
-                        18.6427552
+                        -72.0966085,
+                        18.5541747
                     ],
                     [
-                        -72.2134662,
-                        18.6431252
+                        -72.0965178,
+                        18.5542127
                     ],
                     [
-                        -72.2135638,
-                        18.6437462
+                        -72.0968769,
+                        18.5546588
                     ],
                     [
-                        -72.2154176,
-                        18.6443947
+                        -72.0979018,
+                        18.5552141
                     ],
                     [
-                        -72.2158909,
-                        18.6450301
-                    ]
-                ],
-                [
-                    [
-                        -72.2867654,
-                        18.6482017
+                        -72.1006211,
+                        18.5555875
                     ],
                     [
-                        -72.2900977,
-                        18.6527446
+                        -72.1014926,
+                        18.5556206
                     ],
                     [
-                        -72.28981,
-                        18.6536532
+                        -72.1024339,
+                        18.5555016
                     ],
                     [
-                        -72.2900738,
-                        18.6542664
+                        -72.103417,
+                        18.5543515
                     ],
                     [
-                        -72.290721,
-                        18.6537667
+                        -72.1034798,
+                        18.5516215
                     ],
                     [
-                        -72.2910327,
-                        18.6544709
+                        -72.1030789,
+                        18.5516149
                     ],
                     [
-                        -72.2912485,
-                        18.654221
+                        -72.1033752,
+                        18.5515224
                     ],
                     [
-                        -72.29168,
-                        18.6558905
+                        -72.1035042,
+                        18.5515224
                     ],
                     [
-                        -72.2912245,
-                        18.656606
+                        -72.1035239,
+                        18.5502417
                     ],
                     [
-                        -72.2922673,
-                        18.65597
+                        -72.1028701,
+                        18.5503062
                     ],
                     [
-                        -72.2926869,
-                        18.6567536
+                        -72.1029015,
+                        18.55025
                     ],
                     [
-                        -72.2930705,
-                        18.6567309
+                        -72.1028457,
+                        18.5501773
                     ],
                     [
-                        -72.2941253,
-                        18.6581846
+                        -72.1035081,
+                        18.5500252
                     ],
                     [
-                        -72.2960192,
-                        18.6608421
+                        -72.103491,
+                        18.5497396
                     ],
                     [
-                        -72.2959713,
-                        18.6619096
+                        -72.1035181,
+                        18.5497361
                     ],
                     [
-                        -72.2932862,
-                        18.664567
+                        -72.1035398,
+                        18.5489039
                     ],
                     [
-                        -72.2906731,
-                        18.6659979
+                        -72.1034317,
+                        18.5487056
                     ],
                     [
-                        -72.2895943,
-                        18.6661342
+                        -72.102717,
+                        18.5481437
                     ],
                     [
-                        -72.2895943,
-                        18.6665657
+                        -72.1025601,
+                        18.5481536
                     ],
                     [
-                        -72.2877004,
-                        18.6664749
+                        -72.10229,
+                        18.5482751
                     ],
                     [
-                        -72.2875805,
-                        18.6676559
+                        -72.1022891,
+                        18.5482569
                     ],
                     [
-                        -72.2831214,
-                        18.6697227
+                        -72.1025201,
+                        18.5481396
                     ],
                     [
-                        -72.2796453,
-                        18.6696546
+                        -72.1023388,
+                        18.5481321
                     ],
                     [
-                        -72.2784311,
-                        18.6690787
+                        -72.0999082,
+                        18.5480901
                     ],
                     [
-                        -72.2783972,
-                        18.6687736
-                    ],
+                        -72.09907,
+                        18.5483799
+                    ]
+                ],
+                [
                     [
-                        -72.277736,
-                        18.6691671
+                        -72.2542503,
+                        18.568262
                     ],
                     [
-                        -72.2774394,
-                        18.669143
+                        -72.2560252,
+                        18.5717765
                     ],
                     [
-                        -72.2770071,
-                        18.6683159
+                        -72.2557886,
+                        18.5748049
                     ],
                     [
-                        -72.2765575,
-                        18.6681125
+                        -72.2535009,
+                        18.5755526
                     ],
                     [
-                        -72.2765385,
-                        18.6680583
+                        -72.2522782,
+                        18.5755526
                     ],
                     [
-                        -72.2752319,
-                        18.6685239
+                        -72.2499906,
+                        18.5740945
                     ],
                     [
-                        -72.2749292,
-                        18.6674649
+                        -72.2473874,
+                        18.5698323
                     ],
                     [
-                        -72.2746416,
-                        18.6674309
+                        -72.2460069,
+                        18.566729
                     ],
                     [
-                        -72.2734668,
-                        18.6682145
+                        -72.2458492,
+                        18.5629527
                     ],
                     [
-                        -72.2732271,
-                        18.6682712
+                        -72.2479396,
+                        18.5625414
                     ],
                     [
-                        -72.2726757,
-                        18.6671583
+                        -72.2501483,
+                        18.5628031
                     ],
                     [
-                        -72.2719147,
-                        18.6674288
+                        -72.2519232,
+                        18.5650839
+                    ]
+                ],
+                [
+                    [
+                        -72.303145,
+                        18.5332749
                     ],
                     [
-                        -72.2718808,
-                        18.6673405
+                        -72.3031275,
+                        18.5331799
                     ],
                     [
-                        -72.2688149,
-                        18.6681868
+                        -72.3048311,
+                        18.5311081
                     ],
                     [
-                        -72.2688269,
-                        18.6671761
+                        -72.3097397,
+                        18.5311081
                     ],
                     [
-                        -72.2690786,
-                        18.6668241
+                        -72.3164332,
+                        18.5324302
                     ],
                     [
-                        -72.2688149,
-                        18.66679
+                        -72.3234056,
+                        18.5366083
                     ],
                     [
-                        -72.2681077,
-                        18.6670739
+                        -72.3261388,
+                        18.5387765
                     ],
                     [
-                        -72.2676282,
-                        18.6673805
+                        -72.3261946,
+                        18.5426371
                     ],
                     [
-                        -72.2675563,
-                        18.6666878
+                        -72.3170468,
+                        18.5540596
                     ],
                     [
-                        -72.266861,
-                        18.666949
+                        -72.3130864,
+                        18.5540596
                     ],
                     [
-                        -72.2655904,
-                        18.6673578
+                        -72.2987511,
+                        18.5453342
                     ],
                     [
-                        -72.2654466,
-                        18.6670058
+                        -72.2988627,
+                        18.5407333
                     ],
                     [
-                        -72.2647514,
-                        18.6674146
+                        -72.2962969,
+                        18.5404689
                     ],
                     [
-                        -72.2629893,
-                        18.6681868
+                        -72.2954602,
+                        18.5395169
                     ],
                     [
-                        -72.2628455,
-                        18.6681754
+                        -72.2961853,
+                        18.5338582
                     ],
                     [
-                        -72.2626537,
-                        18.6676076
+                        -72.2971893,
+                        18.5332235
                     ],
                     [
-                        -72.2623001,
-                        18.6677098
+                        -72.3007034,
+                        18.5332764
                     ],
                     [
-                        -72.2624799,
-                        18.6679199
+                        -72.3022652,
+                        18.5342284
                     ],
                     [
-                        -72.2624799,
-                        18.6682322
+                        -72.3028486,
+                        18.5335189
                     ],
                     [
-                        -72.262306,
-                        18.6682606
+                        -72.303104,
+                        18.5333361
                     ],
                     [
-                        -72.2620963,
-                        18.6679654
+                        -72.303181,
+                        18.5334007
                     ],
                     [
-                        -72.2622761,
-                        18.6689193
+                        -72.3035793,
+                        18.5335614
                     ],
                     [
-                        -72.2601484,
-                        18.6688966
+                        -72.3030793,
+                        18.5346463
                     ],
                     [
-                        -72.2542749,
-                        18.6687944
+                        -72.303715,
+                        18.5339873
                     ],
                     [
-                        -72.2505388,
-                        18.6683476
+                        -72.3045286,
+                        18.5344052
                     ],
                     [
-                        -72.2504371,
-                        18.669536
+                        -72.3044015,
+                        18.5345097
                     ],
                     [
-                        -72.2477926,
-                        18.6698893
+                        -72.3062747,
+                        18.5352571
                     ],
                     [
-                        -72.2415204,
-                        18.669793
+                        -72.3063107,
+                        18.5352741
                     ],
                     [
-                        -72.2414187,
-                        18.6741933
+                        -72.3061219,
+                        18.5357628
                     ],
                     [
-                        -72.2389167,
-                        18.6739759
+                        -72.3061219,
+                        18.5358196
                     ],
                     [
-                        -72.2387249,
-                        18.6734649
+                        -72.30637,
+                        18.5358928
                     ],
                     [
-                        -72.2383653,
-                        18.6733059
+                        -72.3062726,
+                        18.5354869
                     ],
                     [
-                        -72.2387009,
-                        18.6739532
+                        -72.3066688,
+                        18.5350891
                     ],
                     [
-                        -72.2375502,
-                        18.6738964
+                        -72.3061963,
+                        18.5349706
                     ],
                     [
-                        -72.2374183,
-                        18.6735103
+                        -72.3058869,
+                        18.5349385
                     ],
                     [
-                        -72.237742,
-                        18.67334
+                        -72.3055373,
+                        18.5346833
                     ],
                     [
-                        -72.2375142,
-                        18.6732605
+                        -72.3054864,
+                        18.534613
                     ],
                     [
-                        -72.236843,
-                        18.6734876
+                        -72.3055585,
+                        18.5345065
                     ],
                     [
-                        -72.2364354,
-                        18.6724088
+                        -72.3046749,
+                        18.5342293
                     ],
                     [
-                        -72.2355124,
-                        18.6726019
+                        -72.3047617,
+                        18.5338817
                     ],
                     [
-                        -72.2354045,
-                        18.6724202
+                        -72.3043252,
+                        18.5337511
                     ],
                     [
-                        -72.2353027,
-                        18.6729028
-                    ],
+                        -72.3042595,
+                        18.5336346
+                    ]
+                ],
+                [
                     [
-                        -72.2345475,
-                        18.6726871
+                        -72.2981405,
+                        18.477502
                     ],
                     [
-                        -72.2343077,
-                        18.6724599
+                        -72.2935652,
+                        18.4948587
                     ],
                     [
-                        -72.2342358,
-                        18.6734706
+                        -72.2922242,
+                        18.4964297
                     ],
                     [
-                        -72.2334087,
-                        18.6734592
+                        -72.2931708,
+                        18.4972526
                     ],
                     [
-                        -72.2332889,
-                        18.6733003
+                        -72.2892266,
+                        18.5057058
                     ],
                     [
-                        -72.2327375,
-                        18.6732889
+                        -72.2878067,
+                        18.5080996
                     ],
                     [
-                        -72.2327135,
-                        18.6735047
+                        -72.2850458,
+                        18.5119893
                     ],
                     [
-                        -72.227703,
-                        18.6725281
+                        -72.2840203,
+                        18.5113161
                     ],
                     [
-                        -72.2265283,
-                        18.6716537
+                        -72.2808649,
+                        18.515879
                     ],
                     [
-                        -72.226804,
-                        18.6715742
+                        -72.2773151,
+                        18.5175994
                     ],
                     [
-                        -72.2274993,
-                        18.6715855
+                        -72.2723454,
+                        18.5175246
                     ],
                     [
-                        -72.2274873,
-                        18.6714493
+                        -72.2662714,
+                        18.5144578
                     ],
                     [
-                        -72.2272899,
-                        18.6714623
+                        -72.2665869,
+                        18.5066783
                     ],
                     [
-                        -72.2272814,
-                        18.6712977
+                        -72.2692643,
+                        18.5046154
                     ],
                     [
-                        -72.2272094,
-                        18.671358
+                        -72.2661965,
+                        18.5029756
                     ],
                     [
-                        -72.2261785,
-                        18.6713693
+                        -72.2688181,
+                        18.4965222
                     ],
                     [
-                        -72.2256032,
-                        18.670881
+                        -72.2691528,
+                        18.4959403
                     ],
                     [
-                        -72.2255073,
-                        18.6694502
+                        -72.2702684,
+                        18.4961519
                     ],
                     [
-                        -72.2261066,
-                        18.6696886
+                        -72.2702684,
+                        18.4955964
                     ],
                     [
-                        -72.2261785,
-                        18.6695949
+                        -72.2690691,
+                        18.49557
                     ],
                     [
-                        -72.2259837,
-                        18.6695495
+                        -72.2692922,
+                        18.4937714
                     ],
                     [
-                        -72.225777,
-                        18.6691379
+                        -72.2736988,
+                        18.4859951
                     ],
                     [
-                        -72.2253335,
-                        18.6694643
+                        -72.2746749,
+                        18.4850429
                     ],
                     [
-                        -72.2249739,
-                        18.66947
+                        -72.2751769,
+                        18.483403
                     ],
                     [
-                        -72.2245783,
-                        18.6678802
+                        -72.2765435,
+                        18.4813398
                     ],
                     [
-                        -72.2235525,
-                        18.6677046
+                        -72.2773523,
+                        18.4814985
                     ],
                     [
-                        -72.2235907,
-                        18.6675921
+                        -72.2783006,
+                        18.4809694
                     ],
                     [
-                        -72.2224634,
-                        18.6676283
+                        -72.2778544,
+                        18.4807049
                     ],
                     [
-                        -72.2223659,
-                        18.667022
+                        -72.2771013,
+                        18.480123
                     ],
                     [
-                        -72.2223277,
-                        18.6670943
+                        -72.2789978,
+                        18.4775836
                     ],
                     [
-                        -72.2219209,
-                        18.667026
+                        -72.279723,
+                        18.4772927
                     ],
                     [
-                        -72.2208105,
-                        18.6669015
+                        -72.2806433,
+                        18.4776365
                     ],
                     [
-                        -72.220809,
-                        18.6665325
+                        -72.2813685,
+                        18.4771604
                     ],
                     [
-                        -72.2208705,
-                        18.6663593
+                        -72.2808386,
+                        18.4769752
                     ],
                     [
-                        -72.2206023,
-                        18.6668107
+                        -72.2812848,
+                        18.4758378
                     ],
                     [
-                        -72.2203895,
-                        18.6666361
+                        -72.2823167,
+                        18.4751765
                     ],
                     [
-                        -72.2184341,
-                        18.6650535
+                        -72.2851615,
+                        18.4750971
                     ],
                     [
-                        -72.21829,
-                        18.6640979
+                        -72.2849941,
+                        18.4763668
                     ],
                     [
-                        -72.2183493,
-                        18.6608376
+                        -72.2854404,
+                        18.4769752
                     ],
                     [
-                        -72.2187223,
-                        18.6606541
+                        -72.286277,
+                        18.4756262
                     ],
                     [
-                        -72.2186894,
-                        18.660603
+                        -72.2869325,
+                        18.4754675
                     ],
                     [
-                        -72.2187253,
-                        18.6604525
+                        -72.2865978,
+                        18.4751897
                     ],
                     [
-                        -72.2189771,
-                        18.6603247
+                        -72.2865978,
+                        18.4750046
                     ],
                     [
-                        -72.2187823,
-                        18.6601998
+                        -72.2909765,
+                        18.4747268
                     ],
                     [
-                        -72.2186984,
-                        18.6602367
+                        -72.2946579,
+                        18.4749384
                     ],
                     [
-                        -72.2185815,
-                        18.6600352
-                    ],
+                        -72.2973911,
+                        18.476843
+                    ]
+                ],
+                [
                     [
-                        -72.2186085,
-                        18.6600039
+                        -72.3466657,
+                        18.5222375
                     ],
                     [
-                        -72.2187823,
-                        18.6601345
+                        -72.346833,
+                        18.5244325
                     ],
                     [
-                        -72.218995,
-                        18.6600181
+                        -72.3475303,
+                        18.5277645
                     ],
                     [
-                        -72.2189111,
-                        18.6599131
+                        -72.3455501,
+                        18.5291131
                     ],
                     [
-                        -72.2189681,
-                        18.6597938
+                        -72.3403069,
+                        18.5292189
                     ],
                     [
-                        -72.2183807,
-                        18.6595837
+                        -72.3383267,
+                        18.5280289
                     ],
                     [
-                        -72.2184728,
-                        18.6539662
+                        -72.3369043,
+                        18.530118
                     ],
                     [
-                        -72.2201001,
-                        18.6511554
+                        -72.3338086,
+                        18.5296684
                     ],
                     [
-                        -72.225796,
-                        18.6469472
+                        -72.3289279,
+                        18.5270769
                     ],
                     [
-                        -72.2283048,
-                        18.6457265
+                        -72.328649,
+                        18.5253316
                     ],
                     [
-                        -72.2379335,
-                        18.645855
+                        -72.3292068,
+                        18.5232689
                     ],
                     [
-                        -72.237764,
-                        18.6446985
+                        -72.330406,
+                        18.5220524
                     ],
                     [
-                        -72.2400355,
-                        18.6432529
+                        -72.3321631,
+                        18.5221847
                     ],
                     [
-                        -72.2455958,
-                        18.6433493
+                        -72.3322467,
+                        18.5191963
                     ],
                     [
-                        -72.2482742,
-                        18.6450358
+                        -72.3369183,
+                        18.5183633
                     ],
                     [
-                        -72.2487488,
-                        18.6436705
+                        -72.3382012,
+                        18.5184691
                     ],
                     [
-                        -72.2511067,
-                        18.6429775
+                        -72.3381454,
+                        18.5181782
                     ],
                     [
-                        -72.2512385,
-                        18.6433409
+                        -72.3411993,
+                        18.5177947
                     ],
                     [
-                        -72.2512625,
-                        18.6431592
+                        -72.3454943,
+                        18.5171997
                     ],
                     [
-                        -72.2514843,
-                        18.6431365
+                        -72.3492595,
+                        18.517279
                     ],
                     [
-                        -72.2513284,
-                        18.6429718
+                        -72.3504308,
+                        18.5188922
                     ],
                     [
-                        -72.2533602,
-                        18.6423471
+                        -72.3503472,
+                        18.5206112
                     ],
                     [
-                        -72.253516,
-                        18.6426765
-                    ],
+                        -72.3496778,
+                        18.5220392
+                    ]
+                ],
+                [
                     [
-                        -72.2539535,
-                        18.6425402
+                        -72.3303078,
+                        18.5486462
                     ],
                     [
-                        -72.2541453,
-                        18.642932
+                        -72.3429687,
+                        18.5508149
                     ],
                     [
-                        -72.2543851,
-                        18.6428696
+                        -72.3433236,
+                        18.5530585
                     ],
                     [
-                        -72.2543791,
-                        18.6427503
+                        -72.3413121,
+                        18.5614341
                     ],
                     [
-                        -72.2564168,
-                        18.6423244
+                        -72.3390639,
+                        18.5613593
                     ],
                     [
-                        -72.2566925,
-                        18.6431365
+                        -72.3384723,
+                        18.5638271
                     ],
                     [
-                        -72.2568783,
-                        18.6428582
+                        -72.3375257,
+                        18.5654348
                     ],
                     [
-                        -72.2568184,
-                        18.6425288
+                        -72.3348436,
+                        18.5650609
                     ],
                     [
-                        -72.258843,
-                        18.6420991
+                        -72.3311755,
+                        18.5638271
                     ],
                     [
-                        -72.258885,
-                        18.6422467
+                        -72.3312149,
+                        18.5616211
                     ],
                     [
-                        -72.2592626,
-                        18.6422297
+                        -72.3232082,
+                        18.5606863
                     ],
                     [
-                        -72.2596461,
-                        18.6424057
+                        -72.3212361,
+                        18.559602
                     ],
                     [
-                        -72.2592206,
-                        18.6406907
+                        -72.3208023,
+                        18.5587046
                     ],
                     [
-                        -72.2599545,
-                        18.6404815
+                        -72.3208811,
+                        18.557882
                     ],
                     [
-                        -72.2601156,
-                        18.6406341
+                        -72.3259493,
+                        18.5580274
                     ],
                     [
-                        -72.2601156,
-                        18.6399393
+                        -72.3266186,
+                        18.5581993
                     ],
                     [
-                        -72.2615268,
-                        18.6394669
+                        -72.3259214,
+                        18.5577498
                     ],
                     [
-                        -72.2626056,
-                        18.6391034
+                        -72.3250986,
+                        18.5573797
                     ],
                     [
-                        -72.2654465,
-                        18.6387286
+                        -72.3233767,
+                        18.552263
                     ],
                     [
-                        -72.2719433,
-                        18.6386832
+                        -72.3245994,
+                        18.5478507
                     ],
                     [
-                        -72.272201,
-                        18.6388649
+                        -72.3288986,
+                        18.5483742
                     ],
                     [
-                        -72.2730341,
-                        18.6394158
-                    ],
+                        -72.329979,
+                        18.5489548
+                    ]
+                ],
+                [
                     [
-                        -72.273166,
-                        18.6412558
+                        -72.3231383,
+                        18.5269828
                     ],
                     [
-                        -72.2738732,
-                        18.6410286
+                        -72.3223434,
+                        18.528067
                     ],
                     [
-                        -72.2742208,
-                        18.6416079
+                        -72.3209629,
+                        18.5279745
                     ],
                     [
-                        -72.2752187,
-                        18.6416987
+                        -72.3207816,
+                        18.5271282
                     ],
                     [
-                        -72.2754524,
-                        18.6415738
+                        -72.3208513,
+                        18.5253697
                     ],
                     [
-                        -72.2755513,
-                        18.6416874
+                        -72.3214649,
+                        18.5249598
                     ],
                     [
-                        -72.2755394,
-                        18.6417527
+                        -72.3225666,
+                        18.5248937
                     ],
                     [
-                        -72.2764713,
-                        18.6418634
+                        -72.3228454,
+                        18.52533
                     ],
                     [
-                        -72.276753,
-                        18.6418975
+                        -72.3232359,
+                        18.5264804
+                    ]
+                ],
+                [
+                    [
+                        -72.2160832,
+                        18.6457752
                     ],
                     [
-                        -72.2762953,
-                        18.6426002
+                        -72.2159649,
+                        18.6553795
                     ],
                     [
-                        -72.2774226,
-                        18.6429978
+                        -72.2030279,
+                        18.6558279
                     ],
                     [
-                        -72.277982,
-                        18.6427247
+                        -72.1947057,
+                        18.6553421
                     ],
                     [
-                        -72.2785796,
-                        18.6431303
+                        -72.1922208,
+                        18.6545573
                     ],
                     [
-                        -72.2785669,
-                        18.6432307
+                        -72.1920631,
+                        18.6521283
                     ],
                     [
-                        -72.2789017,
-                        18.6433471
+                        -72.193483,
+                        18.6477559
                     ],
                     [
-                        -72.279851,
-                        18.6439655
+                        -72.201253,
+                        18.6385249
                     ],
                     [
-                        -72.2858703,
-                        18.6469651
-                    ]
-                ],
-                [
+                        -72.2069327,
+                        18.6388239
+                    ],
                     [
-                        -72.5557247,
-                        18.5305893
+                        -72.2120996,
+                        18.6424117
                     ],
                     [
-                        -72.5555866,
-                        18.5367036
+                        -72.2118068,
+                        18.6430591
                     ],
                     [
-                        -72.554995,
-                        18.537975
+                        -72.2121693,
+                        18.6426892
                     ],
                     [
-                        -72.5488026,
-                        18.537919
+                        -72.2127968,
+                        18.6427552
                     ],
                     [
-                        -72.5486646,
-                        18.5372832
+                        -72.2134662,
+                        18.6431252
                     ],
                     [
-                        -72.548842,
-                        18.5306267
+                        -72.2135638,
+                        18.6437462
                     ],
                     [
-                        -72.5493745,
-                        18.5301031
+                        -72.2154176,
+                        18.6443947
                     ],
                     [
-                        -72.555133,
-                        18.5301218
+                        -72.2158909,
+                        18.6450301
                     ]
                 ],
                 [
                     [
-                        -72.6235278,
-                        18.5079877
+                        -72.2867654,
+                        18.6482017
                     ],
                     [
-                        -72.6234441,
-                        18.5095217
+                        -72.2900977,
+                        18.6527446
                     ],
                     [
-                        -72.6226074,
-                        18.5104341
+                        -72.28981,
+                        18.6536532
                     ],
                     [
-                        -72.6204878,
-                        18.511849
+                        -72.2900738,
+                        18.6542664
                     ],
                     [
-                        -72.6183403,
-                        18.5107514
+                        -72.290721,
+                        18.6537667
                     ],
                     [
-                        -72.6162207,
-                        18.5083183
+                        -72.2910327,
+                        18.6544709
                     ],
                     [
-                        -72.6162625,
-                        18.506467
+                        -72.2912485,
+                        18.654221
                     ],
                     [
-                        -72.618661,
-                        18.5044438
+                        -72.29168,
+                        18.6558905
                     ],
                     [
-                        -72.6204041,
-                        18.5044967
+                        -72.2912245,
+                        18.656606
                     ],
                     [
-                        -72.6228305,
-                        18.506996
-                    ]
-                ]
-            ]
-        },
-        {
-            "name": "Ireland Bartholomew Quarter-Inch 1940",
-            "type": "tms",
-            "template": "http://geo.nls.uk/maps/ireland/bartholomew/{zoom}/{x}/{-y}.png",
-            "scaleExtent": [
-                5,
-                13
-            ],
-            "polygon": [
-                [
-                    [
-                        -8.8312773,
-                        55.3963337
+                        -72.2922673,
+                        18.65597
                     ],
                     [
-                        -7.3221271,
-                        55.398605
+                        -72.2926869,
+                        18.6567536
                     ],
                     [
-                        -7.2891331,
-                        55.4333162
+                        -72.2930705,
+                        18.6567309
                     ],
                     [
-                        -7.2368042,
-                        55.4530757
+                        -72.2941253,
+                        18.6581846
                     ],
                     [
-                        -7.18881,
-                        55.4497995
+                        -72.2960192,
+                        18.6608421
                     ],
                     [
-                        -7.1528144,
-                        55.3968384
+                        -72.2959713,
+                        18.6619096
                     ],
                     [
-                        -6.90561,
-                        55.394903
+                        -72.2932862,
+                        18.664567
                     ],
                     [
-                        -6.9047153,
-                        55.3842114
+                        -72.2906731,
+                        18.6659979
                     ],
                     [
-                        -5.8485282,
-                        55.3922956
+                        -72.2895943,
+                        18.6661342
                     ],
                     [
-                        -5.8378629,
-                        55.248676
+                        -72.2895943,
+                        18.6665657
                     ],
                     [
-                        -5.3614762,
-                        55.2507024
+                        -72.2877004,
+                        18.6664749
                     ],
                     [
-                        -5.3899172,
-                        53.8466464
+                        -72.2875805,
+                        18.6676559
                     ],
                     [
-                        -5.8734141,
-                        53.8487436
+                        -72.2831214,
+                        18.6697227
                     ],
                     [
-                        -5.8983,
-                        52.8256258
+                        -72.2796453,
+                        18.6696546
                     ],
                     [
-                        -6.0191742,
-                        52.8256258
+                        -72.2784311,
+                        18.6690787
                     ],
                     [
-                        -6.0262844,
-                        51.7712367
+                        -72.2783972,
+                        18.6687736
                     ],
                     [
-                        -8.1131422,
-                        51.7712367
+                        -72.277736,
+                        18.6691671
                     ],
                     [
-                        -8.1273627,
-                        51.3268839
+                        -72.2774394,
+                        18.669143
                     ],
                     [
-                        -10.6052842,
-                        51.3091083
+                        -72.2770071,
+                        18.6683159
                     ],
                     [
-                        -10.6271879,
-                        52.0328254
+                        -72.2765575,
+                        18.6681125
                     ],
                     [
-                        -10.6469845,
-                        52.0322454
+                        -72.2765385,
+                        18.6680583
                     ],
                     [
-                        -10.6469845,
-                        52.0440365
+                        -72.2752319,
+                        18.6685239
                     ],
                     [
-                        -10.6271879,
-                        52.0448095
+                        -72.2749292,
+                        18.6674649
                     ],
                     [
-                        -10.6290733,
-                        52.0745627
+                        -72.2746416,
+                        18.6674309
                     ],
                     [
-                        -10.6699234,
-                        52.0743695
+                        -72.2734668,
+                        18.6682145
                     ],
                     [
-                        -10.6702376,
-                        52.0876941
+                        -72.2732271,
+                        18.6682712
                     ],
                     [
-                        -10.6312729,
-                        52.0898179
+                        -72.2726757,
+                        18.6671583
                     ],
                     [
-                        -10.6393128,
-                        52.4147202
+                        -72.2719147,
+                        18.6674288
                     ],
                     [
-                        -10.3137689,
-                        52.4185533
+                        -72.2718808,
+                        18.6673405
                     ],
                     [
-                        -10.3166401,
-                        53.3341342
+                        -72.2688149,
+                        18.6681868
                     ],
                     [
-                        -10.3699669,
-                        53.3330727
+                        -72.2688269,
+                        18.6671761
                     ],
                     [
-                        -10.385965,
-                        54.3534472
+                        -72.2690786,
+                        18.6668241
                     ],
                     [
-                        -8.8163777,
-                        54.3586265
+                        -72.2688149,
+                        18.66679
                     ],
                     [
-                        -8.8173427,
-                        54.6595721
+                        -72.2681077,
+                        18.6670739
                     ],
                     [
-                        -8.8413398,
-                        54.6616284
+                        -72.2676282,
+                        18.6673805
                     ],
                     [
-                        -8.8422286,
-                        54.6929749
+                        -72.2675563,
+                        18.6666878
                     ],
                     [
-                        -8.8315632,
-                        54.7145436
+                        -72.266861,
+                        18.666949
                     ],
                     [
-                        -8.8151208,
-                        54.7145436
-                    ]
-                ]
-            ],
-            "terms_url": "http://geo.nls.uk/maps/",
-            "terms_text": "National Library of Scotland Historic Maps"
-        },
-        {
-            "name": "Ireland British War Office One-Inch 1941-43 GSGS 4136",
-            "type": "tms",
-            "template": "http://geo.nls.uk/maps/ireland/gsgs4136/{zoom}/{x}/{-y}.png",
-            "scaleExtent": [
-                5,
-                15
-            ],
-            "polygon": [
-                [
+                        -72.2655904,
+                        18.6673578
+                    ],
                     [
-                        -10.0847426,
-                        51.4147902
+                        -72.2654466,
+                        18.6670058
                     ],
                     [
-                        -10.0906535,
-                        51.5064103
+                        -72.2647514,
+                        18.6674146
                     ],
                     [
-                        -10.4564222,
-                        51.5003961
+                        -72.2629893,
+                        18.6681868
                     ],
                     [
-                        -10.5005905,
-                        52.3043019
+                        -72.2628455,
+                        18.6681754
                     ],
                     [
-                        -10.0837522,
-                        52.312741
+                        -72.2626537,
+                        18.6676076
                     ],
                     [
-                        -10.0840973,
-                        52.3404698
+                        -72.2623001,
+                        18.6677098
                     ],
                     [
-                        -10.055802,
-                        52.3408915
+                        -72.2624799,
+                        18.6679199
                     ],
                     [
-                        -10.0768509,
-                        52.7628238
+                        -72.2624799,
+                        18.6682322
                     ],
                     [
-                        -9.7780248,
-                        52.7684611
+                        -72.262306,
+                        18.6682606
                     ],
                     [
-                        -9.7818205,
-                        52.8577261
+                        -72.2620963,
+                        18.6679654
                     ],
                     [
-                        -9.6337877,
-                        52.8596012
+                        -72.2622761,
+                        18.6689193
                     ],
                     [
-                        -9.6449626,
-                        53.1294502
+                        -72.2601484,
+                        18.6688966
                     ],
                     [
-                        -10.0919663,
-                        53.1227152
+                        -72.2542749,
+                        18.6687944
                     ],
                     [
-                        -10.1051422,
-                        53.3912913
+                        -72.2505388,
+                        18.6683476
                     ],
                     [
-                        -10.4052593,
-                        53.3866349
+                        -72.2504371,
+                        18.669536
                     ],
                     [
-                        -10.4530828,
-                        54.193502
+                        -72.2477926,
+                        18.6698893
                     ],
                     [
-                        -10.2998523,
-                        54.1974988
+                        -72.2415204,
+                        18.669793
                     ],
                     [
-                        -10.3149801,
-                        54.4669592
+                        -72.2414187,
+                        18.6741933
                     ],
                     [
-                        -8.9276095,
-                        54.4853897
+                        -72.2389167,
+                        18.6739759
                     ],
                     [
-                        -8.9339534,
-                        54.7546562
+                        -72.2387249,
+                        18.6734649
                     ],
                     [
-                        -8.7773069,
-                        54.755501
+                        -72.2383653,
+                        18.6733059
                     ],
                     [
-                        -8.7826749,
-                        55.0252208
+                        -72.2387009,
+                        18.6739532
                     ],
                     [
-                        -8.9402974,
-                        55.0238221
+                        -72.2375502,
+                        18.6738964
                     ],
                     [
-                        -8.9451773,
-                        55.2934155
+                        -72.2374183,
+                        18.6735103
                     ],
                     [
-                        -7.528039,
-                        55.2970274
+                        -72.237742,
+                        18.67334
                     ],
                     [
-                        -7.525599,
-                        55.3874955
+                        -72.2375142,
+                        18.6732605
                     ],
                     [
-                        -7.0541955,
-                        55.3841691
+                        -72.236843,
+                        18.6734876
                     ],
                     [
-                        -7.0556595,
-                        55.2939712
+                        -72.2364354,
+                        18.6724088
                     ],
                     [
-                        -6.3241545,
-                        55.2859128
+                        -72.2355124,
+                        18.6726019
                     ],
                     [
-                        -6.3217146,
-                        55.3253556
+                        -72.2354045,
+                        18.6724202
                     ],
                     [
-                        -6.1035807,
-                        55.3223016
+                        -72.2353027,
+                        18.6729028
                     ],
                     [
-                        -6.1045566,
-                        55.2828557
+                        -72.2345475,
+                        18.6726871
                     ],
                     [
-                        -5.7985836,
-                        55.2772968
+                        -72.2343077,
+                        18.6724599
                     ],
                     [
-                        -5.8117595,
-                        55.0087135
+                        -72.2342358,
+                        18.6734706
                     ],
                     [
-                        -5.656577,
-                        55.0056351
+                        -72.2334087,
+                        18.6734592
                     ],
                     [
-                        -5.6721928,
-                        54.7355021
+                        -72.2332889,
+                        18.6733003
                     ],
                     [
-                        -5.3618278,
-                        54.729585
+                        -72.2327375,
+                        18.6732889
                     ],
                     [
-                        -5.3964755,
-                        54.1917889
+                        -72.2327135,
+                        18.6735047
                     ],
                     [
-                        -5.855679,
-                        54.2017807
+                        -72.227703,
+                        18.6725281
                     ],
                     [
-                        -5.9220464,
-                        52.8524504
+                        -72.2265283,
+                        18.6716537
                     ],
                     [
-                        -6.070885,
-                        52.8551025
+                        -72.226804,
+                        18.6715742
                     ],
                     [
-                        -6.1030927,
-                        52.1373337
+                        -72.2274993,
+                        18.6715855
                     ],
                     [
-                        -6.8331336,
-                        52.1463183
+                        -72.2274873,
+                        18.6714493
                     ],
                     [
-                        -6.8355736,
-                        52.0578908
-                    ],
-                    [
-                        -7.5641506,
-                        52.0617913
-                    ],
-                    [
-                        -7.5661026,
-                        51.7921593
-                    ],
-                    [
-                        -8.147305,
-                        51.792763
-                    ],
-                    [
-                        -8.146329,
-                        51.7033331
+                        -72.2272899,
+                        18.6714623
                     ],
                     [
-                        -8.2912636,
-                        51.7027283
+                        -72.2272814,
+                        18.6712977
                     ],
                     [
-                        -8.2897996,
-                        51.5227274
+                        -72.2272094,
+                        18.671358
                     ],
                     [
-                        -9.1174397,
-                        51.516958
+                        -72.2261785,
+                        18.6713693
                     ],
                     [
-                        -9.1179277,
-                        51.4625685
+                        -72.2256032,
+                        18.670881
                     ],
                     [
-                        -9.3692452,
-                        51.4616564
+                        -72.2255073,
+                        18.6694502
                     ],
                     [
-                        -9.3672933,
-                        51.4254613
-                    ]
-                ]
-            ],
-            "terms_url": "http://geo.nls.uk/maps/",
-            "terms_text": "National Library of Scotland Historic Maps"
-        },
-        {
-            "name": "Ireland EEA CORINE 2006",
-            "type": "tms",
-            "template": "http://a.tile.openstreetmap.ie/tiles/corine/{zoom}/{x}/{y}.png",
-            "scaleExtent": [
-                5,
-                16
-            ],
-            "polygon": [
-                [
-                    [
-                        -5.842956,
-                        53.8627976
+                        -72.2261066,
+                        18.6696886
                     ],
                     [
-                        -5.8341575,
-                        53.7633541
+                        -72.2261785,
+                        18.6695949
                     ],
                     [
-                        -5.6267647,
-                        53.5383692
+                        -72.2259837,
+                        18.6695495
                     ],
                     [
-                        -5.9648778,
-                        52.1631197
+                        -72.225777,
+                        18.6691379
                     ],
                     [
-                        -6.0453211,
-                        52.0527275
+                        -72.2253335,
+                        18.6694643
                     ],
                     [
-                        -6.1823261,
-                        51.9699475
+                        -72.2249739,
+                        18.66947
                     ],
                     [
-                        -6.3960035,
-                        51.9234618
+                        -72.2245783,
+                        18.6678802
                     ],
                     [
-                        -6.5945978,
-                        51.883911
+                        -72.2235525,
+                        18.6677046
                     ],
                     [
-                        -7.2481994,
-                        51.9056295
+                        -72.2235907,
+                        18.6675921
                     ],
                     [
-                        -7.341212,
-                        51.8148076
+                        -72.2224634,
+                        18.6676283
                     ],
                     [
-                        -8.1971787,
-                        51.5037019
+                        -72.2223659,
+                        18.667022
                     ],
                     [
-                        -8.3191005,
-                        51.4167737
+                        -72.2223277,
+                        18.6670943
                     ],
                     [
-                        -9.4478202,
-                        51.1991221
+                        -72.2219209,
+                        18.667026
                     ],
                     [
-                        -9.9015706,
-                        51.2266802
+                        -72.2208105,
+                        18.6669015
                     ],
                     [
-                        -10.472215,
-                        51.4050139
+                        -72.220809,
+                        18.6665325
                     ],
                     [
-                        -10.8857437,
-                        51.6770619
+                        -72.2208705,
+                        18.6663593
                     ],
                     [
-                        -11.035318,
-                        52.0620016
+                        -72.2206023,
+                        18.6668107
                     ],
                     [
-                        -10.9950963,
-                        52.1831616
+                        -72.2203895,
+                        18.6666361
                     ],
                     [
-                        -10.8178697,
-                        52.3139827
+                        -72.2184341,
+                        18.6650535
                     ],
                     [
-                        -9.8839736,
-                        52.9032208
+                        -72.21829,
+                        18.6640979
                     ],
                     [
-                        -10.1165049,
-                        52.9676141
+                        -72.2183493,
+                        18.6608376
                     ],
                     [
-                        -10.5514014,
-                        53.3317027
+                        -72.2187223,
+                        18.6606541
                     ],
                     [
-                        -10.6896633,
-                        53.5854022
+                        -72.2186894,
+                        18.660603
                     ],
                     [
-                        -10.6444139,
-                        54.0100436
+                        -72.2187253,
+                        18.6604525
                     ],
                     [
-                        -10.5501445,
-                        54.257482
+                        -72.2189771,
+                        18.6603247
                     ],
                     [
-                        -10.2824192,
-                        54.4742405
+                        -72.2187823,
+                        18.6601998
                     ],
                     [
-                        -9.8073011,
-                        54.5705346
+                        -72.2186984,
+                        18.6602367
                     ],
                     [
-                        -9.196435,
-                        54.5486695
+                        -72.2185815,
+                        18.6600352
                     ],
                     [
-                        -9.2253443,
-                        54.7000264
+                        -72.2186085,
+                        18.6600039
                     ],
                     [
-                        -8.8985435,
-                        55.1363582
+                        -72.2187823,
+                        18.6601345
                     ],
                     [
-                        -8.0476045,
-                        55.4711977
+                        -72.218995,
+                        18.6600181
                     ],
                     [
-                        -7.4367384,
-                        55.6191092
+                        -72.2189111,
+                        18.6599131
                     ],
                     [
-                        -7.2205471,
-                        55.6205288
+                        -72.2189681,
+                        18.6597938
                     ],
                     [
-                        -6.8258723,
-                        55.5608644
+                        -72.2183807,
+                        18.6595837
                     ],
                     [
-                        -6.0679458,
-                        55.3727567
+                        -72.2184728,
+                        18.6539662
                     ],
                     [
-                        -5.5639184,
-                        55.0759594
+                        -72.2201001,
+                        18.6511554
                     ],
                     [
-                        -5.0649187,
-                        54.4640142
+                        -72.225796,
+                        18.6469472
                     ],
                     [
-                        -5.2572284,
-                        54.1582424
-                    ]
-                ]
-            ],
-            "terms_url": "http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1",
-            "terms_text": "EEA Corine 2006"
-        },
-        {
-            "name": "Ireland EEA GMES Urban Atlas",
-            "type": "tms",
-            "template": "http://a.tile.openstreetmap.ie/tiles/urbanatlas/{zoom}/{x}/{y}.png",
-            "scaleExtent": [
-                5,
-                17
-            ],
-            "polygon": [
-                [
-                    [
-                        -9.2759602,
-                        52.7993666
+                        -72.2283048,
+                        18.6457265
                     ],
                     [
-                        -9.215509,
-                        52.8276933
+                        -72.2379335,
+                        18.645855
                     ],
                     [
-                        -9.1086618,
-                        52.9128016
+                        -72.237764,
+                        18.6446985
                     ],
                     [
-                        -9.0196831,
-                        52.8837107
+                        -72.2400355,
+                        18.6432529
                     ],
                     [
-                        -8.8760649,
-                        52.8978445
+                        -72.2455958,
+                        18.6433493
                     ],
                     [
-                        -8.8001797,
-                        52.8833558
+                        -72.2482742,
+                        18.6450358
                     ],
                     [
-                        -8.7665597,
-                        52.9065354
+                        -72.2487488,
+                        18.6436705
                     ],
                     [
-                        -8.5938079,
-                        52.9238592
+                        -72.2511067,
+                        18.6429775
                     ],
                     [
-                        -8.5241972,
-                        52.8869724
+                        -72.2512385,
+                        18.6433409
                     ],
                     [
-                        -8.4956786,
-                        52.9105906
+                        -72.2512625,
+                        18.6431592
                     ],
                     [
-                        -8.3506448,
-                        52.9238592
+                        -72.2514843,
+                        18.6431365
                     ],
                     [
-                        -8.2718204,
-                        52.9492401
+                        -72.2513284,
+                        18.6429718
                     ],
                     [
-                        -8.2249679,
-                        52.8991338
+                        -72.2533602,
+                        18.6423471
                     ],
                     [
-                        -8.1564001,
-                        52.9149986
+                        -72.253516,
+                        18.6426765
                     ],
                     [
-                        -8.0881237,
-                        52.7630417
+                        -72.2539535,
+                        18.6425402
                     ],
                     [
-                        -8.1360092,
-                        52.7239783
+                        -72.2541453,
+                        18.642932
                     ],
                     [
-                        -8.1570652,
-                        52.6766443
+                        -72.2543851,
+                        18.6428696
                     ],
                     [
-                        -8.2059695,
-                        52.6185385
+                        -72.2543791,
+                        18.6427503
                     ],
                     [
-                        -8.2025734,
-                        52.5954396
+                        -72.2564168,
+                        18.6423244
                     ],
                     [
-                        -8.2231242,
-                        52.5599691
+                        -72.2566925,
+                        18.6431365
                     ],
                     [
-                        -8.2236294,
-                        52.5095371
+                        -72.2568783,
+                        18.6428582
                     ],
                     [
-                        -8.2976651,
-                        52.5025088
+                        -72.2568184,
+                        18.6425288
                     ],
                     [
-                        -8.3295888,
-                        52.4721087
+                        -72.258843,
+                        18.6420991
                     ],
                     [
-                        -8.3589695,
-                        52.4986072
+                        -72.258885,
+                        18.6422467
                     ],
                     [
-                        -8.3737385,
-                        52.4764529
+                        -72.2592626,
+                        18.6422297
                     ],
                     [
-                        -8.432326,
-                        52.4342609
+                        -72.2596461,
+                        18.6424057
                     ],
                     [
-                        -8.4754569,
-                        52.4216289
+                        -72.2592206,
+                        18.6406907
                     ],
                     [
-                        -8.5017727,
-                        52.3870011
+                        -72.2599545,
+                        18.6404815
                     ],
                     [
-                        -8.5476205,
-                        52.3681351
+                        -72.2601156,
+                        18.6406341
                     ],
                     [
-                        -8.6444103,
-                        52.3376422
+                        -72.2601156,
+                        18.6399393
                     ],
                     [
-                        -8.6841451,
-                        52.3660614
+                        -72.2615268,
+                        18.6394669
                     ],
                     [
-                        -8.8154099,
-                        52.3721014
+                        -72.2626056,
+                        18.6391034
                     ],
                     [
-                        -8.8614233,
-                        52.3521652
+                        -72.2654465,
+                        18.6387286
                     ],
                     [
-                        -8.9074451,
-                        52.3824674
+                        -72.2719433,
+                        18.6386832
                     ],
                     [
-                        -8.9388551,
-                        52.3789166
+                        -72.272201,
+                        18.6388649
                     ],
                     [
-                        -8.9782502,