X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2f6165e040dff4231922a4d631085b6591d3b746..e5c4822d2cbae7ebd6efa9c10c2f09a63750aa61:/vendor/assets/iD/iD.js diff --git a/vendor/assets/iD/iD.js b/vendor/assets/iD/iD.js index e71d24583..14dafc8f5 100644 --- a/vendor/assets/iD/iD.js +++ b/vendor/assets/iD/iD.js @@ -175,7 +175,7 @@ })(this); !function(){ - var d3 = {version: "3.4.6"}; // semver + var d3 = {version: "3.5.5"}; // semver d3.ascending = d3_ascending; function d3_ascending(a, b) { @@ -190,10 +190,10 @@ d3.min = function(array, f) { a, b; if (arguments.length === 1) { - while (++i < n && !((a = array[i]) != null && a <= a)) a = undefined; + while (++i < n) if ((b = array[i]) != null && b >= b) { a = b; break; } while (++i < n) if ((b = array[i]) != null && a > b) a = b; } else { - while (++i < n && !((a = f.call(array, array[i], i)) != null && a <= a)) a = undefined; + while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) { a = b; break; } while (++i < n) if ((b = f.call(array, array[i], i)) != null && a > b) a = b; } return a; @@ -204,10 +204,10 @@ d3.max = function(array, f) { a, b; if (arguments.length === 1) { - while (++i < n && !((a = array[i]) != null && a <= a)) a = undefined; + while (++i < n) if ((b = array[i]) != null && b >= b) { a = b; break; } while (++i < n) if ((b = array[i]) != null && b > a) a = b; } else { - while (++i < n && !((a = f.call(array, array[i], i)) != null && a <= a)) a = undefined; + while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) { a = b; break; } while (++i < n) if ((b = f.call(array, array[i], i)) != null && b > a) a = b; } return a; @@ -219,13 +219,13 @@ d3.extent = function(array, f) { b, c; if (arguments.length === 1) { - while (++i < n && !((a = c = array[i]) != null && a <= a)) a = c = undefined; + while (++i < n) if ((b = array[i]) != null && b >= b) { a = c = b; break; } while (++i < n) if ((b = array[i]) != null) { if (a > b) a = b; if (c < b) c = b; } } else { - while (++i < n && !((a = c = f.call(array, array[i], i)) != null && a <= a)) a = undefined; + while (++i < n) if ((b = f.call(array, array[i], i)) != null && b >= b) { a = c = b; break; } while (++i < n) if ((b = f.call(array, array[i], i)) != null) { if (a > b) a = b; if (c < b) c = b; @@ -233,23 +233,26 @@ d3.extent = function(array, f) { } return [a, c]; }; +function d3_number(x) { + return x === null ? NaN : +x; +} + +function d3_numeric(x) { + return !isNaN(x); +} + d3.sum = function(array, f) { var s = 0, n = array.length, a, i = -1; - if (arguments.length === 1) { - while (++i < n) if (!isNaN(a = +array[i])) s += a; + while (++i < n) if (d3_numeric(a = +array[i])) s += a; // zero and null are equivalent } else { - while (++i < n) if (!isNaN(a = +f.call(array, array[i], i))) s += a; + while (++i < n) if (d3_numeric(a = +f.call(array, array[i], i))) s += a; } - return s; }; -function d3_number(x) { - return x != null && !isNaN(x); -} d3.mean = function(array, f) { var s = 0, @@ -258,11 +261,11 @@ d3.mean = function(array, f) { i = -1, j = n; if (arguments.length === 1) { - while (++i < n) if (d3_number(a = array[i])) s += a; else --j; + while (++i < n) if (d3_numeric(a = d3_number(array[i]))) s += a; else --j; } else { - while (++i < n) if (d3_number(a = f.call(array, array[i], i))) s += a; else --j; + while (++i < n) if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) s += a; else --j; } - return j ? s / j : undefined; + if (j) return s / j; }; // R-7 per d3.quantile = function(values, p) { @@ -274,9 +277,49 @@ d3.quantile = function(values, p) { }; d3.median = function(array, f) { - if (arguments.length > 1) array = array.map(f); - array = array.filter(d3_number); - return array.length ? d3.quantile(array.sort(d3_ascending), .5) : undefined; + var numbers = [], + n = array.length, + a, + i = -1; + if (arguments.length === 1) { + while (++i < n) if (d3_numeric(a = d3_number(array[i]))) numbers.push(a); + } else { + while (++i < n) if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) numbers.push(a); + } + if (numbers.length) return d3.quantile(numbers.sort(d3_ascending), .5); +}; + +d3.variance = function(array, f) { + var n = array.length, + m = 0, + a, + d, + s = 0, + i = -1, + j = 0; + if (arguments.length === 1) { + while (++i < n) { + if (d3_numeric(a = d3_number(array[i]))) { + d = a - m; + m += d / ++j; + s += d * (a - m); + } + } + } else { + while (++i < n) { + if (d3_numeric(a = d3_number(f.call(array, array[i], i)))) { + d = a - m; + m += d / ++j; + s += d * (a - m); + } + } + } + if (j > 1) return s / (j - 1); +}; + +d3.deviation = function() { + var v = d3.variance.apply(this, arguments); + return v ? Math.sqrt(v) : v; }; function d3_bisector(compare) { @@ -313,11 +356,12 @@ d3.bisector = function(f) { ? function(d, x) { return d3_ascending(f(d), x); } : f); }; -d3.shuffle = function(array) { - var m = array.length, t, i; +d3.shuffle = function(array, i0, i1) { + if ((m = arguments.length) < 3) { i1 = array.length; if (m < 2) i0 = 0; } + var m = i1 - i0, t, i; while (m) { i = Math.random() * m-- | 0; - t = array[m], array[m] = array[i], array[i] = t; + t = array[m + i0], array[m + i0] = array[i + i0], array[i + i0] = t; } return array; }; @@ -412,80 +456,94 @@ function d3_range_integerScale(x) { return k; } function d3_class(ctor, properties) { - try { - for (var key in properties) { - Object.defineProperty(ctor.prototype, key, { - value: properties[key], - enumerable: false - }); - } - } catch (e) { - ctor.prototype = properties; + for (var key in properties) { + Object.defineProperty(ctor.prototype, key, { + value: properties[key], + enumerable: false + }); } } -d3.map = function(object) { +d3.map = function(object, f) { var map = new d3_Map; - if (object instanceof d3_Map) object.forEach(function(key, value) { map.set(key, value); }); - else for (var key in object) map.set(key, object[key]); + if (object instanceof d3_Map) { + object.forEach(function(key, value) { map.set(key, value); }); + } else if (Array.isArray(object)) { + var i = -1, + n = object.length, + o; + if (arguments.length === 1) while (++i < n) map.set(i, object[i]); + else while (++i < n) map.set(f.call(object, o = object[i], i), o); + } else { + for (var key in object) map.set(key, object[key]); + } return map; }; -function d3_Map() {} +function d3_Map() { + this._ = Object.create(null); +} + +var d3_map_proto = "__proto__", + d3_map_zero = "\0"; d3_class(d3_Map, { has: d3_map_has, get: function(key) { - return this[d3_map_prefix + key]; + return this._[d3_map_escape(key)]; }, set: function(key, value) { - return this[d3_map_prefix + key] = value; + return this._[d3_map_escape(key)] = value; }, remove: d3_map_remove, keys: d3_map_keys, values: function() { var values = []; - this.forEach(function(key, value) { values.push(value); }); + for (var key in this._) values.push(this._[key]); return values; }, entries: function() { var entries = []; - this.forEach(function(key, value) { entries.push({key: key, value: value}); }); + for (var key in this._) entries.push({key: d3_map_unescape(key), value: this._[key]}); return entries; }, size: d3_map_size, empty: d3_map_empty, forEach: function(f) { - for (var key in this) if (key.charCodeAt(0) === d3_map_prefixCode) f.call(this, key.substring(1), this[key]); + for (var key in this._) f.call(this, d3_map_unescape(key), this._[key]); } }); -var d3_map_prefix = "\0", // prevent collision with built-ins - d3_map_prefixCode = d3_map_prefix.charCodeAt(0); +function d3_map_escape(key) { + return (key += "") === d3_map_proto || key[0] === d3_map_zero ? d3_map_zero + key : key; +} + +function d3_map_unescape(key) { + return (key += "")[0] === d3_map_zero ? key.slice(1) : key; +} function d3_map_has(key) { - return d3_map_prefix + key in this; + return d3_map_escape(key) in this._; } function d3_map_remove(key) { - key = d3_map_prefix + key; - return key in this && delete this[key]; + return (key = d3_map_escape(key)) in this._ && delete this._[key]; } function d3_map_keys() { var keys = []; - this.forEach(function(key) { keys.push(key); }); + for (var key in this._) keys.push(d3_map_unescape(key)); return keys; } function d3_map_size() { var size = 0; - for (var key in this) if (key.charCodeAt(0) === d3_map_prefixCode) ++size; + for (var key in this._) ++size; return size; } function d3_map_empty() { - for (var key in this) if (key.charCodeAt(0) === d3_map_prefixCode) return false; + for (var key in this._) return false; return true; } @@ -591,42 +649,39 @@ d3.set = function(array) { return set; }; -function d3_Set() {} +function d3_Set() { + this._ = Object.create(null); +} d3_class(d3_Set, { has: d3_map_has, - add: function(value) { - this[d3_map_prefix + value] = true; - return value; - }, - remove: function(value) { - value = d3_map_prefix + value; - return value in this && delete this[value]; + add: function(key) { + this._[d3_map_escape(key += "")] = true; + return key; }, + remove: d3_map_remove, values: d3_map_keys, size: d3_map_size, empty: d3_map_empty, forEach: function(f) { - for (var value in this) if (value.charCodeAt(0) === d3_map_prefixCode) f.call(this, value.substring(1)); + for (var key in this._) f.call(this, d3_map_unescape(key)); } }); d3.behavior = {}; -var d3_arraySlice = [].slice, - d3_array = function(list) { return d3_arraySlice.call(list); }; // conversion for NodeLists +var d3_document = this.document; -var d3_document = document, - d3_documentElement = d3_document.documentElement, - d3_window = window; - -// Redefine d3_array if the browser doesn’t support slice-based conversion. -try { - d3_array(d3_documentElement.childNodes)[0].nodeType; -} catch(e) { - d3_array = function(list) { - var i = list.length, array = new Array(i); - while (i--) array[i] = list[i]; - return array; - }; +function d3_documentElement(node) { + return node + && (node.ownerDocument // node is a Node + || node.document // node is a Window + || node).documentElement; // node is a Document +} + +function d3_window(node) { + return node + && ((node.ownerDocument && node.ownerDocument.defaultView) // node is a Node + || (node.document && node) // node is a Window + || node.defaultView); // node is a Document } // Copies a variable number of methods from source to target. d3.rebind = function(target, source) { @@ -644,10 +699,9 @@ function d3_rebind(target, source, method) { return value === source ? target : value; }; } - function d3_vendorSymbol(object, name) { if (name in object) return name; - name = name.charAt(0).toUpperCase() + name.substring(1); + name = name.charAt(0).toUpperCase() + name.slice(1); for (var i = 0, n = d3_vendorPrefixes.length; i < n; ++i) { var prefixName = d3_vendorPrefixes[i] + name; if (prefixName in object) return prefixName; @@ -655,6 +709,8 @@ function d3_vendorSymbol(object, name) { } var d3_vendorPrefixes = ["webkit", "ms", "moz", "Moz", "o", "O"]; +var d3_arraySlice = [].slice, + d3_array = function(list) { return d3_arraySlice.call(list); }; // conversion for NodeLists function d3_noop() {} d3.dispatch = function() { @@ -673,8 +729,8 @@ d3_dispatch.prototype.on = function(type, listener) { // Extract optional namespace, e.g., "click.foo" if (i >= 0) { - name = type.substring(i + 1); - type = type.substring(0, i); + name = type.slice(i + 1); + type = type.slice(0, i); } if (type) return arguments.length < 2 @@ -802,8 +858,13 @@ function d3_selection(groups) { var d3_select = function(s, n) { return n.querySelector(s); }, d3_selectAll = function(s, n) { return n.querySelectorAll(s); }, - d3_selectMatcher = d3_documentElement[d3_vendorSymbol(d3_documentElement, "matchesSelector")], - d3_selectMatches = function(n, s) { return d3_selectMatcher.call(n, s); }; + d3_selectMatches = function(n, s) { + var d3_selectMatcher = n.matches || n[d3_vendorSymbol(n, "matchesSelector")]; + d3_selectMatches = function(n, s) { + return d3_selectMatcher.call(n, s); + }; + return d3_selectMatches(n, s); + }; // Prefer Sizzle, if available. if (typeof Sizzle === "function") { @@ -813,7 +874,7 @@ if (typeof Sizzle === "function") { } d3.selection = function() { - return d3_selectionRoot; + return d3.select(d3_document.documentElement); }; var d3_selectionPrototype = d3.selection.prototype = []; @@ -888,8 +949,8 @@ d3.ns = { var i = name.indexOf(":"), prefix = name; if (i >= 0) { - prefix = name.substring(0, i); - name = name.substring(i + 1); + prefix = name.slice(0, i); + name = name.slice(i + 1); } return d3_nsPrefix.hasOwnProperty(prefix) ? {space: d3_nsPrefix[prefix], local: name} @@ -994,7 +1055,7 @@ function d3_selection_classedRe(name) { } function d3_selection_classes(name) { - return name.trim().split(/^|\s+/); + return (name + "").trim().split(/^|\s+/); } // Multiple class names are allowed (e.g., "foo bar"). @@ -1048,7 +1109,10 @@ d3_selectionPrototype.style = function(name, value, priority) { } // For style(string), return the computed style value for the first node. - if (n < 2) return d3_window.getComputedStyle(this.node(), null).getPropertyValue(name); + if (n < 2) { + var node = this.node(); + return d3_window(node).getComputedStyle(node, null).getPropertyValue(name); + } // For style(string, string) or style(string, function), use the default // priority. The priority is ignored for style(string, null). @@ -1155,9 +1219,22 @@ d3_selectionPrototype.append = function(name) { }; function d3_selection_creator(name) { + + function create() { + var document = this.ownerDocument, + namespace = this.namespaceURI; + return namespace + ? document.createElementNS(namespace, name) + : document.createElement(name); + } + + function createNS() { + return this.ownerDocument.createElementNS(name.space, name.local); + } + return typeof name === "function" ? name - : (name = d3.ns.qualify(name)).local ? function() { return this.ownerDocument.createElementNS(name.space, name.local); } - : function() { return this.ownerDocument.createElementNS(this.namespaceURI, name); }; + : (name = d3.ns.qualify(name)).local ? createNS + : create; } d3_selectionPrototype.insert = function(name, before) { @@ -1172,12 +1249,14 @@ d3_selectionPrototype.insert = function(name, before) { // TODO remove(node)? // TODO remove(function)? d3_selectionPrototype.remove = function() { - return this.each(function() { - var parent = this.parentNode; - if (parent) parent.removeChild(this); - }); + return this.each(d3_selectionRemove); }; +function d3_selectionRemove() { + var parent = this.parentNode; + if (parent) parent.removeChild(this); +} + d3_selectionPrototype.data = function(value, key) { var i = -1, n = this.length, @@ -1208,34 +1287,30 @@ d3_selectionPrototype.data = function(value, key) { if (key) { var nodeByKeyValue = new d3_Map, - dataByKeyValue = new d3_Map, - keyValues = [], + keyValues = new Array(n), keyValue; for (i = -1; ++i < n;) { - keyValue = key.call(node = group[i], node.__data__, i); - if (nodeByKeyValue.has(keyValue)) { + if (nodeByKeyValue.has(keyValue = key.call(node = group[i], node.__data__, i))) { exitNodes[i] = node; // duplicate selection key } else { nodeByKeyValue.set(keyValue, node); } - keyValues.push(keyValue); + keyValues[i] = keyValue; } for (i = -1; ++i < m;) { - keyValue = key.call(groupData, nodeData = groupData[i], i); - if (node = nodeByKeyValue.get(keyValue)) { + if (!(node = nodeByKeyValue.get(keyValue = key.call(groupData, nodeData = groupData[i], i)))) { + enterNodes[i] = d3_selection_dataNode(nodeData); + } else if (node !== true) { // no duplicate data key updateNodes[i] = node; node.__data__ = nodeData; - } else if (!dataByKeyValue.has(keyValue)) { // no duplicate data key - enterNodes[i] = d3_selection_dataNode(nodeData); } - dataByKeyValue.set(keyValue, nodeData); - nodeByKeyValue.remove(keyValue); + nodeByKeyValue.set(keyValue, true); } for (i = -1; ++i < n;) { - if (nodeByKeyValue.has(keyValues[i])) { + if (nodeByKeyValue.get(keyValues[i]) !== true) { exitNodes[i] = group[i]; } } @@ -1389,7 +1464,7 @@ d3_selectionPrototype.node = function() { d3_selectionPrototype.size = function() { var n = 0; - this.each(function() { ++n; }); + d3_selection_each(this, function() { ++n; }); return n; }; @@ -1453,51 +1528,31 @@ function d3_selection_enterInsertBefore(enter) { }; } -// import "../transition/transition"; - -d3_selectionPrototype.transition = function() { - var id = d3_transitionInheritId || ++d3_transitionId, - subgroups = [], - subgroup, - node, - transition = d3_transitionInherit || {time: Date.now(), ease: d3_ease_cubicInOut, delay: 0, duration: 250}; - - for (var j = -1, m = this.length; ++j < m;) { - subgroups.push(subgroup = []); - for (var group = this[j], i = -1, n = group.length; ++i < n;) { - if (node = group[i]) d3_transitionNode(node, i, id, transition); - subgroup.push(node); - } - } - - return d3_transition(subgroups, id); -}; -// import "../transition/transition"; - -d3_selectionPrototype.interrupt = function() { - return this.each(d3_selection_interrupt); -}; - -function d3_selection_interrupt() { - var lock = this.__transition__; - if (lock) ++lock.active; -} - // TODO fast singleton implementation? d3.select = function(node) { - var group = [typeof node === "string" ? d3_select(node, d3_document) : node]; - group.parentNode = d3_documentElement; + var group; + if (typeof node === "string") { + group = [d3_select(node, d3_document)]; + group.parentNode = d3_document.documentElement; + } else { + group = [node]; + group.parentNode = d3_documentElement(node); + } return d3_selection([group]); }; d3.selectAll = function(nodes) { - var group = d3_array(typeof nodes === "string" ? d3_selectAll(nodes, d3_document) : nodes); - group.parentNode = d3_documentElement; + var group; + if (typeof nodes === "string") { + group = d3_array(d3_selectAll(nodes, d3_document)); + group.parentNode = d3_document.documentElement; + } else { + group = nodes; + group.parentNode = null; + } return d3_selection([group]); }; -var d3_selectionRoot = d3.select(d3_documentElement); - d3_selectionPrototype.on = function(type, listener, capture) { var n = arguments.length; if (n < 3) { @@ -1527,7 +1582,7 @@ function d3_selection_on(type, listener, capture) { i = type.indexOf("."), wrap = d3_selection_onListener; - if (i > 0) type = type.substring(0, i); + if (i > 0) type = type.slice(0, i); var filter = d3_selection_onFilters.get(type); if (filter) type = filter, wrap = d3_selection_onFilter; @@ -1569,9 +1624,11 @@ var d3_selection_onFilters = d3.map({ mouseleave: "mouseout" }); -d3_selection_onFilters.forEach(function(k) { - if ("on" + k in d3_document) d3_selection_onFilters.remove(k); -}); +if (d3_document) { + d3_selection_onFilters.forEach(function(k) { + if ("on" + k in d3_document) d3_selection_onFilters.remove(k); + }); +} function d3_selection_onListener(listener, argumentz) { return function(e) { @@ -1596,26 +1653,33 @@ function d3_selection_onFilter(listener, argumentz) { }; } -var d3_event_dragSelect = "onselectstart" in d3_document ? null : d3_vendorSymbol(d3_documentElement.style, "userSelect"), +var d3_event_dragSelect, d3_event_dragId = 0; -function d3_event_dragSuppress() { +function d3_event_dragSuppress(node) { var name = ".dragsuppress-" + ++d3_event_dragId, click = "click" + name, - w = d3.select(d3_window) + w = d3.select(d3_window(node)) .on("touchmove" + name, d3_eventPreventDefault) .on("dragstart" + name, d3_eventPreventDefault) .on("selectstart" + name, d3_eventPreventDefault); + + if (d3_event_dragSelect == null) { + d3_event_dragSelect = "onselectstart" in node ? false + : d3_vendorSymbol(node.style, "userSelect"); + } + if (d3_event_dragSelect) { - var style = d3_documentElement.style, + var style = d3_documentElement(node).style, select = style[d3_event_dragSelect]; style[d3_event_dragSelect] = "none"; } + return function(suppressClick) { w.on(name, null); if (d3_event_dragSelect) style[d3_event_dragSelect] = select; if (suppressClick) { // suppress the next click, but only if it’s immediate - function off() { w.on(click, null); } + var off = function() { w.on(click, null); }; w.on(click, function() { d3_eventCancel(); off(); }, true); setTimeout(off, 0); } @@ -1626,12 +1690,32 @@ d3.mouse = function(container) { return d3_mousePoint(container, d3_eventSource()); }; +// https://bugs.webkit.org/show_bug.cgi?id=44083 +var d3_mouse_bug44083 = this.navigator && /WebKit/.test(this.navigator.userAgent) ? -1 : 0; + function d3_mousePoint(container, e) { if (e.changedTouches) e = e.changedTouches[0]; var svg = container.ownerSVGElement || container; if (svg.createSVGPoint) { var point = svg.createSVGPoint(); - point.x = e.clientX, point.y = e.clientY; + if (d3_mouse_bug44083 < 0) { + var window = d3_window(container); + if (window.scrollX || window.scrollY) { + svg = d3.select("body").append("svg").style({ + position: "absolute", + top: 0, + left: 0, + margin: 0, + padding: 0, + border: "none" + }, "important"); + var ctm = svg[0][0].getScreenCTM(); + d3_mouse_bug44083 = !(ctm.f || ctm.e); + svg.remove(); + } + } + if (d3_mouse_bug44083) point.x = e.pageX, point.y = e.pageY; + else point.x = e.clientX, point.y = e.clientY; point = point.matrixTransform(container.getScreenCTM().inverse()); return [point.x, point.y]; } @@ -1647,11 +1731,12 @@ d3.touches = function(container, touches) { return point; }) : []; }; -var π = Math.PI, +var ε = 1e-6, + ε2 = ε * ε, + π = Math.PI, τ = 2 * π, + τε = τ - ε, halfπ = π / 2, - ε = 1e-6, - ε2 = ε * ε, d3_radians = π / 180, d3_degrees = 180 / π; @@ -1740,9 +1825,12 @@ d3.interpolateZoom = function(p0, p1) { d3.behavior.zoom = function() { var view = {x: 0, y: 0, k: 1}, translate0, // translate when we started zooming (to avoid drift) - center, // desired position of translate0 after zooming + center0, // implicit desired position of translate0 after zooming + center, // explicit desired position of translate0 after zooming size = [960, 500], // viewport size; required for zoom interpolation scaleExtent = d3_behavior_zoomInfinity, + duration = 250, + zooming = 0, mousedown = "mousedown.zoom", mousemove = "mousemove.zoom", mouseup = "mouseup.zoom", @@ -1755,10 +1843,17 @@ d3.behavior.zoom = function() { y0, y1; + // Lazily determine the DOM’s support for Wheel events. + // https://developer.mozilla.org/en-US/docs/Mozilla_event_reference/wheel + if (!d3_behavior_zoomWheel) { + d3_behavior_zoomWheel = "onwheel" in d3_document ? (d3_behavior_zoomDelta = function() { return -d3.event.deltaY * (d3.event.deltaMode ? 120 : 1); }, "wheel") + : "onmousewheel" in d3_document ? (d3_behavior_zoomDelta = function() { return d3.event.wheelDelta; }, "mousewheel") + : (d3_behavior_zoomDelta = function() { return -d3.event.detail; }, "MozMousePixelScroll"); + } + function zoom(g) { g .on(mousedown, mousedowned) .on(d3_behavior_zoomWheel + ".zoom", mousewheeled) - .on(mousemove, mousewheelreset) .on("dblclick.zoom", dblclicked) .on(touchstart, touchstarted); } @@ -1776,8 +1871,8 @@ d3.behavior.zoom = function() { .tween("zoom:zoom", function() { var dx = size[0], dy = size[1], - cx = dx / 2, - cy = dy / 2, + cx = center0 ? center0[0] : dx / 2, + cy = center0 ? center0[1] : dy / 2, i = d3.interpolateZoom( [(cx - view.x) / view.k, (cy - view.y) / view.k, dx / view.k], [(cx - view1.x) / view1.k, (cy - view1.y) / view1.k, dx / view1.k] @@ -1788,6 +1883,9 @@ d3.behavior.zoom = function() { zoomed(dispatch); }; }) + .each("interrupt.zoom", function() { + zoomended(dispatch); + }) .each("end.zoom", function() { zoomended(dispatch); }); @@ -1832,6 +1930,12 @@ d3.behavior.zoom = function() { return zoom; }; + zoom.duration = function(_) { + if (!arguments.length) return duration; + duration = +_; // TODO function based on interpolateZoom distance? + return zoom; + }; + zoom.x = function(z) { if (!arguments.length) return x1; x1 = z; @@ -1866,13 +1970,24 @@ d3.behavior.zoom = function() { view.y += p[1] - l[1]; } + function zoomTo(that, p, l, k) { + that.__chart__ = {x: view.x, y: view.y, k: view.k}; + + scaleTo(Math.pow(2, k)); + translateTo(center0 = p, l); + + that = d3.select(that); + if (duration > 0) that = that.transition().duration(duration); + that.call(zoom.event); + } + function rescale() { if (x1) x1.domain(x0.range().map(function(x) { return (x - view.x) / view.k; }).map(x0.invert)); if (y1) y1.domain(y0.range().map(function(y) { return (y - view.y) / view.k; }).map(y0.invert)); } function zoomstarted(dispatch) { - dispatch({type: "zoomstart"}); + if (!zooming++) dispatch({type: "zoomstart"}); } function zoomed(dispatch) { @@ -1881,7 +1996,8 @@ d3.behavior.zoom = function() { } function zoomended(dispatch) { - dispatch({type: "zoomend"}); + if (!--zooming) dispatch({type: "zoomend"}); + center0 = null; } function mousedowned() { @@ -1889,9 +2005,9 @@ d3.behavior.zoom = function() { target = d3.event.target, dispatch = event.of(that, arguments), dragged = 0, - subject = d3.select(d3_window).on(mousemove, moved).on(mouseup, ended), + subject = d3.select(d3_window(that)).on(mousemove, moved).on(mouseup, ended), location0 = location(d3.mouse(that)), - dragRestore = d3_event_dragSuppress(); + dragRestore = d3_event_dragSuppress(that); d3_selection_interrupt.call(that); zoomstarted(dispatch); @@ -1903,7 +2019,7 @@ d3.behavior.zoom = function() { } function ended() { - subject.on(mousemove, d3_window === that ? mousewheelreset : null).on(mouseup, null); + subject.on(mousemove, null).on(mouseup, null); dragRestore(dragged && d3.event.target === target); zoomended(dispatch); } @@ -1919,14 +2035,17 @@ d3.behavior.zoom = function() { zoomName = ".zoom-" + d3.event.changedTouches[0].identifier, touchmove = "touchmove" + zoomName, touchend = "touchend" + zoomName, - target = d3.select(d3.event.target).on(touchmove, moved).on(touchend, ended), - subject = d3.select(that).on(mousedown, null).on(touchstart, started), // prevent duplicate events - dragRestore = d3_event_dragSuppress(); + targets = [], + subject = d3.select(that), + dragRestore = d3_event_dragSuppress(that); - d3_selection_interrupt.call(that); started(); zoomstarted(dispatch); + // Workaround for Chrome issue 412723: the touchstart listener must be set + // after the touchmove listener. + subject.on(mousedown, null).on(touchstart, started); // prevent duplicate events + // Updates locations of any touches in locations0. function relocate() { var touches = d3.touches(that); @@ -1939,7 +2058,13 @@ d3.behavior.zoom = function() { // Temporarily override touchstart while gesture is active. function started() { - // Only track touches started on the target element. + + // Listen for touchmove and touchend on the target of touchstart. + var target = d3.event.target; + d3.select(target).on(touchmove, moved).on(touchend, ended); + targets.push(target); + + // Only track touches started on the same subject element. var changed = d3.event.changedTouches; for (var i = 0, n = changed.length; i < n; ++i) { locations0[changed[i].identifier] = null; @@ -1950,11 +2075,9 @@ d3.behavior.zoom = function() { if (touches.length === 1) { if (now - touchtime < 500) { // dbltap - var p = touches[0], l = locations0[p.identifier]; - scaleTo(view.k * 2); - translateTo(p, l); + var p = touches[0]; + zoomTo(that, p, locations0[p.identifier], Math.floor(Math.log(view.k) / Math.LN2) + 1); d3_eventPreventDefault(); - zoomed(dispatch); } touchtime = now; } else if (touches.length > 1) { @@ -1968,6 +2091,9 @@ d3.behavior.zoom = function() { var touches = d3.touches(that), p0, l0, p1, l1; + + d3_selection_interrupt.call(that); + for (var i = 0, n = touches.length; i < n; ++i, l1 = null) { p1 = touches[i]; if (l1 = locations0[p1.identifier]) { @@ -2004,7 +2130,7 @@ d3.behavior.zoom = function() { } } // Otherwise, remove touchmove and touchend listeners. - target.on(zoomName, null); + d3.selectAll(targets).on(zoomName, null); subject.on(mousedown, mousedowned).on(touchstart, touchstarted); dragRestore(); zoomended(dispatch); @@ -2014,42 +2140,27 @@ d3.behavior.zoom = function() { function mousewheeled() { var dispatch = event.of(this, arguments); if (mousewheelTimer) clearTimeout(mousewheelTimer); - else d3_selection_interrupt.call(this), zoomstarted(dispatch); + else translate0 = location(center0 = center || d3.mouse(this)), d3_selection_interrupt.call(this), zoomstarted(dispatch); mousewheelTimer = setTimeout(function() { mousewheelTimer = null; zoomended(dispatch); }, 50); d3_eventPreventDefault(); - var point = center || d3.mouse(this); - if (!translate0) translate0 = location(point); scaleTo(Math.pow(2, d3_behavior_zoomDelta() * .002) * view.k); - translateTo(point, translate0); + translateTo(center0, translate0); zoomed(dispatch); } - function mousewheelreset() { - translate0 = null; - } - function dblclicked() { - var dispatch = event.of(this, arguments), - p = d3.mouse(this), - l = location(p), + var p = d3.mouse(this), k = Math.log(view.k) / Math.LN2; - zoomstarted(dispatch); - scaleTo(Math.pow(2, d3.event.shiftKey ? Math.ceil(k) - 1 : Math.floor(k) + 1)); - translateTo(p, l); - zoomed(dispatch); - zoomended(dispatch); + + zoomTo(this, p, location(p), d3.event.shiftKey ? Math.ceil(k) - 1 : Math.floor(k) + 1); } return d3.rebind(zoom, event, "on"); }; -var d3_behavior_zoomInfinity = [0, Infinity]; // default scale extent - -// https://developer.mozilla.org/en-US/docs/Mozilla_event_reference/wheel -var d3_behavior_zoomDelta, d3_behavior_zoomWheel - = "onwheel" in d3_document ? (d3_behavior_zoomDelta = function() { return -d3.event.deltaY * (d3.event.deltaMode ? 120 : 1); }, "wheel") - : "onmousewheel" in d3_document ? (d3_behavior_zoomDelta = function() { return d3.event.wheelDelta; }, "mousewheel") - : (d3_behavior_zoomDelta = function() { return -d3.event.detail; }, "MozMousePixelScroll"); +var d3_behavior_zoomInfinity = [0, Infinity], // default scale extent + d3_behavior_zoomDelta, // initialized lazily + d3_behavior_zoomWheel; function d3_functor(v) { return typeof v === "function" ? v : function() { return v; }; } @@ -2070,7 +2181,7 @@ var d3_timer_queueHead, d3_timer_interval, // is an interval (or frame) active? d3_timer_timeout, // is a timeout active? d3_timer_active, // active timer object - d3_timer_frame = d3_window[d3_vendorSymbol(d3_window, "requestAnimationFrame")] || function(callback) { setTimeout(callback, 17); }; + d3_timer_frame = this[d3_vendorSymbol(this, "requestAnimationFrame")] || function(callback) { setTimeout(callback, 17); }; // The timer will continue to fire until callback returns true. d3.timer = function(callback, delay, then) { @@ -2140,304 +2251,6 @@ function d3_timer_sweep() { return time; } d3.geo = {}; -function d3_identity(d) { - return d; -} -function d3_true() { - return true; -} - -function d3_geo_spherical(cartesian) { - return [ - Math.atan2(cartesian[1], cartesian[0]), - d3_asin(cartesian[2]) - ]; -} - -function d3_geo_sphericalEqual(a, b) { - return abs(a[0] - b[0]) < ε && abs(a[1] - b[1]) < ε; -} - -// General spherical polygon clipping algorithm: takes a polygon, cuts it into -// visible line segments and rejoins the segments by interpolating along the -// clip edge. -function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) { - var subject = [], - clip = []; - - segments.forEach(function(segment) { - if ((n = segment.length - 1) <= 0) return; - var n, p0 = segment[0], p1 = segment[n]; - - // If the first and last points of a segment are coincident, then treat as - // a closed ring. - // TODO if all rings are closed, then the winding order of the exterior - // ring should be checked. - if (d3_geo_sphericalEqual(p0, p1)) { - listener.lineStart(); - for (var i = 0; i < n; ++i) listener.point((p0 = segment[i])[0], p0[1]); - listener.lineEnd(); - return; - } - - var a = new d3_geo_clipPolygonIntersection(p0, segment, null, true), - b = new d3_geo_clipPolygonIntersection(p0, null, a, false); - a.o = b; - subject.push(a); - clip.push(b); - a = new d3_geo_clipPolygonIntersection(p1, segment, null, false); - b = new d3_geo_clipPolygonIntersection(p1, null, a, true); - a.o = b; - subject.push(a); - clip.push(b); - }); - clip.sort(compare); - d3_geo_clipPolygonLinkCircular(subject); - d3_geo_clipPolygonLinkCircular(clip); - if (!subject.length) return; - - for (var i = 0, entry = clipStartInside, n = clip.length; i < n; ++i) { - clip[i].e = entry = !entry; - } - - var start = subject[0], - points, - point; - while (1) { - // Find first unvisited intersection. - var current = start, - isSubject = true; - while (current.v) if ((current = current.n) === start) return; - points = current.z; - listener.lineStart(); - do { - current.v = current.o.v = true; - if (current.e) { - if (isSubject) { - for (var i = 0, n = points.length; i < n; ++i) listener.point((point = points[i])[0], point[1]); - } else { - interpolate(current.x, current.n.x, 1, listener); - } - current = current.n; - } else { - if (isSubject) { - points = current.p.z; - for (var i = points.length - 1; i >= 0; --i) listener.point((point = points[i])[0], point[1]); - } else { - interpolate(current.x, current.p.x, -1, listener); - } - current = current.p; - } - current = current.o; - points = current.z; - isSubject = !isSubject; - } while (!current.v); - listener.lineEnd(); - } -} - -function d3_geo_clipPolygonLinkCircular(array) { - if (!(n = array.length)) return; - var n, - i = 0, - a = array[0], - b; - while (++i < n) { - a.n = b = array[i]; - b.p = a; - a = b; - } - a.n = b = array[0]; - b.p = a; -} - -function d3_geo_clipPolygonIntersection(point, points, other, entry) { - this.x = point; - this.z = points; - this.o = other; // another intersection - this.e = entry; // is an entry? - this.v = false; // visited - this.n = this.p = null; // next & previous -} - -function d3_geo_clip(pointVisible, clipLine, interpolate, clipStart) { - return function(rotate, listener) { - var line = clipLine(listener), - rotatedClipStart = rotate.invert(clipStart[0], clipStart[1]); - - var clip = { - point: point, - lineStart: lineStart, - lineEnd: lineEnd, - polygonStart: function() { - clip.point = pointRing; - clip.lineStart = ringStart; - clip.lineEnd = ringEnd; - segments = []; - polygon = []; - }, - polygonEnd: function() { - clip.point = point; - clip.lineStart = lineStart; - clip.lineEnd = lineEnd; - - segments = d3.merge(segments); - var clipStartInside = d3_geo_pointInPolygon(rotatedClipStart, polygon); - if (segments.length) { - if (!polygonStarted) listener.polygonStart(), polygonStarted = true; - d3_geo_clipPolygon(segments, d3_geo_clipSort, clipStartInside, interpolate, listener); - } else if (clipStartInside) { - if (!polygonStarted) listener.polygonStart(), polygonStarted = true; - listener.lineStart(); - interpolate(null, null, 1, listener); - listener.lineEnd(); - } - if (polygonStarted) listener.polygonEnd(), polygonStarted = false; - segments = polygon = null; - }, - sphere: function() { - listener.polygonStart(); - listener.lineStart(); - interpolate(null, null, 1, listener); - listener.lineEnd(); - listener.polygonEnd(); - } - }; - - function point(λ, φ) { - var point = rotate(λ, φ); - if (pointVisible(λ = point[0], φ = point[1])) listener.point(λ, φ); - } - function pointLine(λ, φ) { - var point = rotate(λ, φ); - line.point(point[0], point[1]); - } - function lineStart() { clip.point = pointLine; line.lineStart(); } - function lineEnd() { clip.point = point; line.lineEnd(); } - - var segments; - - var buffer = d3_geo_clipBufferListener(), - ringListener = clipLine(buffer), - polygonStarted = false, - polygon, - ring; - - function pointRing(λ, φ) { - ring.push([λ, φ]); - var point = rotate(λ, φ); - ringListener.point(point[0], point[1]); - } - - function ringStart() { - ringListener.lineStart(); - ring = []; - } - - function ringEnd() { - pointRing(ring[0][0], ring[0][1]); - ringListener.lineEnd(); - - var clean = ringListener.clean(), - ringSegments = buffer.buffer(), - segment, - n = ringSegments.length; - - ring.pop(); - polygon.push(ring); - ring = null; - - if (!n) return; - - // No intersections. - if (clean & 1) { - segment = ringSegments[0]; - var n = segment.length - 1, - i = -1, - point; - if (n > 0) { - if (!polygonStarted) listener.polygonStart(), polygonStarted = true; - listener.lineStart(); - while (++i < n) listener.point((point = segment[i])[0], point[1]); - listener.lineEnd(); - } - return; - } - - // Rejoin connected segments. - // TODO reuse bufferListener.rejoin()? - if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift())); - - segments.push(ringSegments.filter(d3_geo_clipSegmentLength1)); - } - - return clip; - }; -} - -function d3_geo_clipSegmentLength1(segment) { - return segment.length > 1; -} - -function d3_geo_clipBufferListener() { - var lines = [], - line; - return { - lineStart: function() { lines.push(line = []); }, - point: function(λ, φ) { line.push([λ, φ]); }, - lineEnd: d3_noop, - buffer: function() { - var buffer = lines; - lines = []; - line = null; - return buffer; - }, - rejoin: function() { - if (lines.length > 1) lines.push(lines.pop().concat(lines.shift())); - } - }; -} - -// Intersection points are sorted along the clip edge. For both antimeridian -// cutting and circle clipping, the same comparison is used. -function d3_geo_clipSort(a, b) { - return ((a = a.x)[0] < 0 ? a[1] - halfπ - ε : halfπ - a[1]) - - ((b = b.x)[0] < 0 ? b[1] - halfπ - ε : halfπ - b[1]); -} -// Adds floating point numbers with twice the normal precision. -// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and -// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3) -// 305–363 (1997). -// Code adapted from GeographicLib by Charles F. F. Karney, -// http://geographiclib.sourceforge.net/ -// See lib/geographiclib/LICENSE for details. - -function d3_adder() {} - -d3_adder.prototype = { - s: 0, // rounded value - t: 0, // exact error - add: function(y) { - d3_adderSum(y, this.t, d3_adderTemp); - d3_adderSum(d3_adderTemp.s, this.s, this); - if (this.s) this.t += d3_adderTemp.t; - else this.s = d3_adderTemp.t; - }, - reset: function() { - this.s = this.t = 0; - }, - valueOf: function() { - return this.s; - } -}; - -var d3_adderTemp = new d3_adder; - -function d3_adderSum(a, b, o) { - var x = o.s = a + b, // a + b - bv = x - a, av = x - bv; // b_virtual & a_virtual - o.t = (a - av) + (b - bv); // a_roundoff + b_roundoff -} d3.geo.stream = function(object, listener) { if (object && d3_geo_streamObjectType.hasOwnProperty(object.type)) { @@ -2509,181 +2322,307 @@ function d3_geo_streamPolygon(coordinates, listener) { listener.polygonEnd(); } -d3.geo.area = function(object) { - d3_geo_areaSum = 0; - d3.geo.stream(object, d3_geo_area); - return d3_geo_areaSum; +d3.geo.length = function(object) { + d3_geo_lengthSum = 0; + d3.geo.stream(object, d3_geo_length); + return d3_geo_lengthSum; }; -var d3_geo_areaSum, - d3_geo_areaRingSum = new d3_adder; +var d3_geo_lengthSum; -var d3_geo_area = { - sphere: function() { d3_geo_areaSum += 4 * π; }, +var d3_geo_length = { + sphere: d3_noop, point: d3_noop, - lineStart: d3_noop, + lineStart: d3_geo_lengthLineStart, lineEnd: d3_noop, - - // Only count area for polygon rings. - polygonStart: function() { - d3_geo_areaRingSum.reset(); - d3_geo_area.lineStart = d3_geo_areaRingStart; - }, - polygonEnd: function() { - var area = 2 * d3_geo_areaRingSum; - d3_geo_areaSum += area < 0 ? 4 * π + area : area; - d3_geo_area.lineStart = d3_geo_area.lineEnd = d3_geo_area.point = d3_noop; - } + polygonStart: d3_noop, + polygonEnd: d3_noop }; -function d3_geo_areaRingStart() { - var λ00, φ00, λ0, cosφ0, sinφ0; // start point and previous point +function d3_geo_lengthLineStart() { + var λ0, sinφ0, cosφ0; - // For the first point, … - d3_geo_area.point = function(λ, φ) { - d3_geo_area.point = nextPoint; - λ0 = (λ00 = λ) * d3_radians, cosφ0 = Math.cos(φ = (φ00 = φ) * d3_radians / 2 + π / 4), sinφ0 = Math.sin(φ); + d3_geo_length.point = function(λ, φ) { + λ0 = λ * d3_radians, sinφ0 = Math.sin(φ *= d3_radians), cosφ0 = Math.cos(φ); + d3_geo_length.point = nextPoint; }; - // For subsequent points, … - function nextPoint(λ, φ) { - λ *= d3_radians; - φ = φ * d3_radians / 2 + π / 4; // half the angular distance from south pole + d3_geo_length.lineEnd = function() { + d3_geo_length.point = d3_geo_length.lineEnd = d3_noop; + }; - // Spherical excess E for a spherical triangle with vertices: south pole, - // previous point, current point. Uses a formula derived from Cagnoli’s - // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2). - var dλ = λ - λ0, - sdλ = dλ >= 0 ? 1 : -1, - adλ = sdλ * dλ, + function nextPoint(λ, φ) { + var sinφ = Math.sin(φ *= d3_radians), cosφ = Math.cos(φ), - sinφ = Math.sin(φ), - k = sinφ0 * sinφ, - u = cosφ0 * cosφ + k * Math.cos(adλ), - v = k * sdλ * Math.sin(adλ); - d3_geo_areaRingSum.add(Math.atan2(v, u)); - - // Advance the previous points. - λ0 = λ, cosφ0 = cosφ, sinφ0 = sinφ; + t = abs((λ *= d3_radians) - λ0), + cosΔλ = Math.cos(t); + d3_geo_lengthSum += Math.atan2(Math.sqrt((t = cosφ * Math.sin(t)) * t + (t = cosφ0 * sinφ - sinφ0 * cosφ * cosΔλ) * t), sinφ0 * sinφ + cosφ0 * cosφ * cosΔλ); + λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ; } - - // For the last point, return to the start. - d3_geo_area.lineEnd = function() { - nextPoint(λ00, φ00); - }; } -// TODO -// cross and scale return new vectors, -// whereas add and normalize operate in-place +function d3_identity(d) { + return d; +} +function d3_true() { + return true; +} -function d3_geo_cartesian(spherical) { - var λ = spherical[0], - φ = spherical[1], - cosφ = Math.cos(φ); +function d3_geo_spherical(cartesian) { return [ - cosφ * Math.cos(λ), - cosφ * Math.sin(λ), - Math.sin(φ) + Math.atan2(cartesian[1], cartesian[0]), + d3_asin(cartesian[2]) ]; } -function d3_geo_cartesianDot(a, b) { - return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; +function d3_geo_sphericalEqual(a, b) { + return abs(a[0] - b[0]) < ε && abs(a[1] - b[1]) < ε; } -function d3_geo_cartesianCross(a, b) { - return [ - a[1] * b[2] - a[2] * b[1], - a[2] * b[0] - a[0] * b[2], - a[0] * b[1] - a[1] * b[0] - ]; -} +// General spherical polygon clipping algorithm: takes a polygon, cuts it into +// visible line segments and rejoins the segments by interpolating along the +// clip edge. +function d3_geo_clipPolygon(segments, compare, clipStartInside, interpolate, listener) { + var subject = [], + clip = []; -function d3_geo_cartesianAdd(a, b) { - a[0] += b[0]; - a[1] += b[1]; - a[2] += b[2]; + segments.forEach(function(segment) { + if ((n = segment.length - 1) <= 0) return; + var n, p0 = segment[0], p1 = segment[n]; + + // If the first and last points of a segment are coincident, then treat as + // a closed ring. + // TODO if all rings are closed, then the winding order of the exterior + // ring should be checked. + if (d3_geo_sphericalEqual(p0, p1)) { + listener.lineStart(); + for (var i = 0; i < n; ++i) listener.point((p0 = segment[i])[0], p0[1]); + listener.lineEnd(); + return; + } + + var a = new d3_geo_clipPolygonIntersection(p0, segment, null, true), + b = new d3_geo_clipPolygonIntersection(p0, null, a, false); + a.o = b; + subject.push(a); + clip.push(b); + a = new d3_geo_clipPolygonIntersection(p1, segment, null, false); + b = new d3_geo_clipPolygonIntersection(p1, null, a, true); + a.o = b; + subject.push(a); + clip.push(b); + }); + clip.sort(compare); + d3_geo_clipPolygonLinkCircular(subject); + d3_geo_clipPolygonLinkCircular(clip); + if (!subject.length) return; + + for (var i = 0, entry = clipStartInside, n = clip.length; i < n; ++i) { + clip[i].e = entry = !entry; + } + + var start = subject[0], + points, + point; + while (1) { + // Find first unvisited intersection. + var current = start, + isSubject = true; + while (current.v) if ((current = current.n) === start) return; + points = current.z; + listener.lineStart(); + do { + current.v = current.o.v = true; + if (current.e) { + if (isSubject) { + for (var i = 0, n = points.length; i < n; ++i) listener.point((point = points[i])[0], point[1]); + } else { + interpolate(current.x, current.n.x, 1, listener); + } + current = current.n; + } else { + if (isSubject) { + points = current.p.z; + for (var i = points.length - 1; i >= 0; --i) listener.point((point = points[i])[0], point[1]); + } else { + interpolate(current.x, current.p.x, -1, listener); + } + current = current.p; + } + current = current.o; + points = current.z; + isSubject = !isSubject; + } while (!current.v); + listener.lineEnd(); + } } -function d3_geo_cartesianScale(vector, k) { - return [ - vector[0] * k, - vector[1] * k, - vector[2] * k - ]; +function d3_geo_clipPolygonLinkCircular(array) { + if (!(n = array.length)) return; + var n, + i = 0, + a = array[0], + b; + while (++i < n) { + a.n = b = array[i]; + b.p = a; + a = b; + } + a.n = b = array[0]; + b.p = a; } -function d3_geo_cartesianNormalize(d) { - var l = Math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]); - d[0] /= l; - d[1] /= l; - d[2] /= l; +function d3_geo_clipPolygonIntersection(point, points, other, entry) { + this.x = point; + this.z = points; + this.o = other; // another intersection + this.e = entry; // is an entry? + this.v = false; // visited + this.n = this.p = null; // next & previous } -function d3_geo_pointInPolygon(point, polygon) { - var meridian = point[0], - parallel = point[1], - meridianNormal = [Math.sin(meridian), -Math.cos(meridian), 0], - polarAngle = 0, - winding = 0; - d3_geo_areaRingSum.reset(); +function d3_geo_clip(pointVisible, clipLine, interpolate, clipStart) { + return function(rotate, listener) { + var line = clipLine(listener), + rotatedClipStart = rotate.invert(clipStart[0], clipStart[1]); - for (var i = 0, n = polygon.length; i < n; ++i) { - var ring = polygon[i], - m = ring.length; - if (!m) continue; - var point0 = ring[0], - λ0 = point0[0], - φ0 = point0[1] / 2 + π / 4, - sinφ0 = Math.sin(φ0), - cosφ0 = Math.cos(φ0), - j = 1; + var clip = { + point: point, + lineStart: lineStart, + lineEnd: lineEnd, + polygonStart: function() { + clip.point = pointRing; + clip.lineStart = ringStart; + clip.lineEnd = ringEnd; + segments = []; + polygon = []; + }, + polygonEnd: function() { + clip.point = point; + clip.lineStart = lineStart; + clip.lineEnd = lineEnd; - while (true) { - if (j === m) j = 0; - point = ring[j]; - var λ = point[0], - φ = point[1] / 2 + π / 4, - sinφ = Math.sin(φ), - cosφ = Math.cos(φ), - dλ = λ - λ0, - sdλ = dλ >= 0 ? 1 : -1, - adλ = sdλ * dλ, - antimeridian = adλ > π, - k = sinφ0 * sinφ; - d3_geo_areaRingSum.add(Math.atan2(k * sdλ * Math.sin(adλ), cosφ0 * cosφ + k * Math.cos(adλ))); + segments = d3.merge(segments); + var clipStartInside = d3_geo_pointInPolygon(rotatedClipStart, polygon); + if (segments.length) { + if (!polygonStarted) listener.polygonStart(), polygonStarted = true; + d3_geo_clipPolygon(segments, d3_geo_clipSort, clipStartInside, interpolate, listener); + } else if (clipStartInside) { + if (!polygonStarted) listener.polygonStart(), polygonStarted = true; + listener.lineStart(); + interpolate(null, null, 1, listener); + listener.lineEnd(); + } + if (polygonStarted) listener.polygonEnd(), polygonStarted = false; + segments = polygon = null; + }, + sphere: function() { + listener.polygonStart(); + listener.lineStart(); + interpolate(null, null, 1, listener); + listener.lineEnd(); + listener.polygonEnd(); + } + }; - polarAngle += antimeridian ? dλ + sdλ * τ : dλ; + function point(λ, φ) { + var point = rotate(λ, φ); + if (pointVisible(λ = point[0], φ = point[1])) listener.point(λ, φ); + } + function pointLine(λ, φ) { + var point = rotate(λ, φ); + line.point(point[0], point[1]); + } + function lineStart() { clip.point = pointLine; line.lineStart(); } + function lineEnd() { clip.point = point; line.lineEnd(); } - // Are the longitudes either side of the point's meridian, and are the - // latitudes smaller than the parallel? - if (antimeridian ^ λ0 >= meridian ^ λ >= meridian) { - var arc = d3_geo_cartesianCross(d3_geo_cartesian(point0), d3_geo_cartesian(point)); - d3_geo_cartesianNormalize(arc); - var intersection = d3_geo_cartesianCross(meridianNormal, arc); - d3_geo_cartesianNormalize(intersection); - var φarc = (antimeridian ^ dλ >= 0 ? -1 : 1) * d3_asin(intersection[2]); - if (parallel > φarc || parallel === φarc && (arc[0] || arc[1])) { - winding += antimeridian ^ dλ >= 0 ? 1 : -1; + var segments; + + var buffer = d3_geo_clipBufferListener(), + ringListener = clipLine(buffer), + polygonStarted = false, + polygon, + ring; + + function pointRing(λ, φ) { + ring.push([λ, φ]); + var point = rotate(λ, φ); + ringListener.point(point[0], point[1]); + } + + function ringStart() { + ringListener.lineStart(); + ring = []; + } + + function ringEnd() { + pointRing(ring[0][0], ring[0][1]); + ringListener.lineEnd(); + + var clean = ringListener.clean(), + ringSegments = buffer.buffer(), + segment, + n = ringSegments.length; + + ring.pop(); + polygon.push(ring); + ring = null; + + if (!n) return; + + // No intersections. + if (clean & 1) { + segment = ringSegments[0]; + var n = segment.length - 1, + i = -1, + point; + if (n > 0) { + if (!polygonStarted) listener.polygonStart(), polygonStarted = true; + listener.lineStart(); + while (++i < n) listener.point((point = segment[i])[0], point[1]); + listener.lineEnd(); } + return; } - if (!j++) break; - λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ, point0 = point; + + // Rejoin connected segments. + // TODO reuse bufferListener.rejoin()? + if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift())); + + segments.push(ringSegments.filter(d3_geo_clipSegmentLength1)); } - } - // First, determine whether the South pole is inside or outside: - // - // It is inside if: - // * the polygon winds around it in a clockwise direction. - // * the polygon does not (cumulatively) wind around it, but has a negative - // (counter-clockwise) area. - // - // Second, count the (signed) number of times a segment crosses a meridian - // from the point to the South pole. If it is zero, then the point is the - // same side as the South pole. + return clip; + }; +} - return (polarAngle < -ε || polarAngle < ε && d3_geo_areaRingSum < 0) ^ (winding & 1); +function d3_geo_clipSegmentLength1(segment) { + return segment.length > 1; +} + +function d3_geo_clipBufferListener() { + var lines = [], + line; + return { + lineStart: function() { lines.push(line = []); }, + point: function(λ, φ) { line.push([λ, φ]); }, + lineEnd: d3_noop, + buffer: function() { + var buffer = lines; + lines = []; + line = null; + return buffer; + }, + rejoin: function() { + if (lines.length > 1) lines.push(lines.pop().concat(lines.shift())); + } + }; +} + +// Intersection points are sorted along the clip edge. For both antimeridian +// cutting and circle clipping, the same comparison is used. +function d3_geo_clipSort(a, b) { + return ((a = a.x)[0] < 0 ? a[1] - halfπ - ε : halfπ - a[1]) + - ((b = b.x)[0] < 0 ? b[1] - halfπ - ε : halfπ - b[1]); } var d3_geo_clipAntimeridian = d3_geo_clip( @@ -2776,6 +2715,65 @@ function d3_geo_clipAntimeridianInterpolate(from, to, direction, listener) { listener.point(to[0], to[1]); } } +// TODO +// cross and scale return new vectors, +// whereas add and normalize operate in-place + +function d3_geo_cartesian(spherical) { + var λ = spherical[0], + φ = spherical[1], + cosφ = Math.cos(φ); + return [ + cosφ * Math.cos(λ), + cosφ * Math.sin(λ), + Math.sin(φ) + ]; +} + +function d3_geo_cartesianDot(a, b) { + return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; +} + +function d3_geo_cartesianCross(a, b) { + return [ + a[1] * b[2] - a[2] * b[1], + a[2] * b[0] - a[0] * b[2], + a[0] * b[1] - a[1] * b[0] + ]; +} + +function d3_geo_cartesianAdd(a, b) { + a[0] += b[0]; + a[1] += b[1]; + a[2] += b[2]; +} + +function d3_geo_cartesianScale(vector, k) { + return [ + vector[0] * k, + vector[1] * k, + vector[2] * k + ]; +} + +function d3_geo_cartesianNormalize(d) { + var l = Math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]); + d[0] /= l; + d[1] /= l; + d[2] /= l; +} +function d3_geo_compose(a, b) { + + function compose(x, y) { + return x = a(x, y), b(x[0], x[1]); + } + + if (a.invert && b.invert) compose.invert = function(x, y) { + return x = b.invert(x, y), x && a.invert(x[0], x[1]); + }; + + return compose; +} function d3_geo_equirectangular(λ, φ) { return [λ, φ]; @@ -2935,24 +2933,188 @@ function d3_geo_circleAngle(cr, point) { var angle = d3_acos(-a[1]); return ((-a[2] < 0 ? -angle : angle) + 2 * Math.PI - ε) % (2 * Math.PI); } +// Adds floating point numbers with twice the normal precision. +// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and +// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3) +// 305–363 (1997). +// Code adapted from GeographicLib by Charles F. F. Karney, +// http://geographiclib.sourceforge.net/ +// See lib/geographiclib/LICENSE for details. + +function d3_adder() {} + +d3_adder.prototype = { + s: 0, // rounded value + t: 0, // exact error + add: function(y) { + d3_adderSum(y, this.t, d3_adderTemp); + d3_adderSum(d3_adderTemp.s, this.s, this); + if (this.s) this.t += d3_adderTemp.t; + else this.s = d3_adderTemp.t; + }, + reset: function() { + this.s = this.t = 0; + }, + valueOf: function() { + return this.s; + } +}; + +var d3_adderTemp = new d3_adder; + +function d3_adderSum(a, b, o) { + var x = o.s = a + b, // a + b + bv = x - a, av = x - bv; // b_virtual & a_virtual + o.t = (a - av) + (b - bv); // a_roundoff + b_roundoff +} -// Clip features against a small circle centered at [0°, 0°]. -function d3_geo_clipCircle(radius) { - var cr = Math.cos(radius), - smallRadius = cr > 0, - notHemisphere = abs(cr) > ε, // TODO optimise for this common case - interpolate = d3_geo_circleInterpolate(radius, 6 * d3_radians); +d3.geo.area = function(object) { + d3_geo_areaSum = 0; + d3.geo.stream(object, d3_geo_area); + return d3_geo_areaSum; +}; - return d3_geo_clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-π, radius - π]); +var d3_geo_areaSum, + d3_geo_areaRingSum = new d3_adder; - function visible(λ, φ) { - return Math.cos(λ) * Math.cos(φ) > cr; +var d3_geo_area = { + sphere: function() { d3_geo_areaSum += 4 * π; }, + point: d3_noop, + lineStart: d3_noop, + lineEnd: d3_noop, + + // Only count area for polygon rings. + polygonStart: function() { + d3_geo_areaRingSum.reset(); + d3_geo_area.lineStart = d3_geo_areaRingStart; + }, + polygonEnd: function() { + var area = 2 * d3_geo_areaRingSum; + d3_geo_areaSum += area < 0 ? 4 * π + area : area; + d3_geo_area.lineStart = d3_geo_area.lineEnd = d3_geo_area.point = d3_noop; } +}; - // Takes a line and cuts into visible segments. Return values used for - // polygon clipping: - // 0: there were intersections or the line was empty. - // 1: no intersections. +function d3_geo_areaRingStart() { + var λ00, φ00, λ0, cosφ0, sinφ0; // start point and previous point + + // For the first point, … + d3_geo_area.point = function(λ, φ) { + d3_geo_area.point = nextPoint; + λ0 = (λ00 = λ) * d3_radians, cosφ0 = Math.cos(φ = (φ00 = φ) * d3_radians / 2 + π / 4), sinφ0 = Math.sin(φ); + }; + + // For subsequent points, … + function nextPoint(λ, φ) { + λ *= d3_radians; + φ = φ * d3_radians / 2 + π / 4; // half the angular distance from south pole + + // Spherical excess E for a spherical triangle with vertices: south pole, + // previous point, current point. Uses a formula derived from Cagnoli’s + // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2). + var dλ = λ - λ0, + sdλ = dλ >= 0 ? 1 : -1, + adλ = sdλ * dλ, + cosφ = Math.cos(φ), + sinφ = Math.sin(φ), + k = sinφ0 * sinφ, + u = cosφ0 * cosφ + k * Math.cos(adλ), + v = k * sdλ * Math.sin(adλ); + d3_geo_areaRingSum.add(Math.atan2(v, u)); + + // Advance the previous points. + λ0 = λ, cosφ0 = cosφ, sinφ0 = sinφ; + } + + // For the last point, return to the start. + d3_geo_area.lineEnd = function() { + nextPoint(λ00, φ00); + }; +} + +function d3_geo_pointInPolygon(point, polygon) { + var meridian = point[0], + parallel = point[1], + meridianNormal = [Math.sin(meridian), -Math.cos(meridian), 0], + polarAngle = 0, + winding = 0; + d3_geo_areaRingSum.reset(); + + for (var i = 0, n = polygon.length; i < n; ++i) { + var ring = polygon[i], + m = ring.length; + if (!m) continue; + var point0 = ring[0], + λ0 = point0[0], + φ0 = point0[1] / 2 + π / 4, + sinφ0 = Math.sin(φ0), + cosφ0 = Math.cos(φ0), + j = 1; + + while (true) { + if (j === m) j = 0; + point = ring[j]; + var λ = point[0], + φ = point[1] / 2 + π / 4, + sinφ = Math.sin(φ), + cosφ = Math.cos(φ), + dλ = λ - λ0, + sdλ = dλ >= 0 ? 1 : -1, + adλ = sdλ * dλ, + antimeridian = adλ > π, + k = sinφ0 * sinφ; + d3_geo_areaRingSum.add(Math.atan2(k * sdλ * Math.sin(adλ), cosφ0 * cosφ + k * Math.cos(adλ))); + + polarAngle += antimeridian ? dλ + sdλ * τ : dλ; + + // Are the longitudes either side of the point's meridian, and are the + // latitudes smaller than the parallel? + if (antimeridian ^ λ0 >= meridian ^ λ >= meridian) { + var arc = d3_geo_cartesianCross(d3_geo_cartesian(point0), d3_geo_cartesian(point)); + d3_geo_cartesianNormalize(arc); + var intersection = d3_geo_cartesianCross(meridianNormal, arc); + d3_geo_cartesianNormalize(intersection); + var φarc = (antimeridian ^ dλ >= 0 ? -1 : 1) * d3_asin(intersection[2]); + if (parallel > φarc || parallel === φarc && (arc[0] || arc[1])) { + winding += antimeridian ^ dλ >= 0 ? 1 : -1; + } + } + if (!j++) break; + λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ, point0 = point; + } + } + + // First, determine whether the South pole is inside or outside: + // + // It is inside if: + // * the polygon winds around it in a clockwise direction. + // * the polygon does not (cumulatively) wind around it, but has a negative + // (counter-clockwise) area. + // + // Second, count the (signed) number of times a segment crosses a meridian + // from the point to the South pole. If it is zero, then the point is the + // same side as the South pole. + + return (polarAngle < -ε || polarAngle < ε && d3_geo_areaRingSum < 0) ^ (winding & 1); +} + +// Clip features against a small circle centered at [0°, 0°]. +function d3_geo_clipCircle(radius) { + var cr = Math.cos(radius), + smallRadius = cr > 0, + notHemisphere = abs(cr) > ε, // TODO optimise for this common case + interpolate = d3_geo_circleInterpolate(radius, 6 * d3_radians); + + return d3_geo_clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-π, radius - π]); + + function visible(λ, φ) { + return Math.cos(λ) * Math.cos(φ) > cr; + } + + // Takes a line and cuts into visible segments. Return values used for + // polygon clipping: + // 0: there were intersections or the line was empty. + // 1: no intersections. // 2: there were intersections, and the first and last segments should be // rejoined. function clipLine(listener) { @@ -3360,18 +3522,6 @@ function d3_geo_clipExtent(x0, y0, x1, y1) { : b[0] - a[0]; } } -function d3_geo_compose(a, b) { - - function compose(x, y) { - return x = a(x, y), b(x[0], x[1]); - } - - if (a.invert && b.invert) compose.invert = function(x, y) { - return x = b.invert(x, y), x && a.invert(x[0], x[1]); - }; - - return compose; -} function d3_geo_conic(projectAt) { var φ0 = 0, @@ -4076,7 +4226,7 @@ function d3_geo_pathContext(context) { }; function point(x, y) { - context.moveTo(x, y); + context.moveTo(x + pointRadius, y); context.arc(x, y, pointRadius, 0, τ); } @@ -4578,13 +4728,15 @@ function d3_geom_pointY(d) { } /** - * Computes the 2D convex hull of a set of points using Graham's scanning - * algorithm. The algorithm has been implemented as described in Cormen, - * Leiserson, and Rivest's Introduction to Algorithms. The running time of - * this algorithm is O(n log n), where n is the number of input points. + * Computes the 2D convex hull of a set of points using the monotone chain + * algorithm: + * http://en.wikibooks.org/wiki/Algorithm_Implementation/Geometry/Convex_hull/Monotone_chain) * - * @param vertices [[x1, y1], [x2, y2], …] - * @returns polygon [[x1, y1], [x2, y2], …] + * The runtime of this algorithm is O(n log n), where n is the number of input + * points. However in practice it outperforms other O(n log n) hulls. + * + * @param vertices [[x1, y1], [x2, y2], ...] + * @returns polygon [[x1, y1], [x2, y2], ...] */ d3.geom.hull = function(vertices) { var x = d3_geom_pointX, @@ -4593,86 +4745,40 @@ d3.geom.hull = function(vertices) { if (arguments.length) return hull(vertices); function hull(data) { + // Hull of < 3 points is not well-defined if (data.length < 3) return []; var fx = d3_functor(x), fy = d3_functor(y), + i, n = data.length, - vertices, // TODO use parallel arrays - plen = n - 1, - points = [], - stack = [], - d, - i, j, h = 0, x1, y1, x2, y2, u, v, a, sp; - - if (fx === d3_geom_pointX && y === d3_geom_pointY) vertices = data; - else for (i = 0, vertices = []; i < n; ++i) { - vertices.push([+fx.call(this, d = data[i], i), +fy.call(this, d, i)]); - } - - // find the starting ref point: leftmost point with the minimum y coord - for (i = 1; i < n; ++i) { - if (vertices[i][1] < vertices[h][1] - || vertices[i][1] == vertices[h][1] - && vertices[i][0] < vertices[h][0]) h = i; - } - - // calculate polar angles from ref point and sort - for (i = 0; i < n; ++i) { - if (i === h) continue; - y1 = vertices[i][1] - vertices[h][1]; - x1 = vertices[i][0] - vertices[h][0]; - points.push({angle: Math.atan2(y1, x1), index: i}); - } - points.sort(function(a, b) { return a.angle - b.angle; }); - - // toss out duplicate angles - a = points[0].angle; - v = points[0].index; - u = 0; - for (i = 1; i < plen; ++i) { - j = points[i].index; - if (a == points[i].angle) { - // keep angle for point most distant from the reference - x1 = vertices[v][0] - vertices[h][0]; - y1 = vertices[v][1] - vertices[h][1]; - x2 = vertices[j][0] - vertices[h][0]; - y2 = vertices[j][1] - vertices[h][1]; - if (x1 * x1 + y1 * y1 >= x2 * x2 + y2 * y2) { - points[i].index = -1; - continue; - } else { - points[u].index = -1; - } - } - a = points[i].angle; - u = i; - v = j; - } + points = [], // of the form [[x0, y0, 0], ..., [xn, yn, n]] + flippedPoints = []; - // initialize the stack - stack.push(h); - for (i = 0, j = 0; i < 2; ++j) { - if (points[j].index > -1) { - stack.push(points[j].index); - i++; - } + for (i = 0 ; i < n; i++) { + points.push([+fx.call(this, data[i], i), +fy.call(this, data[i], i), i]); } - sp = stack.length; - // do graham's scan - for (; j < plen; ++j) { - if (points[j].index < 0) continue; // skip tossed out points - while (!d3_geom_hullCCW(stack[sp - 2], stack[sp - 1], points[j].index, vertices)) { - --sp; - } - stack[sp++] = points[j].index; - } + // sort ascending by x-coord first, y-coord second + points.sort(d3_geom_hullOrder); + + // we flip bottommost points across y axis so we can use the upper hull routine on both + for (i = 0; i < n; i++) flippedPoints.push([points[i][0], -points[i][1]]); + + var upper = d3_geom_hullUpper(points), + lower = d3_geom_hullUpper(flippedPoints); + + // construct the polygon, removing possible duplicate endpoints + var skipLeft = lower[0] === upper[0], + skipRight = lower[lower.length - 1] === upper[upper.length - 1], + polygon = []; + + // add upper hull in r->l order + // then add lower hull in l->r order + for (i = upper.length - 1; i >= 0; --i) polygon.push(data[points[upper[i]][2]]); + for (i = +skipLeft; i < lower.length - skipRight; ++i) polygon.push(data[points[lower[i]][2]]); - // construct the hull - var poly = []; - for (i = sp - 1; i >= 0; --i) poly.push(data[stack[i]]); - return poly; + return polygon; } hull.x = function(_) { @@ -4686,126 +4792,76 @@ d3.geom.hull = function(vertices) { return hull; }; -// are three points in counter-clockwise order? -function d3_geom_hullCCW(i1, i2, i3, v) { - var t, a, b, c, d, e, f; - t = v[i1]; a = t[0]; b = t[1]; - t = v[i2]; c = t[0]; d = t[1]; - t = v[i3]; e = t[0]; f = t[1]; - return (f - b) * (c - a) - (d - b) * (e - a) > 0; -} - -var d3_ease_default = function() { return d3_identity; }; - -var d3_ease = d3.map({ - linear: d3_ease_default, - poly: d3_ease_poly, - quad: function() { return d3_ease_quad; }, - cubic: function() { return d3_ease_cubic; }, - sin: function() { return d3_ease_sin; }, - exp: function() { return d3_ease_exp; }, - circle: function() { return d3_ease_circle; }, - elastic: d3_ease_elastic, - back: d3_ease_back, - bounce: function() { return d3_ease_bounce; } -}); - -var d3_ease_mode = d3.map({ - "in": d3_identity, - "out": d3_ease_reverse, - "in-out": d3_ease_reflect, - "out-in": function(f) { return d3_ease_reflect(d3_ease_reverse(f)); } -}); - -d3.ease = function(name) { - var i = name.indexOf("-"), - t = i >= 0 ? name.substring(0, i) : name, - m = i >= 0 ? name.substring(i + 1) : "in"; - t = d3_ease.get(t) || d3_ease_default; - m = d3_ease_mode.get(m) || d3_identity; - return d3_ease_clamp(m(t.apply(null, d3_arraySlice.call(arguments, 1)))); -}; - -function d3_ease_clamp(f) { - return function(t) { - return t <= 0 ? 0 : t >= 1 ? 1 : f(t); - }; -} - -function d3_ease_reverse(f) { - return function(t) { - return 1 - f(1 - t); - }; -} - -function d3_ease_reflect(f) { - return function(t) { - return .5 * (t < .5 ? f(2 * t) : (2 - f(2 - 2 * t))); - }; -} +// finds the 'upper convex hull' (see wiki link above) +// assumes points arg has >=3 elements, is sorted by x, unique in y +// returns array of indices into points in left to right order +function d3_geom_hullUpper(points) { + var n = points.length, + hull = [0, 1], + hs = 2; // hull size -function d3_ease_quad(t) { - return t * t; -} + for (var i = 2; i < n; i++) { + while (hs > 1 && d3_cross2d(points[hull[hs-2]], points[hull[hs-1]], points[i]) <= 0) --hs; + hull[hs++] = i; + } -function d3_ease_cubic(t) { - return t * t * t; + // we slice to make sure that the points we 'popped' from hull don't stay behind + return hull.slice(0, hs); } -// Optimized clamp(reflect(poly(3))). -function d3_ease_cubicInOut(t) { - if (t <= 0) return 0; - if (t >= 1) return 1; - var t2 = t * t, t3 = t2 * t; - return 4 * (t < .5 ? t3 : 3 * (t - t2) + t3 - .75); +// comparator for ascending sort by x-coord first, y-coord second +function d3_geom_hullOrder(a, b) { + return a[0] - b[0] || a[1] - b[1]; } +// import "../transition/transition"; -function d3_ease_poly(e) { - return function(t) { - return Math.pow(t, e); - }; -} +d3_selectionPrototype.transition = function(name) { + var id = d3_transitionInheritId || ++d3_transitionId, + ns = d3_transitionNamespace(name), + subgroups = [], + subgroup, + node, + transition = d3_transitionInherit || {time: Date.now(), ease: d3_ease_cubicInOut, delay: 0, duration: 250}; -function d3_ease_sin(t) { - return 1 - Math.cos(t * halfπ); -} + for (var j = -1, m = this.length; ++j < m;) { + subgroups.push(subgroup = []); + for (var group = this[j], i = -1, n = group.length; ++i < n;) { + if (node = group[i]) d3_transitionNode(node, i, ns, id, transition); + subgroup.push(node); + } + } -function d3_ease_exp(t) { - return Math.pow(2, 10 * (t - 1)); -} + return d3_transition(subgroups, ns, id); +}; +// import "../transition/transition"; -function d3_ease_circle(t) { - return 1 - Math.sqrt(1 - t * t); -} +// TODO Interrupt transitions for all namespaces? +d3_selectionPrototype.interrupt = function(name) { + return this.each(name == null + ? d3_selection_interrupt + : d3_selection_interruptNS(d3_transitionNamespace(name))); +}; -function d3_ease_elastic(a, p) { - var s; - if (arguments.length < 2) p = 0.45; - if (arguments.length) s = p / τ * Math.asin(1 / a); - else a = 1, s = p / 4; - return function(t) { - return 1 + a * Math.pow(2, -10 * t) * Math.sin((t - s) * τ / p); - }; -} +var d3_selection_interrupt = d3_selection_interruptNS(d3_transitionNamespace()); -function d3_ease_back(s) { - if (!s) s = 1.70158; - return function(t) { - return t * t * ((s + 1) * t - s); +function d3_selection_interruptNS(ns) { + return function() { + var lock, active; + if ((lock = this[ns]) && (active = lock[lock.active])) { + if (--lock.count) delete lock[lock.active]; + else delete this[ns]; + lock.active += .5; + active.event && active.event.interrupt.call(this, this.__data__, active.index); + } }; } -function d3_ease_bounce(t) { - return t < 1 / 2.75 ? 7.5625 * t * t - : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 - : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 - : 7.5625 * (t -= 2.625 / 2.75) * t + .984375; -} - -function d3_transition(groups, id) { +function d3_transition(groups, ns, id) { d3_subclass(groups, d3_transitionPrototype); - groups.id = id; // Note: read-only! + // Note: read-only! + groups.namespace = ns; + groups.id = id; return groups; } @@ -4820,10 +4876,10 @@ d3_transitionPrototype.empty = d3_selectionPrototype.empty; d3_transitionPrototype.node = d3_selectionPrototype.node; d3_transitionPrototype.size = d3_selectionPrototype.size; -d3.transition = function(selection) { - return arguments.length - ? (d3_transitionInheritId ? selection.transition() : selection) - : d3_selectionRoot.transition(); +d3.transition = function(selection, name) { + return selection && selection.transition + ? (d3_transitionInheritId ? selection.transition(name) : selection) + : d3.selection().transition(selection); }; d3.transition.prototype = d3_transitionPrototype; @@ -4831,6 +4887,7 @@ d3.transition.prototype = d3_transitionPrototype; d3_transitionPrototype.select = function(selector) { var id = this.id, + ns = this.namespace, subgroups = [], subgroup, subnode, @@ -4843,7 +4900,7 @@ d3_transitionPrototype.select = function(selector) { for (var group = this[j], i = -1, n = group.length; ++i < n;) { if ((node = group[i]) && (subnode = selector.call(node, node.__data__, i, j))) { if ("__data__" in node) subnode.__data__ = node.__data__; - d3_transitionNode(subnode, i, id, node.__transition__[id]); + d3_transitionNode(subnode, i, ns, id, node[ns][id]); subgroup.push(subnode); } else { subgroup.push(null); @@ -4851,11 +4908,12 @@ d3_transitionPrototype.select = function(selector) { } } - return d3_transition(subgroups, id); + return d3_transition(subgroups, ns, id); }; d3_transitionPrototype.selectAll = function(selector) { var id = this.id, + ns = this.namespace, subgroups = [], subgroup, subnodes, @@ -4868,18 +4926,18 @@ d3_transitionPrototype.selectAll = function(selector) { for (var j = -1, m = this.length; ++j < m;) { for (var group = this[j], i = -1, n = group.length; ++i < n;) { if (node = group[i]) { - transition = node.__transition__[id]; + transition = node[ns][id]; subnodes = selector.call(node, node.__data__, i, j); subgroups.push(subgroup = []); for (var k = -1, o = subnodes.length; ++k < o;) { - if (subnode = subnodes[k]) d3_transitionNode(subnode, k, id, transition); + if (subnode = subnodes[k]) d3_transitionNode(subnode, k, ns, id, transition); subgroup.push(subnode); } } } } - return d3_transition(subgroups, id); + return d3_transition(subgroups, ns, id); }; d3_transitionPrototype.filter = function(filter) { @@ -4899,41 +4957,35 @@ d3_transitionPrototype.filter = function(filter) { } } - return d3_transition(subgroups, this.id); + return d3_transition(subgroups, this.namespace, this.id); }; -function d3_Color() {} +d3.color = d3_color; -d3_Color.prototype.toString = function() { +function d3_color() {} + +d3_color.prototype.toString = function() { return this.rgb() + ""; }; -d3.hsl = function(h, s, l) { - return arguments.length === 1 - ? (h instanceof d3_Hsl ? d3_hsl(h.h, h.s, h.l) - : d3_rgb_parse("" + h, d3_rgb_hsl, d3_hsl)) - : d3_hsl(+h, +s, +l); -}; +d3.hsl = d3_hsl; function d3_hsl(h, s, l) { - return new d3_Hsl(h, s, l); -} - -function d3_Hsl(h, s, l) { - this.h = h; - this.s = s; - this.l = l; + return this instanceof d3_hsl ? void (this.h = +h, this.s = +s, this.l = +l) + : arguments.length < 2 ? (h instanceof d3_hsl ? new d3_hsl(h.h, h.s, h.l) + : d3_rgb_parse("" + h, d3_rgb_hsl, d3_hsl)) + : new d3_hsl(h, s, l); } -var d3_hslPrototype = d3_Hsl.prototype = new d3_Color; +var d3_hslPrototype = d3_hsl.prototype = new d3_color; d3_hslPrototype.brighter = function(k) { k = Math.pow(0.7, arguments.length ? k : 1); - return d3_hsl(this.h, this.s, this.l / k); + return new d3_hsl(this.h, this.s, this.l / k); }; d3_hslPrototype.darker = function(k) { k = Math.pow(0.7, arguments.length ? k : 1); - return d3_hsl(this.h, this.s, k * this.l); + return new d3_hsl(this.h, this.s, k * this.l); }; d3_hslPrototype.rgb = function() { @@ -4966,35 +5018,27 @@ function d3_hsl_rgb(h, s, l) { return Math.round(v(h) * 255); } - return d3_rgb(vv(h + 120), vv(h), vv(h - 120)); + return new d3_rgb(vv(h + 120), vv(h), vv(h - 120)); } -d3.hcl = function(h, c, l) { - return arguments.length === 1 - ? (h instanceof d3_Hcl ? d3_hcl(h.h, h.c, h.l) - : (h instanceof d3_Lab ? d3_lab_hcl(h.l, h.a, h.b) - : d3_lab_hcl((h = d3_rgb_lab((h = d3.rgb(h)).r, h.g, h.b)).l, h.a, h.b))) - : d3_hcl(+h, +c, +l); -}; +d3.hcl = d3_hcl; function d3_hcl(h, c, l) { - return new d3_Hcl(h, c, l); -} - -function d3_Hcl(h, c, l) { - this.h = h; - this.c = c; - this.l = l; + return this instanceof d3_hcl ? void (this.h = +h, this.c = +c, this.l = +l) + : arguments.length < 2 ? (h instanceof d3_hcl ? new d3_hcl(h.h, h.c, h.l) + : (h instanceof d3_lab ? d3_lab_hcl(h.l, h.a, h.b) + : d3_lab_hcl((h = d3_rgb_lab((h = d3.rgb(h)).r, h.g, h.b)).l, h.a, h.b))) + : new d3_hcl(h, c, l); } -var d3_hclPrototype = d3_Hcl.prototype = new d3_Color; +var d3_hclPrototype = d3_hcl.prototype = new d3_color; d3_hclPrototype.brighter = function(k) { - return d3_hcl(this.h, this.c, Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1))); + return new d3_hcl(this.h, this.c, Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1))); }; d3_hclPrototype.darker = function(k) { - return d3_hcl(this.h, this.c, Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1))); + return new d3_hcl(this.h, this.c, Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1))); }; d3_hclPrototype.rgb = function() { @@ -5004,25 +5048,17 @@ d3_hclPrototype.rgb = function() { function d3_hcl_lab(h, c, l) { if (isNaN(h)) h = 0; if (isNaN(c)) c = 0; - return d3_lab(l, Math.cos(h *= d3_radians) * c, Math.sin(h) * c); + return new d3_lab(l, Math.cos(h *= d3_radians) * c, Math.sin(h) * c); } -d3.lab = function(l, a, b) { - return arguments.length === 1 - ? (l instanceof d3_Lab ? d3_lab(l.l, l.a, l.b) - : (l instanceof d3_Hcl ? d3_hcl_lab(l.l, l.c, l.h) - : d3_rgb_lab((l = d3.rgb(l)).r, l.g, l.b))) - : d3_lab(+l, +a, +b); -}; +d3.lab = d3_lab; function d3_lab(l, a, b) { - return new d3_Lab(l, a, b); -} - -function d3_Lab(l, a, b) { - this.l = l; - this.a = a; - this.b = b; + return this instanceof d3_lab ? void (this.l = +l, this.a = +a, this.b = +b) + : arguments.length < 2 ? (l instanceof d3_lab ? new d3_lab(l.l, l.a, l.b) + : (l instanceof d3_hcl ? d3_hcl_lab(l.h, l.c, l.l) + : d3_rgb_lab((l = d3_rgb(l)).r, l.g, l.b))) + : new d3_lab(l, a, b); } // Corresponds roughly to RGB brighter/darker @@ -5033,14 +5069,14 @@ var d3_lab_X = 0.950470, d3_lab_Y = 1, d3_lab_Z = 1.088830; -var d3_labPrototype = d3_Lab.prototype = new d3_Color; +var d3_labPrototype = d3_lab.prototype = new d3_color; d3_labPrototype.brighter = function(k) { - return d3_lab(Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)), this.a, this.b); + return new d3_lab(Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)), this.a, this.b); }; d3_labPrototype.darker = function(k) { - return d3_lab(Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)), this.a, this.b); + return new d3_lab(Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)), this.a, this.b); }; d3_labPrototype.rgb = function() { @@ -5054,7 +5090,7 @@ function d3_lab_rgb(l, a, b) { x = d3_lab_xyz(x) * d3_lab_X; y = d3_lab_xyz(y) * d3_lab_Y; z = d3_lab_xyz(z) * d3_lab_Z; - return d3_rgb( + return new d3_rgb( d3_xyz_rgb( 3.2404542 * x - 1.5371385 * y - 0.4985314 * z), d3_xyz_rgb(-0.9692660 * x + 1.8760108 * y + 0.0415560 * z), d3_xyz_rgb( 0.0556434 * x - 0.2040259 * y + 1.0572252 * z) @@ -5063,8 +5099,8 @@ function d3_lab_rgb(l, a, b) { function d3_lab_hcl(l, a, b) { return l > 0 - ? d3_hcl(Math.atan2(b, a) * d3_degrees, Math.sqrt(a * a + b * b), l) - : d3_hcl(NaN, NaN, l); + ? new d3_hcl(Math.atan2(b, a) * d3_degrees, Math.sqrt(a * a + b * b), l) + : new d3_hcl(NaN, NaN, l); } function d3_lab_xyz(x) { @@ -5078,32 +5114,24 @@ function d3_xyz_rgb(r) { return Math.round(255 * (r <= 0.00304 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - 0.055)); } -d3.rgb = function(r, g, b) { - return arguments.length === 1 - ? (r instanceof d3_Rgb ? d3_rgb(r.r, r.g, r.b) +d3.rgb = d3_rgb; + +function d3_rgb(r, g, b) { + return this instanceof d3_rgb ? void (this.r = ~~r, this.g = ~~g, this.b = ~~b) + : arguments.length < 2 ? (r instanceof d3_rgb ? new d3_rgb(r.r, r.g, r.b) : d3_rgb_parse("" + r, d3_rgb, d3_hsl_rgb)) - : d3_rgb(~~r, ~~g, ~~b); -}; + : new d3_rgb(r, g, b); +} function d3_rgbNumber(value) { - return d3_rgb(value >> 16, value >> 8 & 0xff, value & 0xff); + return new d3_rgb(value >> 16, value >> 8 & 0xff, value & 0xff); } function d3_rgbString(value) { return d3_rgbNumber(value) + ""; } -function d3_rgb(r, g, b) { - return new d3_Rgb(r, g, b); -} - -function d3_Rgb(r, g, b) { - this.r = r; - this.g = g; - this.b = b; -} - -var d3_rgbPrototype = d3_Rgb.prototype = new d3_Color; +var d3_rgbPrototype = d3_rgb.prototype = new d3_color; d3_rgbPrototype.brighter = function(k) { k = Math.pow(0.7, arguments.length ? k : 1); @@ -5111,16 +5139,16 @@ d3_rgbPrototype.brighter = function(k) { g = this.g, b = this.b, i = 30; - if (!r && !g && !b) return d3_rgb(i, i, i); + if (!r && !g && !b) return new d3_rgb(i, i, i); if (r && r < i) r = i; if (g && g < i) g = i; if (b && b < i) b = i; - return d3_rgb(Math.min(255, ~~(r / k)), Math.min(255, ~~(g / k)), Math.min(255, ~~(b / k))); + return new d3_rgb(Math.min(255, r / k), Math.min(255, g / k), Math.min(255, b / k)); }; d3_rgbPrototype.darker = function(k) { k = Math.pow(0.7, arguments.length ? k : 1); - return d3_rgb(~~(k * this.r), ~~(k * this.g), ~~(k * this.b)); + return new d3_rgb(k * this.r, k * this.g, k * this.b); }; d3_rgbPrototype.hsl = function() { @@ -5168,10 +5196,12 @@ function d3_rgb_parse(format, rgb, hsl) { } /* Named colors. */ - if (color = d3_rgb_names.get(format)) return rgb(color.r, color.g, color.b); + if (color = d3_rgb_names.get(format.toLowerCase())) { + return rgb(color.r, color.g, color.b); + } /* Hexadecimal colors: #rgb and #rrggbb. */ - if (format != null && format.charAt(0) === "#" && !isNaN(color = parseInt(format.substring(1), 16))) { + if (format != null && format.charAt(0) === "#" && !isNaN(color = parseInt(format.slice(1), 16))) { if (format.length === 4) { r = (color & 0xf00) >> 4; r = (r >> 4) | r; g = (color & 0xf0); g = (g >> 4) | g; @@ -5203,7 +5233,7 @@ function d3_rgb_hsl(r, g, b) { h = NaN; s = l > 0 && l < 1 ? 0 : h; } - return d3_hsl(h, s, l); + return new d3_hsl(h, s, l); } function d3_rgb_lab(r, g, b) { @@ -5345,6 +5375,7 @@ var d3_rgb_names = d3.map({ plum: 0xdda0dd, powderblue: 0xb0e0e6, purple: 0x800080, + rebeccapurple: 0x663399, red: 0xff0000, rosybrown: 0xbc8f8f, royalblue: 0x4169e1, @@ -5442,8 +5473,8 @@ function d3_interpolateArray(a, b) { d3.interpolateNumber = d3_interpolateNumber; function d3_interpolateNumber(a, b) { - b -= a = +a; - return function(t) { return a + b * t; }; + a = +a, b = +b; + return function(t) { return a * (1 - t) + b * t; }; } d3.interpolateString = d3_interpolateString; @@ -5464,7 +5495,7 @@ function d3_interpolateString(a, b) { while ((am = d3_interpolate_numberA.exec(a)) && (bm = d3_interpolate_numberB.exec(b))) { if ((bs = bm.index) > bi) { // a string precedes the next number in b - bs = b.substring(bi, bs); + bs = b.slice(bi, bs); if (s[i]) s[i] += bs; // coalesce with previous string else s[++i] = bs; } @@ -5480,7 +5511,7 @@ function d3_interpolateString(a, b) { // Add remains of b. if (bi < b.length) { - bs = b.substring(bi); + bs = b.slice(bi); if (s[i]) s[i] += bs; // coalesce with previous string else s[++i] = bs; } @@ -5511,7 +5542,7 @@ d3.interpolators = [ function(a, b) { var t = typeof b; return (t === "string" ? (d3_rgb_names.has(b) || /^(#|rgb\(|hsl\()/.test(b) ? d3_interpolateRgb : d3_interpolateString) - : b instanceof d3_Color ? d3_interpolateRgb + : b instanceof d3_color ? d3_interpolateRgb : Array.isArray(b) ? d3_interpolateArray : t === "object" && isNaN(b) ? d3_interpolateObject : d3_interpolateNumber)(a, b); @@ -5635,18 +5666,18 @@ function d3_interpolateTransform(a, b) { } d3_transitionPrototype.tween = function(name, tween) { - var id = this.id; - if (arguments.length < 2) return this.node().__transition__[id].tween.get(name); + var id = this.id, ns = this.namespace; + if (arguments.length < 2) return this.node()[ns][id].tween.get(name); return d3_selection_each(this, tween == null - ? function(node) { node.__transition__[id].tween.remove(name); } - : function(node) { node.__transition__[id].tween.set(name, tween); }); + ? function(node) { node[ns][id].tween.remove(name); } + : function(node) { node[ns][id].tween.set(name, tween); }); }; function d3_transition_tween(groups, name, value, tween) { - var id = groups.id; + var id = groups.id, ns = groups.namespace; return d3_selection_each(groups, typeof value === "function" - ? function(node, i, j) { node.__transition__[id].tween.set(name, tween(value.call(node, node.__data__, i, j))); } - : (value = tween(value), function(node) { node.__transition__[id].tween.set(name, value); })); + ? function(node, i, j) { node[ns][id].tween.set(name, tween(value.call(node, node.__data__, i, j))); } + : (value = tween(value), function(node) { node[ns][id].tween.set(name, value); })); } d3_transitionPrototype.attr = function(nameNS, value) { @@ -5732,7 +5763,7 @@ d3_transitionPrototype.style = function(name, value, priority) { // Otherwise, a name, value and priority are specified, and handled as below. function styleString(b) { return b == null ? styleNull : (b += "", function() { - var a = d3_window.getComputedStyle(this, null).getPropertyValue(name), i; + var a = d3_window(this).getComputedStyle(this, null).getPropertyValue(name), i; return a !== b && (i = d3_interpolate(a, b), function(t) { this.style.setProperty(name, i(t), priority); }); }); } @@ -5744,7 +5775,7 @@ d3_transitionPrototype.styleTween = function(name, tween, priority) { if (arguments.length < 3) priority = ""; function styleTween(d, i) { - var f = tween.call(this, d, i, d3_window.getComputedStyle(this, null).getPropertyValue(name)); + var f = tween.call(this, d, i, d3_window(this).getComputedStyle(this, null).getPropertyValue(name)); return f && function(t) { this.style.setProperty(name, f(t), priority); }; } @@ -5761,51 +5792,162 @@ function d3_transition_text(b) { } d3_transitionPrototype.remove = function() { + var ns = this.namespace; return this.each("end.transition", function() { var p; - if (this.__transition__.count < 2 && (p = this.parentNode)) p.removeChild(this); + if (this[ns].count < 2 && (p = this.parentNode)) p.removeChild(this); }); }; +var d3_ease_default = function() { return d3_identity; }; + +var d3_ease = d3.map({ + linear: d3_ease_default, + poly: d3_ease_poly, + quad: function() { return d3_ease_quad; }, + cubic: function() { return d3_ease_cubic; }, + sin: function() { return d3_ease_sin; }, + exp: function() { return d3_ease_exp; }, + circle: function() { return d3_ease_circle; }, + elastic: d3_ease_elastic, + back: d3_ease_back, + bounce: function() { return d3_ease_bounce; } +}); + +var d3_ease_mode = d3.map({ + "in": d3_identity, + "out": d3_ease_reverse, + "in-out": d3_ease_reflect, + "out-in": function(f) { return d3_ease_reflect(d3_ease_reverse(f)); } +}); + +d3.ease = function(name) { + var i = name.indexOf("-"), + t = i >= 0 ? name.slice(0, i) : name, + m = i >= 0 ? name.slice(i + 1) : "in"; + t = d3_ease.get(t) || d3_ease_default; + m = d3_ease_mode.get(m) || d3_identity; + return d3_ease_clamp(m(t.apply(null, d3_arraySlice.call(arguments, 1)))); +}; + +function d3_ease_clamp(f) { + return function(t) { + return t <= 0 ? 0 : t >= 1 ? 1 : f(t); + }; +} + +function d3_ease_reverse(f) { + return function(t) { + return 1 - f(1 - t); + }; +} + +function d3_ease_reflect(f) { + return function(t) { + return .5 * (t < .5 ? f(2 * t) : (2 - f(2 - 2 * t))); + }; +} + +function d3_ease_quad(t) { + return t * t; +} + +function d3_ease_cubic(t) { + return t * t * t; +} + +// Optimized clamp(reflect(poly(3))). +function d3_ease_cubicInOut(t) { + if (t <= 0) return 0; + if (t >= 1) return 1; + var t2 = t * t, t3 = t2 * t; + return 4 * (t < .5 ? t3 : 3 * (t - t2) + t3 - .75); +} + +function d3_ease_poly(e) { + return function(t) { + return Math.pow(t, e); + }; +} + +function d3_ease_sin(t) { + return 1 - Math.cos(t * halfπ); +} + +function d3_ease_exp(t) { + return Math.pow(2, 10 * (t - 1)); +} + +function d3_ease_circle(t) { + return 1 - Math.sqrt(1 - t * t); +} + +function d3_ease_elastic(a, p) { + var s; + if (arguments.length < 2) p = 0.45; + if (arguments.length) s = p / τ * Math.asin(1 / a); + else a = 1, s = p / 4; + return function(t) { + return 1 + a * Math.pow(2, -10 * t) * Math.sin((t - s) * τ / p); + }; +} + +function d3_ease_back(s) { + if (!s) s = 1.70158; + return function(t) { + return t * t * ((s + 1) * t - s); + }; +} + +function d3_ease_bounce(t) { + return t < 1 / 2.75 ? 7.5625 * t * t + : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 + : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 + : 7.5625 * (t -= 2.625 / 2.75) * t + .984375; +} + d3_transitionPrototype.ease = function(value) { - var id = this.id; - if (arguments.length < 1) return this.node().__transition__[id].ease; + var id = this.id, ns = this.namespace; + if (arguments.length < 1) return this.node()[ns][id].ease; if (typeof value !== "function") value = d3.ease.apply(d3, arguments); - return d3_selection_each(this, function(node) { node.__transition__[id].ease = value; }); + return d3_selection_each(this, function(node) { node[ns][id].ease = value; }); }; d3_transitionPrototype.delay = function(value) { - var id = this.id; - if (arguments.length < 1) return this.node().__transition__[id].delay; + var id = this.id, ns = this.namespace; + if (arguments.length < 1) return this.node()[ns][id].delay; return d3_selection_each(this, typeof value === "function" - ? function(node, i, j) { node.__transition__[id].delay = +value.call(node, node.__data__, i, j); } - : (value = +value, function(node) { node.__transition__[id].delay = value; })); + ? function(node, i, j) { node[ns][id].delay = +value.call(node, node.__data__, i, j); } + : (value = +value, function(node) { node[ns][id].delay = value; })); }; d3_transitionPrototype.duration = function(value) { - var id = this.id; - if (arguments.length < 1) return this.node().__transition__[id].duration; + var id = this.id, ns = this.namespace; + if (arguments.length < 1) return this.node()[ns][id].duration; return d3_selection_each(this, typeof value === "function" - ? function(node, i, j) { node.__transition__[id].duration = Math.max(1, value.call(node, node.__data__, i, j)); } - : (value = Math.max(1, value), function(node) { node.__transition__[id].duration = value; })); + ? function(node, i, j) { node[ns][id].duration = Math.max(1, value.call(node, node.__data__, i, j)); } + : (value = Math.max(1, value), function(node) { node[ns][id].duration = value; })); }; d3_transitionPrototype.each = function(type, listener) { - var id = this.id; + var id = this.id, ns = this.namespace; if (arguments.length < 2) { var inherit = d3_transitionInherit, inheritId = d3_transitionInheritId; - d3_transitionInheritId = id; - d3_selection_each(this, function(node, i, j) { - d3_transitionInherit = node.__transition__[id]; - type.call(node, node.__data__, i, j); - }); - d3_transitionInherit = inherit; - d3_transitionInheritId = inheritId; + try { + d3_transitionInheritId = id; + d3_selection_each(this, function(node, i, j) { + d3_transitionInherit = node[ns][id]; + type.call(node, node.__data__, i, j); + }); + } finally { + d3_transitionInherit = inherit; + d3_transitionInheritId = inheritId; + } } else { d3_selection_each(this, function(node) { - var transition = node.__transition__[id]; - (transition.event || (transition.event = d3.dispatch("start", "end"))).on(type, listener); + var transition = node[ns][id]; + (transition.event || (transition.event = d3.dispatch("start", "end", "interrupt"))).on(type, listener); }); } return this; @@ -5814,6 +5956,7 @@ d3_transitionPrototype.each = function(type, listener) { d3_transitionPrototype.transition = function() { var id0 = this.id, id1 = ++d3_transitionId, + ns = this.namespace, subgroups = [], subgroup, group, @@ -5824,19 +5967,22 @@ d3_transitionPrototype.transition = function() { subgroups.push(subgroup = []); for (var group = this[j], i = 0, n = group.length; i < n; i++) { if (node = group[i]) { - transition = Object.create(node.__transition__[id0]); - transition.delay += transition.duration; - d3_transitionNode(node, i, id1, transition); + transition = node[ns][id0]; + d3_transitionNode(node, i, ns, id1, {time: transition.time, ease: transition.ease, delay: transition.delay + transition.duration, duration: transition.duration}); } subgroup.push(node); } } - return d3_transition(subgroups, id1); + return d3_transition(subgroups, ns, id1); }; -function d3_transitionNode(node, i, id, inherit) { - var lock = node.__transition__ || (node.__transition__ = {active: 0, count: 0}), +function d3_transitionNamespace(name) { + return name == null ? "__transition__" : "__transition_" + name + "__"; +} + +function d3_transitionNode(node, i, ns, id, inherit) { + var lock = node[ns] || (node[ns] = {active: 0, count: 0}), transition = lock[id]; if (!transition) { @@ -5845,18 +5991,20 @@ function d3_transitionNode(node, i, id, inherit) { transition = lock[id] = { tween: new d3_Map, time: time, - ease: inherit.ease, delay: inherit.delay, - duration: inherit.duration + duration: inherit.duration, + ease: inherit.ease, + index: i }; + inherit = null; // allow gc + ++lock.count; d3.timer(function(elapsed) { - var d = node.__data__, - ease = transition.ease, - delay = transition.delay, - duration = transition.duration, + var delay = transition.delay, + duration, + ease, timer = d3_timer_active, tweened = []; @@ -5866,15 +6014,28 @@ function d3_transitionNode(node, i, id, inherit) { function start(elapsed) { if (lock.active > id) return stop(); + + var active = lock[lock.active]; + if (active) { + --lock.count; + delete lock[lock.active]; + active.event && active.event.interrupt.call(node, node.__data__, active.index); + } + lock.active = id; - transition.event && transition.event.start.call(node, d, i); + + transition.event && transition.event.start.call(node, node.__data__, i); transition.tween.forEach(function(key, value) { - if (value = value.call(node, d, i)) { + if (value = value.call(node, node.__data__, i)) { tweened.push(value); } }); + // Deferred capture to allow tweens to initialize ease & duration. + ease = transition.ease; + duration = transition.duration; + d3.timer(function() { // defer to end of current frame timer.c = tick(elapsed || 1) ? d3_true : tick; return 1; @@ -5882,7 +6043,7 @@ function d3_transitionNode(node, i, id, inherit) { } function tick(elapsed) { - if (lock.active !== id) return stop(); + if (lock.active !== id) return 1; var t = elapsed / duration, e = ease(t), @@ -5893,14 +6054,14 @@ function d3_transitionNode(node, i, id, inherit) { } if (t >= 1) { - transition.event && transition.event.end.call(node, d, i); + transition.event && transition.event.end.call(node, node.__data__, i); return stop(); } } function stop() { if (--lock.count) delete lock[id]; - else delete node.__transition__; + else delete node[ns]; return 1; } }, 0, time); @@ -5924,7 +6085,7 @@ function d3_xhr(url, mimeType, response, callback) { responseType = null; // If IE does not support CORS, use XDomainRequest. - if (d3_window.XDomainRequest + if (this.XDomainRequest && !("withCredentials" in request) && /^(http(s)?:)?\/\//.test(url)) request = new XDomainRequest; @@ -5934,7 +6095,7 @@ function d3_xhr(url, mimeType, response, callback) { function respond() { var status = request.status, result; - if (!status && request.responseText || status >= 200 && status < 300 || status === 304) { + if (!status && d3_xhrHasResponse(request) || status >= 200 && status < 300 || status === 304) { try { result = response.call(xhr, request); } catch (e) { @@ -6021,6 +6182,13 @@ function d3_xhr_fixCallback(callback) { : callback; } +function d3_xhrHasResponse(request) { + var type = request.responseType; + return type && type !== "text" + ? request.response // null on error + : request.responseText; // "" on error +} + d3.text = d3_xhrType(function(request) { return request.responseText; }); @@ -6046,13 +6214,9 @@ function d3_html(request) { d3.xml = d3_xhrType(function(request) { return request.responseXML; }); - if (typeof define === "function" && define.amd) { - define(d3); - } else if (typeof module === "object" && module.exports) { - module.exports = d3; - } else { - this.d3 = d3; - } + if (typeof define === "function" && define.amd) define(d3); + else if (typeof module === "object" && module.exports) module.exports = d3; + this.d3 = d3; }(); d3.combobox = function() { var event = d3.dispatch('accept'), @@ -6100,8 +6264,12 @@ d3.combobox = function() { // on mousedown d3.event.stopPropagation(); d3.event.preventDefault(); - input.node().focus(); - fetch('', render); + if (!shown) { + input.node().focus(); + fetch('', render); + } else { + hide(); + } }); }); @@ -6239,7 +6407,7 @@ d3.combobox = function() { for (var i = 0; i < suggestions.length; i++) { if (suggestions[i].value.toLowerCase().indexOf(v.toLowerCase()) === 0) { - var completion = v + suggestions[i].value.substr(v.length); + var completion = suggestions[i].value; idx = i; input.property('value', completion); input.node().setSelectionRange(v.length, completion.length); @@ -6553,14 +6721,20 @@ d3.keybinding = function(namespace) { // Up Arrow Key, or ↓ '↓': 40, down: 40, 'arrow-down': 40, // odities, printing characters that come out wrong: + // Firefox Equals + 'ffequals': 61, // Num-Multiply, or * '*': 106, star: 106, asterisk: 106, multiply: 106, // Num-Plus or + '+': 107, 'plus': 107, // Num-Subtract, or - '-': 109, subtract: 109, + // Firefox Minus + 'ffplus': 171, + // Firefox Minus + 'ffminus': 173, // Semicolon - ';': 186, semicolon:186, + ';': 186, semicolon: 186, // = or equals '=': 187, 'equals': 187, // Comma, or , @@ -6906,6 +7080,437 @@ d3.selection.prototype.value = function(value) { if (!arguments.length) return this.property('value'); return this.each(d3_selection_value(value)); }; +// Copyright (c) 2006, 2008 Tony Garnock-Jones +// Copyright (c) 2006, 2008 LShift Ltd. +// +// Permission is hereby granted, free of charge, to any person +// obtaining a copy of this software and associated documentation files +// (the "Software"), to deal in the Software without restriction, +// including without limitation the rights to use, copy, modify, merge, +// publish, distribute, sublicense, and/or sell copies of the Software, +// and to permit persons to whom the Software is furnished to do so, +// subject to the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +// BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + +// source: https://bitbucket.org/lshift/synchrotron/src + +Diff3 = (function() { + 'use strict'; + + var diff3 = { + longest_common_subsequence: function(file1, file2) { + /* Text diff algorithm following Hunt and McIlroy 1976. + * J. W. Hunt and M. D. McIlroy, An algorithm for differential file + * comparison, Bell Telephone Laboratories CSTR #41 (1976) + * http://www.cs.dartmouth.edu/~doug/ + * + * Expects two arrays of strings. + */ + var equivalenceClasses; + var file2indices; + var newCandidate; + var candidates; + var line; + var c, i, j, jX, r, s; + + equivalenceClasses = {}; + for (j = 0; j < file2.length; j++) { + line = file2[j]; + if (equivalenceClasses[line]) { + equivalenceClasses[line].push(j); + } else { + equivalenceClasses[line] = [j]; + } + } + + candidates = [{file1index: -1, + file2index: -1, + chain: null}]; + + for (i = 0; i < file1.length; i++) { + line = file1[i]; + file2indices = equivalenceClasses[line] || []; + + r = 0; + c = candidates[0]; + + for (jX = 0; jX < file2indices.length; jX++) { + j = file2indices[jX]; + + for (s = 0; s < candidates.length; s++) { + if ((candidates[s].file2index < j) && + ((s == candidates.length - 1) || + (candidates[s + 1].file2index > j))) + break; + } + + if (s < candidates.length) { + newCandidate = {file1index: i, + file2index: j, + chain: candidates[s]}; + if (r == candidates.length) { + candidates.push(c); + } else { + candidates[r] = c; + } + r = s + 1; + c = newCandidate; + if (r == candidates.length) { + break; // no point in examining further (j)s + } + } + } + + candidates[r] = c; + } + + // At this point, we know the LCS: it's in the reverse of the + // linked-list through .chain of + // candidates[candidates.length - 1]. + + return candidates[candidates.length - 1]; + }, + + diff_comm: function(file1, file2) { + // We apply the LCS to build a "comm"-style picture of the + // differences between file1 and file2. + + var result = []; + var tail1 = file1.length; + var tail2 = file2.length; + var common = {common: []}; + + function processCommon() { + if (common.common.length) { + common.common.reverse(); + result.push(common); + common = {common: []}; + } + } + + for (var candidate = Diff3.longest_common_subsequence(file1, file2); + candidate !== null; + candidate = candidate.chain) + { + var different = {file1: [], file2: []}; + + while (--tail1 > candidate.file1index) { + different.file1.push(file1[tail1]); + } + + while (--tail2 > candidate.file2index) { + different.file2.push(file2[tail2]); + } + + if (different.file1.length || different.file2.length) { + processCommon(); + different.file1.reverse(); + different.file2.reverse(); + result.push(different); + } + + if (tail1 >= 0) { + common.common.push(file1[tail1]); + } + } + + processCommon(); + + result.reverse(); + return result; + }, + + diff_patch: function(file1, file2) { + // We apply the LCD to build a JSON representation of a + // diff(1)-style patch. + + var result = []; + var tail1 = file1.length; + var tail2 = file2.length; + + function chunkDescription(file, offset, length) { + var chunk = []; + for (var i = 0; i < length; i++) { + chunk.push(file[offset + i]); + } + return {offset: offset, + length: length, + chunk: chunk}; + } + + for (var candidate = Diff3.longest_common_subsequence(file1, file2); + candidate !== null; + candidate = candidate.chain) + { + var mismatchLength1 = tail1 - candidate.file1index - 1; + var mismatchLength2 = tail2 - candidate.file2index - 1; + tail1 = candidate.file1index; + tail2 = candidate.file2index; + + if (mismatchLength1 || mismatchLength2) { + result.push({file1: chunkDescription(file1, + candidate.file1index + 1, + mismatchLength1), + file2: chunkDescription(file2, + candidate.file2index + 1, + mismatchLength2)}); + } + } + + result.reverse(); + return result; + }, + + strip_patch: function(patch) { + // Takes the output of Diff3.diff_patch(), and removes + // information from it. It can still be used by patch(), + // below, but can no longer be inverted. + var newpatch = []; + for (var i = 0; i < patch.length; i++) { + var chunk = patch[i]; + newpatch.push({file1: {offset: chunk.file1.offset, + length: chunk.file1.length}, + file2: {chunk: chunk.file2.chunk}}); + } + return newpatch; + }, + + invert_patch: function(patch) { + // Takes the output of Diff3.diff_patch(), and inverts the + // sense of it, so that it can be applied to file2 to give + // file1 rather than the other way around. + + for (var i = 0; i < patch.length; i++) { + var chunk = patch[i]; + var tmp = chunk.file1; + chunk.file1 = chunk.file2; + chunk.file2 = tmp; + } + }, + + patch: function (file, patch) { + // Applies a patch to a file. + // + // Given file1 and file2, Diff3.patch(file1, + // Diff3.diff_patch(file1, file2)) should give file2. + + var result = []; + var commonOffset = 0; + + function copyCommon(targetOffset) { + while (commonOffset < targetOffset) { + result.push(file[commonOffset]); + commonOffset++; + } + } + + for (var chunkIndex = 0; chunkIndex < patch.length; chunkIndex++) { + var chunk = patch[chunkIndex]; + copyCommon(chunk.file1.offset); + for (var lineIndex = 0; lineIndex < chunk.file2.chunk.length; lineIndex++) { + result.push(chunk.file2.chunk[lineIndex]); + } + commonOffset += chunk.file1.length; + } + + copyCommon(file.length); + return result; + }, + + diff_indices: function(file1, file2) { + // We apply the LCS to give a simple representation of the + // offsets and lengths of mismatched chunks in the input + // files. This is used by diff3_merge_indices below. + + var result = []; + var tail1 = file1.length; + var tail2 = file2.length; + + for (var candidate = Diff3.longest_common_subsequence(file1, file2); + candidate !== null; + candidate = candidate.chain) + { + var mismatchLength1 = tail1 - candidate.file1index - 1; + var mismatchLength2 = tail2 - candidate.file2index - 1; + tail1 = candidate.file1index; + tail2 = candidate.file2index; + + if (mismatchLength1 || mismatchLength2) { + result.push({file1: [tail1 + 1, mismatchLength1], + file2: [tail2 + 1, mismatchLength2]}); + } + } + + result.reverse(); + return result; + }, + + diff3_merge_indices: function (a, o, b) { + // Given three files, A, O, and B, where both A and B are + // independently derived from O, returns a fairly complicated + // internal representation of merge decisions it's taken. The + // interested reader may wish to consult + // + // Sanjeev Khanna, Keshav Kunal, and Benjamin C. Pierce. "A + // Formal Investigation of Diff3." In Arvind and Prasad, + // editors, Foundations of Software Technology and Theoretical + // Computer Science (FSTTCS), December 2007. + // + // (http://www.cis.upenn.edu/~bcpierce/papers/diff3-short.pdf) + var i; + + var m1 = Diff3.diff_indices(o, a); + var m2 = Diff3.diff_indices(o, b); + + var hunks = []; + function addHunk(h, side) { + hunks.push([h.file1[0], side, h.file1[1], h.file2[0], h.file2[1]]); + } + for (i = 0; i < m1.length; i++) { addHunk(m1[i], 0); } + for (i = 0; i < m2.length; i++) { addHunk(m2[i], 2); } + hunks.sort(); + + var result = []; + var commonOffset = 0; + function copyCommon(targetOffset) { + if (targetOffset > commonOffset) { + result.push([1, commonOffset, targetOffset - commonOffset]); + commonOffset = targetOffset; + } + } + + for (var hunkIndex = 0; hunkIndex < hunks.length; hunkIndex++) { + var firstHunkIndex = hunkIndex; + var hunk = hunks[hunkIndex]; + var regionLhs = hunk[0]; + var regionRhs = regionLhs + hunk[2]; + while (hunkIndex < hunks.length - 1) { + var maybeOverlapping = hunks[hunkIndex + 1]; + var maybeLhs = maybeOverlapping[0]; + if (maybeLhs > regionRhs) break; + regionRhs = maybeLhs + maybeOverlapping[2]; + hunkIndex++; + } + + copyCommon(regionLhs); + if (firstHunkIndex == hunkIndex) { + // The "overlap" was only one hunk long, meaning that + // there's no conflict here. Either a and o were the + // same, or b and o were the same. + if (hunk[4] > 0) { + result.push([hunk[1], hunk[3], hunk[4]]); + } + } else { + // A proper conflict. Determine the extents of the + // regions involved from a, o and b. Effectively merge + // all the hunks on the left into one giant hunk, and + // do the same for the right; then, correct for skew + // in the regions of o that each side changed, and + // report appropriate spans for the three sides. + var regions = { + 0: [a.length, -1, o.length, -1], + 2: [b.length, -1, o.length, -1] + }; + for (i = firstHunkIndex; i <= hunkIndex; i++) { + hunk = hunks[i]; + var side = hunk[1]; + var r = regions[side]; + var oLhs = hunk[0]; + var oRhs = oLhs + hunk[2]; + var abLhs = hunk[3]; + var abRhs = abLhs + hunk[4]; + r[0] = Math.min(abLhs, r[0]); + r[1] = Math.max(abRhs, r[1]); + r[2] = Math.min(oLhs, r[2]); + r[3] = Math.max(oRhs, r[3]); + } + var aLhs = regions[0][0] + (regionLhs - regions[0][2]); + var aRhs = regions[0][1] + (regionRhs - regions[0][3]); + var bLhs = regions[2][0] + (regionLhs - regions[2][2]); + var bRhs = regions[2][1] + (regionRhs - regions[2][3]); + result.push([-1, + aLhs, aRhs - aLhs, + regionLhs, regionRhs - regionLhs, + bLhs, bRhs - bLhs]); + } + commonOffset = regionRhs; + } + + copyCommon(o.length); + return result; + }, + + diff3_merge: function (a, o, b, excludeFalseConflicts) { + // Applies the output of Diff3.diff3_merge_indices to actually + // construct the merged file; the returned result alternates + // between "ok" and "conflict" blocks. + + var result = []; + var files = [a, o, b]; + var indices = Diff3.diff3_merge_indices(a, o, b); + + var okLines = []; + function flushOk() { + if (okLines.length) { + result.push({ok: okLines}); + } + okLines = []; + } + function pushOk(xs) { + for (var j = 0; j < xs.length; j++) { + okLines.push(xs[j]); + } + } + + function isTrueConflict(rec) { + if (rec[2] != rec[6]) return true; + var aoff = rec[1]; + var boff = rec[5]; + for (var j = 0; j < rec[2]; j++) { + if (a[j + aoff] != b[j + boff]) return true; + } + return false; + } + + for (var i = 0; i < indices.length; i++) { + var x = indices[i]; + var side = x[0]; + if (side == -1) { + if (excludeFalseConflicts && !isTrueConflict(x)) { + pushOk(files[0].slice(x[1], x[1] + x[2])); + } else { + flushOk(); + result.push({conflict: {a: a.slice(x[1], x[1] + x[2]), + aIndex: x[1], + o: o.slice(x[3], x[3] + x[4]), + oIndex: x[3], + b: b.slice(x[5], x[5] + x[6]), + bIndex: x[5]}}); + } + } else { + pushOk(files[side].slice(x[1], x[1] + x[2])); + } + } + + flushOk(); + return result; + } + }; + return diff3; +})(); + +if (typeof module !== 'undefined') module.exports = Diff3; var JXON = new (function () { var sValueProp = "keyValue", sAttributesProp = "keyAttributes", sAttrPref = "@", /* you can customize these values */ @@ -7049,145 +7654,191 @@ var JXON = new (function () { // we got our Document instance! try: alert((new XMLSerializer()).serializeToString(newDoc)); /** * @license - * Lo-Dash 2.3.0 (Custom Build) - * Build: `lodash include="any,assign,bind,clone,compact,contains,debounce,difference,each,every,extend,filter,find,first,forEach,groupBy,indexOf,intersection,isEmpty,isEqual,isFunction,keys,last,map,omit,pairs,pluck,reject,some,throttle,union,uniq,unique,values,without,flatten,value,chain,cloneDeep,merge" exports="global,node"` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.5.2 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license + * lodash 3.9.3 (Custom Build) + * Build: `lodash --development --output js/lib/lodash.js include="any,assign,bind,chunk,clone,compact,contains,debounce,difference,each,every,extend,filter,find,first,forEach,forOwn,groupBy,indexOf,intersection,isEmpty,isEqual,isFunction,keys,last,map,omit,pairs,pluck,reject,some,throttle,union,uniq,unique,values,without,flatten,value,chain,cloneDeep,merge,pick,reduce" exports="global,node"` + * Copyright 2012-2015 The Dojo Foundation + * Based on Underscore.js 1.8.3 + * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Available under MIT license */ ;(function() { - /** Used as a safe reference for `undefined` in pre ES5 environments */ + /** Used as a safe reference for `undefined` in pre-ES5 environments. */ var undefined; - /** Used to pool arrays and objects used internally */ - var arrayPool = [], - objectPool = []; + /** Used as the semantic version number. */ + var VERSION = '3.9.3'; + + /** Used to compose bitmasks for wrapper metadata. */ + var BIND_FLAG = 1, + BIND_KEY_FLAG = 2, + CURRY_BOUND_FLAG = 4, + CURRY_FLAG = 8, + CURRY_RIGHT_FLAG = 16, + PARTIAL_FLAG = 32, + PARTIAL_RIGHT_FLAG = 64, + ARY_FLAG = 128, + REARG_FLAG = 256; + + /** Used to detect when a function becomes hot. */ + var HOT_COUNT = 150, + HOT_SPAN = 16; + + /** Used to indicate the type of lazy iteratees. */ + var LAZY_DROP_WHILE_FLAG = 0, + LAZY_FILTER_FLAG = 1, + LAZY_MAP_FLAG = 2; + + /** Used as the `TypeError` message for "Functions" methods. */ + var FUNC_ERROR_TEXT = 'Expected a function'; + + /** Used as the internal argument placeholder. */ + var PLACEHOLDER = '__lodash_placeholder__'; + + /** `Object#toString` result references. */ + var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + weakMapTag = '[object WeakMap]'; + + var arrayBufferTag = '[object ArrayBuffer]', + float32Tag = '[object Float32Array]', + float64Tag = '[object Float64Array]', + int8Tag = '[object Int8Array]', + int16Tag = '[object Int16Array]', + int32Tag = '[object Int32Array]', + uint8Tag = '[object Uint8Array]', + uint8ClampedTag = '[object Uint8ClampedArray]', + uint16Tag = '[object Uint16Array]', + uint32Tag = '[object Uint32Array]'; + + /** Used to match property names within property paths. */ + var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/, + reIsPlainProp = /^\w*$/, + rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g; - /** Used internally to indicate various things */ - var indicatorObject = {}; - - /** Used to prefix keys to avoid issues with `__proto__` and properties on `Object.prototype` */ - var keyPrefix = +new Date + ''; - - /** Used as the size when optimizations are enabled for large arrays */ - var largeArraySize = 75; + /** + * Used to match `RegExp` [special characters](http://www.regular-expressions.info/characters.html#special). + * In addition to special characters the forward slash is escaped to allow for + * easier `eval` use and `Function` compilation. + */ + var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g, + reHasRegExpChars = RegExp(reRegExpChars.source); - /** Used as the max size of the `arrayPool` and `objectPool` */ - var maxPoolSize = 40; + /** Used to match backslashes in property paths. */ + var reEscapeChar = /\\(\\)?/g; - /** Used to match regexp flags from their coerced string values */ + /** Used to match `RegExp` flags from their coerced string values. */ var reFlags = /\w*$/; - /** Used to detected named functions */ - var reFuncName = /^\s*function[ \n\r\t]+\w/; + /** Used to detect host constructors (Safari > 5). */ + var reIsHostCtor = /^\[object .+?Constructor\]$/; - /** Used to detect functions containing a `this` reference */ - var reThis = /\bthis\b/; + /** Used to detect unsigned integer values. */ + var reIsUint = /^\d+$/; - /** Used to fix the JScript [[DontEnum]] bug */ - var shadowedProps = [ + /** Used to fix the JScript `[[DontEnum]]` bug. */ + var shadowProps = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ]; - /** `Object#toString` result shortcuts */ - var argsClass = '[object Arguments]', - arrayClass = '[object Array]', - boolClass = '[object Boolean]', - dateClass = '[object Date]', - errorClass = '[object Error]', - funcClass = '[object Function]', - numberClass = '[object Number]', - objectClass = '[object Object]', - regexpClass = '[object RegExp]', - stringClass = '[object String]'; - - /** Used to identify object classifications that `_.clone` supports */ - var cloneableClasses = {}; - cloneableClasses[funcClass] = false; - cloneableClasses[argsClass] = cloneableClasses[arrayClass] = - cloneableClasses[boolClass] = cloneableClasses[dateClass] = - cloneableClasses[numberClass] = cloneableClasses[objectClass] = - cloneableClasses[regexpClass] = cloneableClasses[stringClass] = true; - - /** Used as an internal `_.debounce` options object */ + /** Used to identify `toStringTag` values of typed arrays. */ + var typedArrayTags = {}; + typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = + typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = + typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = + typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = + typedArrayTags[uint32Tag] = true; + typedArrayTags[argsTag] = typedArrayTags[arrayTag] = + typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = + typedArrayTags[dateTag] = typedArrayTags[errorTag] = + typedArrayTags[funcTag] = typedArrayTags[mapTag] = + typedArrayTags[numberTag] = typedArrayTags[objectTag] = + typedArrayTags[regexpTag] = typedArrayTags[setTag] = + typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; + + /** Used to identify `toStringTag` values supported by `_.clone`. */ + var cloneableTags = {}; + cloneableTags[argsTag] = cloneableTags[arrayTag] = + cloneableTags[arrayBufferTag] = cloneableTags[boolTag] = + cloneableTags[dateTag] = cloneableTags[float32Tag] = + cloneableTags[float64Tag] = cloneableTags[int8Tag] = + cloneableTags[int16Tag] = cloneableTags[int32Tag] = + cloneableTags[numberTag] = cloneableTags[objectTag] = + cloneableTags[regexpTag] = cloneableTags[stringTag] = + cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = + cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; + cloneableTags[errorTag] = cloneableTags[funcTag] = + cloneableTags[mapTag] = cloneableTags[setTag] = + cloneableTags[weakMapTag] = false; + + /** Used as an internal `_.debounce` options object by `_.throttle`. */ var debounceOptions = { 'leading': false, 'maxWait': 0, 'trailing': false }; - /** Used as the property descriptor for `__bindData__` */ - var descriptor = { - 'configurable': false, - 'enumerable': false, - 'value': null, - 'writable': false - }; - - /** Used as the data object for `iteratorTemplate` */ - var iteratorData = { - 'args': '', - 'array': null, - 'bottom': '', - 'firstArg': '', - 'init': '', - 'keys': null, - 'loop': '', - 'shadowedProps': null, - 'support': null, - 'top': '', - 'useHas': false - }; - - /** Used to determine if values are of the language type Object */ + /** Used to determine if values are of the language type `Object`. */ var objectTypes = { - 'boolean': false, 'function': true, - 'object': true, - 'number': false, - 'string': false, - 'undefined': false + 'object': true }; - /** Used as a reference to the global object */ - var root = (objectTypes[typeof window] && window) || this; - - /** Detect free variable `exports` */ + /** Detect free variable `exports`. */ var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports; - /** Detect free variable `module` */ + /** Detect free variable `module`. */ var freeModule = objectTypes[typeof module] && module && !module.nodeType && module; - /** Detect the popular CommonJS extension `module.exports` */ + /** Detect free variable `global` from Node.js. */ + var freeGlobal = freeExports && freeModule && typeof global == 'object' && global && global.Object && global; + + /** Detect free variable `self`. */ + var freeSelf = objectTypes[typeof self] && self && self.Object && self; + + /** Detect free variable `window`. */ + var freeWindow = objectTypes[typeof window] && window && window.Object && window; + + /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports && freeExports; - /** Detect free variable `global` from Node.js or Browserified code and use it as `root` */ - var freeGlobal = objectTypes[typeof global] && global; - if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) { - root = freeGlobal; - } + /** + * Used as a reference to the global object. + * + * The `this` value is used if it's the global object to avoid Greasemonkey's + * restricted `window` object, otherwise the `window` object is used. + */ + var root = freeGlobal || ((freeWindow !== (this && this.window)) && freeWindow) || freeSelf || this; /*--------------------------------------------------------------------------*/ /** - * The base implementation of `_.indexOf` without support for binary searches - * or `fromIndex` constraints. + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for callback shorthands and `this` binding. * * @private * @param {Array} array The array to search. - * @param {*} value The value to search for. - * @param {number} [fromIndex=0] The index to search from. - * @returns {number} Returns the index of the matched value or `-1`. + * @param {Function} predicate The function invoked per iteration. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. */ - function baseIndexOf(array, value, fromIndex) { - var index = (fromIndex || 0) - 1, - length = array ? array.length : 0; + function baseFindIndex(array, predicate, fromRight) { + var length = array.length, + index = fromRight ? length : -1; - while (++index < length) { - if (array[index] === value) { + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { return index; } } @@ -7195,333 +7846,361 @@ var JXON = new (function () { } /** - * An implementation of `_.contains` for cache objects that mimics the return - * signature of `_.indexOf` by returning `0` if the value is found, else `-1`. + * The base implementation of `_.indexOf` without support for binary searches. * * @private - * @param {Object} cache The cache object to inspect. + * @param {Array} array The array to search. * @param {*} value The value to search for. - * @returns {number} Returns `0` if `value` is found, else `-1`. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. */ - function cacheIndexOf(cache, value) { - var type = typeof value; - cache = cache.cache; - - if (type == 'boolean' || value == null) { - return cache[value] ? 0 : -1; - } - if (type != 'number' && type != 'string') { - type = 'object'; + function baseIndexOf(array, value, fromIndex) { + if (value !== value) { + return indexOfNaN(array, fromIndex); } - var key = type == 'number' ? value : keyPrefix + value; - cache = (cache = cache[type]) && cache[key]; + var index = fromIndex - 1, + length = array.length; - return type == 'object' - ? (cache && baseIndexOf(cache, value) > -1 ? 0 : -1) - : (cache ? 0 : -1); + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; } /** - * Adds a given value to the corresponding cache object. + * The base implementation of `_.isFunction` without support for environments + * with incorrect `typeof` results. * * @private - * @param {*} value The value to add to the cache. + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. */ - function cachePush(value) { - var cache = this.cache, - type = typeof value; - - if (type == 'boolean' || value == null) { - cache[value] = true; - } else { - if (type != 'number' && type != 'string') { - type = 'object'; - } - var key = type == 'number' ? value : keyPrefix + value, - typeCache = cache[type] || (cache[type] = {}); - - if (type == 'object') { - (typeCache[key] || (typeCache[key] = [])).push(value); - } else { - typeCache[key] = true; - } - } + function baseIsFunction(value) { + // Avoid a Chakra JIT bug in compatibility modes of IE 11. + // See https://github.com/jashkenas/underscore/issues/1621 for more details. + return typeof value == 'function' || false; } /** - * Creates a cache object to optimize linear searches of large arrays. + * Converts `value` to a string if it's not one. An empty string is returned + * for `null` or `undefined` values. * * @private - * @param {Array} [array=[]] The array to search. - * @returns {null|Object} Returns the cache object or `null` if caching should not be used. + * @param {*} value The value to process. + * @returns {string} Returns the string. */ - function createCache(array) { - var index = -1, - length = array.length, - first = array[0], - mid = array[(length / 2) | 0], - last = array[length - 1]; - - if (first && typeof first == 'object' && - mid && typeof mid == 'object' && last && typeof last == 'object') { - return false; - } - var cache = getObject(); - cache['false'] = cache['null'] = cache['true'] = cache['undefined'] = false; - - var result = getObject(); - result.array = array; - result.cache = cache; - result.push = cachePush; - - while (++index < length) { - result.push(array[index]); + function baseToString(value) { + if (typeof value == 'string') { + return value; } - return result; + return value == null ? '' : (value + ''); } /** - * Gets an array from the array pool or creates a new one if the pool is empty. + * Gets the index at which the first occurrence of `NaN` is found in `array`. * * @private - * @returns {Array} The array from the pool. + * @param {Array} array The array to search. + * @param {number} fromIndex The index to search from. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched `NaN`, else `-1`. */ - function getArray() { - return arrayPool.pop() || []; + function indexOfNaN(array, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 0 : -1); + + while ((fromRight ? index-- : ++index < length)) { + var other = array[index]; + if (other !== other) { + return index; + } + } + return -1; } /** - * Gets an object from the object pool or creates a new one if the pool is empty. + * Checks if `value` is a host object in IE < 9. * * @private - * @returns {Object} The object from the pool. + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a host object, else `false`. */ - function getObject() { - return objectPool.pop() || { - 'array': null, - 'cache': null, - 'false': false, - 'null': false, - 'number': null, - 'object': null, - 'push': null, - 'string': null, - 'true': false, - 'undefined': false + var isHostObject = (function() { + try { + Object({ 'toString': 0 } + ''); + } catch(e) { + return function() { return false; }; + } + return function(value) { + // IE < 9 presents many host objects as `Object` objects that can coerce + // to strings despite having improperly defined `toString` methods. + return typeof value.toString != 'function' && typeof (value + '') == 'string'; }; - } + }()); /** - * Checks if `value` is a DOM node in IE < 9. + * Checks if `value` is object-like. * * @private * @param {*} value The value to check. - * @returns {boolean} Returns `true` if the `value` is a DOM node, else `false`. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ - function isNode(value) { - // IE < 9 presents DOM nodes as `Object` objects except they have `toString` - // methods that are `typeof` "string" and still can coerce nodes to strings - return typeof value.toString != 'function' && typeof (value + '') == 'string'; + function isObjectLike(value) { + return !!value && typeof value == 'object'; } /** - * Releases the given array back to the array pool. + * Replaces all `placeholder` elements in `array` with an internal placeholder + * and returns an array of their indexes. * * @private - * @param {Array} [array] The array to release. + * @param {Array} array The array to modify. + * @param {*} placeholder The placeholder to replace. + * @returns {Array} Returns the new array of placeholder indexes. */ - function releaseArray(array) { - array.length = 0; - if (arrayPool.length < maxPoolSize) { - arrayPool.push(array); - } - } + function replaceHolders(array, placeholder) { + var index = -1, + length = array.length, + resIndex = -1, + result = []; - /** - * Releases the given object back to the object pool. - * - * @private - * @param {Object} [object] The object to release. - */ - function releaseObject(object) { - var cache = object.cache; - if (cache) { - releaseObject(cache); - } - object.array = object.cache =object.object = object.number = object.string =null; - if (objectPool.length < maxPoolSize) { - objectPool.push(object); + while (++index < length) { + if (array[index] === placeholder) { + array[index] = PLACEHOLDER; + result[++resIndex] = index; + } } + return result; } /** - * Slices the `collection` from the `start` index up to, but not including, - * the `end` index. - * - * Note: This function is used instead of `Array#slice` to support node lists - * in IE < 9 and to ensure dense arrays are returned. + * An implementation of `_.uniq` optimized for sorted arrays without support + * for callback shorthands and `this` binding. * * @private - * @param {Array|Object|string} collection The collection to slice. - * @param {number} start The start index. - * @param {number} end The end index. - * @returns {Array} Returns the new array. + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The function invoked per iteration. + * @returns {Array} Returns the new duplicate-value-free array. */ - function slice(array, start, end) { - start || (start = 0); - if (typeof end == 'undefined') { - end = array ? array.length : 0; - } - var index = -1, - length = end - start || 0, - result = Array(length < 0 ? 0 : length); + function sortedUniq(array, iteratee) { + var seen, + index = -1, + length = array.length, + resIndex = -1, + result = []; while (++index < length) { - result[index] = array[start + index]; + var value = array[index], + computed = iteratee ? iteratee(value, index, array) : value; + + if (!index || seen !== computed) { + seen = computed; + result[++resIndex] = value; + } } return result; } /*--------------------------------------------------------------------------*/ - /** - * Used for `Array` method references. - * - * Normally `Array.prototype` would suffice, however, using an array literal - * avoids issues in Narwhal. - */ - var arrayRef = []; - - /** Used for native method references */ - var errorProto = Error.prototype, + /** Used for native method references. */ + var arrayProto = Array.prototype, + errorProto = Error.prototype, objectProto = Object.prototype, stringProto = String.prototype; - /** Used to resolve the internal [[Class]] of values */ - var toString = objectProto.toString; + /** Used to resolve the decompiled source of functions. */ + var fnToString = Function.prototype.toString; + + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; + + /** + * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) + * of values. + */ + var objToString = objectProto.toString; - /** Used to detect if a method is native */ - var reNative = RegExp('^' + - String(toString) - .replace(/[.*+?^${}()|[\]\\]/g, '\\$&') - .replace(/toString| for [^\]]+/g, '.*?') + '$' + /** Used to detect if a method is native. */ + var reIsNative = RegExp('^' + + escapeRegExp(fnToString.call(hasOwnProperty)) + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); - /** Native method shortcuts */ - var fnToString = Function.prototype.toString, - getPrototypeOf = reNative.test(getPrototypeOf = Object.getPrototypeOf) && getPrototypeOf, - hasOwnProperty = objectProto.hasOwnProperty, - now = reNative.test(now = Date.now) && now || function() { return +new Date; }, - push = arrayRef.push, - propertyIsEnumerable = objectProto.propertyIsEnumerable; - - /** Used to set meta data on functions */ - var defineProperty = (function() { - // IE 8 only accepts DOM elements + /** Native method references. */ + var ArrayBuffer = getNative(root, 'ArrayBuffer'), + bufferSlice = getNative(ArrayBuffer && new ArrayBuffer(0), 'slice'), + ceil = Math.ceil, + floor = Math.floor, + getPrototypeOf = getNative(Object, 'getPrototypeOf'), + push = arrayProto.push, + propertyIsEnumerable = objectProto.propertyIsEnumerable, + Set = getNative(root, 'Set'), + splice = arrayProto.splice, + Uint8Array = getNative(root, 'Uint8Array'), + WeakMap = getNative(root, 'WeakMap'); + + /** Used to clone array buffers. */ + var Float64Array = (function() { + // Safari 5 errors when using an array buffer to initialize a typed array + // where the array buffer's `byteLength` is not a multiple of the typed + // array's `BYTES_PER_ELEMENT`. try { - var o = {}, - func = reNative.test(func = Object.defineProperty) && func, - result = func(o, o, o) && func; - } catch(e) { } - return result; + var func = getNative(root, 'Float64Array'), + result = new func(new ArrayBuffer(10), 0, 1) && func; + } catch(e) {} + return result || null; }()); - /* Native method shortcuts for methods with the same name as other `lodash` methods */ - var nativeCreate = reNative.test(nativeCreate = Object.create) && nativeCreate, - nativeIsArray = reNative.test(nativeIsArray = Array.isArray) && nativeIsArray, - nativeKeys = reNative.test(nativeKeys = Object.keys) && nativeKeys, + /* Native method references for those with the same name as other `lodash` methods. */ + var nativeCreate = getNative(Object, 'create'), + nativeIsArray = getNative(Array, 'isArray'), + nativeKeys = getNative(Object, 'keys'), nativeMax = Math.max, - nativeMin = Math.min; - - /** Used to lookup a built-in constructor by [[Class]] */ - var ctorByClass = {}; - ctorByClass[arrayClass] = Array; - ctorByClass[boolClass] = Boolean; - ctorByClass[dateClass] = Date; - ctorByClass[funcClass] = Function; - ctorByClass[objectClass] = Object; - ctorByClass[numberClass] = Number; - ctorByClass[regexpClass] = RegExp; - ctorByClass[stringClass] = String; - - /** Used to avoid iterating non-enumerable properties in IE < 9 */ - var nonEnumProps = {}; - nonEnumProps[arrayClass] = nonEnumProps[dateClass] = nonEnumProps[numberClass] = { 'constructor': true, 'toLocaleString': true, 'toString': true, 'valueOf': true }; - nonEnumProps[boolClass] = nonEnumProps[stringClass] = { 'constructor': true, 'toString': true, 'valueOf': true }; - nonEnumProps[errorClass] = nonEnumProps[funcClass] = nonEnumProps[regexpClass] = { 'constructor': true, 'toString': true }; - nonEnumProps[objectClass] = { 'constructor': true }; + nativeMin = Math.min, + nativeNow = getNative(Date, 'now'); - (function() { - var length = shadowedProps.length; - while (length--) { - var key = shadowedProps[length]; - for (var className in nonEnumProps) { - if (hasOwnProperty.call(nonEnumProps, className) && !hasOwnProperty.call(nonEnumProps[className], key)) { - nonEnumProps[className][key] = false; - } + /** Used as references for `-Infinity` and `Infinity`. */ + var POSITIVE_INFINITY = Number.POSITIVE_INFINITY; + + /** Used as references for the maximum length and index of an array. */ + var MAX_ARRAY_LENGTH = 4294967295, + MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, + HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; + + /** Used as the size, in bytes, of each `Float64Array` element. */ + var FLOAT64_BYTES_PER_ELEMENT = Float64Array ? Float64Array.BYTES_PER_ELEMENT : 0; + + /** + * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * of an array-like value. + */ + var MAX_SAFE_INTEGER = 9007199254740991; + + /** Used to store function metadata. */ + var metaMap = WeakMap && new WeakMap; + + /** Used to lookup unminified function names. */ + var realNames = {}; + + /** Used to lookup a type array constructors by `toStringTag`. */ + var ctorByTag = {}; + ctorByTag[float32Tag] = root.Float32Array; + ctorByTag[float64Tag] = root.Float64Array; + ctorByTag[int8Tag] = root.Int8Array; + ctorByTag[int16Tag] = root.Int16Array; + ctorByTag[int32Tag] = root.Int32Array; + ctorByTag[uint8Tag] = root.Uint8Array; + ctorByTag[uint8ClampedTag] = root.Uint8ClampedArray; + ctorByTag[uint16Tag] = root.Uint16Array; + ctorByTag[uint32Tag] = root.Uint32Array; + + /** Used to avoid iterating over non-enumerable properties in IE < 9. */ + var nonEnumProps = {}; + nonEnumProps[arrayTag] = nonEnumProps[dateTag] = nonEnumProps[numberTag] = { 'constructor': true, 'toLocaleString': true, 'toString': true, 'valueOf': true }; + nonEnumProps[boolTag] = nonEnumProps[stringTag] = { 'constructor': true, 'toString': true, 'valueOf': true }; + nonEnumProps[errorTag] = nonEnumProps[funcTag] = nonEnumProps[regexpTag] = { 'constructor': true, 'toString': true }; + nonEnumProps[objectTag] = { 'constructor': true }; + + arrayEach(shadowProps, function(key) { + for (var tag in nonEnumProps) { + if (hasOwnProperty.call(nonEnumProps, tag)) { + var props = nonEnumProps[tag]; + props[key] = hasOwnProperty.call(props, key); } } - }()); + }); - /*--------------------------------------------------------------------------*/ + /*------------------------------------------------------------------------*/ /** - * Creates a `lodash` object which wraps the given value to enable intuitive - * method chaining. - * - * In addition to Lo-Dash methods, wrappers also have the following `Array` methods: - * `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`, `splice`, - * and `unshift` - * - * Chaining is supported in custom builds as long as the `value` method is - * implicitly or explicitly included in the build. - * - * The chainable wrapper functions are: - * `after`, `assign`, `bind`, `bindAll`, `bindKey`, `chain`, `compact`, - * `compose`, `concat`, `countBy`, `create`, `createCallback`, `curry`, - * `debounce`, `defaults`, `defer`, `delay`, `difference`, `filter`, `flatten`, - * `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`, `forOwnRight`, - * `functions`, `groupBy`, `indexBy`, `initial`, `intersection`, `invert`, - * `invoke`, `keys`, `map`, `max`, `memoize`, `merge`, `min`, `object`, `omit`, - * `once`, `pairs`, `partial`, `partialRight`, `pick`, `pluck`, `pull`, `push`, - * `range`, `reject`, `remove`, `rest`, `reverse`, `shuffle`, `slice`, `sort`, - * `sortBy`, `splice`, `tap`, `throttle`, `times`, `toArray`, `transform`, - * `union`, `uniq`, `unshift`, `unzip`, `values`, `where`, `without`, `wrap`, - * and `zip` - * - * The non-chainable wrapper functions are: - * `clone`, `cloneDeep`, `contains`, `escape`, `every`, `find`, `findIndex`, - * `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `has`, `identity`, - * `indexOf`, `isArguments`, `isArray`, `isBoolean`, `isDate`, `isElement`, - * `isEmpty`, `isEqual`, `isFinite`, `isFunction`, `isNaN`, `isNull`, `isNumber`, - * `isObject`, `isPlainObject`, `isRegExp`, `isString`, `isUndefined`, `join`, - * `lastIndexOf`, `mixin`, `noConflict`, `parseInt`, `pop`, `random`, `reduce`, - * `reduceRight`, `result`, `shift`, `size`, `some`, `sortedIndex`, `runInContext`, - * `template`, `unescape`, `uniqueId`, and `value` - * - * The wrapper functions `first` and `last` return wrapped values when `n` is - * provided, otherwise they return unwrapped values. - * - * Explicit chaining can be enabled by using the `_.chain` method. + * Creates a `lodash` object which wraps `value` to enable implicit chaining. + * Methods that operate on and return arrays, collections, and functions can + * be chained together. Methods that return a boolean or single value will + * automatically end the chain returning the unwrapped value. Explicit chaining + * may be enabled using `_.chain`. The execution of chained methods is lazy, + * that is, execution is deferred until `_#value` is implicitly or explicitly + * called. + * + * Lazy evaluation allows several methods to support shortcut fusion. Shortcut + * fusion is an optimization that merges iteratees to avoid creating intermediate + * arrays and reduce the number of iteratee executions. + * + * Chaining is supported in custom builds as long as the `_#value` method is + * directly or indirectly included in the build. + * + * In addition to lodash methods, wrappers have `Array` and `String` methods. + * + * The wrapper `Array` methods are: + * `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`, + * `splice`, and `unshift` + * + * The wrapper `String` methods are: + * `replace` and `split` + * + * The wrapper methods that support shortcut fusion are: + * `compact`, `drop`, `dropRight`, `dropRightWhile`, `dropWhile`, `filter`, + * `first`, `initial`, `last`, `map`, `pluck`, `reject`, `rest`, `reverse`, + * `slice`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, `toArray`, + * and `where` + * + * The chainable wrapper methods are: + * `after`, `ary`, `assign`, `at`, `before`, `bind`, `bindAll`, `bindKey`, + * `callback`, `chain`, `chunk`, `commit`, `compact`, `concat`, `constant`, + * `countBy`, `create`, `curry`, `debounce`, `defaults`, `defer`, `delay`, + * `difference`, `drop`, `dropRight`, `dropRightWhile`, `dropWhile`, `fill`, + * `filter`, `flatten`, `flattenDeep`, `flow`, `flowRight`, `forEach`, + * `forEachRight`, `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `functions`, + * `groupBy`, `indexBy`, `initial`, `intersection`, `invert`, `invoke`, `keys`, + * `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`, + * `memoize`, `merge`, `method`, `methodOf`, `mixin`, `negate`, `omit`, `once`, + * `pairs`, `partial`, `partialRight`, `partition`, `pick`, `plant`, `pluck`, + * `property`, `propertyOf`, `pull`, `pullAt`, `push`, `range`, `rearg`, + * `reject`, `remove`, `rest`, `restParam`, `reverse`, `set`, `shuffle`, + * `slice`, `sort`, `sortBy`, `sortByAll`, `sortByOrder`, `splice`, `spread`, + * `take`, `takeRight`, `takeRightWhile`, `takeWhile`, `tap`, `throttle`, + * `thru`, `times`, `toArray`, `toPlainObject`, `transform`, `union`, `uniq`, + * `unshift`, `unzip`, `unzipWith`, `values`, `valuesIn`, `where`, `without`, + * `wrap`, `xor`, `zip`, `zipObject`, `zipWith` + * + * The wrapper methods that are **not** chainable by default are: + * `add`, `attempt`, `camelCase`, `capitalize`, `clone`, `cloneDeep`, `deburr`, + * `endsWith`, `escape`, `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, + * `findLast`, `findLastIndex`, `findLastKey`, `findWhere`, `first`, `get`, + * `gt`, `gte`, `has`, `identity`, `includes`, `indexOf`, `inRange`, `isArguments`, + * `isArray`, `isBoolean`, `isDate`, `isElement`, `isEmpty`, `isEqual`, `isError`, + * `isFinite` `isFunction`, `isMatch`, `isNative`, `isNaN`, `isNull`, `isNumber`, + * `isObject`, `isPlainObject`, `isRegExp`, `isString`, `isUndefined`, + * `isTypedArray`, `join`, `kebabCase`, `last`, `lastIndexOf`, `lt`, `lte`, + * `max`, `min`, `noConflict`, `noop`, `now`, `pad`, `padLeft`, `padRight`, + * `parseInt`, `pop`, `random`, `reduce`, `reduceRight`, `repeat`, `result`, + * `runInContext`, `shift`, `size`, `snakeCase`, `some`, `sortedIndex`, + * `sortedLastIndex`, `startCase`, `startsWith`, `sum`, `template`, `trim`, + * `trimLeft`, `trimRight`, `trunc`, `unescape`, `uniqueId`, `value`, and `words` + * + * The wrapper method `sample` will return a wrapped value when `n` is provided, + * otherwise an unwrapped value is returned. * * @name _ * @constructor - * @category Chaining + * @category Chain * @param {*} value The value to wrap in a `lodash` instance. - * @returns {Object} Returns a `lodash` instance. + * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * var wrapped = _([1, 2, 3]); * * // returns an unwrapped value - * wrapped.reduce(function(sum, num) { - * return sum + num; + * wrapped.reduce(function(total, n) { + * return total + n; * }); * // => 6 * * // returns a wrapped value - * var squares = wrapped.map(function(num) { - * return num * num; + * var squares = wrapped.map(function(n) { + * return n * n; * }); * * _.isArray(squares); @@ -7531,29 +8210,42 @@ var JXON = new (function () { * // => true */ function lodash(value) { - // don't wrap if already wrapped, even if wrapped by a different `lodash` constructor - return (value && typeof value == 'object' && !isArray(value) && hasOwnProperty.call(value, '__wrapped__')) - ? value - : new lodashWrapper(value); + if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) { + if (value instanceof LodashWrapper) { + return value; + } + if (hasOwnProperty.call(value, '__chain__') && hasOwnProperty.call(value, '__wrapped__')) { + return wrapperClone(value); + } + } + return new LodashWrapper(value); } /** - * A fast path for creating `lodash` wrapper objects. + * The function whose prototype all chaining wrappers inherit from. * * @private - * @param {*} value The value to wrap in a `lodash` instance. - * @param {boolean} chainAll A flag to enable chaining for all methods - * @returns {Object} Returns a `lodash` instance. */ - function lodashWrapper(value, chainAll) { - this.__chain__ = !!chainAll; + function baseLodash() { + // No operation performed. + } + + /** + * The base constructor for creating `lodash` wrapper objects. + * + * @private + * @param {*} value The value to wrap. + * @param {boolean} [chainAll] Enable chaining for all wrapper methods. + * @param {Array} [actions=[]] Actions to peform to resolve the unwrapped value. + */ + function LodashWrapper(value, chainAll, actions) { this.__wrapped__ = value; + this.__actions__ = actions || []; + this.__chain__ = !!chainAll; } - // ensure `new lodashWrapper` is an instance of `lodash` - lodashWrapper.prototype = lodash.prototype; /** - * An object used to flag environments features. + * An object environment feature flags. * * @static * @memberOf _ @@ -7561,84 +8253,51 @@ var JXON = new (function () { */ var support = lodash.support = {}; - (function() { - var ctor = function() { this.x = 1; }, - object = { '0': 1, 'length': 1 }, + (function(x) { + var Ctor = function() { this.x = x; }, + object = { '0': x, 'length': x }, props = []; - ctor.prototype = { 'valueOf': 1, 'y': 1 }; - for (var key in new ctor) { props.push(key); } - for (key in arguments) { } - - /** - * Detect if an `arguments` object's [[Class]] is resolvable (all but Firefox < 4, IE < 9). - * - * @memberOf _.support - * @type boolean - */ - support.argsClass = toString.call(arguments) == argsClass; + Ctor.prototype = { 'valueOf': x, 'y': x }; + for (var key in new Ctor) { props.push(key); } /** - * Detect if `arguments` objects are `Object` objects (all but Narwhal and Opera < 10.5). + * Detect if the `toStringTag` of `arguments` objects is resolvable + * (all but Firefox < 4, IE < 9). * * @memberOf _.support * @type boolean */ - support.argsObject = arguments.constructor == Object && !(arguments instanceof Array); + support.argsTag = objToString.call(arguments) == argsTag; /** * Detect if `name` or `message` properties of `Error.prototype` are - * enumerable by default. (IE < 9, Safari < 5.1) + * enumerable by default (IE < 9, Safari < 5.1). * * @memberOf _.support * @type boolean */ - support.enumErrorProps = propertyIsEnumerable.call(errorProto, 'message') || propertyIsEnumerable.call(errorProto, 'name'); + support.enumErrorProps = propertyIsEnumerable.call(errorProto, 'message') || + propertyIsEnumerable.call(errorProto, 'name'); /** * Detect if `prototype` properties are enumerable by default. * * Firefox < 3.6, Opera > 9.50 - Opera < 11.60, and Safari < 5.1 * (if the prototype or a property on the prototype has been set) - * incorrectly sets a function's `prototype` property [[Enumerable]] - * value to `true`. - * - * @memberOf _.support - * @type boolean - */ - support.enumPrototypes = propertyIsEnumerable.call(ctor, 'prototype'); - - /** - * Detect if functions can be decompiled by `Function#toString` - * (all but PS3 and older Opera mobile browsers & avoided in Windows 8 apps). - * - * @memberOf _.support - * @type boolean - */ - support.funcDecomp = !reNative.test(root.WinRTError) && reThis.test(function() { return this; }); - - /** - * Detect if `Function#name` is supported (all but IE). - * - * @memberOf _.support - * @type boolean - */ - support.funcNames = typeof Function.name == 'string'; - - /** - * Detect if `arguments` object indexes are non-enumerable - * (Firefox < 4, IE < 9, PhantomJS, Safari < 5.1). + * incorrectly set the `[[Enumerable]]` value of a function's `prototype` + * property to `true`. * * @memberOf _.support * @type boolean */ - support.nonEnumArgs = key != 0; + support.enumPrototypes = propertyIsEnumerable.call(Ctor, 'prototype'); /** * Detect if properties shadowing those on `Object.prototype` are non-enumerable. * - * In IE < 9 an objects own properties, shadowing non-enumerable ones, are - * made non-enumerable as well (a.k.a the JScript [[DontEnum]] bug). + * In IE < 9 an object's own properties, shadowing non-enumerable ones, + * are made non-enumerable as well (a.k.a the JScript `[[DontEnum]]` bug). * * @memberOf _.support * @type boolean @@ -7646,7 +8305,7 @@ var JXON = new (function () { support.nonEnumShadows = !/valueOf/.test(props); /** - * Detect if own properties are iterated after inherited properties (all but IE < 9). + * Detect if own properties are iterated after inherited properties (IE < 9). * * @memberOf _.support * @type boolean @@ -7654,6970 +8313,9367 @@ var JXON = new (function () { support.ownLast = props[0] != 'x'; /** - * Detect if `Array#shift` and `Array#splice` augment array-like objects correctly. + * Detect if `Array#shift` and `Array#splice` augment array-like objects + * correctly. * - * Firefox < 10, IE compatibility mode, and IE < 9 have buggy Array `shift()` - * and `splice()` functions that fail to remove the last element, `value[0]`, - * of array-like objects even though the `length` property is set to `0`. - * The `shift()` method is buggy in IE 8 compatibility mode, while `splice()` - * is buggy regardless of mode in IE < 9 and buggy in compatibility mode in IE 9. + * Firefox < 10, compatibility modes of IE 8, and IE < 9 have buggy Array + * `shift()` and `splice()` functions that fail to remove the last element, + * `value[0]`, of array-like objects even though the "length" property is + * set to `0`. The `shift()` method is buggy in compatibility modes of IE 8, + * while `splice()` is buggy regardless of mode in IE < 9. * * @memberOf _.support * @type boolean */ - support.spliceObjects = (arrayRef.splice.call(object, 0, 1), !object[0]); + support.spliceObjects = (splice.call(object, 0, 1), !object[0]); /** * Detect lack of support for accessing string characters by index. * - * IE < 8 can't access characters by index and IE 8 can only access - * characters by index on string literals. + * IE < 8 can't access characters by index. IE 8 can only access characters + * by index on string literals, not string objects. * * @memberOf _.support * @type boolean */ support.unindexedChars = ('x'[0] + Object('x')[0]) != 'xx'; + }(1, 0)); - /** - * Detect if a DOM node's [[Class]] is resolvable (all but IE < 9) - * and that the JS engine errors when attempting to coerce an object to - * a string without a `toString` function. - * - * @memberOf _.support - * @type boolean - */ - try { - support.nodeClass = !(toString.call(document) == objectClass && !({ 'toString': 0 } + '')); - } catch(e) { - support.nodeClass = true; - } - }(1)); - - /*--------------------------------------------------------------------------*/ + /*------------------------------------------------------------------------*/ /** - * The template used to create iterator functions. + * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation. * * @private - * @param {Object} data The data object used to populate the text. - * @returns {string} Returns the interpolated text. + * @param {*} value The value to wrap. */ - var iteratorTemplate = function(obj) { - - var __p = 'var index, iterable = ' + - (obj.firstArg) + - ', result = ' + - (obj.init) + - ';\nif (!iterable) return result;\n' + - (obj.top) + - ';'; - if (obj.array) { - __p += '\nvar length = iterable.length; index = -1;\nif (' + - (obj.array) + - ') { '; - if (support.unindexedChars) { - __p += '\n if (isString(iterable)) {\n iterable = iterable.split(\'\')\n } '; - } - __p += '\n while (++index < length) {\n ' + - (obj.loop) + - ';\n }\n}\nelse { '; - } else if (support.nonEnumArgs) { - __p += '\n var length = iterable.length; index = -1;\n if (length && isArguments(iterable)) {\n while (++index < length) {\n index += \'\';\n ' + - (obj.loop) + - ';\n }\n } else { '; - } - - if (support.enumPrototypes) { - __p += '\n var skipProto = typeof iterable == \'function\';\n '; - } - - if (support.enumErrorProps) { - __p += '\n var skipErrorProps = iterable === errorProto || iterable instanceof Error;\n '; - } - - var conditions = []; if (support.enumPrototypes) { conditions.push('!(skipProto && index == "prototype")'); } if (support.enumErrorProps) { conditions.push('!(skipErrorProps && (index == "message" || index == "name"))'); } - - if (obj.useHas && obj.keys) { - __p += '\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] && keys(iterable),\n length = ownProps ? ownProps.length : 0;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n'; - if (conditions.length) { - __p += ' if (' + - (conditions.join(' && ')) + - ') {\n '; - } - __p += - (obj.loop) + - '; '; - if (conditions.length) { - __p += '\n }'; - } - __p += '\n } '; - } else { - __p += '\n for (index in iterable) {\n'; - if (obj.useHas) { conditions.push("hasOwnProperty.call(iterable, index)"); } if (conditions.length) { - __p += ' if (' + - (conditions.join(' && ')) + - ') {\n '; - } - __p += - (obj.loop) + - '; '; - if (conditions.length) { - __p += '\n }'; - } - __p += '\n } '; - if (support.nonEnumShadows) { - __p += '\n\n if (iterable !== objectProto) {\n var ctor = iterable.constructor,\n isProto = iterable === (ctor && ctor.prototype),\n className = iterable === stringProto ? stringClass : iterable === errorProto ? errorClass : toString.call(iterable),\n nonEnum = nonEnumProps[className];\n '; - for (k = 0; k < 7; k++) { - __p += '\n index = \'' + - (obj.shadowedProps[k]) + - '\';\n if ((!(isProto && nonEnum[index]) && hasOwnProperty.call(iterable, index))'; - if (!obj.useHas) { - __p += ' || (!nonEnum[index] && iterable[index] !== objectProto[index])'; - } - __p += ') {\n ' + - (obj.loop) + - ';\n } '; - } - __p += '\n } '; - } - - } - - if (obj.array || support.nonEnumArgs) { - __p += '\n}'; - } - __p += - (obj.bottom) + - ';\nreturn result'; - - return __p - }; - - /*--------------------------------------------------------------------------*/ + function LazyWrapper(value) { + this.__wrapped__ = value; + this.__actions__ = null; + this.__dir__ = 1; + this.__dropCount__ = 0; + this.__filtered__ = false; + this.__iteratees__ = null; + this.__takeCount__ = POSITIVE_INFINITY; + this.__views__ = null; + } /** - * The base implementation of `_.bind` that creates the bound function and - * sets its meta data. + * Creates a clone of the lazy wrapper object. * * @private - * @param {Array} bindData The bind data array. - * @returns {Function} Returns the new bound function. + * @name clone + * @memberOf LazyWrapper + * @returns {Object} Returns the cloned `LazyWrapper` object. */ - function baseBind(bindData) { - var func = bindData[0], - partialArgs = bindData[2], - thisArg = bindData[4]; - - function bound() { - // `Function#bind` spec - // http://es5.github.io/#x15.3.4.5 - if (partialArgs) { - var args = partialArgs.slice(); - push.apply(args, arguments); - } - // mimic the constructor's `return` behavior - // http://es5.github.io/#x13.2.2 - if (this instanceof bound) { - // ensure `new bound` is an instance of `func` - var thisBinding = baseCreate(func.prototype), - result = func.apply(thisBinding, args || arguments); - return isObject(result) ? result : thisBinding; - } - return func.apply(thisArg, args || arguments); - } - setBindData(bound, bindData); - return bound; + function lazyClone() { + var actions = this.__actions__, + iteratees = this.__iteratees__, + views = this.__views__, + result = new LazyWrapper(this.__wrapped__); + + result.__actions__ = actions ? arrayCopy(actions) : null; + result.__dir__ = this.__dir__; + result.__filtered__ = this.__filtered__; + result.__iteratees__ = iteratees ? arrayCopy(iteratees) : null; + result.__takeCount__ = this.__takeCount__; + result.__views__ = views ? arrayCopy(views) : null; + return result; } /** - * The base implementation of `_.clone` without argument juggling or support - * for `thisArg` binding. + * Reverses the direction of lazy iteration. * * @private - * @param {*} value The value to clone. - * @param {boolean} [isDeep=false] Specify a deep clone. - * @param {Function} [callback] The function to customize cloning values. - * @param {Array} [stackA=[]] Tracks traversed source objects. - * @param {Array} [stackB=[]] Associates clones with source counterparts. - * @returns {*} Returns the cloned value. + * @name reverse + * @memberOf LazyWrapper + * @returns {Object} Returns the new reversed `LazyWrapper` object. */ - function baseClone(value, isDeep, callback, stackA, stackB) { - if (callback) { - var result = callback(value); - if (typeof result != 'undefined') { - return result; - } - } - // inspect [[Class]] - var isObj = isObject(value); - if (isObj) { - var className = toString.call(value); - if (!cloneableClasses[className] || (!support.nodeClass && isNode(value))) { - return value; - } - var ctor = ctorByClass[className]; - switch (className) { - case boolClass: - case dateClass: - return new ctor(+value); - - case numberClass: - case stringClass: - return new ctor(value); - - case regexpClass: - result = ctor(value.source, reFlags.exec(value)); - result.lastIndex = value.lastIndex; - return result; - } + function lazyReverse() { + if (this.__filtered__) { + var result = new LazyWrapper(this); + result.__dir__ = -1; + result.__filtered__ = true; } else { - return value; + result = this.clone(); + result.__dir__ *= -1; } - var isArr = isArray(value); - if (isDeep) { - // check for circular references and return corresponding clone - var initedStack = !stackA; - stackA || (stackA = getArray()); - stackB || (stackB = getArray()); + return result; + } - var length = stackA.length; - while (length--) { - if (stackA[length] == value) { - return stackB[length]; + /** + * Extracts the unwrapped value from its lazy wrapper. + * + * @private + * @name value + * @memberOf LazyWrapper + * @returns {*} Returns the unwrapped value. + */ + function lazyValue() { + var array = this.__wrapped__.value(); + if (!isArray(array)) { + return baseWrapperValue(array, this.__actions__); + } + var dir = this.__dir__, + isRight = dir < 0, + view = getView(0, array.length, this.__views__), + start = view.start, + end = view.end, + length = end - start, + index = isRight ? end : (start - 1), + takeCount = nativeMin(length, this.__takeCount__), + iteratees = this.__iteratees__, + iterLength = iteratees ? iteratees.length : 0, + resIndex = 0, + result = []; + + outer: + while (length-- && resIndex < takeCount) { + index += dir; + + var iterIndex = -1, + value = array[index]; + + while (++iterIndex < iterLength) { + var data = iteratees[iterIndex], + iteratee = data.iteratee, + type = data.type; + + if (type == LAZY_DROP_WHILE_FLAG) { + if (data.done && (isRight ? (index > data.index) : (index < data.index))) { + data.count = 0; + data.done = false; + } + data.index = index; + if (!data.done) { + var limit = data.limit; + if (!(data.done = limit > -1 ? (data.count++ >= limit) : !iteratee(value))) { + continue outer; + } + } + } else { + var computed = iteratee(value); + if (type == LAZY_MAP_FLAG) { + value = computed; + } else if (!computed) { + if (type == LAZY_FILTER_FLAG) { + continue outer; + } else { + break outer; + } + } } } - result = isArr ? ctor(value.length) : {}; - } - else { - result = isArr ? slice(value) : assign({}, value); - } - // add array properties assigned by `RegExp#exec` - if (isArr) { - if (hasOwnProperty.call(value, 'index')) { - result.index = value.index; - } - if (hasOwnProperty.call(value, 'input')) { - result.input = value.input; - } - } - // exit for shallow clone - if (!isDeep) { - return result; + result[resIndex++] = value; } - // add the source value to the stack of traversed objects - // and associate it with its clone - stackA.push(value); - stackB.push(result); + return result; + } - // recursively populate clone (susceptible to call stack limits) - (isArr ? baseEach : forOwn)(value, function(objValue, key) { - result[key] = baseClone(objValue, isDeep, callback, stackA, stackB); - }); + /*------------------------------------------------------------------------*/ + + /** + * + * Creates a cache object to store unique values. + * + * @private + * @param {Array} [values] The values to cache. + */ + function SetCache(values) { + var length = values ? values.length : 0; - if (initedStack) { - releaseArray(stackA); - releaseArray(stackB); + this.data = { 'hash': nativeCreate(null), 'set': new Set }; + while (length--) { + this.push(values[length]); } - return result; } /** - * The base implementation of `_.create` without support for assigning - * properties to the created object. + * Checks if `value` is in `cache` mimicking the return signature of + * `_.indexOf` by returning `0` if the value is found, else `-1`. * * @private - * @param {Object} prototype The object to inherit from. - * @returns {Object} Returns the new object. + * @param {Object} cache The cache to search. + * @param {*} value The value to search for. + * @returns {number} Returns `0` if `value` is found, else `-1`. */ - function baseCreate(prototype, properties) { - return isObject(prototype) ? nativeCreate(prototype) : {}; - } - // fallback for browsers without `Object.create` - if (!nativeCreate) { - baseCreate = (function() { - function Object() {} - return function(prototype) { - if (isObject(prototype)) { - Object.prototype = prototype; - var result = new Object; - Object.prototype = null; - } - return result || root.Object(); - }; - }()); + function cacheIndexOf(cache, value) { + var data = cache.data, + result = (typeof value == 'string' || isObject(value)) ? data.set.has(value) : data.hash[value]; + + return result ? 0 : -1; } /** - * The base implementation of `_.createCallback` without support for creating - * "_.pluck" or "_.where" style callbacks. + * Adds `value` to the cache. * * @private - * @param {*} [func=identity] The value to convert to a callback. - * @param {*} [thisArg] The `this` binding of the created callback. - * @param {number} [argCount] The number of arguments the callback accepts. - * @returns {Function} Returns a callback function. + * @name push + * @memberOf SetCache + * @param {*} value The value to cache. */ - function baseCreateCallback(func, thisArg, argCount) { - if (typeof func != 'function') { - return identity; - } - // exit early for no `thisArg` or already bound by `Function#bind` - if (typeof thisArg == 'undefined' || !('prototype' in func)) { - return func; - } - var bindData = func.__bindData__; - if (typeof bindData == 'undefined') { - if (support.funcNames) { - bindData = !func.name; - } - bindData = bindData || !support.funcDecomp; - if (!bindData) { - var source = fnToString.call(func); - if (!support.funcNames) { - bindData = !reFuncName.test(source); - } - if (!bindData) { - // checks if `func` references the `this` keyword and stores the result - bindData = reThis.test(source); - setBindData(func, bindData); - } - } - } - // exit early if there are no `this` references or `func` is bound - if (bindData === false || (bindData !== true && bindData[1] & 1)) { - return func; - } - switch (argCount) { - case 1: return function(value) { - return func.call(thisArg, value); - }; - case 2: return function(a, b) { - return func.call(thisArg, a, b); - }; - case 3: return function(value, index, collection) { - return func.call(thisArg, value, index, collection); - }; - case 4: return function(accumulator, value, index, collection) { - return func.call(thisArg, accumulator, value, index, collection); - }; + function cachePush(value) { + var data = this.data; + if (typeof value == 'string' || isObject(value)) { + data.set.add(value); + } else { + data.hash[value] = true; } - return bind(func, thisArg); } + /*------------------------------------------------------------------------*/ + /** - * The base implementation of `createWrapper` that creates the wrapper and - * sets its meta data. + * Copies the values of `source` to `array`. * * @private - * @param {Array} bindData The bind data array. - * @returns {Function} Returns the new function. + * @param {Array} source The array to copy values from. + * @param {Array} [array=[]] The array to copy values to. + * @returns {Array} Returns `array`. */ - function baseCreateWrapper(bindData) { - var func = bindData[0], - bitmask = bindData[1], - partialArgs = bindData[2], - partialRightArgs = bindData[3], - thisArg = bindData[4], - arity = bindData[5]; - - var isBind = bitmask & 1, - isBindKey = bitmask & 2, - isCurry = bitmask & 4, - isCurryBound = bitmask & 8, - key = func; - - function bound() { - var thisBinding = isBind ? thisArg : this; - if (partialArgs) { - var args = partialArgs.slice(); - push.apply(args, arguments); - } - if (partialRightArgs || isCurry) { - args || (args = slice(arguments)); - if (partialRightArgs) { - push.apply(args, partialRightArgs); - } - if (isCurry && args.length < arity) { - bitmask |= 16 & ~32; - return baseCreateWrapper([func, (isCurryBound ? bitmask : bitmask & ~3), args, null, thisArg, arity]); - } - } - args || (args = arguments); - if (isBindKey) { - func = thisBinding[key]; - } - if (this instanceof bound) { - thisBinding = baseCreate(func.prototype); - var result = func.apply(thisBinding, args); - return isObject(result) ? result : thisBinding; - } - return func.apply(thisBinding, args); + function arrayCopy(source, array) { + var index = -1, + length = source.length; + + array || (array = Array(length)); + while (++index < length) { + array[index] = source[index]; } - setBindData(bound, bindData); - return bound; + return array; } /** - * The base implementation of `_.difference` that accepts a single array - * of values to exclude. + * A specialized version of `_.forEach` for arrays without support for callback + * shorthands and `this` binding. * * @private - * @param {Array} array The array to process. - * @param {Array} [values] The array of values to exclude. - * @returns {Array} Returns a new array of filtered values. + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. */ - function baseDifference(array, values) { + function arrayEach(array, iteratee) { var index = -1, - indexOf = getIndexOf(), - length = array ? array.length : 0, - isLarge = length >= largeArraySize && indexOf === baseIndexOf, - result = []; + length = array.length; - if (isLarge) { - var cache = createCache(values); - if (cache) { - indexOf = cacheIndexOf; - values = cache; - } else { - isLarge = false; + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; } } + return array; + } + + /** + * A specialized version of `_.every` for arrays without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false`. + */ + function arrayEvery(array, predicate) { + var index = -1, + length = array.length; + while (++index < length) { - var value = array[index]; - if (indexOf(values, value) < 0) { - result.push(value); + if (!predicate(array[index], index, array)) { + return false; } } - if (isLarge) { - releaseObject(values); - } - return result; + return true; } /** - * The base implementation of `_.flatten` without support for callback - * shorthands or `thisArg` binding. + * A specialized version of `_.filter` for arrays without support for callback + * shorthands and `this` binding. * * @private - * @param {Array} array The array to flatten. - * @param {boolean} [isShallow=false] A flag to restrict flattening to a single level. - * @param {boolean} [isStrict=false] A flag to restrict flattening to arrays and `arguments` objects. - * @param {number} [fromIndex=0] The index to start from. - * @returns {Array} Returns a new flattened array. + * @param {Array} array The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. */ - function baseFlatten(array, isShallow, isStrict, fromIndex) { - var index = (fromIndex || 0) - 1, - length = array ? array.length : 0, + function arrayFilter(array, predicate) { + var index = -1, + length = array.length, + resIndex = -1, result = []; while (++index < length) { var value = array[index]; - - if (value && typeof value == 'object' && typeof value.length == 'number' - && (isArray(value) || isArguments(value))) { - // recursively flatten arrays (susceptible to call stack limits) - if (!isShallow) { - value = baseFlatten(value, isShallow, isStrict); - } - var valIndex = -1, - valLength = value.length, - resIndex = result.length; - - result.length += valLength; - while (++valIndex < valLength) { - result[resIndex++] = value[valIndex]; - } - } else if (!isStrict) { - result.push(value); + if (predicate(value, index, array)) { + result[++resIndex] = value; } } return result; } /** - * The base implementation of `_.isEqual`, without support for `thisArg` binding, - * that allows partial "_.where" style comparisons. + * A specialized version of `_.map` for arrays without support for callback + * shorthands and `this` binding. * * @private - * @param {*} a The value to compare. - * @param {*} b The other value to compare. - * @param {Function} [callback] The function to customize comparing values. - * @param {Function} [isWhere=false] A flag to indicate performing partial comparisons. - * @param {Array} [stackA=[]] Tracks traversed `a` objects. - * @param {Array} [stackB=[]] Tracks traversed `b` objects. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. */ - function baseIsEqual(a, b, callback, isWhere, stackA, stackB) { - // used to indicate that when comparing objects, `a` has at least the properties of `b` - if (callback) { - var result = callback(a, b); - if (typeof result != 'undefined') { - return !!result; - } - } - // exit early for identical values - if (a === b) { - // treat `+0` vs. `-0` as not equal - return a !== 0 || (1 / a == 1 / b); - } - var type = typeof a, - otherType = typeof b; - - // exit early for unlike primitive values - if (a === a && - !(a && objectTypes[type]) && - !(b && objectTypes[otherType])) { - return false; - } - // exit early for `null` and `undefined` avoiding ES3's Function#call behavior - // http://es5.github.io/#x15.3.4.4 - if (a == null || b == null) { - return a === b; - } - // compare [[Class]] names - var className = toString.call(a), - otherClass = toString.call(b); - - if (className == argsClass) { - className = objectClass; - } - if (otherClass == argsClass) { - otherClass = objectClass; - } - if (className != otherClass) { - return false; - } - switch (className) { - case boolClass: - case dateClass: - // coerce dates and booleans to numbers, dates to milliseconds and booleans - // to `1` or `0` treating invalid dates coerced to `NaN` as not equal - return +a == +b; - - case numberClass: - // treat `NaN` vs. `NaN` as equal - return (a != +a) - ? b != +b - // but treat `+0` vs. `-0` as not equal - : (a == 0 ? (1 / a == 1 / b) : a == +b); - - case regexpClass: - case stringClass: - // coerce regexes to strings (http://es5.github.io/#x15.10.6.4) - // treat string primitives and their corresponding object instances as equal - return a == String(b); - } - var isArr = className == arrayClass; - if (!isArr) { - // unwrap any `lodash` wrapped values - var aWrapped = hasOwnProperty.call(a, '__wrapped__'), - bWrapped = hasOwnProperty.call(b, '__wrapped__'); - - if (aWrapped || bWrapped) { - return baseIsEqual(aWrapped ? a.__wrapped__ : a, bWrapped ? b.__wrapped__ : b, callback, isWhere, stackA, stackB); - } - // exit for functions and DOM nodes - if (className != objectClass || (!support.nodeClass && (isNode(a) || isNode(b)))) { - return false; - } - // in older versions of Opera, `arguments` objects have `Array` constructors - var ctorA = !support.argsObject && isArguments(a) ? Object : a.constructor, - ctorB = !support.argsObject && isArguments(b) ? Object : b.constructor; - - // non `Object` object instances with different constructors are not equal - if (ctorA != ctorB && - !(isFunction(ctorA) && ctorA instanceof ctorA && isFunction(ctorB) && ctorB instanceof ctorB) && - ('constructor' in a && 'constructor' in b) - ) { - return false; - } - } - // assume cyclic structures are equal - // the algorithm for detecting cyclic structures is adapted from ES 5.1 - // section 15.12.3, abstract operation `JO` (http://es5.github.io/#x15.12.3) - var initedStack = !stackA; - stackA || (stackA = getArray()); - stackB || (stackB = getArray()); + function arrayMap(array, iteratee) { + var index = -1, + length = array.length, + result = Array(length); - var length = stackA.length; - while (length--) { - if (stackA[length] == a) { - return stackB[length] == b; - } + while (++index < length) { + result[index] = iteratee(array[index], index, array); } - var size = 0; - result = true; - - // add `a` and `b` to the stack of traversed objects - stackA.push(a); - stackB.push(b); - - // recursively compare objects and arrays (susceptible to call stack limits) - if (isArr) { - length = a.length; - size = b.length; + return result; + } - // compare lengths to determine if a deep comparison is necessary - result = size == a.length; - if (!result && !isWhere) { - return result; - } - // deep compare the contents, ignoring non-numeric properties - while (size--) { - var index = length, - value = b[size]; - - if (isWhere) { - while (index--) { - if ((result = baseIsEqual(a[index], value, callback, isWhere, stackA, stackB))) { - break; - } - } - } else if (!(result = baseIsEqual(a[size], value, callback, isWhere, stackA, stackB))) { - break; - } - } - return result; - } - // deep compare objects using `forIn`, instead of `forOwn`, to avoid `Object.keys` - // which, in this case, is more costly - forIn(b, function(value, key, b) { - if (hasOwnProperty.call(b, key)) { - // count the number of properties. - size++; - // deep compare each property value. - return (result = hasOwnProperty.call(a, key) && baseIsEqual(a[key], value, callback, isWhere, stackA, stackB)); - } - }); + /** + * A specialized version of `_.reduce` for arrays without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Array} array The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @param {boolean} [initFromArray] Specify using the first element of `array` + * as the initial value. + * @returns {*} Returns the accumulated value. + */ + function arrayReduce(array, iteratee, accumulator, initFromArray) { + var index = -1, + length = array.length; - if (result && !isWhere) { - // ensure both objects have the same number of properties - forIn(a, function(value, key, a) { - if (hasOwnProperty.call(a, key)) { - // `size` will be `-1` if `a` has more properties than `b` - return (result = --size > -1); - } - }); + if (initFromArray && length) { + accumulator = array[++index]; } - if (initedStack) { - releaseArray(stackA); - releaseArray(stackB); + while (++index < length) { + accumulator = iteratee(accumulator, array[index], index, array); } - return result; + return accumulator; } /** - * The base implementation of `_.merge` without argument juggling or support - * for `thisArg` binding. + * A specialized version of `_.some` for arrays without support for callback + * shorthands and `this` binding. * * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @param {Function} [callback] The function to customize merging properties. - * @param {Array} [stackA=[]] Tracks traversed source objects. - * @param {Array} [stackB=[]] Associates values with source counterparts. + * @param {Array} array The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. */ - function baseMerge(object, source, callback, stackA, stackB) { - (isArray(source) ? forEach : forOwn)(source, function(source, key) { - var found, - isArr, - result = source, - value = object[key]; - - if (source && ((isArr = isArray(source)) || isPlainObject(source))) { - // avoid merging previously merged cyclic sources - var stackLength = stackA.length; - while (stackLength--) { - if ((found = stackA[stackLength] == source)) { - value = stackB[stackLength]; - break; - } - } - if (!found) { - var isShallow; - if (callback) { - result = callback(value, source); - if ((isShallow = typeof result != 'undefined')) { - value = result; - } - } - if (!isShallow) { - value = isArr - ? (isArray(value) ? value : []) - : (isPlainObject(value) ? value : {}); - } - // add `source` and associated `value` to the stack of traversed objects - stackA.push(source); - stackB.push(value); + function arraySome(array, predicate) { + var index = -1, + length = array.length; - // recursively merge objects and arrays (susceptible to call stack limits) - if (!isShallow) { - baseMerge(value, source, callback, stackA, stackB); - } - } - } - else { - if (callback) { - result = callback(value, source); - if (typeof result == 'undefined') { - result = source; - } - } - if (typeof result != 'undefined') { - value = result; - } + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; } - object[key] = value; - }); + } + return false; } /** - * The base implementation of `_.uniq` without support for callback shorthands - * or `thisArg` binding. + * A specialized version of `_.assign` for customizing assigned values without + * support for argument juggling, multiple sources, and `this` binding `customizer` + * functions. * * @private - * @param {Array} array The array to process. - * @param {boolean} [isSorted=false] A flag to indicate that `array` is sorted. - * @param {Function} [callback] The function called per iteration. - * @returns {Array} Returns a duplicate-value-free array. + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {Function} customizer The function to customize assigned values. + * @returns {Object} Returns `object`. */ - function baseUniq(array, isSorted, callback) { + function assignWith(object, source, customizer) { var index = -1, - indexOf = getIndexOf(), - length = array ? array.length : 0, - result = []; + props = keys(source), + length = props.length; - var isLarge = !isSorted && length >= largeArraySize && indexOf === baseIndexOf, - seen = (callback || isLarge) ? getArray() : result; - - if (isLarge) { - var cache = createCache(seen); - if (cache) { - indexOf = cacheIndexOf; - seen = cache; - } else { - isLarge = false; - seen = callback ? seen : (releaseArray(seen), result); - } - } while (++index < length) { - var value = array[index], - computed = callback ? callback(value, index, array) : value; + var key = props[index], + value = object[key], + result = customizer(value, source[key], key, object, source); - if (isSorted - ? !index || seen[seen.length - 1] !== computed - : indexOf(seen, computed) < 0 - ) { - if (callback || isLarge) { - seen.push(computed); - } - result.push(value); + if ((result === result ? (result !== value) : (value === value)) || + (value === undefined && !(key in object))) { + object[key] = result; } } - if (isLarge) { - releaseArray(seen.array); - releaseObject(seen); - } else if (callback) { - releaseArray(seen); - } - return result; + return object; } /** - * Creates a function that aggregates a collection, creating an object composed - * of keys generated from the results of running each element of the collection - * through a callback. The given `setter` function sets the keys and values - * of the composed object. + * The base implementation of `_.assign` without support for argument juggling, + * multiple sources, and `customizer` functions. * * @private - * @param {Function} setter The setter function. - * @returns {Function} Returns the new aggregator function. + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. */ - function createAggregator(setter) { - return function(collection, callback, thisArg) { - var result = {}; - callback = lodash.createCallback(callback, thisArg, 3); - - if (isArray(collection)) { - var index = -1, - length = collection.length; - - while (++index < length) { - var value = collection[index]; - setter(result, value, callback(value, index, collection), collection); - } - } else { - baseEach(collection, function(value, key, collection) { - setter(result, value, callback(value, key, collection), collection); - }); - } - return result; - }; + function baseAssign(object, source) { + return source == null + ? object + : baseCopy(source, keys(source), object); } /** - * Creates a function that, when called, either curries or invokes `func` - * with an optional `this` binding and partially applied arguments. + * Copies properties of `source` to `object`. * * @private - * @param {Function|string} func The function or method name to reference. - * @param {number} bitmask The bitmask of method flags to compose. - * The bitmask may be composed of the following flags: - * 1 - `_.bind` - * 2 - `_.bindKey` - * 4 - `_.curry` - * 8 - `_.curry` (bound) - * 16 - `_.partial` - * 32 - `_.partialRight` - * @param {Array} [partialArgs] An array of arguments to prepend to those - * provided to the new function. - * @param {Array} [partialRightArgs] An array of arguments to append to those - * provided to the new function. - * @param {*} [thisArg] The `this` binding of `func`. - * @param {number} [arity] The arity of `func`. - * @returns {Function} Returns the new function. + * @param {Object} source The object to copy properties from. + * @param {Array} props The property names to copy. + * @param {Object} [object={}] The object to copy properties to. + * @returns {Object} Returns `object`. */ - function createWrapper(func, bitmask, partialArgs, partialRightArgs, thisArg, arity) { - var isBind = bitmask & 1, - isBindKey = bitmask & 2, - isCurry = bitmask & 4, - isCurryBound = bitmask & 8, - isPartial = bitmask & 16, - isPartialRight = bitmask & 32; - - if (!isBindKey && !isFunction(func)) { - throw new TypeError; - } - if (isPartial && !partialArgs.length) { - bitmask &= ~16; - isPartial = partialArgs = false; - } - if (isPartialRight && !partialRightArgs.length) { - bitmask &= ~32; - isPartialRight = partialRightArgs = false; - } - var bindData = func && func.__bindData__; - if (bindData && bindData !== true) { - bindData = bindData.slice(); - - // set `thisBinding` is not previously bound - if (isBind && !(bindData[1] & 1)) { - bindData[4] = thisArg; - } - // set if previously bound but not currently (subsequent curried functions) - if (!isBind && bindData[1] & 1) { - bitmask |= 8; - } - // set curried arity if not yet set - if (isCurry && !(bindData[1] & 4)) { - bindData[5] = arity; - } - // append partial left arguments - if (isPartial) { - push.apply(bindData[2] || (bindData[2] = []), partialArgs); - } - // append partial right arguments - if (isPartialRight) { - push.apply(bindData[3] || (bindData[3] = []), partialRightArgs); - } - // merge flags - bindData[1] |= bitmask; - return createWrapper.apply(null, bindData); + function baseCopy(source, props, object) { + object || (object = {}); + + var index = -1, + length = props.length; + + while (++index < length) { + var key = props[index]; + object[key] = source[key]; } - // fast path for `_.bind` - var creater = (bitmask == 1 || bitmask === 17) ? baseBind : baseCreateWrapper; - return creater([func, bitmask, partialArgs, partialRightArgs, thisArg, arity]); + return object; } /** - * Creates compiled iteration functions. + * The base implementation of `_.callback` which supports specifying the + * number of arguments to provide to `func`. * * @private - * @param {...Object} [options] The compile options object(s). - * @param {string} [options.array] Code to determine if the iterable is an array or array-like. - * @param {boolean} [options.useHas] Specify using `hasOwnProperty` checks in the object loop. - * @param {Function} [options.keys] A reference to `_.keys` for use in own property iteration. - * @param {string} [options.args] A comma separated string of iteration function arguments. - * @param {string} [options.top] Code to execute before the iteration branches. - * @param {string} [options.loop] Code to execute in the object loop. - * @param {string} [options.bottom] Code to execute after the iteration branches. - * @returns {Function} Returns the compiled function. + * @param {*} [func=_.identity] The value to convert to a callback. + * @param {*} [thisArg] The `this` binding of `func`. + * @param {number} [argCount] The number of arguments to provide to `func`. + * @returns {Function} Returns the callback. */ - function createIterator() { - // data properties - iteratorData.shadowedProps = shadowedProps; - - // iterator options - iteratorData.array = iteratorData.bottom = iteratorData.loop = iteratorData.top = ''; - iteratorData.init = 'iterable'; - iteratorData.useHas = true; - - // merge options into a template data object - for (var object, index = 0; object = arguments[index]; index++) { - for (var key in object) { - iteratorData[key] = object[key]; - } + function baseCallback(func, thisArg, argCount) { + var type = typeof func; + if (type == 'function') { + return thisArg === undefined + ? func + : bindCallback(func, thisArg, argCount); + } + if (func == null) { + return identity; } - var args = iteratorData.args; - iteratorData.firstArg = /^[^,]+/.exec(args)[0]; - - // create the function factory - var factory = Function( - 'baseCreateCallback, errorClass, errorProto, hasOwnProperty, ' + - 'indicatorObject, isArguments, isArray, isString, keys, objectProto, ' + - 'objectTypes, nonEnumProps, stringClass, stringProto, toString', - 'return function(' + args + ') {\n' + iteratorTemplate(iteratorData) + '\n}' - ); - - // return the compiled function - return factory( - baseCreateCallback, errorClass, errorProto, hasOwnProperty, - indicatorObject, isArguments, isArray, isString, iteratorData.keys, objectProto, - objectTypes, nonEnumProps, stringClass, stringProto, toString - ); + if (type == 'object') { + return baseMatches(func); + } + return thisArg === undefined + ? property(func) + : baseMatchesProperty(func, thisArg); } /** - * Gets the appropriate "indexOf" function. If the `_.indexOf` method is - * customized, this method returns the custom method, otherwise it returns - * the `baseIndexOf` function. + * The base implementation of `_.clone` without support for argument juggling + * and `this` binding `customizer` functions. * * @private - * @returns {Function} Returns the "indexOf" function. + * @param {*} value The value to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @param {Function} [customizer] The function to customize cloning values. + * @param {string} [key] The key of `value`. + * @param {Object} [object] The object `value` belongs to. + * @param {Array} [stackA=[]] Tracks traversed source objects. + * @param {Array} [stackB=[]] Associates clones with source counterparts. + * @returns {*} Returns the cloned value. */ - function getIndexOf() { - var result = (result = lodash.indexOf) === indexOf ? baseIndexOf : result; + function baseClone(value, isDeep, customizer, key, object, stackA, stackB) { + var result; + if (customizer) { + result = object ? customizer(value, key, object) : customizer(value); + } + if (result !== undefined) { + return result; + } + if (!isObject(value)) { + return value; + } + var isArr = isArray(value); + if (isArr) { + result = initCloneArray(value); + if (!isDeep) { + return arrayCopy(value, result); + } + } else { + var tag = objToString.call(value), + isFunc = tag == funcTag; + + if (tag == objectTag || tag == argsTag || (isFunc && !object)) { + if (isHostObject(value)) { + return object ? value : {}; + } + result = initCloneObject(isFunc ? {} : value); + if (!isDeep) { + return baseAssign(result, value); + } + } else { + return cloneableTags[tag] + ? initCloneByTag(value, tag, isDeep) + : (object ? value : {}); + } + } + // Check for circular references and return corresponding clone. + stackA || (stackA = []); + stackB || (stackB = []); + + var length = stackA.length; + while (length--) { + if (stackA[length] == value) { + return stackB[length]; + } + } + // Add the source value to the stack of traversed objects and associate it with its clone. + stackA.push(value); + stackB.push(result); + + // Recursively populate clone (susceptible to call stack limits). + (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) { + result[key] = baseClone(subValue, isDeep, customizer, key, value, stackA, stackB); + }); return result; } /** - * Sets `this` binding data on a given function. + * The base implementation of `_.create` without support for assigning + * properties to the created object. * * @private - * @param {Function} func The function to set data on. - * @param {Array} value The data array to set. + * @param {Object} prototype The object to inherit from. + * @returns {Object} Returns the new object. */ - var setBindData = !defineProperty ? noop : function(func, value) { - descriptor.value = value; - defineProperty(func, '__bindData__', descriptor); - }; + var baseCreate = (function() { + function object() {} + return function(prototype) { + if (isObject(prototype)) { + object.prototype = prototype; + var result = new object; + object.prototype = null; + } + return result || {}; + }; + }()); /** - * A fallback implementation of `isPlainObject` which checks if a given value - * is an object created by the `Object` constructor, assuming objects created - * by the `Object` constructor have no inherited enumerable properties and that - * there are no `Object.prototype` extensions. + * The base implementation of `_.difference` which accepts a single array + * of values to exclude. * * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. + * @param {Array} array The array to inspect. + * @param {Array} values The values to exclude. + * @returns {Array} Returns the new array of filtered values. */ - function shimIsPlainObject(value) { - var ctor, - result; - - // avoid non Object objects, `arguments` objects, and DOM elements - if (!(value && toString.call(value) == objectClass) || - (ctor = value.constructor, isFunction(ctor) && !(ctor instanceof ctor)) || - (!support.argsClass && isArguments(value)) || - (!support.nodeClass && isNode(value))) { - return false; - } - // IE < 9 iterates inherited properties before own properties. If the first - // iterated property is an object's own property then there are no inherited - // enumerable properties. - if (support.ownLast) { - forIn(value, function(value, key, object) { - result = hasOwnProperty.call(object, key); - return false; - }); - return result !== false; + function baseDifference(array, values) { + var length = array ? array.length : 0, + result = []; + + if (!length) { + return result; } - // In most environments an object's own properties are iterated before - // its inherited properties. If the last iterated property is an object's - // own property then there are no inherited enumerable properties. - forIn(value, function(value, key) { - result = key; - }); - return typeof result == 'undefined' || hasOwnProperty.call(value, result); - } + var index = -1, + indexOf = getIndexOf(), + isCommon = indexOf == baseIndexOf, + cache = (isCommon && values.length >= 200) ? createCache(values) : null, + valuesLength = values.length; - /*--------------------------------------------------------------------------*/ + if (cache) { + indexOf = cacheIndexOf; + isCommon = false; + values = cache; + } + outer: + while (++index < length) { + var value = array[index]; - /** - * Checks if `value` is an `arguments` object. - * - * @static - * @memberOf _ - * @category Objects - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if the `value` is an `arguments` object, else `false`. - * @example - * - * (function() { return _.isArguments(arguments); })(1, 2, 3); - * // => true - * - * _.isArguments([1, 2, 3]); - * // => false - */ - function isArguments(value) { - return value && typeof value == 'object' && typeof value.length == 'number' && - toString.call(value) == argsClass || false; - } - // fallback for browsers that can't detect `arguments` objects by [[Class]] - if (!support.argsClass) { - isArguments = function(value) { - return value && typeof value == 'object' && typeof value.length == 'number' && - hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee') || false; - }; + if (isCommon && value === value) { + var valuesIndex = valuesLength; + while (valuesIndex--) { + if (values[valuesIndex] === value) { + continue outer; + } + } + result.push(value); + } + else if (indexOf(values, value, 0) < 0) { + result.push(value); + } + } + return result; } /** - * Checks if `value` is an array. - * - * @static - * @memberOf _ - * @type Function - * @category Objects - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if the `value` is an array, else `false`. - * @example - * - * (function() { return _.isArray(arguments); })(); - * // => false - * - * _.isArray([1, 2, 3]); - * // => true - */ - var isArray = nativeIsArray || function(value) { - return value && typeof value == 'object' && typeof value.length == 'number' && - toString.call(value) == arrayClass || false; - }; - - /** - * A fallback implementation of `Object.keys` which produces an array of the - * given object's own enumerable property names. + * The base implementation of `_.forEach` without support for callback + * shorthands and `this` binding. * * @private - * @type Function - * @param {Object} object The object to inspect. - * @returns {Array} Returns an array of property names. + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object|string} Returns `collection`. */ - var shimKeys = createIterator({ - 'args': 'object', - 'init': '[]', - 'top': 'if (!(objectTypes[typeof object])) return result', - 'loop': 'result.push(index)' - }); + var baseEach = createBaseEach(baseForOwn); /** - * Creates an array composed of the own enumerable property names of an object. + * The base implementation of `_.every` without support for callback + * shorthands and `this` binding. * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The object to inspect. - * @returns {Array} Returns an array of property names. - * @example - * - * _.keys({ 'one': 1, 'two': 2, 'three': 3 }); - * // => ['one', 'two', 'three'] (property order is not guaranteed across environments) + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false` */ - var keys = !nativeKeys ? shimKeys : function(object) { - if (!isObject(object)) { - return []; - } - if ((support.enumPrototypes && typeof object == 'function') || - (support.nonEnumArgs && object.length && isArguments(object))) { - return shimKeys(object); - } - return nativeKeys(object); - }; - - /** Reusable iterator options shared by `each`, `forIn`, and `forOwn` */ - var eachIteratorOptions = { - 'args': 'collection, callback, thisArg', - 'top': "callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3)", - 'array': "typeof length == 'number'", - 'keys': keys, - 'loop': 'if (callback(iterable[index], index, collection) === false) return result' - }; - - /** Reusable iterator options for `assign` and `defaults` */ - var defaultsIteratorOptions = { - 'args': 'object, source, guard', - 'top': - 'var args = arguments,\n' + - ' argsIndex = 0,\n' + - " argsLength = typeof guard == 'number' ? 2 : args.length;\n" + - 'while (++argsIndex < argsLength) {\n' + - ' iterable = args[argsIndex];\n' + - ' if (iterable && objectTypes[typeof iterable]) {', - 'keys': keys, - 'loop': "if (typeof result[index] == 'undefined') result[index] = iterable[index]", - 'bottom': ' }\n}' - }; - - /** Reusable iterator options for `forIn` and `forOwn` */ - var forOwnIteratorOptions = { - 'top': 'if (!objectTypes[typeof iterable]) return result;\n' + eachIteratorOptions.top, - 'array': false - }; + function baseEvery(collection, predicate) { + var result = true; + baseEach(collection, function(value, index, collection) { + result = !!predicate(value, index, collection); + return result; + }); + return result; + } /** - * A function compiled to iterate `arguments` objects, arrays, objects, and - * strings consistenly across environments, executing the callback for each - * element in the collection. The callback is bound to `thisArg` and invoked - * with three arguments; (value, index|key, collection). Callbacks may exit - * iteration early by explicitly returning `false`. + * The base implementation of `_.filter` without support for callback + * shorthands and `this` binding. * * @private - * @type Function * @param {Array|Object|string} collection The collection to iterate over. - * @param {Function} [callback=identity] The function called per iteration. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {Array|Object|string} Returns `collection`. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. */ - var baseEach = createIterator(eachIteratorOptions); - - /*--------------------------------------------------------------------------*/ + function baseFilter(collection, predicate) { + var result = []; + baseEach(collection, function(value, index, collection) { + if (predicate(value, index, collection)) { + result.push(value); + } + }); + return result; + } /** - * Assigns own enumerable properties of source object(s) to the destination - * object. Subsequent sources will overwrite property assignments of previous - * sources. If a callback is provided it will be executed to produce the - * assigned values. The callback is bound to `thisArg` and invoked with two - * arguments; (objectValue, sourceValue). - * - * @static - * @memberOf _ - * @type Function - * @alias extend - * @category Objects - * @param {Object} object The destination object. - * @param {...Object} [source] The source objects. - * @param {Function} [callback] The function to customize assigning values. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {Object} Returns the destination object. - * @example - * - * _.assign({ 'name': 'fred' }, { 'employer': 'slate' }); - * // => { 'name': 'fred', 'employer': 'slate' } - * - * var defaults = _.partialRight(_.assign, function(a, b) { - * return typeof a == 'undefined' ? b : a; - * }); + * The base implementation of `_.find`, `_.findLast`, `_.findKey`, and `_.findLastKey`, + * without support for callback shorthands and `this` binding, which iterates + * over `collection` using the provided `eachFunc`. * - * var object = { 'name': 'barney' }; - * defaults(object, { 'name': 'fred', 'employer': 'slate' }); - * // => { 'name': 'barney', 'employer': 'slate' } + * @private + * @param {Array|Object|string} collection The collection to search. + * @param {Function} predicate The function invoked per iteration. + * @param {Function} eachFunc The function to iterate over `collection`. + * @param {boolean} [retKey] Specify returning the key of the found element + * instead of the element itself. + * @returns {*} Returns the found element or its key, else `undefined`. */ - var assign = createIterator(defaultsIteratorOptions, { - 'top': - defaultsIteratorOptions.top.replace(';', - ';\n' + - "if (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n" + - ' var callback = baseCreateCallback(args[--argsLength - 1], args[argsLength--], 2);\n' + - "} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n" + - ' callback = args[--argsLength];\n' + - '}' - ), - 'loop': 'result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]' - }); + function baseFind(collection, predicate, eachFunc, retKey) { + var result; + eachFunc(collection, function(value, key, collection) { + if (predicate(value, key, collection)) { + result = retKey ? key : value; + return false; + } + }); + return result; + } /** - * Creates a clone of `value`. If `isDeep` is `true` nested objects will also - * be cloned, otherwise they will be assigned by reference. If a callback - * is provided it will be executed to produce the cloned values. If the - * callback returns `undefined` cloning will be handled by the method instead. - * The callback is bound to `thisArg` and invoked with one argument; (value). - * - * @static - * @memberOf _ - * @category Objects - * @param {*} value The value to clone. - * @param {boolean} [isDeep=false] Specify a deep clone. - * @param {Function} [callback] The function to customize cloning values. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {*} Returns the cloned value. - * @example - * - * var characters = [ - * { 'name': 'barney', 'age': 36 }, - * { 'name': 'fred', 'age': 40 } - * ]; - * - * var shallow = _.clone(characters); - * shallow[0] === characters[0]; - * // => true - * - * var deep = _.clone(characters, true); - * deep[0] === characters[0]; - * // => false + * The base implementation of `_.flatten` with added support for restricting + * flattening and specifying the start index. * - * _.mixin({ - * 'clone': _.partialRight(_.clone, function(value) { - * return _.isElement(value) ? value.cloneNode(false) : undefined; - * }) - * }); - * - * var clone = _.clone(document.body); - * clone.childNodes.length; - * // => 0 + * @private + * @param {Array} array The array to flatten. + * @param {boolean} [isDeep] Specify a deep flatten. + * @param {boolean} [isStrict] Restrict flattening to arrays-like objects. + * @returns {Array} Returns the new flattened array. */ - function clone(value, isDeep, callback, thisArg) { - // allows working with "Collections" methods without using their `index` - // and `collection` arguments for `isDeep` and `callback` - if (typeof isDeep != 'boolean' && isDeep != null) { - thisArg = callback; - callback = isDeep; - isDeep = false; + function baseFlatten(array, isDeep, isStrict) { + var index = -1, + length = array.length, + resIndex = -1, + result = []; + + while (++index < length) { + var value = array[index]; + if (isObjectLike(value) && isArrayLike(value) && + (isStrict || isArray(value) || isArguments(value))) { + if (isDeep) { + // Recursively flatten arrays (susceptible to call stack limits). + value = baseFlatten(value, isDeep, isStrict); + } + var valIndex = -1, + valLength = value.length; + + while (++valIndex < valLength) { + result[++resIndex] = value[valIndex]; + } + } else if (!isStrict) { + result[++resIndex] = value; + } } - return baseClone(value, isDeep, typeof callback == 'function' && baseCreateCallback(callback, thisArg, 1)); + return result; } /** - * Creates a deep clone of `value`. If a callback is provided it will be - * executed to produce the cloned values. If the callback returns `undefined` - * cloning will be handled by the method instead. The callback is bound to - * `thisArg` and invoked with one argument; (value). - * - * Note: This method is loosely based on the structured clone algorithm. Functions - * and DOM nodes are **not** cloned. The enumerable properties of `arguments` objects and - * objects created by constructors other than `Object` are cloned to plain `Object` objects. - * See http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm. - * - * @static - * @memberOf _ - * @category Objects - * @param {*} value The value to deep clone. - * @param {Function} [callback] The function to customize cloning values. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {*} Returns the deep cloned value. - * @example - * - * var characters = [ - * { 'name': 'barney', 'age': 36 }, - * { 'name': 'fred', 'age': 40 } - * ]; - * - * var deep = _.cloneDeep(characters); - * deep[0] === characters[0]; - * // => false + * The base implementation of `baseForIn` and `baseForOwn` which iterates + * over `object` properties returned by `keysFunc` invoking `iteratee` for + * each property. Iteratee functions may exit iteration early by explicitly + * returning `false`. * - * var view = { - * 'label': 'docs', - * 'node': element - * }; - * - * var clone = _.cloneDeep(view, function(value) { - * return _.isElement(value) ? value.cloneNode(true) : undefined; - * }); - * - * clone.node == view.node; - * // => false + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. */ - function cloneDeep(value, callback, thisArg) { - return baseClone(value, true, typeof callback == 'function' && baseCreateCallback(callback, thisArg, 1)); - } + var baseFor = createBaseFor(); /** - * Iterates over own and inherited enumerable properties of an object, - * executing the callback for each property. The callback is bound to `thisArg` - * and invoked with three arguments; (value, key, object). Callbacks may exit - * iteration early by explicitly returning `false`. + * The base implementation of `_.forIn` without support for callback + * shorthands and `this` binding. * - * @static - * @memberOf _ - * @type Function - * @category Objects + * @private * @param {Object} object The object to iterate over. - * @param {Function} [callback=identity] The function called per iteration. - * @param {*} [thisArg] The `this` binding of `callback`. + * @param {Function} iteratee The function invoked per iteration. * @returns {Object} Returns `object`. - * @example - * - * function Shape() { - * this.x = 0; - * this.y = 0; - * } - * - * Shape.prototype.move = function(x, y) { - * this.x += x; - * this.y += y; - * }; - * - * _.forIn(new Shape, function(value, key) { - * console.log(key); - * }); - * // => logs 'x', 'y', and 'move' (property order is not guaranteed across environments) */ - var forIn = createIterator(eachIteratorOptions, forOwnIteratorOptions, { - 'useHas': false - }); + function baseForIn(object, iteratee) { + return baseFor(object, iteratee, keysIn); + } /** - * Iterates over own enumerable properties of an object, executing the callback - * for each property. The callback is bound to `thisArg` and invoked with three - * arguments; (value, key, object). Callbacks may exit iteration early by - * explicitly returning `false`. + * The base implementation of `_.forOwn` without support for callback + * shorthands and `this` binding. * - * @static - * @memberOf _ - * @type Function - * @category Objects + * @private * @param {Object} object The object to iterate over. - * @param {Function} [callback=identity] The function called per iteration. - * @param {*} [thisArg] The `this` binding of `callback`. + * @param {Function} iteratee The function invoked per iteration. * @returns {Object} Returns `object`. - * @example - * - * _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) { - * console.log(key); - * }); - * // => logs '0', '1', and 'length' (property order is not guaranteed across environments) */ - var forOwn = createIterator(eachIteratorOptions, forOwnIteratorOptions); + function baseForOwn(object, iteratee) { + return baseFor(object, iteratee, keys); + } /** - * Creates a sorted array of property names of all enumerable properties, - * own and inherited, of `object` that have function values. + * The base implementation of `_.functions` which creates an array of + * `object` function property names filtered from those provided. * - * @static - * @memberOf _ - * @alias methods - * @category Objects + * @private * @param {Object} object The object to inspect. - * @returns {Array} Returns an array of property names that have function values. - * @example - * - * _.functions(_); - * // => ['all', 'any', 'bind', 'bindAll', 'clone', 'compact', 'compose', ...] + * @param {Array} props The property names to filter. + * @returns {Array} Returns the new array of filtered property names. */ - function functions(object) { - var result = []; - forIn(object, function(value, key) { - if (isFunction(value)) { - result.push(key); + function baseFunctions(object, props) { + var index = -1, + length = props.length, + resIndex = -1, + result = []; + + while (++index < length) { + var key = props[index]; + if (isFunction(object[key])) { + result[++resIndex] = key; } - }); - return result.sort(); + } + return result; } /** - * Checks if `value` is empty. Arrays, strings, or `arguments` objects with a - * length of `0` and objects with no own enumerable properties are considered - * "empty". - * - * @static - * @memberOf _ - * @category Objects - * @param {Array|Object|string} value The value to inspect. - * @returns {boolean} Returns `true` if the `value` is empty, else `false`. - * @example - * - * _.isEmpty([1, 2, 3]); - * // => false - * - * _.isEmpty({}); - * // => true + * The base implementation of `get` without support for string paths + * and default values. * - * _.isEmpty(''); - * // => true + * @private + * @param {Object} object The object to query. + * @param {Array} path The path of the property to get. + * @param {string} [pathKey] The key representation of path. + * @returns {*} Returns the resolved value. */ - function isEmpty(value) { - var result = true; - if (!value) { - return result; + function baseGet(object, path, pathKey) { + if (object == null) { + return; } - var className = toString.call(value), - length = value.length; + object = toObject(object); + if (pathKey !== undefined && pathKey in object) { + path = [pathKey]; + } + var index = 0, + length = path.length; - if ((className == arrayClass || className == stringClass || - (support.argsClass ? className == argsClass : isArguments(value))) || - (className == objectClass && typeof length == 'number' && isFunction(value.splice))) { - return !length; + while (object != null && index < length) { + object = toObject(object)[path[index++]]; } - forOwn(value, function() { - return (result = false); - }); - return result; + return (index && index == length) ? object : undefined; } /** - * Performs a deep comparison between two values to determine if they are - * equivalent to each other. If a callback is provided it will be executed - * to compare values. If the callback returns `undefined` comparisons will - * be handled by the method instead. The callback is bound to `thisArg` and - * invoked with two arguments; (a, b). + * The base implementation of `_.isEqual` without support for `this` binding + * `customizer` functions. * - * @static - * @memberOf _ - * @category Objects - * @param {*} a The value to compare. - * @param {*} b The other value to compare. - * @param {Function} [callback] The function to customize comparing values. - * @param {*} [thisArg] The `this` binding of `callback`. + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {Function} [customizer] The function to customize comparing values. + * @param {boolean} [isLoose] Specify performing partial comparisons. + * @param {Array} [stackA] Tracks traversed `value` objects. + * @param {Array} [stackB] Tracks traversed `other` objects. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'name': 'fred' }; - * var copy = { 'name': 'fred' }; - * - * object == copy; - * // => false - * - * _.isEqual(object, copy); - * // => true - * - * var words = ['hello', 'goodbye']; - * var otherWords = ['hi', 'goodbye']; - * - * _.isEqual(words, otherWords, function(a, b) { - * var reGreet = /^(?:hello|hi)$/i, - * aGreet = _.isString(a) && reGreet.test(a), - * bGreet = _.isString(b) && reGreet.test(b); - * - * return (aGreet || bGreet) ? (aGreet == bGreet) : undefined; - * }); - * // => true */ - function isEqual(a, b, callback, thisArg) { - return baseIsEqual(a, b, typeof callback == 'function' && baseCreateCallback(callback, thisArg, 2)); + function baseIsEqual(value, other, customizer, isLoose, stackA, stackB) { + if (value === other) { + return true; + } + if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) { + return value !== value && other !== other; + } + return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB); } /** - * Checks if `value` is a function. - * - * @static - * @memberOf _ - * @category Objects - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if the `value` is a function, else `false`. - * @example + * A specialized version of `baseIsEqual` for arrays and objects which performs + * deep comparisons and tracks traversed objects enabling objects with circular + * references to be compared. * - * _.isFunction(_); - * // => true + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Function} [customizer] The function to customize comparing objects. + * @param {boolean} [isLoose] Specify performing partial comparisons. + * @param {Array} [stackA=[]] Tracks traversed `value` objects. + * @param {Array} [stackB=[]] Tracks traversed `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ - function isFunction(value) { - return typeof value == 'function'; - } - // fallback for older versions of Chrome and Safari - if (isFunction(/x/)) { - isFunction = function(value) { - return typeof value == 'function' && toString.call(value) == funcClass; - }; + function baseIsEqualDeep(object, other, equalFunc, customizer, isLoose, stackA, stackB) { + var objIsArr = isArray(object), + othIsArr = isArray(other), + objTag = arrayTag, + othTag = arrayTag; + + if (!objIsArr) { + objTag = objToString.call(object); + if (objTag == argsTag) { + objTag = objectTag; + } else if (objTag != objectTag) { + objIsArr = isTypedArray(object); + } + } + if (!othIsArr) { + othTag = objToString.call(other); + if (othTag == argsTag) { + othTag = objectTag; + } else if (othTag != objectTag) { + othIsArr = isTypedArray(other); + } + } + var objIsObj = objTag == objectTag && !isHostObject(object), + othIsObj = othTag == objectTag && !isHostObject(other), + isSameTag = objTag == othTag; + + if (isSameTag && !(objIsArr || objIsObj)) { + return equalByTag(object, other, objTag); + } + if (!isLoose) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), + othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + + if (objIsWrapped || othIsWrapped) { + return equalFunc(objIsWrapped ? object.value() : object, othIsWrapped ? other.value() : other, customizer, isLoose, stackA, stackB); + } + } + if (!isSameTag) { + return false; + } + // Assume cyclic values are equal. + // For more information on detecting circular references see https://es5.github.io/#JO. + stackA || (stackA = []); + stackB || (stackB = []); + + var length = stackA.length; + while (length--) { + if (stackA[length] == object) { + return stackB[length] == other; + } + } + // Add `object` and `other` to the stack of traversed objects. + stackA.push(object); + stackB.push(other); + + var result = (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, isLoose, stackA, stackB); + + stackA.pop(); + stackB.pop(); + + return result; } /** - * Checks if `value` is the language type of Object. - * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @category Objects - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if the `value` is an object, else `false`. - * @example + * The base implementation of `_.isMatch` without support for callback + * shorthands and `this` binding. * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(1); - * // => false + * @private + * @param {Object} object The object to inspect. + * @param {Array} matchData The propery names, values, and compare flags to match. + * @param {Function} [customizer] The function to customize comparing objects. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. */ - function isObject(value) { - // check if the value is the ECMAScript language type of Object - // http://es5.github.io/#x8 - // and avoid a V8 bug - // http://code.google.com/p/v8/issues/detail?id=2291 - return !!(value && objectTypes[typeof value]); + function baseIsMatch(object, matchData, customizer) { + var index = matchData.length, + length = index, + noCustomizer = !customizer; + + if (object == null) { + return !length; + } + object = toObject(object); + while (index--) { + var data = matchData[index]; + if ((noCustomizer && data[2]) + ? data[1] !== object[data[0]] + : !(data[0] in object) + ) { + return false; + } + } + while (++index < length) { + data = matchData[index]; + var key = data[0], + objValue = object[key], + srcValue = data[1]; + + if (noCustomizer && data[2]) { + if (objValue === undefined && !(key in object)) { + return false; + } + } else { + var result = customizer ? customizer(objValue, srcValue, key) : undefined; + if (!(result === undefined ? baseIsEqual(srcValue, objValue, customizer, true) : result)) { + return false; + } + } + } + return true; } /** - * Checks if `value` is an object created by the `Object` constructor. - * - * @static - * @memberOf _ - * @category Objects - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. - * @example - * - * function Shape() { - * this.x = 0; - * this.y = 0; - * } - * - * _.isPlainObject(new Shape); - * // => false - * - * _.isPlainObject([1, 2, 3]); - * // => false + * The base implementation of `_.map` without support for callback shorthands + * and `this` binding. * - * _.isPlainObject({ 'x': 0, 'y': 0 }); - * // => true + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. */ - var isPlainObject = !getPrototypeOf ? shimIsPlainObject : function(value) { - if (!(value && toString.call(value) == objectClass) || (!support.argsClass && isArguments(value))) { - return false; - } - var valueOf = value.valueOf, - objProto = typeof valueOf == 'function' && (objProto = getPrototypeOf(valueOf)) && getPrototypeOf(objProto); + function baseMap(collection, iteratee) { + var index = -1, + result = isArrayLike(collection) ? Array(collection.length) : []; - return objProto - ? (value == objProto || getPrototypeOf(value) == objProto) - : shimIsPlainObject(value); - }; + baseEach(collection, function(value, key, collection) { + result[++index] = iteratee(value, key, collection); + }); + return result; + } /** - * Checks if `value` is a string. + * The base implementation of `_.matches` which does not clone `source`. * - * @static - * @memberOf _ - * @category Objects - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if the `value` is a string, else `false`. - * @example + * @private + * @param {Object} source The object of property values to match. + * @returns {Function} Returns the new function. + */ + function baseMatches(source) { + var matchData = getMatchData(source); + if (matchData.length == 1 && matchData[0][2]) { + var key = matchData[0][0], + value = matchData[0][1]; + + return function(object) { + if (object == null) { + return false; + } + object = toObject(object); + return object[key] === value && (value !== undefined || (key in object)); + }; + } + return function(object) { + return baseIsMatch(object, matchData); + }; + } + + /** + * The base implementation of `_.matchesProperty` which does not clone `srcValue`. * - * _.isString('fred'); - * // => true + * @private + * @param {string} path The path of the property to get. + * @param {*} srcValue The value to compare. + * @returns {Function} Returns the new function. */ - function isString(value) { - return typeof value == 'string' || - value && typeof value == 'object' && toString.call(value) == stringClass || false; + function baseMatchesProperty(path, srcValue) { + var isArr = isArray(path), + isCommon = isKey(path) && isStrictComparable(srcValue), + pathKey = (path + ''); + + path = toPath(path); + return function(object) { + if (object == null) { + return false; + } + var key = pathKey; + object = toObject(object); + if ((isArr || !isCommon) && !(key in object)) { + object = path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1)); + if (object == null) { + return false; + } + key = last(path); + object = toObject(object); + } + return object[key] === srcValue + ? (srcValue !== undefined || (key in object)) + : baseIsEqual(srcValue, object[key], undefined, true); + }; } /** - * Recursively merges own enumerable properties of the source object(s), that - * don't resolve to `undefined` into the destination object. Subsequent sources - * will overwrite property assignments of previous sources. If a callback is - * provided it will be executed to produce the merged values of the destination - * and source properties. If the callback returns `undefined` merging will - * be handled by the method instead. The callback is bound to `thisArg` and - * invoked with two arguments; (objectValue, sourceValue). + * The base implementation of `_.merge` without support for argument juggling, + * multiple sources, and `this` binding `customizer` functions. * - * @static - * @memberOf _ - * @category Objects + * @private * @param {Object} object The destination object. - * @param {...Object} [source] The source objects. - * @param {Function} [callback] The function to customize merging properties. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {Object} Returns the destination object. - * @example - * - * var names = { - * 'characters': [ - * { 'name': 'barney' }, - * { 'name': 'fred' } - * ] - * }; - * - * var ages = { - * 'characters': [ - * { 'age': 36 }, - * { 'age': 40 } - * ] - * }; - * - * _.merge(names, ages); - * // => { 'characters': [{ 'name': 'barney', 'age': 36 }, { 'name': 'fred', 'age': 40 }] } - * - * var food = { - * 'fruits': ['apple'], - * 'vegetables': ['beet'] - * }; - * - * var otherFood = { - * 'fruits': ['banana'], - * 'vegetables': ['carrot'] - * }; - * - * _.merge(food, otherFood, function(a, b) { - * return _.isArray(a) ? a.concat(b) : undefined; - * }); - * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot] } + * @param {Object} source The source object. + * @param {Function} [customizer] The function to customize merging properties. + * @param {Array} [stackA=[]] Tracks traversed source objects. + * @param {Array} [stackB=[]] Associates values with source counterparts. + * @returns {Object} Returns `object`. */ - function merge(object) { - var args = arguments, - length = 2; - + function baseMerge(object, source, customizer, stackA, stackB) { if (!isObject(object)) { return object; } + var isSrcArr = isArrayLike(source) && (isArray(source) || isTypedArray(source)), + props = isSrcArr ? null : keys(source); - // allows working with `_.reduce` and `_.reduceRight` without using - // their `index` and `collection` arguments - if (typeof args[2] != 'number') { - length = args.length; - } - if (length > 3 && typeof args[length - 2] == 'function') { - var callback = baseCreateCallback(args[--length - 1], args[length--], 2); - } else if (length > 2 && typeof args[length - 1] == 'function') { - callback = args[--length]; - } - var sources = slice(arguments, 1, length), - index = -1, - stackA = getArray(), - stackB = getArray(); + arrayEach(props || source, function(srcValue, key) { + if (props) { + key = srcValue; + srcValue = source[key]; + } + if (isObjectLike(srcValue)) { + stackA || (stackA = []); + stackB || (stackB = []); + baseMergeDeep(object, source, key, baseMerge, customizer, stackA, stackB); + } + else { + var value = object[key], + result = customizer ? customizer(value, srcValue, key, object, source) : undefined, + isCommon = result === undefined; - while (++index < length) { - baseMerge(object, sources[index], callback, stackA, stackB); - } - releaseArray(stackA); - releaseArray(stackB); + if (isCommon) { + result = srcValue; + } + if ((result !== undefined || (isSrcArr && !(key in object))) && + (isCommon || (result === result ? (result !== value) : (value === value)))) { + object[key] = result; + } + } + }); return object; } /** - * Creates a shallow clone of `object` excluding the specified properties. - * Property names may be specified as individual arguments or as arrays of - * property names. If a callback is provided it will be executed for each - * property of `object` omitting the properties the callback returns truey - * for. The callback is bound to `thisArg` and invoked with three arguments; - * (value, key, object). - * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The source object. - * @param {Function|...string|string[]} [callback] The properties to omit or the - * function called per iteration. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {Object} Returns an object without the omitted properties. - * @example + * A specialized version of `baseMerge` for arrays and objects which performs + * deep merges and tracks traversed objects enabling objects with circular + * references to be merged. * - * _.omit({ 'name': 'fred', 'age': 40 }, 'age'); - * // => { 'name': 'fred' } - * - * _.omit({ 'name': 'fred', 'age': 40 }, function(value) { - * return typeof value == 'number'; - * }); - * // => { 'name': 'fred' } + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @param {string} key The key of the value to merge. + * @param {Function} mergeFunc The function to merge values. + * @param {Function} [customizer] The function to customize merging properties. + * @param {Array} [stackA=[]] Tracks traversed source objects. + * @param {Array} [stackB=[]] Associates values with source counterparts. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ - function omit(object, callback, thisArg) { - var result = {}; - if (typeof callback != 'function') { - var props = []; - forIn(object, function(value, key) { - props.push(key); - }); - props = baseDifference(props, baseFlatten(arguments, true, false, 1)); + function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stackB) { + var length = stackA.length, + srcValue = source[key]; - var index = -1, - length = props.length; + while (length--) { + if (stackA[length] == srcValue) { + object[key] = stackB[length]; + return; + } + } + var value = object[key], + result = customizer ? customizer(value, srcValue, key, object, source) : undefined, + isCommon = result === undefined; - while (++index < length) { - var key = props[index]; - result[key] = object[key]; + if (isCommon) { + result = srcValue; + if (isArrayLike(srcValue) && (isArray(srcValue) || isTypedArray(srcValue))) { + result = isArray(value) + ? value + : (isArrayLike(value) ? arrayCopy(value) : []); + } + else if (isPlainObject(srcValue) || isArguments(srcValue)) { + result = isArguments(value) + ? toPlainObject(value) + : (isPlainObject(value) ? value : {}); + } + else { + isCommon = false; } - } else { - callback = lodash.createCallback(callback, thisArg, 3); - forIn(object, function(value, key, object) { - if (!callback(value, key, object)) { - result[key] = value; - } - }); } - return result; + // Add the source value to the stack of traversed objects and associate + // it with its merged value. + stackA.push(srcValue); + stackB.push(result); + + if (isCommon) { + // Recursively merge objects and arrays (susceptible to call stack limits). + object[key] = mergeFunc(result, srcValue, customizer, stackA, stackB); + } else if (result === result ? (result !== value) : (value === value)) { + object[key] = result; + } } /** - * Creates a two dimensional array of an object's key-value pairs, - * i.e. `[[key1, value1], [key2, value2]]`. + * The base implementation of `_.property` without support for deep paths. * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The object to inspect. - * @returns {Array} Returns new array of key-value pairs. - * @example + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new function. + */ + function baseProperty(key) { + return function(object) { + return object == null ? undefined : toObject(object)[key]; + }; + } + + /** + * A specialized version of `baseProperty` which supports deep paths. * - * _.pairs({ 'barney': 36, 'fred': 40 }); - * // => [['barney', 36], ['fred', 40]] (property order is not guaranteed across environments) + * @private + * @param {Array|string} path The path of the property to get. + * @returns {Function} Returns the new function. */ - function pairs(object) { - var index = -1, - props = keys(object), - length = props.length, - result = Array(length); + function basePropertyDeep(path) { + var pathKey = (path + ''); + path = toPath(path); + return function(object) { + return baseGet(object, path, pathKey); + }; + } - while (++index < length) { - var key = props[index]; - result[index] = [key, object[key]]; - } - return result; + /** + * The base implementation of `_.reduce` and `_.reduceRight` without support + * for callback shorthands and `this` binding, which iterates over `collection` + * using the provided `eachFunc`. + * + * @private + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {*} accumulator The initial value. + * @param {boolean} initFromCollection Specify using the first or last element + * of `collection` as the initial value. + * @param {Function} eachFunc The function to iterate over `collection`. + * @returns {*} Returns the accumulated value. + */ + function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) { + eachFunc(collection, function(value, index, collection) { + accumulator = initFromCollection + ? (initFromCollection = false, value) + : iteratee(accumulator, value, index, collection); + }); + return accumulator; } /** - * Creates an array composed of the own enumerable property values of `object`. + * The base implementation of `setData` without support for hot loop detection. * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The object to inspect. - * @returns {Array} Returns an array of property values. - * @example + * @private + * @param {Function} func The function to associate metadata with. + * @param {*} data The metadata. + * @returns {Function} Returns `func`. + */ + var baseSetData = !metaMap ? identity : function(func, data) { + metaMap.set(func, data); + return func; + }; + + /** + * The base implementation of `_.slice` without an iteratee call guard. * - * _.values({ 'one': 1, 'two': 2, 'three': 3 }); - * // => [1, 2, 3] (property order is not guaranteed across environments) + * @private + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. */ - function values(object) { + function baseSlice(array, start, end) { var index = -1, - props = keys(object), - length = props.length, - result = Array(length); + length = array.length; + + start = start == null ? 0 : (+start || 0); + if (start < 0) { + start = -start > length ? 0 : (length + start); + } + end = (end === undefined || end > length) ? length : (+end || 0); + if (end < 0) { + end += length; + } + length = start > end ? 0 : ((end - start) >>> 0); + start >>>= 0; + var result = Array(length); while (++index < length) { - result[index] = object[props[index]]; + result[index] = array[index + start]; } return result; } - /*--------------------------------------------------------------------------*/ - /** - * Checks if a given value is present in a collection using strict equality - * for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the - * offset from the end of the collection. + * The base implementation of `_.some` without support for callback shorthands + * and `this` binding. * - * @static - * @memberOf _ - * @alias include - * @category Collections + * @private * @param {Array|Object|string} collection The collection to iterate over. - * @param {*} target The value to check for. - * @param {number} [fromIndex=0] The index to search from. - * @returns {boolean} Returns `true` if the `target` element is found, else `false`. - * @example - * - * _.contains([1, 2, 3], 1); - * // => true - * - * _.contains([1, 2, 3], 1, 2); - * // => false - * - * _.contains({ 'name': 'fred', 'age': 40 }, 'fred'); - * // => true - * - * _.contains('pebbles', 'eb'); - * // => true + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ + function baseSome(collection, predicate) { + var result; + + baseEach(collection, function(value, index, collection) { + result = predicate(value, index, collection); + return !result; + }); + return !!result; + } + + /** + * The base implementation of `_.uniq` without support for callback shorthands + * and `this` binding. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The function invoked per iteration. + * @returns {Array} Returns the new duplicate-value-free array. */ - function contains(collection, target, fromIndex) { + function baseUniq(array, iteratee) { var index = -1, indexOf = getIndexOf(), - length = collection ? collection.length : 0, - result = false; - - fromIndex = (fromIndex < 0 ? nativeMax(0, length + fromIndex) : fromIndex) || 0; - if (isArray(collection)) { - result = indexOf(collection, target, fromIndex) > -1; - } else if (typeof length == 'number') { - result = (isString(collection) ? collection.indexOf(target, fromIndex) : indexOf(collection, target, fromIndex)) > -1; + length = array.length, + isCommon = indexOf == baseIndexOf, + isLarge = isCommon && length >= 200, + seen = isLarge ? createCache() : null, + result = []; + + if (seen) { + indexOf = cacheIndexOf; + isCommon = false; } else { - baseEach(collection, function(value) { - if (++index >= fromIndex) { - return !(result = value === target); + isLarge = false; + seen = iteratee ? [] : result; + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee ? iteratee(value, index, array) : value; + + if (isCommon && value === value) { + var seenIndex = seen.length; + while (seenIndex--) { + if (seen[seenIndex] === computed) { + continue outer; + } } - }); + if (iteratee) { + seen.push(computed); + } + result.push(value); + } + else if (indexOf(seen, computed, 0) < 0) { + if (iteratee || isLarge) { + seen.push(computed); + } + result.push(value); + } } return result; } /** - * Checks if the given callback returns truey value for **all** elements of - * a collection. The callback is bound to `thisArg` and invoked with three - * arguments; (value, index|key, collection). + * The base implementation of `_.values` and `_.valuesIn` which creates an + * array of `object` property values corresponding to the property names + * of `props`. * - * If a property name is provided for `callback` the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is provided for `callback` the created "_.where" style callback - * will return `true` for elements that have the properties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias all - * @category Collections - * @param {Array|Object|string} collection The collection to iterate over. - * @param {Function|Object|string} [callback=identity] The function called - * per iteration. If a property name or object is provided it will be used - * to create a "_.pluck" or "_.where" style callback, respectively. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {boolean} Returns `true` if all elements passed the callback check, - * else `false`. - * @example - * - * _.every([true, 1, null, 'yes']); - * // => false - * - * var characters = [ - * { 'name': 'barney', 'age': 36 }, - * { 'name': 'fred', 'age': 40 } - * ]; - * - * // using "_.pluck" callback shorthand - * _.every(characters, 'age'); - * // => true - * - * // using "_.where" callback shorthand - * _.every(characters, { 'age': 36 }); - * // => false + * @private + * @param {Object} object The object to query. + * @param {Array} props The property names to get values for. + * @returns {Object} Returns the array of property values. */ - function every(collection, callback, thisArg) { - var result = true; - callback = lodash.createCallback(callback, thisArg, 3); - - if (isArray(collection)) { - var index = -1, - length = collection.length; + function baseValues(object, props) { + var index = -1, + length = props.length, + result = Array(length); - while (++index < length) { - if (!(result = !!callback(collection[index], index, collection))) { - break; - } - } - } else { - baseEach(collection, function(value, index, collection) { - return (result = !!callback(value, index, collection)); - }); + while (++index < length) { + result[index] = object[props[index]]; } return result; } /** - * Iterates over elements of a collection, returning an array of all elements - * the callback returns truey for. The callback is bound to `thisArg` and - * invoked with three arguments; (value, index|key, collection). - * - * If a property name is provided for `callback` the created "_.pluck" style - * callback will return the property value of the given element. + * The base implementation of `wrapperValue` which returns the result of + * performing a sequence of actions on the unwrapped `value`, where each + * successive action is supplied the return value of the previous. * - * If an object is provided for `callback` the created "_.where" style callback - * will return `true` for elements that have the properties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias select - * @category Collections - * @param {Array|Object|string} collection The collection to iterate over. - * @param {Function|Object|string} [callback=identity] The function called - * per iteration. If a property name or object is provided it will be used - * to create a "_.pluck" or "_.where" style callback, respectively. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {Array} Returns a new array of elements that passed the callback check. - * @example - * - * var evens = _.filter([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; }); - * // => [2, 4, 6] - * - * var characters = [ - * { 'name': 'barney', 'age': 36, 'blocked': false }, - * { 'name': 'fred', 'age': 40, 'blocked': true } - * ]; - * - * // using "_.pluck" callback shorthand - * _.filter(characters, 'blocked'); - * // => [{ 'name': 'fred', 'age': 40, 'blocked': true }] - * - * // using "_.where" callback shorthand - * _.filter(characters, { 'age': 36 }); - * // => [{ 'name': 'barney', 'age': 36, 'blocked': false }] + * @private + * @param {*} value The unwrapped value. + * @param {Array} actions Actions to peform to resolve the unwrapped value. + * @returns {*} Returns the resolved value. */ - function filter(collection, callback, thisArg) { - var result = []; - callback = lodash.createCallback(callback, thisArg, 3); + function baseWrapperValue(value, actions) { + var result = value; + if (result instanceof LazyWrapper) { + result = result.value(); + } + var index = -1, + length = actions.length; - if (isArray(collection)) { - var index = -1, - length = collection.length; + while (++index < length) { + var args = [result], + action = actions[index]; - while (++index < length) { - var value = collection[index]; - if (callback(value, index, collection)) { - result.push(value); - } - } - } else { - baseEach(collection, function(value, index, collection) { - if (callback(value, index, collection)) { - result.push(value); - } - }); + push.apply(args, action.args); + result = action.func.apply(action.thisArg, args); } return result; } /** - * Iterates over elements of a collection, returning the first element that - * the callback returns truey for. The callback is bound to `thisArg` and - * invoked with three arguments; (value, index|key, collection). - * - * If a property name is provided for `callback` the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is provided for `callback` the created "_.where" style callback - * will return `true` for elements that have the properties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias detect, findWhere - * @category Collections - * @param {Array|Object|string} collection The collection to iterate over. - * @param {Function|Object|string} [callback=identity] The function called - * per iteration. If a property name or object is provided it will be used - * to create a "_.pluck" or "_.where" style callback, respectively. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {*} Returns the found element, else `undefined`. - * @example - * - * var characters = [ - * { 'name': 'barney', 'age': 36, 'blocked': false }, - * { 'name': 'fred', 'age': 40, 'blocked': true }, - * { 'name': 'pebbles', 'age': 1, 'blocked': false } - * ]; + * Performs a binary search of `array` to determine the index at which `value` + * should be inserted into `array` in order to maintain its sort order. * - * _.find(characters, function(chr) { - * return chr.age < 40; - * }); - * // => { 'name': 'barney', 'age': 36, 'blocked': false } - * - * // using "_.where" callback shorthand - * _.find(characters, { 'age': 1 }); - * // => { 'name': 'pebbles', 'age': 1, 'blocked': false } - * - * // using "_.pluck" callback shorthand - * _.find(characters, 'blocked'); - * // => { 'name': 'fred', 'age': 40, 'blocked': true } + * @private + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @param {boolean} [retHighest] Specify returning the highest qualified index. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. */ - function find(collection, callback, thisArg) { - callback = lodash.createCallback(callback, thisArg, 3); + function binaryIndex(array, value, retHighest) { + var low = 0, + high = array ? array.length : low; - if (isArray(collection)) { - var index = -1, - length = collection.length; + if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) { + while (low < high) { + var mid = (low + high) >>> 1, + computed = array[mid]; - while (++index < length) { - var value = collection[index]; - if (callback(value, index, collection)) { - return value; + if ((retHighest ? (computed <= value) : (computed < value)) && computed !== null) { + low = mid + 1; + } else { + high = mid; } } - } else { - var result; - baseEach(collection, function(value, index, collection) { - if (callback(value, index, collection)) { - result = value; - return false; - } - }); - return result; + return high; } + return binaryIndexBy(array, value, identity, retHighest); } /** - * Iterates over elements of a collection, executing the callback for each - * element. The callback is bound to `thisArg` and invoked with three arguments; - * (value, index|key, collection). Callbacks may exit iteration early by - * explicitly returning `false`. - * - * Note: As with other "Collections" methods, objects with a `length` property - * are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn` - * may be used for object iteration. - * - * @static - * @memberOf _ - * @alias each - * @category Collections - * @param {Array|Object|string} collection The collection to iterate over. - * @param {Function} [callback=identity] The function called per iteration. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {Array|Object|string} Returns `collection`. - * @example - * - * _([1, 2, 3]).forEach(function(num) { console.log(num); }).join(','); - * // => logs each number and returns '1,2,3' + * This function is like `binaryIndex` except that it invokes `iteratee` for + * `value` and each element of `array` to compute their sort ranking. The + * iteratee is invoked with one argument; (value). * - * _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, function(num) { console.log(num); }); - * // => logs each number and returns the object (property order is not guaranteed across environments) + * @private + * @param {Array} array The sorted array to inspect. + * @param {*} value The value to evaluate. + * @param {Function} iteratee The function invoked per iteration. + * @param {boolean} [retHighest] Specify returning the highest qualified index. + * @returns {number} Returns the index at which `value` should be inserted + * into `array`. */ - function forEach(collection, callback, thisArg) { - if (callback && typeof thisArg == 'undefined' && isArray(collection)) { - var index = -1, - length = collection.length; + function binaryIndexBy(array, value, iteratee, retHighest) { + value = iteratee(value); - while (++index < length) { - if (callback(collection[index], index, collection) === false) { - break; - } + var low = 0, + high = array ? array.length : 0, + valIsNaN = value !== value, + valIsNull = value === null, + valIsUndef = value === undefined; + + while (low < high) { + var mid = floor((low + high) / 2), + computed = iteratee(array[mid]), + isDef = computed !== undefined, + isReflexive = computed === computed; + + if (valIsNaN) { + var setLow = isReflexive || retHighest; + } else if (valIsNull) { + setLow = isReflexive && isDef && (retHighest || computed != null); + } else if (valIsUndef) { + setLow = isReflexive && (retHighest || isDef); + } else if (computed == null) { + setLow = false; + } else { + setLow = retHighest ? (computed <= value) : (computed < value); + } + if (setLow) { + low = mid + 1; + } else { + high = mid; } - } else { - baseEach(collection, callback, thisArg); } - return collection; + return nativeMin(high, MAX_ARRAY_INDEX); } /** - * Creates an object composed of keys generated from the results of running - * each element of a collection through the callback. The corresponding value - * of each key is an array of the elements responsible for generating the key. - * The callback is bound to `thisArg` and invoked with three arguments; - * (value, index|key, collection). + * A specialized version of `baseCallback` which only supports `this` binding + * and specifying the number of arguments to provide to `func`. * - * If a property name is provided for `callback` the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is provided for `callback` the created "_.where" style callback - * will return `true` for elements that have the properties of the given object, - * else `false` - * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|string} collection The collection to iterate over. - * @param {Function|Object|string} [callback=identity] The function called - * per iteration. If a property name or object is provided it will be used - * to create a "_.pluck" or "_.where" style callback, respectively. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {Object} Returns the composed aggregate object. - * @example - * - * _.groupBy([4.2, 6.1, 6.4], function(num) { return Math.floor(num); }); - * // => { '4': [4.2], '6': [6.1, 6.4] } - * - * _.groupBy([4.2, 6.1, 6.4], function(num) { return this.floor(num); }, Math); - * // => { '4': [4.2], '6': [6.1, 6.4] } - * - * // using "_.pluck" callback shorthand - * _.groupBy(['one', 'two', 'three'], 'length'); - * // => { '3': ['one', 'two'], '5': ['three'] } + * @private + * @param {Function} func The function to bind. + * @param {*} thisArg The `this` binding of `func`. + * @param {number} [argCount] The number of arguments to provide to `func`. + * @returns {Function} Returns the callback. */ - var groupBy = createAggregator(function(result, value, key) { - (hasOwnProperty.call(result, key) ? result[key] : result[key] = []).push(value); - }); + function bindCallback(func, thisArg, argCount) { + if (typeof func != 'function') { + return identity; + } + if (thisArg === undefined) { + return func; + } + switch (argCount) { + case 1: return function(value) { + return func.call(thisArg, value); + }; + case 3: return function(value, index, collection) { + return func.call(thisArg, value, index, collection); + }; + case 4: return function(accumulator, value, index, collection) { + return func.call(thisArg, accumulator, value, index, collection); + }; + case 5: return function(value, other, key, object, source) { + return func.call(thisArg, value, other, key, object, source); + }; + } + return function() { + return func.apply(thisArg, arguments); + }; + } /** - * Creates an array of values by running each element in the collection - * through the callback. The callback is bound to `thisArg` and invoked with - * three arguments; (value, index|key, collection). - * - * If a property name is provided for `callback` the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is provided for `callback` the created "_.where" style callback - * will return `true` for elements that have the properties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias collect - * @category Collections - * @param {Array|Object|string} collection The collection to iterate over. - * @param {Function|Object|string} [callback=identity] The function called - * per iteration. If a property name or object is provided it will be used - * to create a "_.pluck" or "_.where" style callback, respectively. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {Array} Returns a new array of the results of each `callback` execution. - * @example - * - * _.map([1, 2, 3], function(num) { return num * 3; }); - * // => [3, 6, 9] - * - * _.map({ 'one': 1, 'two': 2, 'three': 3 }, function(num) { return num * 3; }); - * // => [3, 6, 9] (property order is not guaranteed across environments) + * Creates a clone of the given array buffer. * - * var characters = [ - * { 'name': 'barney', 'age': 36 }, - * { 'name': 'fred', 'age': 40 } - * ]; + * @private + * @param {ArrayBuffer} buffer The array buffer to clone. + * @returns {ArrayBuffer} Returns the cloned array buffer. + */ + function bufferClone(buffer) { + return bufferSlice.call(buffer, 0); + } + if (!bufferSlice) { + // PhantomJS has `ArrayBuffer` and `Uint8Array` but not `Float64Array`. + bufferClone = !(ArrayBuffer && Uint8Array) ? constant(null) : function(buffer) { + var byteLength = buffer.byteLength, + floatLength = Float64Array ? floor(byteLength / FLOAT64_BYTES_PER_ELEMENT) : 0, + offset = floatLength * FLOAT64_BYTES_PER_ELEMENT, + result = new ArrayBuffer(byteLength); + + if (floatLength) { + var view = new Float64Array(result, 0, floatLength); + view.set(new Float64Array(buffer, 0, floatLength)); + } + if (byteLength != offset) { + view = new Uint8Array(result, offset); + view.set(new Uint8Array(buffer, offset)); + } + return result; + }; + } + + /** + * Creates an array that is the composition of partially applied arguments, + * placeholders, and provided arguments into a single array of arguments. * - * // using "_.pluck" callback shorthand - * _.map(characters, 'name'); - * // => ['barney', 'fred'] + * @private + * @param {Array|Object} args The provided arguments. + * @param {Array} partials The arguments to prepend to those provided. + * @param {Array} holders The `partials` placeholder indexes. + * @returns {Array} Returns the new array of composed arguments. */ - function map(collection, callback, thisArg) { - var index = -1, - length = collection ? collection.length : 0, - result = Array(typeof length == 'number' ? length : 0); + function composeArgs(args, partials, holders) { + var holdersLength = holders.length, + argsIndex = -1, + argsLength = nativeMax(args.length - holdersLength, 0), + leftIndex = -1, + leftLength = partials.length, + result = Array(argsLength + leftLength); - callback = lodash.createCallback(callback, thisArg, 3); - if (isArray(collection)) { - while (++index < length) { - result[index] = callback(collection[index], index, collection); - } - } else { - baseEach(collection, function(value, key, collection) { - result[++index] = callback(value, key, collection); - }); + while (++leftIndex < leftLength) { + result[leftIndex] = partials[leftIndex]; + } + while (++argsIndex < holdersLength) { + result[holders[argsIndex]] = args[argsIndex]; + } + while (argsLength--) { + result[leftIndex++] = args[argsIndex++]; } return result; } /** - * Retrieves the value of a specified property from all elements in the collection. - * - * @static - * @memberOf _ - * @type Function - * @category Collections - * @param {Array|Object|string} collection The collection to iterate over. - * @param {string} property The property to pluck. - * @returns {Array} Returns a new array of property values. - * @example - * - * var characters = [ - * { 'name': 'barney', 'age': 36 }, - * { 'name': 'fred', 'age': 40 } - * ]; + * This function is like `composeArgs` except that the arguments composition + * is tailored for `_.partialRight`. * - * _.pluck(characters, 'name'); - * // => ['barney', 'fred'] + * @private + * @param {Array|Object} args The provided arguments. + * @param {Array} partials The arguments to append to those provided. + * @param {Array} holders The `partials` placeholder indexes. + * @returns {Array} Returns the new array of composed arguments. */ - var pluck = map; + function composeArgsRight(args, partials, holders) { + var holdersIndex = -1, + holdersLength = holders.length, + argsIndex = -1, + argsLength = nativeMax(args.length - holdersLength, 0), + rightIndex = -1, + rightLength = partials.length, + result = Array(argsLength + rightLength); + + while (++argsIndex < argsLength) { + result[argsIndex] = args[argsIndex]; + } + var offset = argsIndex; + while (++rightIndex < rightLength) { + result[offset + rightIndex] = partials[rightIndex]; + } + while (++holdersIndex < holdersLength) { + result[offset + holders[holdersIndex]] = args[argsIndex++]; + } + return result; + } /** - * The opposite of `_.filter` this method returns the elements of a - * collection that the callback does **not** return truey for. - * - * If a property name is provided for `callback` the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is provided for `callback` the created "_.where" style callback - * will return `true` for elements that have the properties of the given object, - * else `false`. + * Creates a function that aggregates a collection, creating an accumulator + * object composed from the results of running each element in the collection + * through an iteratee. * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|string} collection The collection to iterate over. - * @param {Function|Object|string} [callback=identity] The function called - * per iteration. If a property name or object is provided it will be used - * to create a "_.pluck" or "_.where" style callback, respectively. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {Array} Returns a new array of elements that failed the callback check. - * @example + * **Note:** This function is used to create `_.countBy`, `_.groupBy`, `_.indexBy`, + * and `_.partition`. * - * var odds = _.reject([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; }); - * // => [1, 3, 5] - * - * var characters = [ - * { 'name': 'barney', 'age': 36, 'blocked': false }, - * { 'name': 'fred', 'age': 40, 'blocked': true } - * ]; + * @private + * @param {Function} setter The function to set keys and values of the accumulator object. + * @param {Function} [initializer] The function to initialize the accumulator object. + * @returns {Function} Returns the new aggregator function. + */ + function createAggregator(setter, initializer) { + return function(collection, iteratee, thisArg) { + var result = initializer ? initializer() : {}; + iteratee = getCallback(iteratee, thisArg, 3); + + if (isArray(collection)) { + var index = -1, + length = collection.length; + + while (++index < length) { + var value = collection[index]; + setter(result, value, iteratee(value, index, collection), collection); + } + } else { + baseEach(collection, function(value, key, collection) { + setter(result, value, iteratee(value, key, collection), collection); + }); + } + return result; + }; + } + + /** + * Creates a function that assigns properties of source object(s) to a given + * destination object. * - * // using "_.pluck" callback shorthand - * _.reject(characters, 'blocked'); - * // => [{ 'name': 'barney', 'age': 36, 'blocked': false }] + * **Note:** This function is used to create `_.assign`, `_.defaults`, and `_.merge`. * - * // using "_.where" callback shorthand - * _.reject(characters, { 'age': 36 }); - * // => [{ 'name': 'fred', 'age': 40, 'blocked': true }] + * @private + * @param {Function} assigner The function to assign values. + * @returns {Function} Returns the new assigner function. */ - function reject(collection, callback, thisArg) { - callback = lodash.createCallback(callback, thisArg, 3); - return filter(collection, function(value, index, collection) { - return !callback(value, index, collection); + function createAssigner(assigner) { + return restParam(function(object, sources) { + var index = -1, + length = object == null ? 0 : sources.length, + customizer = length > 2 ? sources[length - 2] : undefined, + guard = length > 2 ? sources[2] : undefined, + thisArg = length > 1 ? sources[length - 1] : undefined; + + if (typeof customizer == 'function') { + customizer = bindCallback(customizer, thisArg, 5); + length -= 2; + } else { + customizer = typeof thisArg == 'function' ? thisArg : undefined; + length -= (customizer ? 1 : 0); + } + if (guard && isIterateeCall(sources[0], sources[1], guard)) { + customizer = length < 3 ? undefined : customizer; + length = 1; + } + while (++index < length) { + var source = sources[index]; + if (source) { + assigner(object, source, customizer); + } + } + return object; }); } /** - * Checks if the callback returns a truey value for **any** element of a - * collection. The function returns as soon as it finds a passing value and - * does not iterate over the entire collection. The callback is bound to - * `thisArg` and invoked with three arguments; (value, index|key, collection). - * - * If a property name is provided for `callback` the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is provided for `callback` the created "_.where" style callback - * will return `true` for elements that have the properties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias any - * @category Collections - * @param {Array|Object|string} collection The collection to iterate over. - * @param {Function|Object|string} [callback=identity] The function called - * per iteration. If a property name or object is provided it will be used - * to create a "_.pluck" or "_.where" style callback, respectively. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {boolean} Returns `true` if any element passed the callback check, - * else `false`. - * @example - * - * _.some([null, 0, 'yes', false], Boolean); - * // => true - * - * var characters = [ - * { 'name': 'barney', 'age': 36, 'blocked': false }, - * { 'name': 'fred', 'age': 40, 'blocked': true } - * ]; - * - * // using "_.pluck" callback shorthand - * _.some(characters, 'blocked'); - * // => true + * Creates a `baseEach` or `baseEachRight` function. * - * // using "_.where" callback shorthand - * _.some(characters, { 'age': 1 }); - * // => false + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. */ - function some(collection, callback, thisArg) { - var result; - callback = lodash.createCallback(callback, thisArg, 3); - - if (isArray(collection)) { - var index = -1, - length = collection.length; + function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + var length = collection ? getLength(collection) : 0; + if (!isLength(length)) { + return eachFunc(collection, iteratee); + } + var index = fromRight ? length : -1, + iterable = toObject(collection); - while (++index < length) { - if ((result = callback(collection[index], index, collection))) { + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { break; } } - } else { - baseEach(collection, function(value, index, collection) { - return !(result = callback(value, index, collection)); - }); - } - return !!result; + return collection; + }; } - /*--------------------------------------------------------------------------*/ - /** - * Creates an array with all falsey values removed. The values `false`, `null`, - * `0`, `""`, `undefined`, and `NaN` are all falsey. + * Creates a base function for `_.forIn` or `_.forInRight`. * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to compact. - * @returns {Array} Returns a new array of filtered values. - * @example + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ + function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var iterable = toObject(object), + props = keysFunc(object), + length = props.length, + index = fromRight ? length : -1; + + while ((fromRight ? index-- : ++index < length)) { + var key = props[index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; + } + + /** + * Creates a function that wraps `func` and invokes it with the `this` + * binding of `thisArg`. * - * _.compact([0, 1, false, 2, '', 3]); - * // => [1, 2, 3] + * @private + * @param {Function} func The function to bind. + * @param {*} [thisArg] The `this` binding of `func`. + * @returns {Function} Returns the new bound function. */ - function compact(array) { - var index = -1, - length = array ? array.length : 0, - result = []; + function createBindWrapper(func, thisArg) { + var Ctor = createCtorWrapper(func); - while (++index < length) { - var value = array[index]; - if (value) { - result.push(value); - } + function wrapper() { + var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; + return fn.apply(thisArg, arguments); } - return result; + return wrapper; } /** - * Creates an array excluding all values of the provided arrays using strict - * equality for comparisons, i.e. `===`. + * Creates a `Set` cache object to optimize linear searches of large arrays. * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to process. - * @param {...Array} [values] The arrays of values to exclude. - * @returns {Array} Returns a new array of filtered values. - * @example + * @private + * @param {Array} [values] The values to cache. + * @returns {null|Object} Returns the new cache object if `Set` is supported, else `null`. + */ + var createCache = !(nativeCreate && Set) ? constant(null) : function(values) { + return new SetCache(values); + }; + + /** + * Creates a function that produces an instance of `Ctor` regardless of + * whether it was invoked as part of a `new` expression or by `call` or `apply`. * - * _.difference([1, 2, 3, 4, 5], [5, 2, 10]); - * // => [1, 3, 4] + * @private + * @param {Function} Ctor The constructor to wrap. + * @returns {Function} Returns the new wrapped function. */ - function difference(array) { - return baseDifference(array, baseFlatten(arguments, true, true, 1)); + function createCtorWrapper(Ctor) { + return function() { + // Use a `switch` statement to work with class constructors. + // See https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-function-objects-call-thisargument-argumentslist + // for more details. + var args = arguments; + switch (args.length) { + case 0: return new Ctor; + case 1: return new Ctor(args[0]); + case 2: return new Ctor(args[0], args[1]); + case 3: return new Ctor(args[0], args[1], args[2]); + case 4: return new Ctor(args[0], args[1], args[2], args[3]); + case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]); + } + var thisBinding = baseCreate(Ctor.prototype), + result = Ctor.apply(thisBinding, args); + + // Mimic the constructor's `return` behavior. + // See https://es5.github.io/#x13.2.2 for more details. + return isObject(result) ? result : thisBinding; + }; } /** - * Gets the first element or first `n` elements of an array. If a callback - * is provided elements at the beginning of the array are returned as long - * as the callback returns truey. The callback is bound to `thisArg` and - * invoked with three arguments; (value, index, array). - * - * If a property name is provided for `callback` the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is provided for `callback` the created "_.where" style callback - * will return `true` for elements that have the properties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias head, take - * @category Arrays - * @param {Array} array The array to query. - * @param {Function|Object|number|string} [callback] The function called - * per element or the number of elements to return. If a property name or - * object is provided it will be used to create a "_.pluck" or "_.where" - * style callback, respectively. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {*} Returns the first element(s) of `array`. - * @example - * - * _.first([1, 2, 3]); - * // => 1 + * Creates a `_.find` or `_.findLast` function. * - * _.first([1, 2, 3], 2); - * // => [1, 2] + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new find function. + */ + function createFind(eachFunc, fromRight) { + return function(collection, predicate, thisArg) { + predicate = getCallback(predicate, thisArg, 3); + if (isArray(collection)) { + var index = baseFindIndex(collection, predicate, fromRight); + return index > -1 ? collection[index] : undefined; + } + return baseFind(collection, predicate, eachFunc); + }; + } + + /** + * Creates a function for `_.forEach` or `_.forEachRight`. * - * _.first([1, 2, 3], function(num) { - * return num < 3; - * }); - * // => [1, 2] + * @private + * @param {Function} arrayFunc The function to iterate over an array. + * @param {Function} eachFunc The function to iterate over a collection. + * @returns {Function} Returns the new each function. + */ + function createForEach(arrayFunc, eachFunc) { + return function(collection, iteratee, thisArg) { + return (typeof iteratee == 'function' && thisArg === undefined && isArray(collection)) + ? arrayFunc(collection, iteratee) + : eachFunc(collection, bindCallback(iteratee, thisArg, 3)); + }; + } + + /** + * Creates a function for `_.forOwn` or `_.forOwnRight`. * - * var characters = [ - * { 'name': 'barney', 'blocked': true, 'employer': 'slate' }, - * { 'name': 'fred', 'blocked': false, 'employer': 'slate' }, - * { 'name': 'pebbles', 'blocked': true, 'employer': 'na' } - * ]; + * @private + * @param {Function} objectFunc The function to iterate over an object. + * @returns {Function} Returns the new each function. + */ + function createForOwn(objectFunc) { + return function(object, iteratee, thisArg) { + if (typeof iteratee != 'function' || thisArg !== undefined) { + iteratee = bindCallback(iteratee, thisArg, 3); + } + return objectFunc(object, iteratee); + }; + } + + /** + * Creates a function for `_.reduce` or `_.reduceRight`. * - * // using "_.pluck" callback shorthand - * _.first(characters, 'blocked'); - * // => [{ 'name': 'barney', 'blocked': true, 'employer': 'slate' }] + * @private + * @param {Function} arrayFunc The function to iterate over an array. + * @param {Function} eachFunc The function to iterate over a collection. + * @returns {Function} Returns the new each function. + */ + function createReduce(arrayFunc, eachFunc) { + return function(collection, iteratee, accumulator, thisArg) { + var initFromArray = arguments.length < 3; + return (typeof iteratee == 'function' && thisArg === undefined && isArray(collection)) + ? arrayFunc(collection, iteratee, accumulator, initFromArray) + : baseReduce(collection, getCallback(iteratee, thisArg, 4), accumulator, initFromArray, eachFunc); + }; + } + + /** + * Creates a function that wraps `func` and invokes it with optional `this` + * binding of, partial application, and currying. * - * // using "_.where" callback shorthand - * _.pluck(_.first(characters, { 'employer': 'slate' }), 'name'); - * // => ['barney', 'fred'] + * @private + * @param {Function|string} func The function or method name to reference. + * @param {number} bitmask The bitmask of flags. See `createWrapper` for more details. + * @param {*} [thisArg] The `this` binding of `func`. + * @param {Array} [partials] The arguments to prepend to those provided to the new function. + * @param {Array} [holders] The `partials` placeholder indexes. + * @param {Array} [partialsRight] The arguments to append to those provided to the new function. + * @param {Array} [holdersRight] The `partialsRight` placeholder indexes. + * @param {Array} [argPos] The argument positions of the new function. + * @param {number} [ary] The arity cap of `func`. + * @param {number} [arity] The arity of `func`. + * @returns {Function} Returns the new wrapped function. */ - function first(array, callback, thisArg) { - var n = 0, - length = array ? array.length : 0; + function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) { + var isAry = bitmask & ARY_FLAG, + isBind = bitmask & BIND_FLAG, + isBindKey = bitmask & BIND_KEY_FLAG, + isCurry = bitmask & CURRY_FLAG, + isCurryBound = bitmask & CURRY_BOUND_FLAG, + isCurryRight = bitmask & CURRY_RIGHT_FLAG, + Ctor = isBindKey ? null : createCtorWrapper(func); + + function wrapper() { + // Avoid `arguments` object use disqualifying optimizations by + // converting it to an array before providing it to other functions. + var length = arguments.length, + index = length, + args = Array(length); + + while (index--) { + args[index] = arguments[index]; + } + if (partials) { + args = composeArgs(args, partials, holders); + } + if (partialsRight) { + args = composeArgsRight(args, partialsRight, holdersRight); + } + if (isCurry || isCurryRight) { + var placeholder = wrapper.placeholder, + argsHolders = replaceHolders(args, placeholder); + + length -= argsHolders.length; + if (length < arity) { + var newArgPos = argPos ? arrayCopy(argPos) : null, + newArity = nativeMax(arity - length, 0), + newsHolders = isCurry ? argsHolders : null, + newHoldersRight = isCurry ? null : argsHolders, + newPartials = isCurry ? args : null, + newPartialsRight = isCurry ? null : args; + + bitmask |= (isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG); + bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG); + + if (!isCurryBound) { + bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG); + } + var newData = [func, bitmask, thisArg, newPartials, newsHolders, newPartialsRight, newHoldersRight, newArgPos, ary, newArity], + result = createHybridWrapper.apply(undefined, newData); - if (typeof callback != 'number' && callback != null) { - var index = -1; - callback = lodash.createCallback(callback, thisArg, 3); - while (++index < length && callback(array[index], index, array)) { - n++; + if (isLaziable(func)) { + setData(result, newData); + } + result.placeholder = placeholder; + return result; + } } - } else { - n = callback; - if (n == null || thisArg) { - return array ? array[0] : undefined; + var thisBinding = isBind ? thisArg : this, + fn = isBindKey ? thisBinding[func] : func; + + if (argPos) { + args = reorder(args, argPos); } + if (isAry && ary < args.length) { + args.length = ary; + } + if (this && this !== root && this instanceof wrapper) { + fn = Ctor || createCtorWrapper(func); + } + return fn.apply(thisBinding, args); } - return slice(array, 0, nativeMin(nativeMax(0, n), length)); + return wrapper; } /** - * Flattens a nested array (the nesting can be to any depth). If `isShallow` - * is truey, the array will only be flattened a single level. If a callback - * is provided each element of the array is passed through the callback before - * flattening. The callback is bound to `thisArg` and invoked with three - * arguments; (value, index, array). - * - * If a property name is provided for `callback` the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is provided for `callback` the created "_.where" style callback - * will return `true` for elements that have the properties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to flatten. - * @param {boolean} [isShallow=false] A flag to restrict flattening to a single level. - * @param {Function|Object|string} [callback=identity] The function called - * per iteration. If a property name or object is provided it will be used - * to create a "_.pluck" or "_.where" style callback, respectively. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {Array} Returns a new flattened array. - * @example - * - * _.flatten([1, [2], [3, [[4]]]]); - * // => [1, 2, 3, 4]; - * - * _.flatten([1, [2], [3, [[4]]]], true); - * // => [1, 2, 3, [[4]]]; - * - * var characters = [ - * { 'name': 'barney', 'age': 30, 'pets': ['hoppy'] }, - * { 'name': 'fred', 'age': 40, 'pets': ['baby puss', 'dino'] } - * ]; + * Creates a function that wraps `func` and invokes it with the optional `this` + * binding of `thisArg` and the `partials` prepended to those provided to + * the wrapper. * - * // using "_.pluck" callback shorthand - * _.flatten(characters, 'pets'); - * // => ['hoppy', 'baby puss', 'dino'] + * @private + * @param {Function} func The function to partially apply arguments to. + * @param {number} bitmask The bitmask of flags. See `createWrapper` for more details. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} partials The arguments to prepend to those provided to the new function. + * @returns {Function} Returns the new bound function. */ - function flatten(array, isShallow, callback, thisArg) { - // juggle arguments - if (typeof isShallow != 'boolean' && isShallow != null) { - thisArg = callback; - callback = (typeof isShallow != 'function' && thisArg && thisArg[isShallow] === array) ? null : isShallow; - isShallow = false; - } - if (callback != null) { - array = map(array, callback, thisArg); + function createPartialWrapper(func, bitmask, thisArg, partials) { + var isBind = bitmask & BIND_FLAG, + Ctor = createCtorWrapper(func); + + function wrapper() { + // Avoid `arguments` object use disqualifying optimizations by + // converting it to an array before providing it `func`. + var argsIndex = -1, + argsLength = arguments.length, + leftIndex = -1, + leftLength = partials.length, + args = Array(argsLength + leftLength); + + while (++leftIndex < leftLength) { + args[leftIndex] = partials[leftIndex]; + } + while (argsLength--) { + args[leftIndex++] = arguments[++argsIndex]; + } + var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; + return fn.apply(isBind ? thisArg : this, args); } - return baseFlatten(array, isShallow); + return wrapper; } /** - * Gets the index at which the first occurrence of `value` is found using - * strict equality for comparisons, i.e. `===`. If the array is already sorted - * providing `true` for `fromIndex` will run a faster binary search. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to search. - * @param {*} value The value to search for. - * @param {boolean|number} [fromIndex=0] The index to search from or `true` - * to perform a binary search on a sorted array. - * @returns {number} Returns the index of the matched value or `-1`. - * @example - * - * _.indexOf([1, 2, 3, 1, 2, 3], 2); - * // => 1 + * Creates a function that either curries or invokes `func` with optional + * `this` binding and partially applied arguments. * - * _.indexOf([1, 2, 3, 1, 2, 3], 2, 3); - * // => 4 - * - * _.indexOf([1, 1, 2, 2, 3, 3], 2, true); - * // => 2 + * @private + * @param {Function|string} func The function or method name to reference. + * @param {number} bitmask The bitmask of flags. + * The bitmask may be composed of the following flags: + * 1 - `_.bind` + * 2 - `_.bindKey` + * 4 - `_.curry` or `_.curryRight` of a bound function + * 8 - `_.curry` + * 16 - `_.curryRight` + * 32 - `_.partial` + * 64 - `_.partialRight` + * 128 - `_.rearg` + * 256 - `_.ary` + * @param {*} [thisArg] The `this` binding of `func`. + * @param {Array} [partials] The arguments to be partially applied. + * @param {Array} [holders] The `partials` placeholder indexes. + * @param {Array} [argPos] The argument positions of the new function. + * @param {number} [ary] The arity cap of `func`. + * @param {number} [arity] The arity of `func`. + * @returns {Function} Returns the new wrapped function. */ - function indexOf(array, value, fromIndex) { - if (typeof fromIndex == 'number') { - var length = array ? array.length : 0; - fromIndex = (fromIndex < 0 ? nativeMax(0, length + fromIndex) : fromIndex || 0); - } else if (fromIndex) { - var index = sortedIndex(array, value); - return array[index] === value ? index : -1; + function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) { + var isBindKey = bitmask & BIND_KEY_FLAG; + if (!isBindKey && typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + var length = partials ? partials.length : 0; + if (!length) { + bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG); + partials = holders = null; + } + length -= (holders ? holders.length : 0); + if (bitmask & PARTIAL_RIGHT_FLAG) { + var partialsRight = partials, + holdersRight = holders; + + partials = holders = null; + } + var data = isBindKey ? null : getData(func), + newData = [func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity]; + + if (data) { + mergeData(newData, data); + bitmask = newData[1]; + arity = newData[9]; + } + newData[9] = arity == null + ? (isBindKey ? 0 : func.length) + : (nativeMax(arity - length, 0) || 0); + + if (bitmask == BIND_FLAG) { + var result = createBindWrapper(newData[0], newData[2]); + } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !newData[4].length) { + result = createPartialWrapper.apply(undefined, newData); + } else { + result = createHybridWrapper.apply(undefined, newData); } - return baseIndexOf(array, value, fromIndex); + var setter = data ? baseSetData : setData; + return setter(result, newData); } /** - * Creates an array of unique values present in all provided arrays using - * strict equality for comparisons, i.e. `===`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {...Array} [array] The arrays to inspect. - * @returns {Array} Returns an array of composite values. - * @example + * A specialized version of `baseIsEqualDeep` for arrays with support for + * partial deep comparisons. * - * _.intersection([1, 2, 3], [101, 2, 1, 10], [2, 1]); - * // => [1, 2] + * @private + * @param {Array} array The array to compare. + * @param {Array} other The other array to compare. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Function} [customizer] The function to customize comparing arrays. + * @param {boolean} [isLoose] Specify performing partial comparisons. + * @param {Array} [stackA] Tracks traversed `value` objects. + * @param {Array} [stackB] Tracks traversed `other` objects. + * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. */ - function intersection(array) { - var args = arguments, - argsLength = args.length, - argsIndex = -1, - caches = getArray(), - index = -1, - indexOf = getIndexOf(), - length = array ? array.length : 0, - result = [], - seen = getArray(); + function equalArrays(array, other, equalFunc, customizer, isLoose, stackA, stackB) { + var index = -1, + arrLength = array.length, + othLength = other.length; - while (++argsIndex < argsLength) { - var value = args[argsIndex]; - caches[argsIndex] = indexOf === baseIndexOf && - (value ? value.length : 0) >= largeArraySize && - createCache(argsIndex ? args[argsIndex] : seen); + if (arrLength != othLength && !(isLoose && othLength > arrLength)) { + return false; } - outer: - while (++index < length) { - var cache = caches[0]; - value = array[index]; + // Ignore non-index properties. + while (++index < arrLength) { + var arrValue = array[index], + othValue = other[index], + result = customizer ? customizer(isLoose ? othValue : arrValue, isLoose ? arrValue : othValue, index) : undefined; - if ((cache ? cacheIndexOf(cache, value) : indexOf(seen, value)) < 0) { - argsIndex = argsLength; - (cache || seen).push(value); - while (--argsIndex) { - cache = caches[argsIndex]; - if ((cache ? cacheIndexOf(cache, value) : indexOf(args[argsIndex], value)) < 0) { - continue outer; - } + if (result !== undefined) { + if (result) { + continue; } - result.push(value); + return false; } - } - while (argsLength--) { - cache = caches[argsLength]; - if (cache) { - releaseObject(cache); + // Recursively compare arrays (susceptible to call stack limits). + if (isLoose) { + if (!arraySome(other, function(othValue) { + return arrValue === othValue || equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB); + })) { + return false; + } + } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB))) { + return false; } } - releaseArray(caches); - releaseArray(seen); - return result; + return true; } /** - * Gets the last element or last `n` elements of an array. If a callback is - * provided elements at the end of the array are returned as long as the - * callback returns truey. The callback is bound to `thisArg` and invoked - * with three arguments; (value, index, array). - * - * If a property name is provided for `callback` the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is provided for `callback` the created "_.where" style callback - * will return `true` for elements that have the properties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to query. - * @param {Function|Object|number|string} [callback] The function called - * per element or the number of elements to return. If a property name or - * object is provided it will be used to create a "_.pluck" or "_.where" - * style callback, respectively. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {*} Returns the last element(s) of `array`. - * @example - * - * _.last([1, 2, 3]); - * // => 3 - * - * _.last([1, 2, 3], 2); - * // => [2, 3] - * - * _.last([1, 2, 3], function(num) { - * return num > 1; - * }); - * // => [2, 3] + * A specialized version of `baseIsEqualDeep` for comparing objects of + * the same `toStringTag`. * - * var characters = [ - * { 'name': 'barney', 'blocked': false, 'employer': 'slate' }, - * { 'name': 'fred', 'blocked': true, 'employer': 'slate' }, - * { 'name': 'pebbles', 'blocked': true, 'employer': 'na' } - * ]; + * **Note:** This function only supports comparing values with tags of + * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. * - * // using "_.pluck" callback shorthand - * _.pluck(_.last(characters, 'blocked'), 'name'); - * // => ['fred', 'pebbles'] + * @private + * @param {Object} value The object to compare. + * @param {Object} other The other object to compare. + * @param {string} tag The `toStringTag` of the objects to compare. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ + function equalByTag(object, other, tag) { + switch (tag) { + case boolTag: + case dateTag: + // Coerce dates and booleans to numbers, dates to milliseconds and booleans + // to `1` or `0` treating invalid dates coerced to `NaN` as not equal. + return +object == +other; + + case errorTag: + return object.name == other.name && object.message == other.message; + + case numberTag: + // Treat `NaN` vs. `NaN` as equal. + return (object != +object) + ? other != +other + : object == +other; + + case regexpTag: + case stringTag: + // Coerce regexes to strings and treat strings primitives and string + // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details. + return object == (other + ''); + } + return false; + } + + /** + * A specialized version of `baseIsEqualDeep` for objects with support for + * partial deep comparisons. * - * // using "_.where" callback shorthand - * _.last(characters, { 'employer': 'na' }); - * // => [{ 'name': 'pebbles', 'blocked': true, 'employer': 'na' }] + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Function} [customizer] The function to customize comparing values. + * @param {boolean} [isLoose] Specify performing partial comparisons. + * @param {Array} [stackA] Tracks traversed `value` objects. + * @param {Array} [stackB] Tracks traversed `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ - function last(array, callback, thisArg) { - var n = 0, - length = array ? array.length : 0; + function equalObjects(object, other, equalFunc, customizer, isLoose, stackA, stackB) { + var objProps = keys(object), + objLength = objProps.length, + othProps = keys(other), + othLength = othProps.length; - if (typeof callback != 'number' && callback != null) { - var index = length; - callback = lodash.createCallback(callback, thisArg, 3); - while (index-- && callback(array[index], index, array)) { - n++; + if (objLength != othLength && !isLoose) { + return false; + } + var index = objLength; + while (index--) { + var key = objProps[index]; + if (!(isLoose ? key in other : hasOwnProperty.call(other, key))) { + return false; } - } else { - n = callback; - if (n == null || thisArg) { - return array ? array[length - 1] : undefined; + } + var skipCtor = isLoose; + while (++index < objLength) { + key = objProps[index]; + var objValue = object[key], + othValue = other[key], + result = customizer ? customizer(isLoose ? othValue : objValue, isLoose? objValue : othValue, key) : undefined; + + // Recursively compare objects (susceptible to call stack limits). + if (!(result === undefined ? equalFunc(objValue, othValue, customizer, isLoose, stackA, stackB) : result)) { + return false; + } + skipCtor || (skipCtor = key == 'constructor'); + } + if (!skipCtor) { + var objCtor = object.constructor, + othCtor = other.constructor; + + // Non `Object` object instances with different constructors are not equal. + if (objCtor != othCtor && + ('constructor' in object && 'constructor' in other) && + !(typeof objCtor == 'function' && objCtor instanceof objCtor && + typeof othCtor == 'function' && othCtor instanceof othCtor)) { + return false; } } - return slice(array, nativeMax(0, length - n)); + return true; } /** - * Uses a binary search to determine the smallest index at which a value - * should be inserted into a given sorted array in order to maintain the sort - * order of the array. If a callback is provided it will be executed for - * `value` and each element of `array` to compute their sort ranking. The - * callback is bound to `thisArg` and invoked with one argument; (value). + * Gets the appropriate "callback" function. If the `_.callback` method is + * customized this function returns the custom method, otherwise it returns + * the `baseCallback` function. If arguments are provided the chosen function + * is invoked with them and its result is returned. * - * If a property name is provided for `callback` the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is provided for `callback` the created "_.where" style callback - * will return `true` for elements that have the properties of the given object, - * else `false`. + * @private + * @returns {Function} Returns the chosen function or its result. + */ + function getCallback(func, thisArg, argCount) { + var result = lodash.callback || callback; + result = result === callback ? baseCallback : result; + return argCount ? result(func, thisArg, argCount) : result; + } + + /** + * Gets metadata for `func`. * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to inspect. - * @param {*} value The value to evaluate. - * @param {Function|Object|string} [callback=identity] The function called - * per iteration. If a property name or object is provided it will be used - * to create a "_.pluck" or "_.where" style callback, respectively. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {number} Returns the index at which `value` should be inserted - * into `array`. - * @example - * - * _.sortedIndex([20, 30, 50], 40); - * // => 2 + * @private + * @param {Function} func The function to query. + * @returns {*} Returns the metadata for `func`. + */ + var getData = !metaMap ? noop : function(func) { + return metaMap.get(func); + }; + + /** + * Gets the name of `func`. * - * // using "_.pluck" callback shorthand - * _.sortedIndex([{ 'x': 20 }, { 'x': 30 }, { 'x': 50 }], { 'x': 40 }, 'x'); - * // => 2 + * @private + * @param {Function} func The function to query. + * @returns {string} Returns the function name. + */ + function getFuncName(func) { + var result = func.name, + array = realNames[result], + length = array ? array.length : 0; + + while (length--) { + var data = array[length], + otherFunc = data.func; + if (otherFunc == null || otherFunc == func) { + return data.name; + } + } + return result; + } + + /** + * Gets the appropriate "indexOf" function. If the `_.indexOf` method is + * customized this function returns the custom method, otherwise it returns + * the `baseIndexOf` function. If arguments are provided the chosen function + * is invoked with them and its result is returned. * - * var dict = { - * 'wordToNumber': { 'twenty': 20, 'thirty': 30, 'fourty': 40, 'fifty': 50 } - * }; + * @private + * @returns {Function|number} Returns the chosen function or its result. + */ + function getIndexOf(collection, target, fromIndex) { + var result = lodash.indexOf || indexOf; + result = result === indexOf ? baseIndexOf : result; + return collection ? result(collection, target, fromIndex) : result; + } + + /** + * Gets the "length" property value of `object`. * - * _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) { - * return dict.wordToNumber[word]; - * }); - * // => 2 + * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) + * that affects Safari on at least iOS 8.1-8.3 ARM64. * - * _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) { - * return this.wordToNumber[word]; - * }, dict); - * // => 2 + * @private + * @param {Object} object The object to query. + * @returns {*} Returns the "length" value. */ - function sortedIndex(array, value, callback, thisArg) { - var low = 0, - high = array ? array.length : low; + var getLength = baseProperty('length'); - // explicitly reference `identity` for better inlining in Firefox - callback = callback ? lodash.createCallback(callback, thisArg, 1) : identity; - value = callback(value); + /** + * Gets the propery names, values, and compare flags of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the match data of `object`. + */ + function getMatchData(object) { + var result = pairs(object), + length = result.length; - while (low < high) { - var mid = (low + high) >>> 1; - (callback(array[mid]) < value) - ? low = mid + 1 - : high = mid; + while (length--) { + result[length][2] = isStrictComparable(result[length][1]); } - return low; + return result; } /** - * Creates an array of unique values, in order, of the provided arrays using - * strict equality for comparisons, i.e. `===`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {...Array} [array] The arrays to inspect. - * @returns {Array} Returns an array of composite values. - * @example + * Gets the native function at `key` of `object`. * - * _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]); - * // => [1, 2, 3, 101, 10] + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. */ - function union(array) { - return baseUniq(baseFlatten(arguments, true, true)); + function getNative(object, key) { + var value = object == null ? undefined : object[key]; + return isNative(value) ? value : undefined; } /** - * Creates a duplicate-value-free version of an array using strict equality - * for comparisons, i.e. `===`. If the array is sorted, providing - * `true` for `isSorted` will use a faster algorithm. If a callback is provided - * each element of `array` is passed through the callback before uniqueness - * is computed. The callback is bound to `thisArg` and invoked with three - * arguments; (value, index, array). + * Gets the view, applying any `transforms` to the `start` and `end` positions. * - * If a property name is provided for `callback` the created "_.pluck" style - * callback will return the property value of the given element. + * @private + * @param {number} start The start of the view. + * @param {number} end The end of the view. + * @param {Array} [transforms] The transformations to apply to the view. + * @returns {Object} Returns an object containing the `start` and `end` + * positions of the view. + */ + function getView(start, end, transforms) { + var index = -1, + length = transforms ? transforms.length : 0; + + while (++index < length) { + var data = transforms[index], + size = data.size; + + switch (data.type) { + case 'drop': start += size; break; + case 'dropRight': end -= size; break; + case 'take': end = nativeMin(end, start + size); break; + case 'takeRight': start = nativeMax(start, end - size); break; + } + } + return { 'start': start, 'end': end }; + } + + /** + * Initializes an array clone. * - * If an object is provided for `callback` the created "_.where" style callback - * will return `true` for elements that have the properties of the given object, - * else `false`. + * @private + * @param {Array} array The array to clone. + * @returns {Array} Returns the initialized clone. + */ + function initCloneArray(array) { + var length = array.length, + result = new array.constructor(length); + + // Add array properties assigned by `RegExp#exec`. + if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { + result.index = array.index; + result.input = array.input; + } + return result; + } + + /** + * Initializes an object clone. * - * @static - * @memberOf _ - * @alias unique - * @category Arrays - * @param {Array} array The array to process. - * @param {boolean} [isSorted=false] A flag to indicate that `array` is sorted. - * @param {Function|Object|string} [callback=identity] The function called - * per iteration. If a property name or object is provided it will be used - * to create a "_.pluck" or "_.where" style callback, respectively. - * @param {*} [thisArg] The `this` binding of `callback`. - * @returns {Array} Returns a duplicate-value-free array. - * @example + * @private + * @param {Object} object The object to clone. + * @returns {Object} Returns the initialized clone. + */ + function initCloneObject(object) { + var Ctor = object.constructor; + if (!(typeof Ctor == 'function' && Ctor instanceof Ctor)) { + Ctor = Object; + } + return new Ctor; + } + + /** + * Initializes an object clone based on its `toStringTag`. * - * _.uniq([1, 2, 1, 3, 1]); - * // => [1, 2, 3] + * **Note:** This function only supports cloning values with tags of + * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. * - * _.uniq([1, 1, 2, 2, 3], true); - * // => [1, 2, 3] + * @private + * @param {Object} object The object to clone. + * @param {string} tag The `toStringTag` of the object to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the initialized clone. + */ + function initCloneByTag(object, tag, isDeep) { + var Ctor = object.constructor; + switch (tag) { + case arrayBufferTag: + return bufferClone(object); + + case boolTag: + case dateTag: + return new Ctor(+object); + + case float32Tag: case float64Tag: + case int8Tag: case int16Tag: case int32Tag: + case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: + // Safari 5 mobile incorrectly has `Object` as the constructor of typed arrays. + if (Ctor instanceof Ctor) { + Ctor = ctorByTag[tag]; + } + var buffer = object.buffer; + return new Ctor(isDeep ? bufferClone(buffer) : buffer, object.byteOffset, object.length); + + case numberTag: + case stringTag: + return new Ctor(object); + + case regexpTag: + var result = new Ctor(object.source, reFlags.exec(object)); + result.lastIndex = object.lastIndex; + } + return result; + } + + /** + * Checks if `value` is array-like. * - * _.uniq(['A', 'b', 'C', 'a', 'B', 'c'], function(letter) { return letter.toLowerCase(); }); - * // => ['A', 'b', 'C'] + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + */ + function isArrayLike(value) { + return value != null && isLength(getLength(value)); + } + + /** + * Checks if `value` is a valid array-like index. * - * _.uniq([1, 2.5, 3, 1.5, 2, 3.5], function(num) { return this.floor(num); }, Math); - * // => [1, 2.5, 3] + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */ + function isIndex(value, length) { + value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1; + length = length == null ? MAX_SAFE_INTEGER : length; + return value > -1 && value % 1 == 0 && value < length; + } + + /** + * Checks if the provided arguments are from an iteratee call. * - * // using "_.pluck" callback shorthand - * _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x'); - * // => [{ 'x': 1 }, { 'x': 2 }] + * @private + * @param {*} value The potential iteratee value argument. + * @param {*} index The potential iteratee index or key argument. + * @param {*} object The potential iteratee object argument. + * @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`. */ - function uniq(array, isSorted, callback, thisArg) { - // juggle arguments - if (typeof isSorted != 'boolean' && isSorted != null) { - thisArg = callback; - callback = (typeof isSorted != 'function' && thisArg && thisArg[isSorted] === array) ? null : isSorted; - isSorted = false; + function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; } - if (callback != null) { - callback = lodash.createCallback(callback, thisArg, 3); + var type = typeof index; + if (type == 'number' + ? (isArrayLike(object) && isIndex(index, object.length)) + : (type == 'string' && index in object)) { + var other = object[index]; + return value === value ? (value === other) : (other !== other); } - return baseUniq(array, isSorted, callback); + return false; } /** - * Creates an array excluding all provided values using strict equality for - * comparisons, i.e. `===`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to filter. - * @param {...*} [value] The values to exclude. - * @returns {Array} Returns a new array of filtered values. - * @example + * Checks if `value` is a property name and not a property path. * - * _.without([1, 2, 1, 0, 3, 1, 4], 0, 1); - * // => [2, 3, 4] + * @private + * @param {*} value The value to check. + * @param {Object} [object] The object to query keys on. + * @returns {boolean} Returns `true` if `value` is a property name, else `false`. */ - function without(array) { - return baseDifference(array, slice(arguments, 1)); + function isKey(value, object) { + var type = typeof value; + if ((type == 'string' && reIsPlainProp.test(value)) || type == 'number') { + return true; + } + if (isArray(value)) { + return false; + } + var result = !reIsDeepProp.test(value); + return result || (object != null && value in toObject(object)); } - /*--------------------------------------------------------------------------*/ - /** - * Creates a function that, when called, invokes `func` with the `this` - * binding of `thisArg` and prepends any additional `bind` arguments to those - * provided to the bound function. + * Checks if `func` has a lazy counterpart. * - * @static - * @memberOf _ - * @category Functions - * @param {Function} func The function to bind. - * @param {*} [thisArg] The `this` binding of `func`. - * @param {...*} [arg] Arguments to be partially applied. - * @returns {Function} Returns the new bound function. - * @example + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` has a lazy counterpart, else `false`. + */ + function isLaziable(func) { + var funcName = getFuncName(func); + if (!(funcName in LazyWrapper.prototype)) { + return false; + } + var other = lodash[funcName]; + if (func === other) { + return true; + } + var data = getData(other); + return !!data && func === data[0]; + } + + /** + * Checks if `value` is a valid array-like length. * - * var func = function(greeting) { - * return greeting + ' ' + this.name; - * }; + * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength). * - * func = _.bind(func, { 'name': 'fred' }, 'hi'); - * func(); - * // => 'hi fred' + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. */ - function bind(func, thisArg) { - return arguments.length > 2 - ? createWrapper(func, 17, slice(arguments, 2), null, thisArg) - : createWrapper(func, 1, null, null, thisArg); + function isLength(value) { + return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } /** - * Produces a callback bound to an optional `thisArg`. If `func` is a property - * name the created callback will return the property value for a given element. - * If `func` is an object the created callback will return `true` for elements - * that contain the equivalent object properties, otherwise it will return `false`. - * - * @static - * @memberOf _ - * @category Functions - * @param {*} [func=identity] The value to convert to a callback. - * @param {*} [thisArg] The `this` binding of the created callback. - * @param {number} [argCount] The number of arguments the callback accepts. - * @returns {Function} Returns a callback function. - * @example + * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. * - * var characters = [ - * { 'name': 'barney', 'age': 36 }, - * { 'name': 'fred', 'age': 40 } - * ]; + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` if suitable for strict + * equality comparisons, else `false`. + */ + function isStrictComparable(value) { + return value === value && !isObject(value); + } + + /** + * Merges the function metadata of `source` into `data`. * - * // wrap to create custom callback shorthands - * _.createCallback = _.wrap(_.createCallback, function(func, callback, thisArg) { - * var match = /^(.+?)__([gl]t)(.+)$/.exec(callback); - * return !match ? func(callback, thisArg) : function(object) { - * return match[2] == 'gt' ? object[match[1]] > match[3] : object[match[1]] < match[3]; - * }; - * }); + * Merging metadata reduces the number of wrappers required to invoke a function. + * This is possible because methods like `_.bind`, `_.curry`, and `_.partial` + * may be applied regardless of execution order. Methods like `_.ary` and `_.rearg` + * augment function arguments, making the order in which they are executed important, + * preventing the merging of metadata. However, we make an exception for a safe + * common case where curried functions have `_.ary` and or `_.rearg` applied. * - * _.filter(characters, 'age__gt38'); - * // => [{ 'name': 'fred', 'age': 40 }] + * @private + * @param {Array} data The destination metadata. + * @param {Array} source The source metadata. + * @returns {Array} Returns `data`. */ - function createCallback(func, thisArg, argCount) { - var type = typeof func; - if (func == null || type == 'function') { - return baseCreateCallback(func, thisArg, argCount); + function mergeData(data, source) { + var bitmask = data[1], + srcBitmask = source[1], + newBitmask = bitmask | srcBitmask, + isCommon = newBitmask < ARY_FLAG; + + var isCombo = + (srcBitmask == ARY_FLAG && bitmask == CURRY_FLAG) || + (srcBitmask == ARY_FLAG && bitmask == REARG_FLAG && data[7].length <= source[8]) || + (srcBitmask == (ARY_FLAG | REARG_FLAG) && bitmask == CURRY_FLAG); + + // Exit early if metadata can't be merged. + if (!(isCommon || isCombo)) { + return data; + } + // Use source `thisArg` if available. + if (srcBitmask & BIND_FLAG) { + data[2] = source[2]; + // Set when currying a bound function. + newBitmask |= (bitmask & BIND_FLAG) ? 0 : CURRY_BOUND_FLAG; + } + // Compose partial arguments. + var value = source[3]; + if (value) { + var partials = data[3]; + data[3] = partials ? composeArgs(partials, value, source[4]) : arrayCopy(value); + data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : arrayCopy(source[4]); } - // handle "_.pluck" style callback shorthands - if (type != 'object') { - return function(object) { - return object[func]; - }; + // Compose partial right arguments. + value = source[5]; + if (value) { + partials = data[5]; + data[5] = partials ? composeArgsRight(partials, value, source[6]) : arrayCopy(value); + data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : arrayCopy(source[6]); } - var props = keys(func), - key = props[0], - a = func[key]; - - // handle "_.where" style callback shorthands - if (props.length == 1 && a === a && !isObject(a)) { - // fast path the common case of providing an object with a single - // property containing a primitive value - return function(object) { - var b = object[key]; - return a === b && (a !== 0 || (1 / a == 1 / b)); - }; + // Use source `argPos` if available. + value = source[7]; + if (value) { + data[7] = arrayCopy(value); } - return function(object) { - var length = props.length, - result = false; + // Use source `ary` if it's smaller. + if (srcBitmask & ARY_FLAG) { + data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); + } + // Use source `arity` if one is not provided. + if (data[9] == null) { + data[9] = source[9]; + } + // Use source `func` and merge bitmasks. + data[0] = source[0]; + data[1] = newBitmask; - while (length--) { - if (!(result = baseIsEqual(object[props[length]], func[props[length]], null, true))) { - break; - } - } - return result; - }; + return data; } /** - * Creates a function that will delay the execution of `func` until after - * `wait` milliseconds have elapsed since the last time it was invoked. - * Provide an options object to indicate that `func` should be invoked on - * the leading and/or trailing edge of the `wait` timeout. Subsequent calls - * to the debounced function will return the result of the last `func` call. + * A specialized version of `_.pick` which picks `object` properties specified + * by `props`. * - * Note: If `leading` and `trailing` options are `true` `func` will be called - * on the trailing edge of the timeout only if the the debounced function is - * invoked more than once during the `wait` timeout. + * @private + * @param {Object} object The source object. + * @param {string[]} props The property names to pick. + * @returns {Object} Returns the new object. + */ + function pickByArray(object, props) { + object = toObject(object); + + var index = -1, + length = props.length, + result = {}; + + while (++index < length) { + var key = props[index]; + if (key in object) { + result[key] = object[key]; + } + } + return result; + } + + /** + * A specialized version of `_.pick` which picks `object` properties `predicate` + * returns truthy for. * - * @static - * @memberOf _ - * @category Functions - * @param {Function} func The function to debounce. - * @param {number} wait The number of milliseconds to delay. - * @param {Object} [options] The options object. - * @param {boolean} [options.leading=false] Specify execution on the leading edge of the timeout. - * @param {number} [options.maxWait] The maximum time `func` is allowed to be delayed before it's called. - * @param {boolean} [options.trailing=true] Specify execution on the trailing edge of the timeout. - * @returns {Function} Returns the new debounced function. - * @example + * @private + * @param {Object} object The source object. + * @param {Function} predicate The function invoked per iteration. + * @returns {Object} Returns the new object. + */ + function pickByCallback(object, predicate) { + var result = {}; + baseForIn(object, function(value, key, object) { + if (predicate(value, key, object)) { + result[key] = value; + } + }); + return result; + } + + /** + * Reorder `array` according to the specified indexes where the element at + * the first index is assigned as the first element, the element at + * the second index is assigned as the second element, and so on. * - * // avoid costly calculations while the window size is in flux - * var lazyLayout = _.debounce(calculateLayout, 150); - * jQuery(window).on('resize', lazyLayout); + * @private + * @param {Array} array The array to reorder. + * @param {Array} indexes The arranged array indexes. + * @returns {Array} Returns `array`. + */ + function reorder(array, indexes) { + var arrLength = array.length, + length = nativeMin(indexes.length, arrLength), + oldArray = arrayCopy(array); + + while (length--) { + var index = indexes[length]; + array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined; + } + return array; + } + + /** + * Sets metadata for `func`. * - * // execute `sendMail` when the click event is fired, debouncing subsequent calls - * jQuery('#postbox').on('click', _.debounce(sendMail, 300, { - * 'leading': true, - * 'trailing': false - * }); + * **Note:** If this function becomes hot, i.e. is invoked a lot in a short + * period of time, it will trip its breaker and transition to an identity function + * to avoid garbage collection pauses in V8. See [V8 issue 2070](https://code.google.com/p/v8/issues/detail?id=2070) + * for more details. * - * // ensure `batchLog` is executed once after 1 second of debounced calls - * var source = new EventSource('/stream'); - * source.addEventListener('message', _.debounce(batchLog, 250, { - * 'maxWait': 1000 - * }, false); + * @private + * @param {Function} func The function to associate metadata with. + * @param {*} data The metadata. + * @returns {Function} Returns `func`. */ - function debounce(func, wait, options) { - var args, - maxTimeoutId, - result, - stamp, - thisArg, - timeoutId, - trailingCall, - lastCalled = 0, - maxWait = false, - trailing = true; + var setData = (function() { + var count = 0, + lastCalled = 0; - if (!isFunction(func)) { - throw new TypeError; - } - wait = nativeMax(0, wait) || 0; - if (options === true) { - var leading = true; - trailing = false; - } else if (isObject(options)) { - leading = options.leading; - maxWait = 'maxWait' in options && (nativeMax(wait, options.maxWait) || 0); - trailing = 'trailing' in options ? options.trailing : trailing; - } - var delayed = function() { - var remaining = wait - (now() - stamp); - if (remaining <= 0) { - if (maxTimeoutId) { - clearTimeout(maxTimeoutId); - } - var isCalled = trailingCall; - maxTimeoutId = timeoutId = trailingCall = undefined; - if (isCalled) { - lastCalled = now(); - result = func.apply(thisArg, args); - if (!timeoutId && !maxTimeoutId) { - args = thisArg = null; - } + return function(key, value) { + var stamp = now(), + remaining = HOT_SPAN - (stamp - lastCalled); + + lastCalled = stamp; + if (remaining > 0) { + if (++count >= HOT_COUNT) { + return key; } } else { - timeoutId = setTimeout(delayed, remaining); + count = 0; } + return baseSetData(key, value); }; + }()); - var maxDelayed = function() { - if (timeoutId) { - clearTimeout(timeoutId); - } - maxTimeoutId = timeoutId = trailingCall = undefined; - if (trailing || (maxWait !== wait)) { - lastCalled = now(); - result = func.apply(thisArg, args); - if (!timeoutId && !maxTimeoutId) { - args = thisArg = null; - } - } - }; + /** + * A fallback implementation of `_.isPlainObject` which checks if `value` + * is an object created by the `Object` constructor or has a `[[Prototype]]` + * of `null`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. + */ + function shimIsPlainObject(value) { + var Ctor, + support = lodash.support; + + // Exit early for non `Object` objects. + if (!(isObjectLike(value) && objToString.call(value) == objectTag && !isHostObject(value)) || + (!hasOwnProperty.call(value, 'constructor') && + (Ctor = value.constructor, typeof Ctor == 'function' && !(Ctor instanceof Ctor))) || + (!support.argsTag && isArguments(value))) { + return false; + } + // IE < 9 iterates inherited properties before own properties. If the first + // iterated property is an object's own property then there are no inherited + // enumerable properties. + var result; + if (support.ownLast) { + baseForIn(value, function(subValue, key, object) { + result = hasOwnProperty.call(object, key); + return false; + }); + return result !== false; + } + // In most environments an object's own properties are iterated before + // its inherited properties. If the last iterated property is an object's + // own property then there are no inherited enumerable properties. + baseForIn(value, function(subValue, key) { + result = key; + }); + return result === undefined || hasOwnProperty.call(value, result); + } - return function() { - args = arguments; - stamp = now(); - thisArg = this; - trailingCall = trailing && (timeoutId || !leading); + /** + * A fallback implementation of `Object.keys` which creates an array of the + * own enumerable property names of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ + function shimKeys(object) { + var props = keysIn(object), + propsLength = props.length, + length = propsLength && object.length; - if (maxWait === false) { - var leadingCall = leading && !timeoutId; - } else { - if (!maxTimeoutId && !leading) { - lastCalled = stamp; - } - var remaining = maxWait - (stamp - lastCalled), - isCalled = remaining <= 0; + var allowIndexes = !!length && isLength(length) && + (isArray(object) || isArguments(object) || isString(object)); - if (isCalled) { - if (maxTimeoutId) { - maxTimeoutId = clearTimeout(maxTimeoutId); - } - lastCalled = stamp; - result = func.apply(thisArg, args); - } - else if (!maxTimeoutId) { - maxTimeoutId = setTimeout(maxDelayed, remaining); - } - } - if (isCalled && timeoutId) { - timeoutId = clearTimeout(timeoutId); - } - else if (!timeoutId && wait !== maxWait) { - timeoutId = setTimeout(delayed, wait); - } - if (leadingCall) { - isCalled = true; - result = func.apply(thisArg, args); + var index = -1, + result = []; + + while (++index < propsLength) { + var key = props[index]; + if ((allowIndexes && isIndex(key, length)) || hasOwnProperty.call(object, key)) { + result.push(key); } - if (isCalled && !timeoutId && !maxTimeoutId) { - args = thisArg = null; + } + return result; + } + + /** + * Converts `value` to an object if it's not one. + * + * @private + * @param {*} value The value to process. + * @returns {Object} Returns the object. + */ + function toObject(value) { + if (lodash.support.unindexedChars && isString(value)) { + var index = -1, + length = value.length, + result = Object(value); + + while (++index < length) { + result[index] = value.charAt(index); } return result; - }; + } + return isObject(value) ? value : Object(value); } /** - * Creates a function that, when executed, will only call the `func` function - * at most once per every `wait` milliseconds. Provide an options object to - * indicate that `func` should be invoked on the leading and/or trailing edge - * of the `wait` timeout. Subsequent calls to the throttled function will - * return the result of the last `func` call. + * Converts `value` to property path array if it's not one. * - * Note: If `leading` and `trailing` options are `true` `func` will be called - * on the trailing edge of the timeout only if the the throttled function is - * invoked more than once during the `wait` timeout. + * @private + * @param {*} value The value to process. + * @returns {Array} Returns the property path array. + */ + function toPath(value) { + if (isArray(value)) { + return value; + } + var result = []; + baseToString(value).replace(rePropName, function(match, number, quote, string) { + result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); + }); + return result; + } + + /** + * Creates a clone of `wrapper`. + * + * @private + * @param {Object} wrapper The wrapper to clone. + * @returns {Object} Returns the cloned wrapper. + */ + function wrapperClone(wrapper) { + return wrapper instanceof LazyWrapper + ? wrapper.clone() + : new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__, arrayCopy(wrapper.__actions__)); + } + + /*------------------------------------------------------------------------*/ + + /** + * Creates an array of elements split into groups the length of `size`. + * If `collection` can't be split evenly, the final chunk will be the remaining + * elements. * * @static * @memberOf _ - * @category Functions - * @param {Function} func The function to throttle. - * @param {number} wait The number of milliseconds to throttle executions to. - * @param {Object} [options] The options object. - * @param {boolean} [options.leading=true] Specify execution on the leading edge of the timeout. - * @param {boolean} [options.trailing=true] Specify execution on the trailing edge of the timeout. - * @returns {Function} Returns the new throttled function. + * @category Array + * @param {Array} array The array to process. + * @param {number} [size=1] The length of each chunk. + * @param- {Object} [guard] Enables use as a callback for functions like `_.map`. + * @returns {Array} Returns the new array containing chunks. * @example * - * // avoid excessively updating the position while scrolling - * var throttled = _.throttle(updatePosition, 100); - * jQuery(window).on('scroll', throttled); + * _.chunk(['a', 'b', 'c', 'd'], 2); + * // => [['a', 'b'], ['c', 'd']] * - * // execute `renewToken` when the click event is fired, but not more than once every 5 minutes - * jQuery('.interactive').on('click', _.throttle(renewToken, 300000, { - * 'trailing': false - * })); + * _.chunk(['a', 'b', 'c', 'd'], 3); + * // => [['a', 'b', 'c'], ['d']] */ - function throttle(func, wait, options) { - var leading = true, - trailing = true; - - if (!isFunction(func)) { - throw new TypeError; - } - if (options === false) { - leading = false; - } else if (isObject(options)) { - leading = 'leading' in options ? options.leading : leading; - trailing = 'trailing' in options ? options.trailing : trailing; + function chunk(array, size, guard) { + if (guard ? isIterateeCall(array, size, guard) : size == null) { + size = 1; + } else { + size = nativeMax(+size || 1, 1); } - debounceOptions.leading = leading; - debounceOptions.maxWait = wait; - debounceOptions.trailing = trailing; + var index = 0, + length = array ? array.length : 0, + resIndex = -1, + result = Array(ceil(length / size)); - return debounce(func, wait, debounceOptions); + while (index < length) { + result[++resIndex] = baseSlice(array, index, (index += size)); + } + return result; } - /*--------------------------------------------------------------------------*/ - /** - * This method returns the first argument provided to it. + * Creates an array with all falsey values removed. The values `false`, `null`, + * `0`, `""`, `undefined`, and `NaN` are falsey. * * @static * @memberOf _ - * @category Utilities - * @param {*} value Any value. - * @returns {*} Returns `value`. + * @category Array + * @param {Array} array The array to compact. + * @returns {Array} Returns the new array of filtered values. * @example * - * var object = { 'name': 'fred' }; - * _.identity(object) === object; - * // => true + * _.compact([0, 1, false, 2, '', 3]); + * // => [1, 2, 3] */ - function identity(value) { - return value; + function compact(array) { + var index = -1, + length = array ? array.length : 0, + resIndex = -1, + result = []; + + while (++index < length) { + var value = array[index]; + if (value) { + result[++resIndex] = value; + } + } + return result; } /** - * Adds function properties of a source object to the `lodash` function and - * chainable wrapper. + * Creates an array of unique `array` values not included in the other + * provided arrays using [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) + * for equality comparisons. * * @static * @memberOf _ - * @category Utilities - * @param {Object} object The object of function properties to add to `lodash`. - * @param {Object} object The object of function properties to add to `lodash`. + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The arrays of values to exclude. + * @returns {Array} Returns the new array of filtered values. * @example * - * _.mixin({ - * 'capitalize': function(string) { - * return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase(); - * } - * }); - * - * _.capitalize('fred'); - * // => 'Fred' - * - * _('fred').capitalize(); - * // => 'Fred' + * _.difference([1, 2, 3], [4, 2]); + * // => [1, 3] */ - function mixin(object, source) { - var ctor = object, - isFunc = !source || isFunction(ctor); - - if (!source) { - ctor = lodashWrapper; - source = object; - object = lodash; - } - forEach(functions(source), function(methodName) { - var func = object[methodName] = source[methodName]; - if (isFunc) { - ctor.prototype[methodName] = function() { - var value = this.__wrapped__, - args = [value]; - - push.apply(args, arguments); - var result = func.apply(object, args); - if (value && typeof value == 'object' && value === result) { - return this; - } - result = new ctor(result); - result.__chain__ = this.__chain__; - return result; - }; - } - }); - } + var difference = restParam(function(array, values) { + return isArrayLike(array) + ? baseDifference(array, baseFlatten(values, false, true)) + : []; + }); /** - * A no-operation function. + * Gets the first element of `array`. * * @static * @memberOf _ - * @category Utilities + * @alias head + * @category Array + * @param {Array} array The array to query. + * @returns {*} Returns the first element of `array`. * @example * - * var object = { 'name': 'fred' }; - * _.noop(object) === undefined; - * // => true + * _.first([1, 2, 3]); + * // => 1 + * + * _.first([]); + * // => undefined */ - function noop() { - // no operation performed + function first(array) { + return array ? array[0] : undefined; } - /*--------------------------------------------------------------------------*/ - /** - * Creates a `lodash` object that wraps the given value with explicit - * method chaining enabled. + * Flattens a nested array. If `isDeep` is `true` the array is recursively + * flattened, otherwise it is only flattened a single level. * * @static * @memberOf _ - * @category Chaining - * @param {*} value The value to wrap. - * @returns {Object} Returns the wrapper object. + * @category Array + * @param {Array} array The array to flatten. + * @param {boolean} [isDeep] Specify a deep flatten. + * @param- {Object} [guard] Enables use as a callback for functions like `_.map`. + * @returns {Array} Returns the new flattened array. * @example * - * var characters = [ - * { 'name': 'barney', 'age': 36 }, - * { 'name': 'fred', 'age': 40 }, - * { 'name': 'pebbles', 'age': 1 } - * ]; + * _.flatten([1, [2, 3, [4]]]); + * // => [1, 2, 3, [4]] * - * var youngest = _.chain(characters) - * .sortBy('age') - * .map(function(chr) { return chr.name + ' is ' + chr.age; }) - * .first() - * .value(); - * // => 'pebbles is 1' + * // using `isDeep` + * _.flatten([1, [2, 3, [4]]], true); + * // => [1, 2, 3, 4] */ - function chain(value) { - value = new lodashWrapper(value); - value.__chain__ = true; - return value; + function flatten(array, isDeep, guard) { + var length = array ? array.length : 0; + if (guard && isIterateeCall(array, isDeep, guard)) { + isDeep = false; + } + return length ? baseFlatten(array, isDeep) : []; } /** - * Enables explicit method chaining on the wrapper object. + * Gets the index at which the first occurrence of `value` is found in `array` + * using [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) + * for equality comparisons. If `fromIndex` is negative, it is used as the offset + * from the end of `array`. If `array` is sorted providing `true` for `fromIndex` + * performs a faster binary search. * - * @name chain + * @static * @memberOf _ - * @category Chaining - * @returns {*} Returns the wrapper object. + * @category Array + * @param {Array} array The array to search. + * @param {*} value The value to search for. + * @param {boolean|number} [fromIndex=0] The index to search from or `true` + * to perform a binary search on a sorted array. + * @returns {number} Returns the index of the matched value, else `-1`. * @example * - * var characters = [ - * { 'name': 'barney', 'age': 36 }, - * { 'name': 'fred', 'age': 40 } - * ]; + * _.indexOf([1, 2, 1, 2], 2); + * // => 1 * - * // without explicit chaining - * _(characters).first(); - * // => { 'name': 'barney', 'age': 36 } + * // using `fromIndex` + * _.indexOf([1, 2, 1, 2], 2, 2); + * // => 3 * - * // with explicit chaining - * _(characters).chain() - * .first() - * .pick('age') - * .value() - * // => { 'age': 36 } + * // performing a binary search + * _.indexOf([1, 1, 2, 2], 2, true); + * // => 2 */ - function wrapperChain() { - this.__chain__ = true; - return this; + function indexOf(array, value, fromIndex) { + var length = array ? array.length : 0; + if (!length) { + return -1; + } + if (typeof fromIndex == 'number') { + fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : fromIndex; + } else if (fromIndex) { + var index = binaryIndex(array, value), + other = array[index]; + + if (value === value ? (value === other) : (other !== other)) { + return index; + } + return -1; + } + return baseIndexOf(array, value, fromIndex || 0); } /** - * Produces the `toString` result of the wrapped value. + * Creates an array of unique values that are included in all of the provided + * arrays using [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) + * for equality comparisons. * - * @name toString + * @static * @memberOf _ - * @category Chaining - * @returns {string} Returns the string result. + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @returns {Array} Returns the new array of shared values. * @example - * - * _([1, 2, 3]).toString(); - * // => '1,2,3' + * _.intersection([1, 2], [4, 2], [2, 1]); + * // => [2] */ - function wrapperToString() { - return String(this.__wrapped__); - } + var intersection = restParam(function(arrays) { + var othLength = arrays.length, + othIndex = othLength, + caches = Array(length), + indexOf = getIndexOf(), + isCommon = indexOf == baseIndexOf, + result = []; + + while (othIndex--) { + var value = arrays[othIndex] = isArrayLike(value = arrays[othIndex]) ? value : []; + caches[othIndex] = (isCommon && value.length >= 120) ? createCache(othIndex && value) : null; + } + var array = arrays[0], + index = -1, + length = array ? array.length : 0, + seen = caches[0]; + + outer: + while (++index < length) { + value = array[index]; + if ((seen ? cacheIndexOf(seen, value) : indexOf(result, value, 0)) < 0) { + var othIndex = othLength; + while (--othIndex) { + var cache = caches[othIndex]; + if ((cache ? cacheIndexOf(cache, value) : indexOf(arrays[othIndex], value, 0)) < 0) { + continue outer; + } + } + if (seen) { + seen.push(value); + } + result.push(value); + } + } + return result; + }); /** - * Extracts the wrapped value. + * Gets the last element of `array`. * - * @name valueOf + * @static * @memberOf _ - * @alias value - * @category Chaining - * @returns {*} Returns the wrapped value. + * @category Array + * @param {Array} array The array to query. + * @returns {*} Returns the last element of `array`. * @example * - * _([1, 2, 3]).valueOf(); - * // => [1, 2, 3] + * _.last([1, 2, 3]); + * // => 3 */ - function wrapperValueOf() { - return this.__wrapped__; + function last(array) { + var length = array ? array.length : 0; + return length ? array[length - 1] : undefined; } - /*--------------------------------------------------------------------------*/ - - lodash.assign = assign; - lodash.bind = bind; - lodash.chain = chain; - lodash.compact = compact; - lodash.createCallback = createCallback; - lodash.debounce = debounce; - lodash.difference = difference; - lodash.filter = filter; - lodash.flatten = flatten; - lodash.forEach = forEach; - lodash.forIn = forIn; - lodash.forOwn = forOwn; - lodash.functions = functions; - lodash.groupBy = groupBy; - lodash.intersection = intersection; - lodash.keys = keys; - lodash.map = map; - lodash.merge = merge; - lodash.omit = omit; - lodash.pairs = pairs; - lodash.pluck = pluck; - lodash.reject = reject; - lodash.throttle = throttle; - lodash.union = union; - lodash.uniq = uniq; - lodash.values = values; - lodash.without = without; - - // add aliases - lodash.collect = map; - lodash.each = forEach; - lodash.extend = assign; - lodash.methods = functions; - lodash.select = filter; - lodash.unique = uniq; - - // add functions to `lodash.prototype` - mixin(lodash); - - /*--------------------------------------------------------------------------*/ - - // add functions that return unwrapped values when chaining - lodash.clone = clone; - lodash.cloneDeep = cloneDeep; - lodash.contains = contains; - lodash.every = every; - lodash.find = find; - lodash.identity = identity; - lodash.indexOf = indexOf; - lodash.isArguments = isArguments; - lodash.isArray = isArray; - lodash.isEmpty = isEmpty; - lodash.isEqual = isEqual; - lodash.isFunction = isFunction; - lodash.isObject = isObject; - lodash.isPlainObject = isPlainObject; - lodash.isString = isString; - lodash.mixin = mixin; - lodash.noop = noop; - lodash.some = some; - lodash.sortedIndex = sortedIndex; - - // add aliases - lodash.all = every; - lodash.any = some; - lodash.detect = find; - lodash.findWhere = find; - lodash.include = contains; - - forOwn(lodash, function(func, methodName) { - if (!lodash.prototype[methodName]) { - lodash.prototype[methodName] = function() { - var args = [this.__wrapped__], - chainAll = this.__chain__; - - push.apply(args, arguments); - var result = func.apply(lodash, args); - return chainAll - ? new lodashWrapper(result, chainAll) - : result; - }; - } + /** + * Creates an array of unique values, in order, from all of the provided arrays + * using [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) + * for equality comparisons. + * + * @static + * @memberOf _ + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @returns {Array} Returns the new array of combined values. + * @example + * + * _.union([1, 2], [4, 2], [2, 1]); + * // => [1, 2, 4] + */ + var union = restParam(function(arrays) { + return baseUniq(baseFlatten(arrays, false, true)); }); - /*--------------------------------------------------------------------------*/ - - // add functions capable of returning wrapped and unwrapped values when chaining - lodash.first = first; - lodash.last = last; - - // add aliases - lodash.take = first; - lodash.head = first; - - forOwn(lodash, function(func, methodName) { - var callbackable = methodName !== 'sample'; - if (!lodash.prototype[methodName]) { - lodash.prototype[methodName]= function(n, guard) { - var chainAll = this.__chain__, - result = func(this.__wrapped__, n, guard); - - return !chainAll && (n == null || (guard && !(callbackable && typeof n == 'function'))) - ? result - : new lodashWrapper(result, chainAll); - }; + /** + * Creates a duplicate-free version of an array, using + * [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) + * for equality comparisons, in which only the first occurence of each element + * is kept. Providing `true` for `isSorted` performs a faster search algorithm + * for sorted arrays. If an iteratee function is provided it is invoked for + * each element in the array to generate the criterion by which uniqueness + * is computed. The `iteratee` is bound to `thisArg` and invoked with three + * arguments: (value, index, array). + * + * If a property name is provided for `iteratee` the created `_.property` + * style callback returns the property value of the given element. + * + * If a value is also provided for `thisArg` the created `_.matchesProperty` + * style callback returns `true` for elements that have a matching property + * value, else `false`. + * + * If an object is provided for `iteratee` the created `_.matches` style + * callback returns `true` for elements that have the properties of the given + * object, else `false`. + * + * @static + * @memberOf _ + * @alias unique + * @category Array + * @param {Array} array The array to inspect. + * @param {boolean} [isSorted] Specify the array is sorted. + * @param {Function|Object|string} [iteratee] The function invoked per iteration. + * @param {*} [thisArg] The `this` binding of `iteratee`. + * @returns {Array} Returns the new duplicate-value-free array. + * @example + * + * _.uniq([2, 1, 2]); + * // => [2, 1] + * + * // using `isSorted` + * _.uniq([1, 1, 2], true); + * // => [1, 2] + * + * // using an iteratee function + * _.uniq([1, 2.5, 1.5, 2], function(n) { + * return this.floor(n); + * }, Math); + * // => [1, 2.5] + * + * // using the `_.property` callback shorthand + * _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x'); + * // => [{ 'x': 1 }, { 'x': 2 }] + */ + function uniq(array, isSorted, iteratee, thisArg) { + var length = array ? array.length : 0; + if (!length) { + return []; + } + if (isSorted != null && typeof isSorted != 'boolean') { + thisArg = iteratee; + iteratee = isIterateeCall(array, isSorted, thisArg) ? null : isSorted; + isSorted = false; + } + var callback = getCallback(); + if (!(iteratee == null && callback === baseCallback)) { + iteratee = callback(iteratee, thisArg, 3); } + return (isSorted && getIndexOf() == baseIndexOf) + ? sortedUniq(array, iteratee) + : baseUniq(array, iteratee); + } + + /** + * Creates an array excluding all provided values using + * [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) + * for equality comparisons. + * + * @static + * @memberOf _ + * @category Array + * @param {Array} array The array to filter. + * @param {...*} [values] The values to exclude. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * _.without([1, 2, 1, 3], 1, 2); + * // => [3] + */ + var without = restParam(function(array, values) { + return isArrayLike(array) + ? baseDifference(array, values) + : []; }); - /*--------------------------------------------------------------------------*/ + /*------------------------------------------------------------------------*/ /** - * The semantic version number. + * Creates a `lodash` object that wraps `value` with explicit method + * chaining enabled. * * @static * @memberOf _ - * @type string + * @category Chain + * @param {*} value The value to wrap. + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 }, + * { 'user': 'pebbles', 'age': 1 } + * ]; + * + * var youngest = _.chain(users) + * .sortBy('age') + * .map(function(chr) { + * return chr.user + ' is ' + chr.age; + * }) + * .first() + * .value(); + * // => 'pebbles is 1' */ - lodash.VERSION = '2.3.0'; + function chain(value) { + var result = lodash(value); + result.__chain__ = true; + return result; + } - // add "Chaining" functions to the wrapper - lodash.prototype.chain = wrapperChain; - lodash.prototype.toString = wrapperToString; - lodash.prototype.value = wrapperValueOf; - lodash.prototype.valueOf = wrapperValueOf; + /** + * This method invokes `interceptor` and returns `value`. The interceptor is + * bound to `thisArg` and invoked with one argument; (value). The purpose of + * this method is to "tap into" a method chain in order to perform operations + * on intermediate results within the chain. + * + * @static + * @memberOf _ + * @category Chain + * @param {*} value The value to provide to `interceptor`. + * @param {Function} interceptor The function to invoke. + * @param {*} [thisArg] The `this` binding of `interceptor`. + * @returns {*} Returns `value`. + * @example + * + * _([1, 2, 3]) + * .tap(function(array) { + * array.pop(); + * }) + * .reverse() + * .value(); + * // => [2, 1] + */ + function tap(value, interceptor, thisArg) { + interceptor.call(thisArg, value); + return value; + } - // add `Array` functions that return unwrapped values - baseEach(['join', 'pop', 'shift'], function(methodName) { - var func = arrayRef[methodName]; - lodash.prototype[methodName] = function() { - var chainAll = this.__chain__, - result = func.apply(this.__wrapped__, arguments); + /** + * This method is like `_.tap` except that it returns the result of `interceptor`. + * + * @static + * @memberOf _ + * @category Chain + * @param {*} value The value to provide to `interceptor`. + * @param {Function} interceptor The function to invoke. + * @param {*} [thisArg] The `this` binding of `interceptor`. + * @returns {*} Returns the result of `interceptor`. + * @example + * + * _(' abc ') + * .chain() + * .trim() + * .thru(function(value) { + * return [value]; + * }) + * .value(); + * // => ['abc'] + */ + function thru(value, interceptor, thisArg) { + return interceptor.call(thisArg, value); + } - return chainAll - ? new lodashWrapper(result, chainAll) - : result; - }; - }); + /** + * Enables explicit method chaining on the wrapper object. + * + * @name chain + * @memberOf _ + * @category Chain + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 } + * ]; + * + * // without explicit chaining + * _(users).first(); + * // => { 'user': 'barney', 'age': 36 } + * + * // with explicit chaining + * _(users).chain() + * .first() + * .pick('user') + * .value(); + * // => { 'user': 'barney' } + */ + function wrapperChain() { + return chain(this); + } - // add `Array` functions that return the wrapped value - baseEach(['push', 'reverse', 'sort', 'unshift'], function(methodName) { - var func = arrayRef[methodName]; - lodash.prototype[methodName] = function() { - func.apply(this.__wrapped__, arguments); - return this; - }; - }); + /** + * Executes the chained sequence and returns the wrapped result. + * + * @name commit + * @memberOf _ + * @category Chain + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var array = [1, 2]; + * var wrapper = _(array).push(3); + * + * console.log(array); + * // => [1, 2] + * + * wrapper = wrapper.commit(); + * console.log(array); + * // => [1, 2, 3] + * + * wrapper.last(); + * // => 3 + * + * console.log(array); + * // => [1, 2, 3] + */ + function wrapperCommit() { + return new LodashWrapper(this.value(), this.__chain__); + } - // add `Array` functions that return new wrapped values - baseEach(['concat', 'slice', 'splice'], function(methodName) { - var func = arrayRef[methodName]; - lodash.prototype[methodName] = function() { - return new lodashWrapper(func.apply(this.__wrapped__, arguments), this.__chain__); - }; - }); + /** + * Creates a clone of the chained sequence planting `value` as the wrapped value. + * + * @name plant + * @memberOf _ + * @category Chain + * @returns {Object} Returns the new `lodash` wrapper instance. + * @example + * + * var array = [1, 2]; + * var wrapper = _(array).map(function(value) { + * return Math.pow(value, 2); + * }); + * + * var other = [3, 4]; + * var otherWrapper = wrapper.plant(other); + * + * otherWrapper.value(); + * // => [9, 16] + * + * wrapper.value(); + * // => [1, 4] + */ + function wrapperPlant(value) { + var result, + parent = this; + + while (parent instanceof baseLodash) { + var clone = wrapperClone(parent); + if (result) { + previous.__wrapped__ = clone; + } else { + result = clone; + } + var previous = clone; + parent = parent.__wrapped__; + } + previous.__wrapped__ = value; + return result; + } - // avoid array-like object bugs with `Array#shift` and `Array#splice` - // in IE < 9, Firefox < 10, Narwhal, and RingoJS - if (!support.spliceObjects) { - baseEach(['pop', 'shift', 'splice'], function(methodName) { - var func = arrayRef[methodName], - isSplice = methodName == 'splice'; + /** + * Reverses the wrapped array so the first element becomes the last, the + * second element becomes the second to last, and so on. + * + * **Note:** This method mutates the wrapped array. + * + * @name reverse + * @memberOf _ + * @category Chain + * @returns {Object} Returns the new reversed `lodash` wrapper instance. + * @example + * + * var array = [1, 2, 3]; + * + * _(array).reverse().value() + * // => [3, 2, 1] + * + * console.log(array); + * // => [3, 2, 1] + */ + function wrapperReverse() { + var value = this.__wrapped__; + if (value instanceof LazyWrapper) { + if (this.__actions__.length) { + value = new LazyWrapper(this); + } + return new LodashWrapper(value.reverse(), this.__chain__); + } + return this.thru(function(value) { + return value.reverse(); + }); + } - lodash.prototype[methodName] = function() { - var chainAll = this.__chain__, - value = this.__wrapped__, - result = func.apply(value, arguments); + /** + * Produces the result of coercing the unwrapped value to a string. + * + * @name toString + * @memberOf _ + * @category Chain + * @returns {string} Returns the coerced string value. + * @example + * + * _([1, 2, 3]).toString(); + * // => '1,2,3' + */ + function wrapperToString() { + return (this.value() + ''); + } - if (value.length === 0) { - delete value[0]; - } - return (chainAll || isSplice) - ? new lodashWrapper(result, chainAll) - : result; - }; - }); + /** + * Executes the chained sequence to extract the unwrapped value. + * + * @name value + * @memberOf _ + * @alias run, toJSON, valueOf + * @category Chain + * @returns {*} Returns the resolved unwrapped value. + * @example + * + * _([1, 2, 3]).value(); + * // => [1, 2, 3] + */ + function wrapperValue() { + return baseWrapperValue(this.__wrapped__, this.__actions__); } - /*--------------------------------------------------------------------------*/ + /*------------------------------------------------------------------------*/ - if (freeExports && freeModule) { - // in Node.js or RingoJS - if (moduleExports) { - (freeModule.exports = lodash)._ = lodash; + /** + * Checks if `predicate` returns truthy for **all** elements of `collection`. + * The predicate is bound to `thisArg` and invoked with three arguments: + * (value, index|key, collection). + * + * If a property name is provided for `predicate` the created `_.property` + * style callback returns the property value of the given element. + * + * If a value is also provided for `thisArg` the created `_.matchesProperty` + * style callback returns `true` for elements that have a matching property + * value, else `false`. + * + * If an object is provided for `predicate` the created `_.matches` style + * callback returns `true` for elements that have the properties of the given + * object, else `false`. + * + * @static + * @memberOf _ + * @alias all + * @category Collection + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function|Object|string} [predicate=_.identity] The function invoked + * per iteration. + * @param {*} [thisArg] The `this` binding of `predicate`. + * @returns {boolean} Returns `true` if all elements pass the predicate check, + * else `false`. + * @example + * + * _.every([true, 1, null, 'yes'], Boolean); + * // => false + * + * var users = [ + * { 'user': 'barney', 'active': false }, + * { 'user': 'fred', 'active': false } + * ]; + * + * // using the `_.matches` callback shorthand + * _.every(users, { 'user': 'barney', 'active': false }); + * // => false + * + * // using the `_.matchesProperty` callback shorthand + * _.every(users, 'active', false); + * // => true + * + * // using the `_.property` callback shorthand + * _.every(users, 'active'); + * // => false + */ + function every(collection, predicate, thisArg) { + var func = isArray(collection) ? arrayEvery : baseEvery; + if (thisArg && isIterateeCall(collection, predicate, thisArg)) { + predicate = null; } - + if (typeof predicate != 'function' || thisArg !== undefined) { + predicate = getCallback(predicate, thisArg, 3); + } + return func(collection, predicate); } - else { - // in a browser or Rhino - root._ = lodash; + + /** + * Iterates over elements of `collection`, returning an array of all elements + * `predicate` returns truthy for. The predicate is bound to `thisArg` and + * invoked with three arguments: (value, index|key, collection). + * + * If a property name is provided for `predicate` the created `_.property` + * style callback returns the property value of the given element. + * + * If a value is also provided for `thisArg` the created `_.matchesProperty` + * style callback returns `true` for elements that have a matching property + * value, else `false`. + * + * If an object is provided for `predicate` the created `_.matches` style + * callback returns `true` for elements that have the properties of the given + * object, else `false`. + * + * @static + * @memberOf _ + * @alias select + * @category Collection + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function|Object|string} [predicate=_.identity] The function invoked + * per iteration. + * @param {*} [thisArg] The `this` binding of `predicate`. + * @returns {Array} Returns the new filtered array. + * @example + * + * _.filter([4, 5, 6], function(n) { + * return n % 2 == 0; + * }); + * // => [4, 6] + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * // using the `_.matches` callback shorthand + * _.pluck(_.filter(users, { 'age': 36, 'active': true }), 'user'); + * // => ['barney'] + * + * // using the `_.matchesProperty` callback shorthand + * _.pluck(_.filter(users, 'active', false), 'user'); + * // => ['fred'] + * + * // using the `_.property` callback shorthand + * _.pluck(_.filter(users, 'active'), 'user'); + * // => ['barney'] + */ + function filter(collection, predicate, thisArg) { + var func = isArray(collection) ? arrayFilter : baseFilter; + predicate = getCallback(predicate, thisArg, 3); + return func(collection, predicate); } -}.call(this)); -(function(e){if("function"==typeof bootstrap)bootstrap("osmauth",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeOsmAuth=e}else"undefined"!=typeof window?window.osmAuth=e():global.osmAuth=e()})(function(){var define,ses,bootstrap,module,exports; -return (function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s 'barney' + * + * // using the `_.matches` callback shorthand + * _.result(_.find(users, { 'age': 1, 'active': true }), 'user'); + * // => 'pebbles' + * + * // using the `_.matchesProperty` callback shorthand + * _.result(_.find(users, 'active', false), 'user'); + * // => 'fred' + * + * // using the `_.property` callback shorthand + * _.result(_.find(users, 'active'), 'user'); + * // => 'barney' + */ + var find = createFind(baseEach); -// # osm-auth -// -// This code is only compatible with IE10+ because the [XDomainRequest](http://bit.ly/LfO7xo) -// object, IE<10's idea of [CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing), -// does not support custom headers, which this uses everywhere. -module.exports = function(o) { + /** + * Iterates over elements of `collection` invoking `iteratee` for each element. + * The `iteratee` is bound to `thisArg` and invoked with three arguments: + * (value, index|key, collection). Iteratee functions may exit iteration early + * by explicitly returning `false`. + * + * **Note:** As with other "Collections" methods, objects with a "length" property + * are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn` + * may be used for object iteration. + * + * @static + * @memberOf _ + * @alias each + * @category Collection + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {*} [thisArg] The `this` binding of `iteratee`. + * @returns {Array|Object|string} Returns `collection`. + * @example + * + * _([1, 2]).forEach(function(n) { + * console.log(n); + * }).value(); + * // => logs each value from left to right and returns the array + * + * _.forEach({ 'a': 1, 'b': 2 }, function(n, key) { + * console.log(n, key); + * }); + * // => logs each value-key pair and returns the object (iteration order is not guaranteed) + */ + var forEach = createForEach(arrayEach, baseEach); - var oauth = {}; + /** + * Creates an object composed of keys generated from the results of running + * each element of `collection` through `iteratee`. The corresponding value + * of each key is an array of the elements responsible for generating the key. + * The `iteratee` is bound to `thisArg` and invoked with three arguments: + * (value, index|key, collection). + * + * If a property name is provided for `iteratee` the created `_.property` + * style callback returns the property value of the given element. + * + * If a value is also provided for `thisArg` the created `_.matchesProperty` + * style callback returns `true` for elements that have a matching property + * value, else `false`. + * + * If an object is provided for `iteratee` the created `_.matches` style + * callback returns `true` for elements that have the properties of the given + * object, else `false`. + * + * @static + * @memberOf _ + * @category Collection + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function|Object|string} [iteratee=_.identity] The function invoked + * per iteration. + * @param {*} [thisArg] The `this` binding of `iteratee`. + * @returns {Object} Returns the composed aggregate object. + * @example + * + * _.groupBy([4.2, 6.1, 6.4], function(n) { + * return Math.floor(n); + * }); + * // => { '4': [4.2], '6': [6.1, 6.4] } + * + * _.groupBy([4.2, 6.1, 6.4], function(n) { + * return this.floor(n); + * }, Math); + * // => { '4': [4.2], '6': [6.1, 6.4] } + * + * // using the `_.property` callback shorthand + * _.groupBy(['one', 'two', 'three'], 'length'); + * // => { '3': ['one', 'two'], '5': ['three'] } + */ + var groupBy = createAggregator(function(result, value, key) { + if (hasOwnProperty.call(result, key)) { + result[key].push(value); + } else { + result[key] = [value]; + } + }); - // authenticated users will also have a request token secret, but it's - // not used in transactions with the server - oauth.authenticated = function() { - return !!(token('oauth_token') && token('oauth_token_secret')); - }; + /** + * Checks if `value` is in `collection` using + * [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) + * for equality comparisons. If `fromIndex` is negative, it is used as the offset + * from the end of `collection`. + * + * @static + * @memberOf _ + * @alias contains, include + * @category Collection + * @param {Array|Object|string} collection The collection to search. + * @param {*} target The value to search for. + * @param {number} [fromIndex=0] The index to search from. + * @param- {Object} [guard] Enables use as a callback for functions like `_.reduce`. + * @returns {boolean} Returns `true` if a matching element is found, else `false`. + * @example + * + * _.includes([1, 2, 3], 1); + * // => true + * + * _.includes([1, 2, 3], 1, 2); + * // => false + * + * _.includes({ 'user': 'fred', 'age': 40 }, 'fred'); + * // => true + * + * _.includes('pebbles', 'eb'); + * // => true + */ + function includes(collection, target, fromIndex, guard) { + var length = collection ? getLength(collection) : 0; + if (!isLength(length)) { + collection = values(collection); + length = collection.length; + } + if (!length) { + return false; + } + if (typeof fromIndex != 'number' || (guard && isIterateeCall(target, fromIndex, guard))) { + fromIndex = 0; + } else { + fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0); + } + return (typeof collection == 'string' || !isArray(collection) && isString(collection)) + ? (fromIndex < length && collection.indexOf(target, fromIndex) > -1) + : (getIndexOf(collection, target, fromIndex) > -1); + } - oauth.logout = function() { - token('oauth_token', ''); - token('oauth_token_secret', ''); - token('oauth_request_token_secret', ''); - return oauth; - }; + /** + * Creates an array of values by running each element in `collection` through + * `iteratee`. The `iteratee` is bound to `thisArg` and invoked with three + * arguments: (value, index|key, collection). + * + * If a property name is provided for `iteratee` the created `_.property` + * style callback returns the property value of the given element. + * + * If a value is also provided for `thisArg` the created `_.matchesProperty` + * style callback returns `true` for elements that have a matching property + * value, else `false`. + * + * If an object is provided for `iteratee` the created `_.matches` style + * callback returns `true` for elements that have the properties of the given + * object, else `false`. + * + * Many lodash methods are guarded to work as iteratees for methods like + * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`. + * + * The guarded methods are: + * `ary`, `callback`, `chunk`, `clone`, `create`, `curry`, `curryRight`, + * `drop`, `dropRight`, `every`, `fill`, `flatten`, `invert`, `max`, `min`, + * `parseInt`, `slice`, `sortBy`, `take`, `takeRight`, `template`, `trim`, + * `trimLeft`, `trimRight`, `trunc`, `random`, `range`, `sample`, `some`, + * `sum`, `uniq`, and `words` + * + * @static + * @memberOf _ + * @alias collect + * @category Collection + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function|Object|string} [iteratee=_.identity] The function invoked + * per iteration. + * @param {*} [thisArg] The `this` binding of `iteratee`. + * @returns {Array} Returns the new mapped array. + * @example + * + * function timesThree(n) { + * return n * 3; + * } + * + * _.map([1, 2], timesThree); + * // => [3, 6] + * + * _.map({ 'a': 1, 'b': 2 }, timesThree); + * // => [3, 6] (iteration order is not guaranteed) + * + * var users = [ + * { 'user': 'barney' }, + * { 'user': 'fred' } + * ]; + * + * // using the `_.property` callback shorthand + * _.map(users, 'user'); + * // => ['barney', 'fred'] + */ + function map(collection, iteratee, thisArg) { + var func = isArray(collection) ? arrayMap : baseMap; + iteratee = getCallback(iteratee, thisArg, 3); + return func(collection, iteratee); + } - // TODO: detect lack of click event - oauth.authenticate = function(callback) { - if (oauth.authenticated()) return callback(); + /** + * Gets the property value of `path` from all elements in `collection`. + * + * @static + * @memberOf _ + * @category Collection + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Array|string} path The path of the property to pluck. + * @returns {Array} Returns the property values. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 } + * ]; + * + * _.pluck(users, 'user'); + * // => ['barney', 'fred'] + * + * var userIndex = _.indexBy(users, 'user'); + * _.pluck(userIndex, 'age'); + * // => [36, 40] (iteration order is not guaranteed) + */ + function pluck(collection, path) { + return map(collection, property(path)); + } - oauth.logout(); + /** + * Reduces `collection` to a value which is the accumulated result of running + * each element in `collection` through `iteratee`, where each successive + * invocation is supplied the return value of the previous. If `accumulator` + * is not provided the first element of `collection` is used as the initial + * value. The `iteratee` is bound to `thisArg` and invoked with four arguments: + * (accumulator, value, index|key, collection). + * + * Many lodash methods are guarded to work as iteratees for methods like + * `_.reduce`, `_.reduceRight`, and `_.transform`. + * + * The guarded methods are: + * `assign`, `defaults`, `includes`, `merge`, `sortByAll`, and `sortByOrder` + * + * @static + * @memberOf _ + * @alias foldl, inject + * @category Collection + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {*} [accumulator] The initial value. + * @param {*} [thisArg] The `this` binding of `iteratee`. + * @returns {*} Returns the accumulated value. + * @example + * + * _.reduce([1, 2], function(total, n) { + * return total + n; + * }); + * // => 3 + * + * _.reduce({ 'a': 1, 'b': 2 }, function(result, n, key) { + * result[key] = n * 3; + * return result; + * }, {}); + * // => { 'a': 3, 'b': 6 } (iteration order is not guaranteed) + */ + var reduce = createReduce(arrayReduce, baseEach); - // ## Getting a request token - var params = timenonce(getAuth(o)), - url = o.url + '/oauth/request_token'; + /** + * The opposite of `_.filter`; this method returns the elements of `collection` + * that `predicate` does **not** return truthy for. + * + * @static + * @memberOf _ + * @category Collection + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function|Object|string} [predicate=_.identity] The function invoked + * per iteration. + * @param {*} [thisArg] The `this` binding of `predicate`. + * @returns {Array} Returns the new filtered array. + * @example + * + * _.reject([1, 2, 3, 4], function(n) { + * return n % 2 == 0; + * }); + * // => [1, 3] + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': false }, + * { 'user': 'fred', 'age': 40, 'active': true } + * ]; + * + * // using the `_.matches` callback shorthand + * _.pluck(_.reject(users, { 'age': 40, 'active': true }), 'user'); + * // => ['barney'] + * + * // using the `_.matchesProperty` callback shorthand + * _.pluck(_.reject(users, 'active', false), 'user'); + * // => ['fred'] + * + * // using the `_.property` callback shorthand + * _.pluck(_.reject(users, 'active'), 'user'); + * // => ['barney'] + */ + function reject(collection, predicate, thisArg) { + var func = isArray(collection) ? arrayFilter : baseFilter; + predicate = getCallback(predicate, thisArg, 3); + return func(collection, function(value, index, collection) { + return !predicate(value, index, collection); + }); + } - params.oauth_signature = ohauth.signature( - o.oauth_secret, '', - ohauth.baseString('POST', url, params)); + /** + * Checks if `predicate` returns truthy for **any** element of `collection`. + * The function returns as soon as it finds a passing value and does not iterate + * over the entire collection. The predicate is bound to `thisArg` and invoked + * with three arguments: (value, index|key, collection). + * + * If a property name is provided for `predicate` the created `_.property` + * style callback returns the property value of the given element. + * + * If a value is also provided for `thisArg` the created `_.matchesProperty` + * style callback returns `true` for elements that have a matching property + * value, else `false`. + * + * If an object is provided for `predicate` the created `_.matches` style + * callback returns `true` for elements that have the properties of the given + * object, else `false`. + * + * @static + * @memberOf _ + * @alias any + * @category Collection + * @param {Array|Object|string} collection The collection to iterate over. + * @param {Function|Object|string} [predicate=_.identity] The function invoked + * per iteration. + * @param {*} [thisArg] The `this` binding of `predicate`. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + * @example + * + * _.some([null, 0, 'yes', false], Boolean); + * // => true + * + * var users = [ + * { 'user': 'barney', 'active': true }, + * { 'user': 'fred', 'active': false } + * ]; + * + * // using the `_.matches` callback shorthand + * _.some(users, { 'user': 'barney', 'active': false }); + * // => false + * + * // using the `_.matchesProperty` callback shorthand + * _.some(users, 'active', false); + * // => true + * + * // using the `_.property` callback shorthand + * _.some(users, 'active'); + * // => true + */ + function some(collection, predicate, thisArg) { + var func = isArray(collection) ? arraySome : baseSome; + if (thisArg && isIterateeCall(collection, predicate, thisArg)) { + predicate = null; + } + if (typeof predicate != 'function' || thisArg !== undefined) { + predicate = getCallback(predicate, thisArg, 3); + } + return func(collection, predicate); + } - if (!o.singlepage) { - // Create a 600x550 popup window in the center of the screen - var w = 600, h = 550, - settings = [ - ['width', w], ['height', h], - ['left', screen.width / 2 - w / 2], - ['top', screen.height / 2 - h / 2]].map(function(x) { - return x.join('='); - }).join(','), - popup = window.open('about:blank', 'oauth_window', settings); - } + /*------------------------------------------------------------------------*/ - // Request a request token. When this is complete, the popup - // window is redirected to OSM's authorization page. - ohauth.xhr('POST', url, params, null, {}, reqTokenDone); - o.loading(); + /** + * Gets the number of milliseconds that have elapsed since the Unix epoch + * (1 January 1970 00:00:00 UTC). + * + * @static + * @memberOf _ + * @category Date + * @example + * + * _.defer(function(stamp) { + * console.log(_.now() - stamp); + * }, _.now()); + * // => logs the number of milliseconds it took for the deferred function to be invoked + */ + var now = nativeNow || function() { + return new Date().getTime(); + }; - function reqTokenDone(err, xhr) { - o.done(); - if (err) return callback(err); - var resp = ohauth.stringQs(xhr.response); - token('oauth_request_token_secret', resp.oauth_token_secret); - var authorize_url = o.url + '/oauth/authorize?' + ohauth.qsString({ - oauth_token: resp.oauth_token, - oauth_callback: location.href.replace('index.html', '') - .replace(/#.*/, '') + o.landing - }); + /*------------------------------------------------------------------------*/ - if (o.singlepage) { - location.href = authorize_url; - } else { - popup.location = authorize_url; - } - } + /** + * Creates a function that invokes `func` with the `this` binding of `thisArg` + * and prepends any additional `_.bind` arguments to those provided to the + * bound function. + * + * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds, + * may be used as a placeholder for partially applied arguments. + * + * **Note:** Unlike native `Function#bind` this method does not set the "length" + * property of bound functions. + * + * @static + * @memberOf _ + * @category Function + * @param {Function} func The function to bind. + * @param {*} thisArg The `this` binding of `func`. + * @param {...*} [partials] The arguments to be partially applied. + * @returns {Function} Returns the new bound function. + * @example + * + * var greet = function(greeting, punctuation) { + * return greeting + ' ' + this.user + punctuation; + * }; + * + * var object = { 'user': 'fred' }; + * + * var bound = _.bind(greet, object, 'hi'); + * bound('!'); + * // => 'hi fred!' + * + * // using placeholders + * var bound = _.bind(greet, object, _, '!'); + * bound('hi'); + * // => 'hi fred!' + */ + var bind = restParam(function(func, thisArg, partials) { + var bitmask = BIND_FLAG; + if (partials.length) { + var holders = replaceHolders(partials, bind.placeholder); + bitmask |= PARTIAL_FLAG; + } + return createWrapper(func, bitmask, thisArg, partials, holders); + }); - // Called by a function in a landing page, in the popup window. The - // window closes itself. - window.authComplete = function(token) { - var oauth_token = ohauth.stringQs(token.split('?')[1]); - get_access_token(oauth_token.oauth_token); - delete window.authComplete; - }; + /** + * Creates a debounced function that delays invoking `func` until after `wait` + * milliseconds have elapsed since the last time the debounced function was + * invoked. The debounced function comes with a `cancel` method to cancel + * delayed invocations. Provide an options object to indicate that `func` + * should be invoked on the leading and/or trailing edge of the `wait` timeout. + * Subsequent calls to the debounced function return the result of the last + * `func` invocation. + * + * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked + * on the trailing edge of the timeout only if the the debounced function is + * invoked more than once during the `wait` timeout. + * + * See [David Corbacho's article](http://drupalmotion.com/article/debounce-and-throttle-visual-explanation) + * for details over the differences between `_.debounce` and `_.throttle`. + * + * @static + * @memberOf _ + * @category Function + * @param {Function} func The function to debounce. + * @param {number} [wait=0] The number of milliseconds to delay. + * @param {Object} [options] The options object. + * @param {boolean} [options.leading=false] Specify invoking on the leading + * edge of the timeout. + * @param {number} [options.maxWait] The maximum time `func` is allowed to be + * delayed before it is invoked. + * @param {boolean} [options.trailing=true] Specify invoking on the trailing + * edge of the timeout. + * @returns {Function} Returns the new debounced function. + * @example + * + * // avoid costly calculations while the window size is in flux + * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); + * + * // invoke `sendMail` when the click event is fired, debouncing subsequent calls + * jQuery('#postbox').on('click', _.debounce(sendMail, 300, { + * 'leading': true, + * 'trailing': false + * })); + * + * // ensure `batchLog` is invoked once after 1 second of debounced calls + * var source = new EventSource('/stream'); + * jQuery(source).on('message', _.debounce(batchLog, 250, { + * 'maxWait': 1000 + * })); + * + * // cancel a debounced call + * var todoChanges = _.debounce(batchLog, 1000); + * Object.observe(models.todo, todoChanges); + * + * Object.observe(models, function(changes) { + * if (_.find(changes, { 'user': 'todo', 'type': 'delete'})) { + * todoChanges.cancel(); + * } + * }, ['delete']); + * + * // ...at some point `models.todo` is changed + * models.todo.completed = true; + * + * // ...before 1 second has passed `models.todo` is deleted + * // which cancels the debounced `todoChanges` call + * delete models.todo; + */ + function debounce(func, wait, options) { + var args, + maxTimeoutId, + result, + stamp, + thisArg, + timeoutId, + trailingCall, + lastCalled = 0, + maxWait = false, + trailing = true; - // ## Getting an request token - // - // At this point we have an `oauth_token`, brought in from a function - // call on a landing page popup. - function get_access_token(oauth_token) { - var url = o.url + '/oauth/access_token', - params = timenonce(getAuth(o)), - request_token_secret = token('oauth_request_token_secret'); - params.oauth_token = oauth_token; - params.oauth_signature = ohauth.signature( - o.oauth_secret, - request_token_secret, - ohauth.baseString('POST', url, params)); + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + wait = wait < 0 ? 0 : (+wait || 0); + if (options === true) { + var leading = true; + trailing = false; + } else if (isObject(options)) { + leading = options.leading; + maxWait = 'maxWait' in options && nativeMax(+options.maxWait || 0, wait); + trailing = 'trailing' in options ? options.trailing : trailing; + } - // ## Getting an access token - // - // The final token required for authentication. At this point - // we have a `request token secret` - ohauth.xhr('POST', url, params, null, {}, accessTokenDone); - o.loading(); - } + function cancel() { + if (timeoutId) { + clearTimeout(timeoutId); + } + if (maxTimeoutId) { + clearTimeout(maxTimeoutId); + } + maxTimeoutId = timeoutId = trailingCall = undefined; + } - function accessTokenDone(err, xhr) { - o.done(); - if (err) return callback(err); - var access_token = ohauth.stringQs(xhr.response); - token('oauth_token', access_token.oauth_token); - token('oauth_token_secret', access_token.oauth_token_secret); - callback(null, oauth); + function delayed() { + var remaining = wait - (now() - stamp); + if (remaining <= 0 || remaining > wait) { + if (maxTimeoutId) { + clearTimeout(maxTimeoutId); } - }; - - oauth.bootstrapToken = function(oauth_token, callback) { - // ## Getting an request token - // At this point we have an `oauth_token`, brought in from a function - // call on a landing page popup. - function get_access_token(oauth_token) { - var url = o.url + '/oauth/access_token', - params = timenonce(getAuth(o)), - request_token_secret = token('oauth_request_token_secret'); - params.oauth_token = oauth_token; - params.oauth_signature = ohauth.signature( - o.oauth_secret, - request_token_secret, - ohauth.baseString('POST', url, params)); - - // ## Getting an access token - // The final token required for authentication. At this point - // we have a `request token secret` - ohauth.xhr('POST', url, params, null, {}, accessTokenDone); - o.loading(); + var isCalled = trailingCall; + maxTimeoutId = timeoutId = trailingCall = undefined; + if (isCalled) { + lastCalled = now(); + result = func.apply(thisArg, args); + if (!timeoutId && !maxTimeoutId) { + args = thisArg = null; + } } + } else { + timeoutId = setTimeout(delayed, remaining); + } + } - function accessTokenDone(err, xhr) { - o.done(); - if (err) return callback(err); - var access_token = ohauth.stringQs(xhr.response); - token('oauth_token', access_token.oauth_token); - token('oauth_token_secret', access_token.oauth_token_secret); - callback(null, oauth); + function maxDelayed() { + if (timeoutId) { + clearTimeout(timeoutId); + } + maxTimeoutId = timeoutId = trailingCall = undefined; + if (trailing || (maxWait !== wait)) { + lastCalled = now(); + result = func.apply(thisArg, args); + if (!timeoutId && !maxTimeoutId) { + args = thisArg = null; } + } + } - get_access_token(oauth_token); - }; - - // # xhr - // - // A single XMLHttpRequest wrapper that does authenticated calls if the - // user has logged in. - oauth.xhr = function(options, callback) { - if (!oauth.authenticated()) { - if (o.auto) return oauth.authenticate(run); - else return callback('not authenticated', null); - } else return run(); - - function run() { - var params = timenonce(getAuth(o)), - url = o.url + options.path, - oauth_token_secret = token('oauth_token_secret'); - - // https://tools.ietf.org/html/rfc5849#section-3.4.1.3.1 - if ((!options.options || !options.options.header || - options.options.header['Content-Type'] === 'application/x-www-form-urlencoded') && - options.content) { - params = xtend(params, ohauth.stringQs(options.content)); - } - - params.oauth_token = token('oauth_token'); - params.oauth_signature = ohauth.signature( - o.oauth_secret, - oauth_token_secret, - ohauth.baseString(options.method, url, params)); + function debounced() { + args = arguments; + stamp = now(); + thisArg = this; + trailingCall = trailing && (timeoutId || !leading); - ohauth.xhr(options.method, - url, params, options.content, options.options, done); + if (maxWait === false) { + var leadingCall = leading && !timeoutId; + } else { + if (!maxTimeoutId && !leading) { + lastCalled = stamp; } + var remaining = maxWait - (stamp - lastCalled), + isCalled = remaining <= 0 || remaining > maxWait; - function done(err, xhr) { - if (err) return callback(err); - else if (xhr.responseXML) return callback(err, xhr.responseXML); - else return callback(err, xhr.response); + if (isCalled) { + if (maxTimeoutId) { + maxTimeoutId = clearTimeout(maxTimeoutId); + } + lastCalled = stamp; + result = func.apply(thisArg, args); } - }; + else if (!maxTimeoutId) { + maxTimeoutId = setTimeout(maxDelayed, remaining); + } + } + if (isCalled && timeoutId) { + timeoutId = clearTimeout(timeoutId); + } + else if (!timeoutId && wait !== maxWait) { + timeoutId = setTimeout(delayed, wait); + } + if (leadingCall) { + isCalled = true; + result = func.apply(thisArg, args); + } + if (isCalled && !timeoutId && !maxTimeoutId) { + args = thisArg = null; + } + return result; + } + debounced.cancel = cancel; + return debounced; + } - // pre-authorize this object, if we can just get a token and token_secret - // from the start - oauth.preauth = function(c) { - if (!c) return; - if (c.oauth_token) token('oauth_token', c.oauth_token); - if (c.oauth_token_secret) token('oauth_token_secret', c.oauth_token_secret); - return oauth; + /** + * Creates a function that invokes `func` with the `this` binding of the + * created function and arguments from `start` and beyond provided as an array. + * + * **Note:** This method is based on the [rest parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters). + * + * @static + * @memberOf _ + * @category Function + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + * @example + * + * var say = _.restParam(function(what, names) { + * return what + ' ' + _.initial(names).join(', ') + + * (_.size(names) > 1 ? ', & ' : '') + _.last(names); + * }); + * + * say('hello', 'fred', 'barney', 'pebbles'); + * // => 'hello fred, barney, & pebbles' + */ + function restParam(func, start) { + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + start = nativeMax(start === undefined ? (func.length - 1) : (+start || 0), 0); + return function() { + var args = arguments, + index = -1, + length = nativeMax(args.length - start, 0), + rest = Array(length); + + while (++index < length) { + rest[index] = args[start + index]; + } + switch (start) { + case 0: return func.call(this, rest); + case 1: return func.call(this, args[0], rest); + case 2: return func.call(this, args[0], args[1], rest); + } + var otherArgs = Array(start + 1); + index = -1; + while (++index < start) { + otherArgs[index] = args[index]; + } + otherArgs[start] = rest; + return func.apply(this, otherArgs); }; + } - oauth.options = function(_) { - if (!arguments.length) return o; + /** + * Creates a throttled function that only invokes `func` at most once per + * every `wait` milliseconds. The throttled function comes with a `cancel` + * method to cancel delayed invocations. Provide an options object to indicate + * that `func` should be invoked on the leading and/or trailing edge of the + * `wait` timeout. Subsequent calls to the throttled function return the + * result of the last `func` call. + * + * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked + * on the trailing edge of the timeout only if the the throttled function is + * invoked more than once during the `wait` timeout. + * + * See [David Corbacho's article](http://drupalmotion.com/article/debounce-and-throttle-visual-explanation) + * for details over the differences between `_.throttle` and `_.debounce`. + * + * @static + * @memberOf _ + * @category Function + * @param {Function} func The function to throttle. + * @param {number} [wait=0] The number of milliseconds to throttle invocations to. + * @param {Object} [options] The options object. + * @param {boolean} [options.leading=true] Specify invoking on the leading + * edge of the timeout. + * @param {boolean} [options.trailing=true] Specify invoking on the trailing + * edge of the timeout. + * @returns {Function} Returns the new throttled function. + * @example + * + * // avoid excessively updating the position while scrolling + * jQuery(window).on('scroll', _.throttle(updatePosition, 100)); + * + * // invoke `renewToken` when the click event is fired, but not more than once every 5 minutes + * jQuery('.interactive').on('click', _.throttle(renewToken, 300000, { + * 'trailing': false + * })); + * + * // cancel a trailing throttled call + * jQuery(window).on('popstate', throttled.cancel); + */ + function throttle(func, wait, options) { + var leading = true, + trailing = true; - o = _; + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + if (options === false) { + leading = false; + } else if (isObject(options)) { + leading = 'leading' in options ? !!options.leading : leading; + trailing = 'trailing' in options ? !!options.trailing : trailing; + } + debounceOptions.leading = leading; + debounceOptions.maxWait = +wait; + debounceOptions.trailing = trailing; + return debounce(func, wait, debounceOptions); + } - o.url = o.url || 'http://www.openstreetmap.org'; - o.landing = o.landing || 'land.html'; + /*------------------------------------------------------------------------*/ - o.singlepage = o.singlepage || false; + /** + * Creates a clone of `value`. If `isDeep` is `true` nested objects are cloned, + * otherwise they are assigned by reference. If `customizer` is provided it is + * invoked to produce the cloned values. If `customizer` returns `undefined` + * cloning is handled by the method instead. The `customizer` is bound to + * `thisArg` and invoked with two argument; (value [, index|key, object]). + * + * **Note:** This method is loosely based on the + * [structured clone algorithm](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm). + * The enumerable properties of `arguments` objects and objects created by + * constructors other than `Object` are cloned to plain `Object` objects. An + * empty object is returned for uncloneable values such as functions, DOM nodes, + * Maps, Sets, and WeakMaps. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @param {Function} [customizer] The function to customize cloning values. + * @param {*} [thisArg] The `this` binding of `customizer`. + * @returns {*} Returns the cloned value. + * @example + * + * var users = [ + * { 'user': 'barney' }, + * { 'user': 'fred' } + * ]; + * + * var shallow = _.clone(users); + * shallow[0] === users[0]; + * // => true + * + * var deep = _.clone(users, true); + * deep[0] === users[0]; + * // => false + * + * // using a customizer callback + * var el = _.clone(document.body, function(value) { + * if (_.isElement(value)) { + * return value.cloneNode(false); + * } + * }); + * + * el === document.body + * // => false + * el.nodeName + * // => BODY + * el.childNodes.length; + * // => 0 + */ + function clone(value, isDeep, customizer, thisArg) { + if (isDeep && typeof isDeep != 'boolean' && isIterateeCall(value, isDeep, customizer)) { + isDeep = false; + } + else if (typeof isDeep == 'function') { + thisArg = customizer; + customizer = isDeep; + isDeep = false; + } + return typeof customizer == 'function' + ? baseClone(value, isDeep, bindCallback(customizer, thisArg, 1)) + : baseClone(value, isDeep); + } - // Optional loading and loading-done functions for nice UI feedback. - // by default, no-ops - o.loading = o.loading || function() {}; - o.done = o.done || function() {}; + /** + * Creates a deep clone of `value`. If `customizer` is provided it is invoked + * to produce the cloned values. If `customizer` returns `undefined` cloning + * is handled by the method instead. The `customizer` is bound to `thisArg` + * and invoked with two argument; (value [, index|key, object]). + * + * **Note:** This method is loosely based on the + * [structured clone algorithm](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm). + * The enumerable properties of `arguments` objects and objects created by + * constructors other than `Object` are cloned to plain `Object` objects. An + * empty object is returned for uncloneable values such as functions, DOM nodes, + * Maps, Sets, and WeakMaps. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to deep clone. + * @param {Function} [customizer] The function to customize cloning values. + * @param {*} [thisArg] The `this` binding of `customizer`. + * @returns {*} Returns the deep cloned value. + * @example + * + * var users = [ + * { 'user': 'barney' }, + * { 'user': 'fred' } + * ]; + * + * var deep = _.cloneDeep(users); + * deep[0] === users[0]; + * // => false + * + * // using a customizer callback + * var el = _.cloneDeep(document.body, function(value) { + * if (_.isElement(value)) { + * return value.cloneNode(true); + * } + * }); + * + * el === document.body + * // => false + * el.nodeName + * // => BODY + * el.childNodes.length; + * // => 20 + */ + function cloneDeep(value, customizer, thisArg) { + return typeof customizer == 'function' + ? baseClone(value, true, bindCallback(customizer, thisArg, 1)) + : baseClone(value, true); + } - return oauth.preauth(o); + /** + * Checks if `value` is classified as an `arguments` object. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ + function isArguments(value) { + return isObjectLike(value) && isArrayLike(value) && objToString.call(value) == argsTag; + } + // Fallback for environments without a `toStringTag` for `arguments` objects. + if (!support.argsTag) { + isArguments = function(value) { + return isObjectLike(value) && isArrayLike(value) && + hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; + } - // 'stamp' an authentication object from `getAuth()` - // with a [nonce](http://en.wikipedia.org/wiki/Cryptographic_nonce) - // and timestamp - function timenonce(o) { - o.oauth_timestamp = ohauth.timestamp(); - o.oauth_nonce = ohauth.nonce(); - return o; - } - - // get/set tokens. These are prefixed with the base URL so that `osm-auth` - // can be used with multiple APIs and the keys in `localStorage` - // will not clash - var token; + /** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(function() { return arguments; }()); + * // => false + */ + var isArray = nativeIsArray || function(value) { + return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag; + }; - if (store.enabled) { - token = function (x, y) { - if (arguments.length === 1) return store.get(o.url + x); - else if (arguments.length === 2) return store.set(o.url + x, y); - }; - } else { - var storage = {}; - token = function (x, y) { - if (arguments.length === 1) return storage[o.url + x]; - else if (arguments.length === 2) return storage[o.url + x] = y; - }; + /** + * Checks if `value` is empty. A value is considered empty unless it is an + * `arguments` object, array, string, or jQuery-like collection with a length + * greater than `0` or an object with own enumerable properties. + * + * @static + * @memberOf _ + * @category Lang + * @param {Array|Object|string} value The value to inspect. + * @returns {boolean} Returns `true` if `value` is empty, else `false`. + * @example + * + * _.isEmpty(null); + * // => true + * + * _.isEmpty(true); + * // => true + * + * _.isEmpty(1); + * // => true + * + * _.isEmpty([1, 2, 3]); + * // => false + * + * _.isEmpty({ 'a': 1 }); + * // => false + */ + function isEmpty(value) { + if (value == null) { + return true; } - - // Get an authentication object. If you just add and remove properties - // from a single object, you'll need to use `delete` to make sure that - // it doesn't contain undesired properties for authentication - function getAuth(o) { - return { - oauth_consumer_key: o.oauth_consumer_key, - oauth_signature_method: "HMAC-SHA1" - }; + if (isArrayLike(value) && (isArray(value) || isString(value) || isArguments(value) || + (isObjectLike(value) && isFunction(value.splice)))) { + return !value.length; } + return !keys(value).length; + } - // potentially pre-authorize - oauth.options(o); + /** + * Performs a deep comparison between two values to determine if they are + * equivalent. If `customizer` is provided it is invoked to compare values. + * If `customizer` returns `undefined` comparisons are handled by the method + * instead. The `customizer` is bound to `thisArg` and invoked with three + * arguments: (value, other [, index|key]). + * + * **Note:** This method supports comparing arrays, booleans, `Date` objects, + * numbers, `Object` objects, regexes, and strings. Objects are compared by + * their own, not inherited, enumerable properties. Functions and DOM nodes + * are **not** supported. Provide a customizer function to extend support + * for comparing other values. + * + * @static + * @memberOf _ + * @alias eq + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {Function} [customizer] The function to customize value comparisons. + * @param {*} [thisArg] The `this` binding of `customizer`. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'user': 'fred' }; + * var other = { 'user': 'fred' }; + * + * object == other; + * // => false + * + * _.isEqual(object, other); + * // => true + * + * // using a customizer callback + * var array = ['hello', 'goodbye']; + * var other = ['hi', 'goodbye']; + * + * _.isEqual(array, other, function(value, other) { + * if (_.every([value, other], RegExp.prototype.test, /^h(?:i|ello)$/)) { + * return true; + * } + * }); + * // => true + */ + function isEqual(value, other, customizer, thisArg) { + customizer = typeof customizer == 'function' ? bindCallback(customizer, thisArg, 3) : undefined; + var result = customizer ? customizer(value, other) : undefined; + return result === undefined ? baseIsEqual(value, other, customizer) : !!result; + } - return oauth; -}; + /** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ + var isFunction = !(baseIsFunction(/x/) || (Uint8Array && !baseIsFunction(Uint8Array))) ? baseIsFunction : function(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in older versions of Chrome and Safari which return 'function' for regexes + // and Safari 8 equivalents which return 'object' for typed array constructors. + return objToString.call(value) == funcTag; + }; -},{"ohauth":2,"store":3,"xtend":4}],3:[function(require,module,exports){ -(function(global){;(function(win){ - var store = {}, - doc = win.document, - localStorageName = 'localStorage', - storage + /** + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. + * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(1); + * // => false + */ + function isObject(value) { + // Avoid a V8 JIT bug in Chrome 19-20. + // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); + } - store.disabled = false - store.set = function(key, value) {} - store.get = function(key) {} - store.remove = function(key) {} - store.clear = function() {} - store.transact = function(key, defaultVal, transactionFn) { - var val = store.get(key) - if (transactionFn == null) { - transactionFn = defaultVal - defaultVal = null - } - if (typeof val == 'undefined') { val = defaultVal || {} } - transactionFn(val) - store.set(key, val) - } - store.getAll = function() {} - store.forEach = function() {} - - store.serialize = function(value) { - return JSON.stringify(value) - } - store.deserialize = function(value) { - if (typeof value != 'string') { return undefined } - try { return JSON.parse(value) } - catch(e) { return value || undefined } - } + /** + * Checks if `value` is a native function. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, else `false`. + * @example + * + * _.isNative(Array.prototype.push); + * // => true + * + * _.isNative(_); + * // => false + */ + function isNative(value) { + if (value == null) { + return false; + } + if (objToString.call(value) == funcTag) { + return reIsNative.test(fnToString.call(value)); + } + return isObjectLike(value) && (isHostObject(value) ? reIsNative : reIsHostCtor).test(value); + } - // Functions to encapsulate questionable FireFox 3.6.13 behavior - // when about.config::dom.storage.enabled === false - // See https://github.com/marcuswestin/store.js/issues#issue/13 - function isLocalStorageNameSupported() { - try { return (localStorageName in win && win[localStorageName]) } - catch(err) { return false } - } + /** + * Checks if `value` is a plain object, that is, an object created by the + * `Object` constructor or one with a `[[Prototype]]` of `null`. + * + * **Note:** This method assumes objects created by the `Object` constructor + * have no inherited enumerable properties. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * _.isPlainObject(new Foo); + * // => false + * + * _.isPlainObject([1, 2, 3]); + * // => false + * + * _.isPlainObject({ 'x': 0, 'y': 0 }); + * // => true + * + * _.isPlainObject(Object.create(null)); + * // => true + */ + var isPlainObject = !getPrototypeOf ? shimIsPlainObject : function(value) { + if (!(value && objToString.call(value) == objectTag) || (!lodash.support.argsTag && isArguments(value))) { + return false; + } + var valueOf = getNative(value, 'valueOf'), + objProto = valueOf && (objProto = getPrototypeOf(valueOf)) && getPrototypeOf(objProto); - if (isLocalStorageNameSupported()) { - storage = win[localStorageName] - store.set = function(key, val) { - if (val === undefined) { return store.remove(key) } - storage.setItem(key, store.serialize(val)) - return val - } - store.get = function(key) { return store.deserialize(storage.getItem(key)) } - store.remove = function(key) { storage.removeItem(key) } - store.clear = function() { storage.clear() } - store.getAll = function() { - var ret = {} - store.forEach(function(key, val) { - ret[key] = val - }) - return ret - } - store.forEach = function(callback) { - for (var i=0; idocument.w=window') - storageContainer.close() - storageOwner = storageContainer.w.frames[0].document - storage = storageOwner.createElement('div') - } catch(e) { - // somehow ActiveXObject instantiation failed (perhaps some special - // security settings or otherwse), fall back to per-path storage - storage = doc.createElement('div') - storageOwner = doc.body - } - function withIEStorage(storeFunction) { - return function() { - var args = Array.prototype.slice.call(arguments, 0) - args.unshift(storage) - // See http://msdn.microsoft.com/en-us/library/ms531081(v=VS.85).aspx - // and http://msdn.microsoft.com/en-us/library/ms531424(v=VS.85).aspx - storageOwner.appendChild(storage) - storage.addBehavior('#default#userData') - storage.load(localStorageName) - var result = storeFunction.apply(store, args) - storageOwner.removeChild(storage) - return result - } - } + return objProto + ? (value == objProto || getPrototypeOf(value) == objProto) + : shimIsPlainObject(value); + }; - // In IE7, keys may not contain special chars. See all of https://github.com/marcuswestin/store.js/issues/40 - var forbiddenCharsRegex = new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]", "g") - function ieKeyFix(key) { - return key.replace(forbiddenCharsRegex, '___') - } - store.set = withIEStorage(function(storage, key, val) { - key = ieKeyFix(key) - if (val === undefined) { return store.remove(key) } - storage.setAttribute(key, store.serialize(val)) - storage.save(localStorageName) - return val - }) - store.get = withIEStorage(function(storage, key) { - key = ieKeyFix(key) - return store.deserialize(storage.getAttribute(key)) - }) - store.remove = withIEStorage(function(storage, key) { - key = ieKeyFix(key) - storage.removeAttribute(key) - storage.save(localStorageName) - }) - store.clear = withIEStorage(function(storage) { - var attributes = storage.XMLDocument.documentElement.attributes - storage.load(localStorageName) - for (var i=0, attr; attr=attributes[i]; i++) { - storage.removeAttribute(attr.name) - } - storage.save(localStorageName) - }) - store.getAll = function(storage) { - var ret = {} - store.forEach(function(key, val) { - ret[key] = val - }) - return ret - } - store.forEach = withIEStorage(function(storage, callback) { - var attributes = storage.XMLDocument.documentElement.attributes - for (var i=0, attr; attr=attributes[i]; ++i) { - callback(attr.name, store.deserialize(storage.getAttribute(attr.name))) - } - }) - } + /** + * Checks if `value` is classified as a `String` primitive or object. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + * @example + * + * _.isString('abc'); + * // => true + * + * _.isString(1); + * // => false + */ + function isString(value) { + return typeof value == 'string' || (isObjectLike(value) && objToString.call(value) == stringTag); + } - try { - var testKey = '__storejs__' - store.set(testKey, testKey) - if (store.get(testKey) != testKey) { store.disabled = true } - store.remove(testKey) - } catch(e) { - store.disabled = true - } - store.enabled = !store.disabled - - if (typeof module != 'undefined' && module.exports) { module.exports = store } - else if (typeof define === 'function' && define.amd) { define(store) } - else { win.store = store } - -})(this.window || global); + /** + * Checks if `value` is classified as a typed array. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + * @example + * + * _.isTypedArray(new Uint8Array); + * // => true + * + * _.isTypedArray([]); + * // => false + */ + function isTypedArray(value) { + return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objToString.call(value)]; + } -})(window) -},{}],5:[function(require,module,exports){ -module.exports = hasKeys + /** + * Converts `value` to a plain object flattening inherited enumerable + * properties of `value` to own properties of the plain object. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to convert. + * @returns {Object} Returns the converted plain object. + * @example + * + * function Foo() { + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.assign({ 'a': 1 }, new Foo); + * // => { 'a': 1, 'b': 2 } + * + * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); + * // => { 'a': 1, 'b': 2, 'c': 3 } + */ + function toPlainObject(value) { + return baseCopy(value, keysIn(value)); + } -function hasKeys(source) { - return source !== null && - (typeof source === "object" || - typeof source === "function") -} + /*------------------------------------------------------------------------*/ -},{}],4:[function(require,module,exports){ -var Keys = require("object-keys") -var hasKeys = require("./has-keys") + /** + * Assigns own enumerable properties of source object(s) to the destination + * object. Subsequent sources overwrite property assignments of previous sources. + * If `customizer` is provided it is invoked to produce the assigned values. + * The `customizer` is bound to `thisArg` and invoked with five arguments: + * (objectValue, sourceValue, key, object, source). + * + * **Note:** This method mutates `object` and is based on + * [`Object.assign`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign). + * + * @static + * @memberOf _ + * @alias extend + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @param {Function} [customizer] The function to customize assigned values. + * @param {*} [thisArg] The `this` binding of `customizer`. + * @returns {Object} Returns `object`. + * @example + * + * _.assign({ 'user': 'barney' }, { 'age': 40 }, { 'user': 'fred' }); + * // => { 'user': 'fred', 'age': 40 } + * + * // using a customizer callback + * var defaults = _.partialRight(_.assign, function(value, other) { + * return _.isUndefined(value) ? other : value; + * }); + * + * defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' }); + * // => { 'user': 'barney', 'age': 36 } + */ + var assign = createAssigner(function(object, source, customizer) { + return customizer + ? assignWith(object, source, customizer) + : baseAssign(object, source); + }); -module.exports = extend + /** + * Iterates over own enumerable properties of an object invoking `iteratee` + * for each property. The `iteratee` is bound to `thisArg` and invoked with + * three arguments: (value, key, object). Iteratee functions may exit iteration + * early by explicitly returning `false`. + * + * @static + * @memberOf _ + * @category Object + * @param {Object} object The object to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {*} [thisArg] The `this` binding of `iteratee`. + * @returns {Object} Returns `object`. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.forOwn(new Foo, function(value, key) { + * console.log(key); + * }); + * // => logs 'a' and 'b' (iteration order is not guaranteed) + */ + var forOwn = createForOwn(baseForOwn); -function extend() { - var target = {} + /** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys) + * for more details. + * + * @static + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) + * + * _.keys('hi'); + * // => ['0', '1'] + */ + var keys = !nativeKeys ? shimKeys : function(object) { + var Ctor = object == null ? null : object.constructor; + if ((typeof Ctor == 'function' && Ctor.prototype === object) || + (typeof object == 'function' ? lodash.support.enumPrototypes : isArrayLike(object))) { + return shimKeys(object); + } + return isObject(object) ? nativeKeys(object) : []; + }; - for (var i = 0; i < arguments.length; i++) { - var source = arguments[i] + /** + * Creates an array of the own and inherited enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keysIn(new Foo); + * // => ['a', 'b', 'c'] (iteration order is not guaranteed) + */ + function keysIn(object) { + if (object == null) { + return []; + } + if (!isObject(object)) { + object = Object(object); + } + var length = object.length, + support = lodash.support; - if (!hasKeys(source)) { - continue - } + length = (length && isLength(length) && + (isArray(object) || isArguments(object) || isString(object)) && length) || 0; - var keys = Keys(source) + var Ctor = object.constructor, + index = -1, + proto = (isFunction(Ctor) && Ctor.prototype) || objectProto, + isProto = proto === object, + result = Array(length), + skipIndexes = length > 0, + skipErrorProps = support.enumErrorProps && (object === errorProto || object instanceof Error), + skipProto = support.enumPrototypes && isFunction(object); - for (var j = 0; j < keys.length; j++) { - var name = keys[j] - target[name] = source[name] - } + while (++index < length) { + result[index] = (index + ''); + } + // lodash skips the `constructor` property when it infers it is iterating + // over a `prototype` object because IE < 9 can't set the `[[Enumerable]]` + // attribute of an existing property and the `constructor` property of a + // prototype defaults to non-enumerable. + for (var key in object) { + if (!(skipProto && key == 'prototype') && + !(skipErrorProps && (key == 'message' || key == 'name')) && + !(skipIndexes && isIndex(key, length)) && + !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } } + if (support.nonEnumShadows && object !== objectProto) { + var tag = object === stringProto ? stringTag : (object === errorProto ? errorTag : objToString.call(object)), + nonEnums = nonEnumProps[tag] || nonEnumProps[objectTag]; - return target -} - -},{"./has-keys":5,"object-keys":6}],7:[function(require,module,exports){ -(function(global){/** - * jsHashes - A fast and independent hashing library pure JavaScript implemented (ES3 compliant) for both server and client side - * - * @class Hashes - * @author Tomas Aparicio - * @license New BSD (see LICENSE file) - * @version 1.0.4 - * - * Algorithms specification: - * - * MD5 - * RIPEMD-160 - * SHA1 - * SHA256 - * SHA512 - * HMAC - * - */ -(function(){ - var Hashes; - - // private helper methods - function utf8Encode(str) { - var x, y, output = '', i = -1, l; - - if (str && str.length) { - l = str.length; - while ((i+=1) < l) { - /* Decode utf-16 surrogate pairs */ - x = str.charCodeAt(i); - y = i + 1 < l ? str.charCodeAt(i + 1) : 0; - if (0xD800 <= x && x <= 0xDBFF && 0xDC00 <= y && y <= 0xDFFF) { - x = 0x10000 + ((x & 0x03FF) << 10) + (y & 0x03FF); - i += 1; - } - /* Encode output as utf-8 */ - if (x <= 0x7F) { - output += String.fromCharCode(x); - } else if (x <= 0x7FF) { - output += String.fromCharCode(0xC0 | ((x >>> 6 ) & 0x1F), - 0x80 | ( x & 0x3F)); - } else if (x <= 0xFFFF) { - output += String.fromCharCode(0xE0 | ((x >>> 12) & 0x0F), - 0x80 | ((x >>> 6 ) & 0x3F), - 0x80 | ( x & 0x3F)); - } else if (x <= 0x1FFFFF) { - output += String.fromCharCode(0xF0 | ((x >>> 18) & 0x07), - 0x80 | ((x >>> 12) & 0x3F), - 0x80 | ((x >>> 6 ) & 0x3F), - 0x80 | ( x & 0x3F)); - } + if (tag == objectTag) { + proto = objectProto; } - } - return output; - } - - function utf8Decode(str) { - var i, ac, c1, c2, c3, arr = [], l; - i = ac = c1 = c2 = c3 = 0; - - if (str && str.length) { - l = str.length; - str += ''; - - while (i < l) { - c1 = str.charCodeAt(i); - ac += 1; - if (c1 < 128) { - arr[ac] = String.fromCharCode(c1); - i+=1; - } else if (c1 > 191 && c1 < 224) { - c2 = str.charCodeAt(i + 1); - arr[ac] = String.fromCharCode(((c1 & 31) << 6) | (c2 & 63)); - i += 2; - } else { - c2 = str.charCodeAt(i + 1); - c3 = str.charCodeAt(i + 2); - arr[ac] = String.fromCharCode(((c1 & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); - i += 3; - } + length = shadowProps.length; + while (length--) { + key = shadowProps[length]; + var nonEnum = nonEnums[key]; + if (!(isProto && nonEnum) && + (nonEnum ? hasOwnProperty.call(object, key) : object[key] !== proto[key])) { + result.push(key); + } } } - return arr.join(''); + return result; } /** - * Add integers, wrapping at 2^32. This uses 16-bit operations internally - * to work around bugs in some JS interpreters. + * Recursively merges own enumerable properties of the source object(s), that + * don't resolve to `undefined` into the destination object. Subsequent sources + * overwrite property assignments of previous sources. If `customizer` is + * provided it is invoked to produce the merged values of the destination and + * source properties. If `customizer` returns `undefined` merging is handled + * by the method instead. The `customizer` is bound to `thisArg` and invoked + * with five arguments: (objectValue, sourceValue, key, object, source). + * + * @static + * @memberOf _ + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @param {Function} [customizer] The function to customize assigned values. + * @param {*} [thisArg] The `this` binding of `customizer`. + * @returns {Object} Returns `object`. + * @example + * + * var users = { + * 'data': [{ 'user': 'barney' }, { 'user': 'fred' }] + * }; + * + * var ages = { + * 'data': [{ 'age': 36 }, { 'age': 40 }] + * }; + * + * _.merge(users, ages); + * // => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] } + * + * // using a customizer callback + * var object = { + * 'fruits': ['apple'], + * 'vegetables': ['beet'] + * }; + * + * var other = { + * 'fruits': ['banana'], + * 'vegetables': ['carrot'] + * }; + * + * _.merge(object, other, function(a, b) { + * if (_.isArray(a)) { + * return a.concat(b); + * } + * }); + * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] } */ - function safe_add(x, y) { - var lsw = (x & 0xFFFF) + (y & 0xFFFF), - msw = (x >> 16) + (y >> 16) + (lsw >> 16); - return (msw << 16) | (lsw & 0xFFFF); - } + var merge = createAssigner(baseMerge); /** - * Bitwise rotate a 32-bit number to the left. + * The opposite of `_.pick`; this method creates an object composed of the + * own and inherited enumerable properties of `object` that are not omitted. + * + * @static + * @memberOf _ + * @category Object + * @param {Object} object The source object. + * @param {Function|...(string|string[])} [predicate] The function invoked per + * iteration or property names to omit, specified as individual property + * names or arrays of property names. + * @param {*} [thisArg] The `this` binding of `predicate`. + * @returns {Object} Returns the new object. + * @example + * + * var object = { 'user': 'fred', 'age': 40 }; + * + * _.omit(object, 'age'); + * // => { 'user': 'fred' } + * + * _.omit(object, _.isNumber); + * // => { 'user': 'fred' } */ - function bit_rol(num, cnt) { - return (num << cnt) | (num >>> (32 - cnt)); - } + var omit = restParam(function(object, props) { + if (object == null) { + return {}; + } + if (typeof props[0] != 'function') { + var props = arrayMap(baseFlatten(props), String); + return pickByArray(object, baseDifference(keysIn(object), props)); + } + var predicate = bindCallback(props[0], props[1], 3); + return pickByCallback(object, function(value, key, object) { + return !predicate(value, key, object); + }); + }); /** - * Convert a raw string to a hex string + * Creates a two dimensional array of the key-value pairs for `object`, + * e.g. `[[key1, value1], [key2, value2]]`. + * + * @static + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the new array of key-value pairs. + * @example + * + * _.pairs({ 'barney': 36, 'fred': 40 }); + * // => [['barney', 36], ['fred', 40]] (iteration order is not guaranteed) */ - function rstr2hex(input, hexcase) { - var hex_tab = hexcase ? '0123456789ABCDEF' : '0123456789abcdef', - output = '', x, i = 0, l = input.length; - for (; i < l; i+=1) { - x = input.charCodeAt(i); - output += hex_tab.charAt((x >>> 4) & 0x0F) + hex_tab.charAt(x & 0x0F); + function pairs(object) { + object = toObject(object); + + var index = -1, + props = keys(object), + length = props.length, + result = Array(length); + + while (++index < length) { + var key = props[index]; + result[index] = [key, object[key]]; } - return output; + return result; } /** - * Encode a string as utf-16 + * Creates an object composed of the picked `object` properties. Property + * names may be specified as individual arguments or as arrays of property + * names. If `predicate` is provided it is invoked for each property of `object` + * picking the properties `predicate` returns truthy for. The predicate is + * bound to `thisArg` and invoked with three arguments: (value, key, object). + * + * @static + * @memberOf _ + * @category Object + * @param {Object} object The source object. + * @param {Function|...(string|string[])} [predicate] The function invoked per + * iteration or property names to pick, specified as individual property + * names or arrays of property names. + * @param {*} [thisArg] The `this` binding of `predicate`. + * @returns {Object} Returns the new object. + * @example + * + * var object = { 'user': 'fred', 'age': 40 }; + * + * _.pick(object, 'user'); + * // => { 'user': 'fred' } + * + * _.pick(object, _.isString); + * // => { 'user': 'fred' } */ - function str2rstr_utf16le(input) { - var i, l = input.length, output = ''; - for (i = 0; i < l; i+=1) { - output += String.fromCharCode( input.charCodeAt(i) & 0xFF, (input.charCodeAt(i) >>> 8) & 0xFF); + var pick = restParam(function(object, props) { + if (object == null) { + return {}; } - return output; - } + return typeof props[0] == 'function' + ? pickByCallback(object, bindCallback(props[0], props[1], 3)) + : pickByArray(object, baseFlatten(props)); + }); - function str2rstr_utf16be(input) { - var i, l = input.length, output = ''; - for (i = 0; i < l; i+=1) { - output += String.fromCharCode((input.charCodeAt(i) >>> 8) & 0xFF, input.charCodeAt(i) & 0xFF); - } - return output; + /** + * Creates an array of the own enumerable property values of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property values. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.values(new Foo); + * // => [1, 2] (iteration order is not guaranteed) + * + * _.values('hi'); + * // => ['h', 'i'] + */ + function values(object) { + return baseValues(object, keys(object)); } + /*------------------------------------------------------------------------*/ + /** - * Convert an array of big-endian words to a string + * Escapes the `RegExp` special characters "\", "/", "^", "$", ".", "|", "?", + * "*", "+", "(", ")", "[", "]", "{" and "}" in `string`. + * + * @static + * @memberOf _ + * @category String + * @param {string} [string=''] The string to escape. + * @returns {string} Returns the escaped string. + * @example + * + * _.escapeRegExp('[lodash](https://lodash.com/)'); + * // => '\[lodash\]\(https:\/\/lodash\.com\/\)' */ - function binb2rstr(input) { - var i, l = input.length * 32, output = ''; - for (i = 0; i < l; i += 8) { - output += String.fromCharCode((input[i>>5] >>> (24 - i % 32)) & 0xFF); - } - return output; + function escapeRegExp(string) { + string = baseToString(string); + return (string && reHasRegExpChars.test(string)) + ? string.replace(reRegExpChars, '\\$&') + : string; } + /*------------------------------------------------------------------------*/ + /** - * Convert an array of little-endian words to a string + * Creates a function that invokes `func` with the `this` binding of `thisArg` + * and arguments of the created function. If `func` is a property name the + * created callback returns the property value for a given element. If `func` + * is an object the created callback returns `true` for elements that contain + * the equivalent object properties, otherwise it returns `false`. + * + * @static + * @memberOf _ + * @alias iteratee + * @category Utility + * @param {*} [func=_.identity] The value to convert to a callback. + * @param {*} [thisArg] The `this` binding of `func`. + * @param- {Object} [guard] Enables use as a callback for functions like `_.map`. + * @returns {Function} Returns the callback. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36 }, + * { 'user': 'fred', 'age': 40 } + * ]; + * + * // wrap to create custom callback shorthands + * _.callback = _.wrap(_.callback, function(callback, func, thisArg) { + * var match = /^(.+?)__([gl]t)(.+)$/.exec(func); + * if (!match) { + * return callback(func, thisArg); + * } + * return function(object) { + * return match[2] == 'gt' + * ? object[match[1]] > match[3] + * : object[match[1]] < match[3]; + * }; + * }); + * + * _.filter(users, 'age__gt36'); + * // => [{ 'user': 'fred', 'age': 40 }] */ - function binl2rstr(input) { - var i, l = input.length * 32, output = ''; - for (i = 0;i < l; i += 8) { - output += String.fromCharCode((input[i>>5] >>> (i % 32)) & 0xFF); + function callback(func, thisArg, guard) { + if (guard && isIterateeCall(func, thisArg, guard)) { + thisArg = null; } - return output; + return isObjectLike(func) + ? matches(func) + : baseCallback(func, thisArg); } /** - * Convert a raw string to an array of little-endian words - * Characters >255 have their high-byte silently ignored. + * Creates a function that returns `value`. + * + * @static + * @memberOf _ + * @category Utility + * @param {*} value The value to return from the new function. + * @returns {Function} Returns the new function. + * @example + * + * var object = { 'user': 'fred' }; + * var getter = _.constant(object); + * + * getter() === object; + * // => true */ - function rstr2binl(input) { - var i, l = input.length * 8, output = Array(input.length >> 2), lo = output.length; - for (i = 0; i < lo; i+=1) { - output[i] = 0; - } - for (i = 0; i < l; i += 8) { - output[i>>5] |= (input.charCodeAt(i / 8) & 0xFF) << (i%32); - } - return output; + function constant(value) { + return function() { + return value; + }; } - + /** - * Convert a raw string to an array of big-endian words - * Characters >255 have their high-byte silently ignored. + * This method returns the first argument provided to it. + * + * @static + * @memberOf _ + * @category Utility + * @param {*} value Any value. + * @returns {*} Returns `value`. + * @example + * + * var object = { 'user': 'fred' }; + * + * _.identity(object) === object; + * // => true */ - function rstr2binb(input) { - var i, l = input.length * 8, output = Array(input.length >> 2), lo = output.length; - for (i = 0; i < lo; i+=1) { - output[i] = 0; - } - for (i = 0; i < l; i += 8) { - output[i>>5] |= (input.charCodeAt(i / 8) & 0xFF) << (24 - i % 32); - } - return output; - } + function identity(value) { + return value; + } /** - * Convert a raw string to an arbitrary string encoding + * Creates a function that performs a deep comparison between a given object + * and `source`, returning `true` if the given object has equivalent property + * values, else `false`. + * + * **Note:** This method supports comparing arrays, booleans, `Date` objects, + * numbers, `Object` objects, regexes, and strings. Objects are compared by + * their own, not inherited, enumerable properties. For comparing a single + * own or inherited property value see `_.matchesProperty`. + * + * @static + * @memberOf _ + * @category Utility + * @param {Object} source The object of property values to match. + * @returns {Function} Returns the new function. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false } + * ]; + * + * _.filter(users, _.matches({ 'age': 40, 'active': false })); + * // => [{ 'user': 'fred', 'age': 40, 'active': false }] */ - function rstr2any(input, encoding) { - var divisor = encoding.length, - remainders = Array(), - i, q, x, ld, quotient, dividend, output, full_length; - - /* Convert to an array of 16-bit big-endian values, forming the dividend */ - dividend = Array(Math.ceil(input.length / 2)); - ld = dividend.length; - for (i = 0; i < ld; i+=1) { - dividend[i] = (input.charCodeAt(i * 2) << 8) | input.charCodeAt(i * 2 + 1); - } - - /** - * Repeatedly perform a long division. The binary array forms the dividend, - * the length of the encoding is the divisor. Once computed, the quotient - * forms the dividend for the next step. We stop when the dividend is zerHashes. - * All remainders are stored for later use. - */ - while(dividend.length > 0) { - quotient = Array(); - x = 0; - for (i = 0; i < dividend.length; i+=1) { - x = (x << 16) + dividend[i]; - q = Math.floor(x / divisor); - x -= q * divisor; - if (quotient.length > 0 || q > 0) { - quotient[quotient.length] = q; - } + function matches(source) { + return baseMatches(baseClone(source, true)); + } + + /** + * Adds all own enumerable function properties of a source object to the + * destination object. If `object` is a function then methods are added to + * its prototype as well. + * + * **Note:** Use `_.runInContext` to create a pristine `lodash` function to + * avoid conflicts caused by modifying the original. + * + * @static + * @memberOf _ + * @category Utility + * @param {Function|Object} [object=lodash] The destination object. + * @param {Object} source The object of functions to add. + * @param {Object} [options] The options object. + * @param {boolean} [options.chain=true] Specify whether the functions added + * are chainable. + * @returns {Function|Object} Returns `object`. + * @example + * + * function vowels(string) { + * return _.filter(string, function(v) { + * return /[aeiou]/i.test(v); + * }); + * } + * + * _.mixin({ 'vowels': vowels }); + * _.vowels('fred'); + * // => ['e'] + * + * _('fred').vowels().value(); + * // => ['e'] + * + * _.mixin({ 'vowels': vowels }, { 'chain': false }); + * _('fred').vowels(); + * // => ['e'] + */ + function mixin(object, source, options) { + if (options == null) { + var isObj = isObject(source), + props = isObj ? keys(source) : null, + methodNames = (props && props.length) ? baseFunctions(source, props) : null; + + if (!(methodNames ? methodNames.length : isObj)) { + methodNames = false; + options = source; + source = object; + object = this; } - remainders[remainders.length] = x; - dividend = quotient; } - - /* Convert the remainders to the output string */ - output = ''; - for (i = remainders.length - 1; i >= 0; i--) { - output += encoding.charAt(remainders[i]); + if (!methodNames) { + methodNames = baseFunctions(source, keys(source)); } - - /* Append leading zero equivalents */ - full_length = Math.ceil(input.length * 8 / (Math.log(encoding.length) / Math.log(2))); - for (i = output.length; i < full_length; i+=1) { - output = encoding[0] + output; + var chain = true, + index = -1, + isFunc = isFunction(object), + length = methodNames.length; + + if (options === false) { + chain = false; + } else if (isObject(options) && 'chain' in options) { + chain = options.chain; } - return output; + while (++index < length) { + var methodName = methodNames[index], + func = source[methodName]; + + object[methodName] = func; + if (isFunc) { + object.prototype[methodName] = (function(func) { + return function() { + var chainAll = this.__chain__; + if (chain || chainAll) { + var result = object(this.__wrapped__), + actions = result.__actions__ = arrayCopy(this.__actions__); + + actions.push({ 'func': func, 'args': arguments, 'thisArg': object }); + result.__chain__ = chainAll; + return result; + } + var args = [this.value()]; + push.apply(args, arguments); + return func.apply(object, args); + }; + }(func)); + } + } + return object; } /** - * Convert a raw string to a base-64 string + * A no-operation function that returns `undefined` regardless of the + * arguments it receives. + * + * @static + * @memberOf _ + * @category Utility + * @example + * + * var object = { 'user': 'fred' }; + * + * _.noop(object) === undefined; + * // => true */ - function rstr2b64(input, b64pad) { - var tab = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', - output = '', - len = input.length, i, j, triplet; - b64pad= b64pad || '='; - for (i = 0; i < len; i += 3) { - triplet = (input.charCodeAt(i) << 16) - | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0) - | (i + 2 < len ? input.charCodeAt(i+2) : 0); - for (j = 0; j < 4; j+=1) { - if (i * 8 + j * 6 > input.length * 8) { - output += b64pad; - } else { - output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F); - } - } - } - return output; + function noop() { + // No operation performed. } - Hashes = { - /** - * @property {String} version - * @readonly - */ - VERSION : '1.0.3', /** - * @member Hashes - * @class Base64 - * @constructor + * Creates a function that returns the property value at `path` on a + * given object. + * + * @static + * @memberOf _ + * @category Utility + * @param {Array|string} path The path of the property to get. + * @returns {Function} Returns the new function. + * @example + * + * var objects = [ + * { 'a': { 'b': { 'c': 2 } } }, + * { 'a': { 'b': { 'c': 1 } } } + * ]; + * + * _.map(objects, _.property('a.b.c')); + * // => [2, 1] + * + * _.pluck(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c'); + * // => [1, 2] */ - Base64 : function () { - // private properties - var tab = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', - pad = '=', // default pad according with the RFC standard - url = false, // URL encoding support @todo - utf8 = true; // by default enable UTF-8 support encoding - - // public method for encoding - this.encode = function (input) { - var i, j, triplet, - output = '', - len = input.length; + function property(path) { + return isKey(path) ? baseProperty(path) : basePropertyDeep(path); + } - pad = pad || '='; - input = (utf8) ? utf8Encode(input) : input; + /*------------------------------------------------------------------------*/ - for (i = 0; i < len; i += 3) { - triplet = (input.charCodeAt(i) << 16) - | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0) - | (i + 2 < len ? input.charCodeAt(i+2) : 0); - for (j = 0; j < 4; j+=1) { - if (i * 8 + j * 6 > len * 8) { - output += pad; - } else { - output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F); - } - } - } - return output; - }; + // Ensure wrappers are instances of `baseLodash`. + lodash.prototype = baseLodash.prototype; - // public method for decoding - this.decode = function (input) { - // var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; - var i, o1, o2, o3, h1, h2, h3, h4, bits, ac, - dec = '', - arr = []; - if (!input) { return input; } + LodashWrapper.prototype = baseCreate(baseLodash.prototype); + LodashWrapper.prototype.constructor = LodashWrapper; - i = ac = 0; - input = input.replace(new RegExp('\\'+pad,'gi'),''); // use '=' - //input += ''; + LazyWrapper.prototype = baseCreate(baseLodash.prototype); + LazyWrapper.prototype.constructor = LazyWrapper; - do { // unpack four hexets into three octets using index points in b64 - h1 = tab.indexOf(input.charAt(i+=1)); - h2 = tab.indexOf(input.charAt(i+=1)); - h3 = tab.indexOf(input.charAt(i+=1)); - h4 = tab.indexOf(input.charAt(i+=1)); + // Add functions to the `Set` cache. + SetCache.prototype.push = cachePush; - bits = h1 << 18 | h2 << 12 | h3 << 6 | h4; + // Add functions that return wrapped values when chaining. + lodash.assign = assign; + lodash.bind = bind; + lodash.callback = callback; + lodash.chain = chain; + lodash.chunk = chunk; + lodash.compact = compact; + lodash.constant = constant; + lodash.debounce = debounce; + lodash.difference = difference; + lodash.filter = filter; + lodash.flatten = flatten; + lodash.forEach = forEach; + lodash.forOwn = forOwn; + lodash.groupBy = groupBy; + lodash.intersection = intersection; + lodash.keys = keys; + lodash.keysIn = keysIn; + lodash.map = map; + lodash.matches = matches; + lodash.merge = merge; + lodash.mixin = mixin; + lodash.omit = omit; + lodash.pairs = pairs; + lodash.pick = pick; + lodash.pluck = pluck; + lodash.property = property; + lodash.reject = reject; + lodash.restParam = restParam; + lodash.tap = tap; + lodash.throttle = throttle; + lodash.thru = thru; + lodash.toPlainObject = toPlainObject; + lodash.union = union; + lodash.uniq = uniq; + lodash.values = values; + lodash.without = without; - o1 = bits >> 16 & 0xff; - o2 = bits >> 8 & 0xff; - o3 = bits & 0xff; - ac += 1; + // Add aliases. + lodash.collect = map; + lodash.each = forEach; + lodash.extend = assign; + lodash.iteratee = callback; + lodash.select = filter; + lodash.unique = uniq; - if (h3 === 64) { - arr[ac] = String.fromCharCode(o1); - } else if (h4 === 64) { - arr[ac] = String.fromCharCode(o1, o2); - } else { - arr[ac] = String.fromCharCode(o1, o2, o3); - } - } while (i < input.length); + // Add functions to `lodash.prototype`. + mixin(lodash, lodash); - dec = arr.join(''); - dec = (utf8) ? utf8Decode(dec) : dec; + /*------------------------------------------------------------------------*/ - return dec; - }; + // Add functions that return unwrapped values when chaining. + lodash.clone = clone; + lodash.cloneDeep = cloneDeep; + lodash.escapeRegExp = escapeRegExp; + lodash.every = every; + lodash.find = find; + lodash.first = first; + lodash.identity = identity; + lodash.includes = includes; + lodash.indexOf = indexOf; + lodash.isArguments = isArguments; + lodash.isArray = isArray; + lodash.isEmpty = isEmpty; + lodash.isEqual = isEqual; + lodash.isFunction = isFunction; + lodash.isNative = isNative; + lodash.isObject = isObject; + lodash.isPlainObject = isPlainObject; + lodash.isString = isString; + lodash.isTypedArray = isTypedArray; + lodash.last = last; + lodash.noop = noop; + lodash.now = now; + lodash.reduce = reduce; + lodash.some = some; - // set custom pad string - this.setPad = function (str) { - pad = str || pad; - return this; - }; - // set custom tab string characters - this.setTab = function (str) { - tab = str || tab; - return this; - }; - this.setUTF8 = function (bool) { - if (typeof bool === 'boolean') { - utf8 = bool; - } - return this; - }; - }, + // Add aliases. + lodash.all = every; + lodash.any = some; + lodash.contains = includes; + lodash.eq = isEqual; + lodash.detect = find; + lodash.foldl = reduce; + lodash.head = first; + lodash.include = includes; + lodash.inject = reduce; + + mixin(lodash, (function() { + var source = {}; + baseForOwn(lodash, function(func, methodName) { + if (!lodash.prototype[methodName]) { + source[methodName] = func; + } + }); + return source; + }()), false); - /** - * CRC-32 calculation - * @member Hashes - * @method CRC32 - * @static - * @param {String} str Input String - * @return {String} - */ - CRC32 : function (str) { - var crc = 0, x = 0, y = 0, table, i, iTop; - str = utf8Encode(str); - - table = [ - '00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 ', - '79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 ', - '84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F ', - '63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD ', - 'A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC ', - '51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 ', - 'B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 ', - '06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 ', - 'E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 ', - '12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 ', - 'D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 ', - '33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 ', - 'CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 ', - '9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E ', - '7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D ', - '806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 ', - '60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA ', - 'AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 ', - '5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 ', - 'B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 ', - '05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 ', - 'F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA ', - '11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 ', - 'D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F ', - '30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E ', - 'C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D' - ].join(''); + /*------------------------------------------------------------------------*/ - crc = crc ^ (-1); - for (i = 0, iTop = str.length; i < iTop; i+=1 ) { - y = ( crc ^ str.charCodeAt( i ) ) & 0xFF; - x = '0x' + table.substr( y * 9, 8 ); - crc = ( crc >>> 8 ) ^ x; + lodash.prototype.sample = function(n) { + if (!this.__chain__ && n == null) { + return sample(this.value()); } - // always return a positive number (that's what >>> 0 does) - return (crc ^ (-1)) >>> 0; - }, + return this.thru(function(value) { + return sample(value, n); + }); + }; + + /*------------------------------------------------------------------------*/ + /** - * @member Hashes - * @class MD5 - * @constructor - * @param {Object} [config] - * - * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message - * Digest Algorithm, as defined in RFC 1321. - * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet - * See for more infHashes. + * The semantic version number. + * + * @static + * @memberOf _ + * @type string */ - MD5 : function (options) { - /** - * Private config properties. You may need to tweak these to be compatible with - * the server-side, but the defaults work in most cases. - * See {@link Hashes.MD5#method-setUpperCase} and {@link Hashes.SHA1#method-setUpperCase} - */ - var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, // hexadecimal output case format. false - lowercase; true - uppercase - b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', // base-64 pad character. Defaults to '=' for strict RFC compliance - utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true; // enable/disable utf8 encoding + lodash.VERSION = VERSION; + + // Assign default placeholders. + bind.placeholder = lodash; + + // Add `LazyWrapper` methods that accept an `iteratee` value. + arrayEach(['dropWhile', 'filter', 'map', 'takeWhile'], function(methodName, type) { + var isFilter = type != LAZY_MAP_FLAG, + isDropWhile = type == LAZY_DROP_WHILE_FLAG; + + LazyWrapper.prototype[methodName] = function(iteratee, thisArg) { + var filtered = this.__filtered__, + result = (filtered && isDropWhile) ? new LazyWrapper(this) : this.clone(), + iteratees = result.__iteratees__ || (result.__iteratees__ = []); + + iteratees.push({ + 'done': false, + 'count': 0, + 'index': 0, + 'iteratee': getCallback(iteratee, thisArg, 1), + 'limit': -1, + 'type': type + }); - // privileged (public) methods - this.hex = function (s) { - return rstr2hex(rstr(s, utf8), hexcase); + result.__filtered__ = filtered || isFilter; + return result; }; - this.b64 = function (s) { - return rstr2b64(rstr(s), b64pad); + }); + + // Add `LazyWrapper` methods for `_.drop` and `_.take` variants. + arrayEach(['drop', 'take'], function(methodName, index) { + var whileName = methodName + 'While'; + + LazyWrapper.prototype[methodName] = function(n) { + var filtered = this.__filtered__, + result = (filtered && !index) ? this.dropWhile() : this.clone(); + + n = n == null ? 1 : nativeMax(floor(n) || 0, 0); + if (filtered) { + if (index) { + result.__takeCount__ = nativeMin(result.__takeCount__, n); + } else { + last(result.__iteratees__).limit = n; + } + } else { + var views = result.__views__ || (result.__views__ = []); + views.push({ 'size': n, 'type': methodName + (result.__dir__ < 0 ? 'Right' : '') }); + } + return result; }; - this.any = function(s, e) { - return rstr2any(rstr(s, utf8), e); + + LazyWrapper.prototype[methodName + 'Right'] = function(n) { + return this.reverse()[methodName](n).reverse(); }; - this.hex_hmac = function (k, d) { - return rstr2hex(rstr_hmac(k, d), hexcase); + + LazyWrapper.prototype[methodName + 'RightWhile'] = function(predicate, thisArg) { + return this.reverse()[whileName](predicate, thisArg).reverse(); }; - this.b64_hmac = function (k, d) { - return rstr2b64(rstr_hmac(k,d), b64pad); + }); + + // Add `LazyWrapper` methods for `_.first` and `_.last`. + arrayEach(['first', 'last'], function(methodName, index) { + var takeName = 'take' + (index ? 'Right' : ''); + + LazyWrapper.prototype[methodName] = function() { + return this[takeName](1).value()[0]; }; - this.any_hmac = function (k, d, e) { - return rstr2any(rstr_hmac(k, d), e); + }); + + // Add `LazyWrapper` methods for `_.initial` and `_.rest`. + arrayEach(['initial', 'rest'], function(methodName, index) { + var dropName = 'drop' + (index ? '' : 'Right'); + + LazyWrapper.prototype[methodName] = function() { + return this[dropName](1); }; - /** - * Perform a simple self-test to see if the VM is working - * @return {String} Hexadecimal hash sample - */ - this.vm_test = function () { - return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72'; + }); + + // Add `LazyWrapper` methods for `_.pluck` and `_.where`. + arrayEach(['pluck', 'where'], function(methodName, index) { + var operationName = index ? 'filter' : 'map', + createCallback = index ? baseMatches : property; + + LazyWrapper.prototype[methodName] = function(value) { + return this[operationName](createCallback(value)); }; - /** - * Enable/disable uppercase hexadecimal returned string - * @param {Boolean} - * @return {Object} this - */ - this.setUpperCase = function (a) { - if (typeof a === 'boolean' ) { - hexcase = a; + }); + + LazyWrapper.prototype.compact = function() { + return this.filter(identity); + }; + + LazyWrapper.prototype.reject = function(predicate, thisArg) { + predicate = getCallback(predicate, thisArg, 1); + return this.filter(function(value) { + return !predicate(value); + }); + }; + + LazyWrapper.prototype.slice = function(start, end) { + start = start == null ? 0 : (+start || 0); + + var result = this; + if (start < 0) { + result = this.takeRight(-start); + } else if (start) { + result = this.drop(start); + } + if (end !== undefined) { + end = (+end || 0); + result = end < 0 ? result.dropRight(-end) : result.take(end - start); + } + return result; + }; + + LazyWrapper.prototype.toArray = function() { + return this.drop(0); + }; + + // Add `LazyWrapper` methods to `lodash.prototype`. + baseForOwn(LazyWrapper.prototype, function(func, methodName) { + var lodashFunc = lodash[methodName]; + if (!lodashFunc) { + return; + } + var checkIteratee = /^(?:filter|map|reject)|While$/.test(methodName), + retUnwrapped = /^(?:first|last)$/.test(methodName); + + lodash.prototype[methodName] = function() { + var args = arguments, + chainAll = this.__chain__, + value = this.__wrapped__, + isHybrid = !!this.__actions__.length, + isLazy = value instanceof LazyWrapper, + iteratee = args[0], + useLazy = isLazy || isArray(value); + + if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) { + // avoid lazy use if the iteratee has a "length" value other than `1` + isLazy = useLazy = false; } - return this; + var onlyLazy = isLazy && !isHybrid; + if (retUnwrapped && !chainAll) { + return onlyLazy + ? func.call(value) + : lodashFunc.call(lodash, this.value()); + } + var interceptor = function(value) { + var otherArgs = [value]; + push.apply(otherArgs, args); + return lodashFunc.apply(lodash, otherArgs); + }; + if (useLazy) { + var wrapper = onlyLazy ? value : new LazyWrapper(this), + result = func.apply(wrapper, args); + + if (!retUnwrapped && (isHybrid || result.__actions__)) { + var actions = result.__actions__ || (result.__actions__ = []); + actions.push({ 'func': thru, 'args': [interceptor], 'thisArg': lodash }); + } + return new LodashWrapper(result, chainAll); + } + return this.thru(interceptor); }; - /** - * Defines a base64 pad string - * @param {String} Pad - * @return {Object} this - */ - this.setPad = function (a) { - b64pad = a || b64pad; - return this; + }); + + // Add `Array` and `String` methods to `lodash.prototype`. + arrayEach(['concat', 'join', 'pop', 'push', 'replace', 'shift', 'sort', 'splice', 'split', 'unshift'], function(methodName) { + var protoFunc = (/^(?:replace|split)$/.test(methodName) ? stringProto : arrayProto)[methodName], + chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru', + fixObjects = !support.spliceObjects && /^(?:pop|shift|splice)$/.test(methodName), + retUnwrapped = /^(?:join|pop|replace|shift)$/.test(methodName); + + // Avoid array-like object bugs with `Array#shift` and `Array#splice` in + // IE < 9, Firefox < 10, and RingoJS. + var func = !fixObjects ? protoFunc : function() { + var result = protoFunc.apply(this, arguments); + if (this.length === 0) { + delete this[0]; + } + return result; }; - /** - * Defines a base64 pad string - * @param {Boolean} - * @return {Object} [this] - */ - this.setUTF8 = function (a) { - if (typeof a === 'boolean') { - utf8 = a; + + lodash.prototype[methodName] = function() { + var args = arguments; + if (retUnwrapped && !this.__chain__) { + return func.apply(this.value(), args); } - return this; + return this[chainName](function(value) { + return func.apply(value, args); + }); }; + }); - // private methods + // Map minified function names to their real names. + baseForOwn(LazyWrapper.prototype, function(func, methodName) { + var lodashFunc = lodash[methodName]; + if (lodashFunc) { + var key = lodashFunc.name, + names = realNames[key] || (realNames[key] = []); - /** - * Calculate the MD5 of a raw string - */ - function rstr(s) { - s = (utf8) ? utf8Encode(s): s; - return binl2rstr(binl(rstr2binl(s), s.length * 8)); + names.push({ 'name': methodName, 'func': lodashFunc }); } - - /** - * Calculate the HMAC-MD5, of a key and some data (raw strings) - */ - function rstr_hmac(key, data) { - var bkey, ipad, opad, hash, i; + }); - key = (utf8) ? utf8Encode(key) : key; - data = (utf8) ? utf8Encode(data) : data; - bkey = rstr2binl(key); - if (bkey.length > 16) { - bkey = binl(bkey, key.length * 8); - } + realNames[createHybridWrapper(null, BIND_KEY_FLAG).name] = [{ 'name': 'wrapper', 'func': null }]; - ipad = Array(16), opad = Array(16); - for (i = 0; i < 16; i+=1) { - ipad[i] = bkey[i] ^ 0x36363636; - opad[i] = bkey[i] ^ 0x5C5C5C5C; - } - hash = binl(ipad.concat(rstr2binl(data)), 512 + data.length * 8); - return binl2rstr(binl(opad.concat(hash), 512 + 128)); - } + // Add functions to the lazy wrapper. + LazyWrapper.prototype.clone = lazyClone; + LazyWrapper.prototype.reverse = lazyReverse; + LazyWrapper.prototype.value = lazyValue; - /** - * Calculate the MD5 of an array of little-endian words, and a bit length. - */ - function binl(x, len) { - var i, olda, oldb, oldc, oldd, - a = 1732584193, - b = -271733879, - c = -1732584194, - d = 271733878; - - /* append padding */ - x[len >> 5] |= 0x80 << ((len) % 32); - x[(((len + 64) >>> 9) << 4) + 14] = len; + // Add chaining functions to the `lodash` wrapper. + lodash.prototype.chain = wrapperChain; + lodash.prototype.commit = wrapperCommit; + lodash.prototype.plant = wrapperPlant; + lodash.prototype.reverse = wrapperReverse; + lodash.prototype.toString = wrapperToString; + lodash.prototype.run = lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue; - for (i = 0; i < x.length; i += 16) { - olda = a; - oldb = b; - oldc = c; - oldd = d; + // Add function aliases to the `lodash` wrapper. + lodash.prototype.collect = lodash.prototype.map; + lodash.prototype.head = lodash.prototype.first; + lodash.prototype.select = lodash.prototype.filter; + lodash.prototype.tail = lodash.prototype.rest; - a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936); - d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586); - c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819); - b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330); - a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897); - d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426); - c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341); - b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983); - a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416); - d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417); - c = md5_ff(c, d, a, b, x[i+10], 17, -42063); - b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162); - a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682); - d = md5_ff(d, a, b, c, x[i+13], 12, -40341101); - c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290); - b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329); - - a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510); - d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632); - c = md5_gg(c, d, a, b, x[i+11], 14, 643717713); - b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302); - a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691); - d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083); - c = md5_gg(c, d, a, b, x[i+15], 14, -660478335); - b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848); - a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438); - d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690); - c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961); - b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501); - a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467); - d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784); - c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473); - b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734); + /*--------------------------------------------------------------------------*/ - a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558); - d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463); - c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562); - b = md5_hh(b, c, d, a, x[i+14], 23, -35309556); - a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060); - d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353); - c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632); - b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640); - a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174); - d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222); - c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979); - b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189); - a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487); - d = md5_hh(d, a, b, c, x[i+12], 11, -421815835); - c = md5_hh(c, d, a, b, x[i+15], 16, 530742520); - b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651); + if (freeExports && freeModule) { + // Export for Node.js or RingoJS. + if (moduleExports) { + (freeModule.exports = lodash)._ = lodash; + } + } + else { + // Export for a browser or Rhino. + root._ = lodash; + } +}.call(this)); +(function(e){if("function"==typeof bootstrap)bootstrap("osmauth",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeOsmAuth=e}else"undefined"!=typeof window?window.osmAuth=e():global.osmAuth=e()})(function(){var define,ses,bootstrap,module,exports; +return (function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s 16) { - bkey = binb(bkey, key.length * 8); - } - ipad = Array(16), opad = Array(16); - for (i = 0; i < 16; i+=1) { - ipad[i] = bkey[i] ^ 0x36363636; - opad[i] = bkey[i] ^ 0x5C5C5C5C; - } - hash = binb(ipad.concat(rstr2binb(data)), 512 + data.length * 8); - return binb2rstr(binb(opad.concat(hash), 512 + 160)); - } + params.oauth_signature = ohauth.signature( + o.oauth_secret, '', + ohauth.baseString('POST', url, params)); - /** - * Calculate the SHA-1 of an array of big-endian words, and a bit length - */ - function binb(x, len) { - var i, j, t, olda, oldb, oldc, oldd, olde, - w = Array(80), - a = 1732584193, - b = -271733879, - c = -1732584194, - d = 271733878, - e = -1009589776; + if (!o.singlepage) { + // Create a 600x550 popup window in the center of the screen + var w = 600, h = 550, + settings = [ + ['width', w], ['height', h], + ['left', screen.width / 2 - w / 2], + ['top', screen.height / 2 - h / 2]].map(function(x) { + return x.join('='); + }).join(','), + popup = window.open('about:blank', 'oauth_window', settings); - /* append padding */ - x[len >> 5] |= 0x80 << (24 - len % 32); - x[((len + 64 >> 9) << 4) + 15] = len; - for (i = 0; i < x.length; i += 16) { - olda = a, - oldb = b; - oldc = c; - oldd = d; - olde = e; - - for (j = 0; j < 80; j+=1) { - if (j < 16) { - w[j] = x[i + j]; - } else { - w[j] = bit_rol(w[j-3] ^ w[j-8] ^ w[j-14] ^ w[j-16], 1); - } - t = safe_add(safe_add(bit_rol(a, 5), sha1_ft(j, b, c, d)), - safe_add(safe_add(e, w[j]), sha1_kt(j))); - e = d; - d = c; - c = bit_rol(b, 30); - b = a; - a = t; - } + timer = setInterval(function() { + if (popup.closed) { + o.done(); + clearInterval(timer); + callback('not authenticated', null); + } + }, 100); + } - a = safe_add(a, olda); - b = safe_add(b, oldb); - c = safe_add(c, oldc); - d = safe_add(d, oldd); - e = safe_add(e, olde); - } - return Array(a, b, c, d, e); - } + // Request a request token. When this is complete, the popup + // window is redirected to OSM's authorization page. + ohauth.xhr('POST', url, params, null, {}, reqTokenDone); + o.loading(); - /** - * Perform the appropriate triplet combination function for the current - * iteration - */ - function sha1_ft(t, b, c, d) { - if (t < 20) { return (b & c) | ((~b) & d); } - if (t < 40) { return b ^ c ^ d; } - if (t < 60) { return (b & c) | (b & d) | (c & d); } - return b ^ c ^ d; - } + function reqTokenDone(err, xhr) { + o.done(); + if (err) { + if (timer) clearInterval(timer); + return callback(err); + } + var resp = ohauth.stringQs(xhr.response); + token('oauth_request_token_secret', resp.oauth_token_secret); + var authorize_url = o.url + '/oauth/authorize?' + ohauth.qsString({ + oauth_token: resp.oauth_token, + oauth_callback: location.href.replace('index.html', '') + .replace(/#.*/, '') + o.landing + }); - /** - * Determine the appropriate additive constant for the current iteration - */ - function sha1_kt(t) { - return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 : - (t < 60) ? -1894007588 : -899497514; - } - }, - /** - * @class Hashes.SHA256 - * @param {config} - * - * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined in FIPS 180-2 - * Version 2.2 Copyright Angel Marin, Paul Johnston 2000 - 2009. - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet - * See http://pajhome.org.uk/crypt/md5 for details. - * Also http://anmar.eu.org/projects/jssha2/ - */ - SHA256 : function (options) { - /** - * Private properties configuration variables. You may need to tweak these to be compatible with - * the server-side, but the defaults work in most cases. - * @see this.setUpperCase() method - * @see this.setPad() method - */ - var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, // hexadecimal output case format. false - lowercase; true - uppercase */ - b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', /* base-64 pad character. Default '=' for strict RFC compliance */ - utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true, /* enable/disable utf8 encoding */ - sha256_K; + if (o.singlepage) { + location.href = authorize_url; + } else { + popup.location = authorize_url; + } + } - /* privileged (public) methods */ - this.hex = function (s) { - return rstr2hex(rstr(s, utf8)); - }; - this.b64 = function (s) { - return rstr2b64(rstr(s, utf8), b64pad); - }; - this.any = function (s, e) { - return rstr2any(rstr(s, utf8), e); - }; - this.hex_hmac = function (k, d) { - return rstr2hex(rstr_hmac(k, d)); - }; - this.b64_hmac = function (k, d) { - return rstr2b64(rstr_hmac(k, d), b64pad); - }; - this.any_hmac = function (k, d, e) { - return rstr2any(rstr_hmac(k, d), e); + // Called by a function in a landing page, in the popup window. The + // window closes itself. + window.authComplete = function(token) { + if (timer) clearInterval(timer); + var oauth_token = ohauth.stringQs(token.split('?')[1]); + get_access_token(oauth_token.oauth_token); + delete window.authComplete; + }; + + // ## Getting an request token + // + // At this point we have an `oauth_token`, brought in from a function + // call on a landing page popup. + function get_access_token(oauth_token) { + var url = o.url + '/oauth/access_token', + params = timenonce(getAuth(o)), + request_token_secret = token('oauth_request_token_secret'); + params.oauth_token = oauth_token; + params.oauth_signature = ohauth.signature( + o.oauth_secret, + request_token_secret, + ohauth.baseString('POST', url, params)); + + // ## Getting an access token + // + // The final token required for authentication. At this point + // we have a `request token secret` + ohauth.xhr('POST', url, params, null, {}, accessTokenDone); + o.loading(); + } + + function accessTokenDone(err, xhr) { + o.done(); + if (timer) clearInterval(timer); + if (err) return callback(err); + var access_token = ohauth.stringQs(xhr.response); + token('oauth_token', access_token.oauth_token); + token('oauth_token_secret', access_token.oauth_token_secret); + callback(null, oauth); + } }; - /** - * Perform a simple self-test to see if the VM is working - * @return {String} Hexadecimal hash sample - * @public - */ - this.vm_test = function () { - return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72'; + + oauth.bootstrapToken = function(oauth_token, callback) { + // ## Getting an request token + // At this point we have an `oauth_token`, brought in from a function + // call on a landing page popup. + function get_access_token(oauth_token) { + var url = o.url + '/oauth/access_token', + params = timenonce(getAuth(o)), + request_token_secret = token('oauth_request_token_secret'); + params.oauth_token = oauth_token; + params.oauth_signature = ohauth.signature( + o.oauth_secret, + request_token_secret, + ohauth.baseString('POST', url, params)); + + // ## Getting an access token + // The final token required for authentication. At this point + // we have a `request token secret` + ohauth.xhr('POST', url, params, null, {}, accessTokenDone); + o.loading(); + } + + function accessTokenDone(err, xhr) { + o.done(); + if (err) return callback(err); + var access_token = ohauth.stringQs(xhr.response); + token('oauth_token', access_token.oauth_token); + token('oauth_token_secret', access_token.oauth_token_secret); + callback(null, oauth); + } + + get_access_token(oauth_token); }; - /** - * Enable/disable uppercase hexadecimal returned string - * @param {boolean} - * @return {Object} this - * @public - */ - this.setUpperCase = function (a) { - if (typeof a === 'boolean') { - hexcase = a; - } - return this; + + // # xhr + // + // A single XMLHttpRequest wrapper that does authenticated calls if the + // user has logged in. + oauth.xhr = function(options, callback) { + if (!oauth.authenticated()) { + if (o.auto) return oauth.authenticate(run); + else return callback('not authenticated', null); + } else return run(); + + function run() { + var params = timenonce(getAuth(o)), + url = o.url + options.path, + oauth_token_secret = token('oauth_token_secret'); + + // https://tools.ietf.org/html/rfc5849#section-3.4.1.3.1 + if ((!options.options || !options.options.header || + options.options.header['Content-Type'] === 'application/x-www-form-urlencoded') && + options.content) { + params = xtend(params, ohauth.stringQs(options.content)); + } + + params.oauth_token = token('oauth_token'); + params.oauth_signature = ohauth.signature( + o.oauth_secret, + oauth_token_secret, + ohauth.baseString(options.method, url, params)); + + ohauth.xhr(options.method, + url, params, options.content, options.options, done); + } + + function done(err, xhr) { + if (err) return callback(err); + else if (xhr.responseXML) return callback(err, xhr.responseXML); + else return callback(err, xhr.response); + } }; - /** - * @description Defines a base64 pad string - * @param {string} Pad - * @return {Object} this - * @public - */ - this.setPad = function (a) { - b64pad = a || b64pad; - return this; + + // pre-authorize this object, if we can just get a token and token_secret + // from the start + oauth.preauth = function(c) { + if (!c) return; + if (c.oauth_token) token('oauth_token', c.oauth_token); + if (c.oauth_token_secret) token('oauth_token_secret', c.oauth_token_secret); + return oauth; }; - /** - * Defines a base64 pad string - * @param {boolean} - * @return {Object} this - * @public - */ - this.setUTF8 = function (a) { - if (typeof a === 'boolean') { - utf8 = a; - } - return this; + + oauth.options = function(_) { + if (!arguments.length) return o; + + o = _; + + o.url = o.url || 'http://www.openstreetmap.org'; + o.landing = o.landing || 'land.html'; + + o.singlepage = o.singlepage || false; + + // Optional loading and loading-done functions for nice UI feedback. + // by default, no-ops + o.loading = o.loading || function() {}; + o.done = o.done || function() {}; + + return oauth.preauth(o); }; - - // private methods - /** - * Calculate the SHA-512 of a raw string - */ - function rstr(s, utf8) { - s = (utf8) ? utf8Encode(s) : s; - return binb2rstr(binb(rstr2binb(s), s.length * 8)); + // 'stamp' an authentication object from `getAuth()` + // with a [nonce](http://en.wikipedia.org/wiki/Cryptographic_nonce) + // and timestamp + function timenonce(o) { + o.oauth_timestamp = ohauth.timestamp(); + o.oauth_nonce = ohauth.nonce(); + return o; } - /** - * Calculate the HMAC-sha256 of a key and some data (raw strings) - */ - function rstr_hmac(key, data) { - key = (utf8) ? utf8Encode(key) : key; - data = (utf8) ? utf8Encode(data) : data; - var hash, i = 0, - bkey = rstr2binb(key), - ipad = Array(16), - opad = Array(16); - - if (bkey.length > 16) { bkey = binb(bkey, key.length * 8); } - - for (; i < 16; i+=1) { - ipad[i] = bkey[i] ^ 0x36363636; - opad[i] = bkey[i] ^ 0x5C5C5C5C; - } - - hash = binb(ipad.concat(rstr2binb(data)), 512 + data.length * 8); - return binb2rstr(binb(opad.concat(hash), 512 + 256)); + // get/set tokens. These are prefixed with the base URL so that `osm-auth` + // can be used with multiple APIs and the keys in `localStorage` + // will not clash + var token; + + if (store.enabled) { + token = function (x, y) { + if (arguments.length === 1) return store.get(o.url + x); + else if (arguments.length === 2) return store.set(o.url + x, y); + }; + } else { + var storage = {}; + token = function (x, y) { + if (arguments.length === 1) return storage[o.url + x]; + else if (arguments.length === 2) return storage[o.url + x] = y; + }; } - - /* - * Main sha256 function, with its support functions - */ - function sha256_S (X, n) {return ( X >>> n ) | (X << (32 - n));} - function sha256_R (X, n) {return ( X >>> n );} - function sha256_Ch(x, y, z) {return ((x & y) ^ ((~x) & z));} - function sha256_Maj(x, y, z) {return ((x & y) ^ (x & z) ^ (y & z));} - function sha256_Sigma0256(x) {return (sha256_S(x, 2) ^ sha256_S(x, 13) ^ sha256_S(x, 22));} - function sha256_Sigma1256(x) {return (sha256_S(x, 6) ^ sha256_S(x, 11) ^ sha256_S(x, 25));} - function sha256_Gamma0256(x) {return (sha256_S(x, 7) ^ sha256_S(x, 18) ^ sha256_R(x, 3));} - function sha256_Gamma1256(x) {return (sha256_S(x, 17) ^ sha256_S(x, 19) ^ sha256_R(x, 10));} - function sha256_Sigma0512(x) {return (sha256_S(x, 28) ^ sha256_S(x, 34) ^ sha256_S(x, 39));} - function sha256_Sigma1512(x) {return (sha256_S(x, 14) ^ sha256_S(x, 18) ^ sha256_S(x, 41));} - function sha256_Gamma0512(x) {return (sha256_S(x, 1) ^ sha256_S(x, 8) ^ sha256_R(x, 7));} - function sha256_Gamma1512(x) {return (sha256_S(x, 19) ^ sha256_S(x, 61) ^ sha256_R(x, 6));} - - sha256_K = [ - 1116352408, 1899447441, -1245643825, -373957723, 961987163, 1508970993, - -1841331548, -1424204075, -670586216, 310598401, 607225278, 1426881987, - 1925078388, -2132889090, -1680079193, -1046744716, -459576895, -272742522, - 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, - -1740746414, -1473132947, -1341970488, -1084653625, -958395405, -710438585, - 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, - 1695183700, 1986661051, -2117940946, -1838011259, -1564481375, -1474664885, - -1035236496, -949202525, -778901479, -694614492, -200395387, 275423344, - 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, - 1537002063, 1747873779, 1955562222, 2024104815, -2067236844, -1933114872, - -1866530822, -1538233109, -1090935817, -965641998 - ]; - - function binb(m, l) { - var HASH = [1779033703, -1150833019, 1013904242, -1521486534, - 1359893119, -1694144372, 528734635, 1541459225]; - var W = new Array(64); - var a, b, c, d, e, f, g, h; - var i, j, T1, T2; - - /* append padding */ - m[l >> 5] |= 0x80 << (24 - l % 32); - m[((l + 64 >> 9) << 4) + 15] = l; - - for (i = 0; i < m.length; i += 16) - { - a = HASH[0]; - b = HASH[1]; - c = HASH[2]; - d = HASH[3]; - e = HASH[4]; - f = HASH[5]; - g = HASH[6]; - h = HASH[7]; - - for (j = 0; j < 64; j+=1) - { - if (j < 16) { - W[j] = m[j + i]; - } else { - W[j] = safe_add(safe_add(safe_add(sha256_Gamma1256(W[j - 2]), W[j - 7]), - sha256_Gamma0256(W[j - 15])), W[j - 16]); + + // Get an authentication object. If you just add and remove properties + // from a single object, you'll need to use `delete` to make sure that + // it doesn't contain undesired properties for authentication + function getAuth(o) { + return { + oauth_consumer_key: o.oauth_consumer_key, + oauth_signature_method: "HMAC-SHA1" + }; + } + + // potentially pre-authorize + oauth.options(o); + + return oauth; +}; + +},{"ohauth":2,"store":3,"xtend":4}],3:[function(require,module,exports){ +(function(global){;(function(win){ + var store = {}, + doc = win.document, + localStorageName = 'localStorage', + storage + + store.disabled = false + store.set = function(key, value) {} + store.get = function(key) {} + store.remove = function(key) {} + store.clear = function() {} + store.transact = function(key, defaultVal, transactionFn) { + var val = store.get(key) + if (transactionFn == null) { + transactionFn = defaultVal + defaultVal = null + } + if (typeof val == 'undefined') { val = defaultVal || {} } + transactionFn(val) + store.set(key, val) + } + store.getAll = function() {} + store.forEach = function() {} + + store.serialize = function(value) { + return JSON.stringify(value) + } + store.deserialize = function(value) { + if (typeof value != 'string') { return undefined } + try { return JSON.parse(value) } + catch(e) { return value || undefined } + } + + // Functions to encapsulate questionable FireFox 3.6.13 behavior + // when about.config::dom.storage.enabled === false + // See https://github.com/marcuswestin/store.js/issues#issue/13 + function isLocalStorageNameSupported() { + try { return (localStorageName in win && win[localStorageName]) } + catch(err) { return false } + } + + if (isLocalStorageNameSupported()) { + storage = win[localStorageName] + store.set = function(key, val) { + if (val === undefined) { return store.remove(key) } + storage.setItem(key, store.serialize(val)) + return val + } + store.get = function(key) { return store.deserialize(storage.getItem(key)) } + store.remove = function(key) { storage.removeItem(key) } + store.clear = function() { storage.clear() } + store.getAll = function() { + var ret = {} + store.forEach(function(key, val) { + ret[key] = val + }) + return ret + } + store.forEach = function(callback) { + for (var i=0; idocument.w=window') + storageContainer.close() + storageOwner = storageContainer.w.frames[0].document + storage = storageOwner.createElement('div') + } catch(e) { + // somehow ActiveXObject instantiation failed (perhaps some special + // security settings or otherwse), fall back to per-path storage + storage = doc.createElement('div') + storageOwner = doc.body + } + function withIEStorage(storeFunction) { + return function() { + var args = Array.prototype.slice.call(arguments, 0) + args.unshift(storage) + // See http://msdn.microsoft.com/en-us/library/ms531081(v=VS.85).aspx + // and http://msdn.microsoft.com/en-us/library/ms531424(v=VS.85).aspx + storageOwner.appendChild(storage) + storage.addBehavior('#default#userData') + storage.load(localStorageName) + var result = storeFunction.apply(store, args) + storageOwner.removeChild(storage) + return result + } + } + + // In IE7, keys may not contain special chars. See all of https://github.com/marcuswestin/store.js/issues/40 + var forbiddenCharsRegex = new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]", "g") + function ieKeyFix(key) { + return key.replace(forbiddenCharsRegex, '___') + } + store.set = withIEStorage(function(storage, key, val) { + key = ieKeyFix(key) + if (val === undefined) { return store.remove(key) } + storage.setAttribute(key, store.serialize(val)) + storage.save(localStorageName) + return val + }) + store.get = withIEStorage(function(storage, key) { + key = ieKeyFix(key) + return store.deserialize(storage.getAttribute(key)) + }) + store.remove = withIEStorage(function(storage, key) { + key = ieKeyFix(key) + storage.removeAttribute(key) + storage.save(localStorageName) + }) + store.clear = withIEStorage(function(storage) { + var attributes = storage.XMLDocument.documentElement.attributes + storage.load(localStorageName) + for (var i=0, attr; attr=attributes[i]; i++) { + storage.removeAttribute(attr.name) + } + storage.save(localStorageName) + }) + store.getAll = function(storage) { + var ret = {} + store.forEach(function(key, val) { + ret[key] = val + }) + return ret + } + store.forEach = withIEStorage(function(storage, callback) { + var attributes = storage.XMLDocument.documentElement.attributes + for (var i=0, attr; attr=attributes[i]; ++i) { + callback(attr.name, store.deserialize(storage.getAttribute(attr.name))) + } + }) + } + + try { + var testKey = '__storejs__' + store.set(testKey, testKey) + if (store.get(testKey) != testKey) { store.disabled = true } + store.remove(testKey) + } catch(e) { + store.disabled = true + } + store.enabled = !store.disabled + + if (typeof module != 'undefined' && module.exports) { module.exports = store } + else if (typeof define === 'function' && define.amd) { define(store) } + else { win.store = store } + +})(this.window || global); + +})(window) +},{}],5:[function(require,module,exports){ +module.exports = hasKeys + +function hasKeys(source) { + return source !== null && + (typeof source === "object" || + typeof source === "function") +} + +},{}],4:[function(require,module,exports){ +var Keys = require("object-keys") +var hasKeys = require("./has-keys") + +module.exports = extend + +function extend() { + var target = {} + + for (var i = 0; i < arguments.length; i++) { + var source = arguments[i] + + if (!hasKeys(source)) { + continue + } + + var keys = Keys(source) + + for (var j = 0; j < keys.length; j++) { + var name = keys[j] + target[name] = source[name] + } + } + + return target +} + +},{"./has-keys":5,"object-keys":6}],7:[function(require,module,exports){ +(function(global){/** + * jsHashes - A fast and independent hashing library pure JavaScript implemented (ES3 compliant) for both server and client side + * + * @class Hashes + * @author Tomas Aparicio + * @license New BSD (see LICENSE file) + * @version 1.0.4 + * + * Algorithms specification: + * + * MD5 + * RIPEMD-160 + * SHA1 + * SHA256 + * SHA512 + * HMAC + * + */ +(function(){ + var Hashes; + + // private helper methods + function utf8Encode(str) { + var x, y, output = '', i = -1, l; + + if (str && str.length) { + l = str.length; + while ((i+=1) < l) { + /* Decode utf-16 surrogate pairs */ + x = str.charCodeAt(i); + y = i + 1 < l ? str.charCodeAt(i + 1) : 0; + if (0xD800 <= x && x <= 0xDBFF && 0xDC00 <= y && y <= 0xDFFF) { + x = 0x10000 + ((x & 0x03FF) << 10) + (y & 0x03FF); + i += 1; + } + /* Encode output as utf-8 */ + if (x <= 0x7F) { + output += String.fromCharCode(x); + } else if (x <= 0x7FF) { + output += String.fromCharCode(0xC0 | ((x >>> 6 ) & 0x1F), + 0x80 | ( x & 0x3F)); + } else if (x <= 0xFFFF) { + output += String.fromCharCode(0xE0 | ((x >>> 12) & 0x0F), + 0x80 | ((x >>> 6 ) & 0x3F), + 0x80 | ( x & 0x3F)); + } else if (x <= 0x1FFFFF) { + output += String.fromCharCode(0xF0 | ((x >>> 18) & 0x07), + 0x80 | ((x >>> 12) & 0x3F), + 0x80 | ((x >>> 6 ) & 0x3F), + 0x80 | ( x & 0x3F)); } - - T1 = safe_add(safe_add(safe_add(safe_add(h, sha256_Sigma1256(e)), sha256_Ch(e, f, g)), - sha256_K[j]), W[j]); - T2 = safe_add(sha256_Sigma0256(a), sha256_Maj(a, b, c)); - h = g; - g = f; - f = e; - e = safe_add(d, T1); - d = c; - c = b; - b = a; - a = safe_add(T1, T2); - } - - HASH[0] = safe_add(a, HASH[0]); - HASH[1] = safe_add(b, HASH[1]); - HASH[2] = safe_add(c, HASH[2]); - HASH[3] = safe_add(d, HASH[3]); - HASH[4] = safe_add(e, HASH[4]); - HASH[5] = safe_add(f, HASH[5]); - HASH[6] = safe_add(g, HASH[6]); - HASH[7] = safe_add(h, HASH[7]); } - return HASH; } + return output; + } - }, + function utf8Decode(str) { + var i, ac, c1, c2, c3, arr = [], l; + i = ac = c1 = c2 = c3 = 0; + + if (str && str.length) { + l = str.length; + str += ''; + + while (i < l) { + c1 = str.charCodeAt(i); + ac += 1; + if (c1 < 128) { + arr[ac] = String.fromCharCode(c1); + i+=1; + } else if (c1 > 191 && c1 < 224) { + c2 = str.charCodeAt(i + 1); + arr[ac] = String.fromCharCode(((c1 & 31) << 6) | (c2 & 63)); + i += 2; + } else { + c2 = str.charCodeAt(i + 1); + c3 = str.charCodeAt(i + 2); + arr[ac] = String.fromCharCode(((c1 & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); + i += 3; + } + } + } + return arr.join(''); + } /** - * @class Hashes.SHA512 - * @param {config} - * - * A JavaScript implementation of the Secure Hash Algorithm, SHA-512, as defined in FIPS 180-2 - * Version 2.2 Copyright Anonymous Contributor, Paul Johnston 2000 - 2009. - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet - * See http://pajhome.org.uk/crypt/md5 for details. + * Add integers, wrapping at 2^32. This uses 16-bit operations internally + * to work around bugs in some JS interpreters. */ - SHA512 : function (options) { - /** - * Private properties configuration variables. You may need to tweak these to be compatible with - * the server-side, but the defaults work in most cases. - * @see this.setUpperCase() method - * @see this.setPad() method - */ - var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false , /* hexadecimal output case format. false - lowercase; true - uppercase */ - b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', /* base-64 pad character. Default '=' for strict RFC compliance */ - utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true, /* enable/disable utf8 encoding */ - sha512_k; + function safe_add(x, y) { + var lsw = (x & 0xFFFF) + (y & 0xFFFF), + msw = (x >> 16) + (y >> 16) + (lsw >> 16); + return (msw << 16) | (lsw & 0xFFFF); + } - /* privileged (public) methods */ - this.hex = function (s) { - return rstr2hex(rstr(s)); - }; - this.b64 = function (s) { - return rstr2b64(rstr(s), b64pad); - }; - this.any = function (s, e) { - return rstr2any(rstr(s), e); - }; - this.hex_hmac = function (k, d) { - return rstr2hex(rstr_hmac(k, d)); - }; - this.b64_hmac = function (k, d) { - return rstr2b64(rstr_hmac(k, d), b64pad); - }; - this.any_hmac = function (k, d, e) { - return rstr2any(rstr_hmac(k, d), e); - }; - /** - * Perform a simple self-test to see if the VM is working - * @return {String} Hexadecimal hash sample - * @public - */ - this.vm_test = function () { - return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72'; - }; - /** - * @description Enable/disable uppercase hexadecimal returned string - * @param {boolean} - * @return {Object} this - * @public - */ - this.setUpperCase = function (a) { - if (typeof a === 'boolean') { - hexcase = a; - } - return this; - }; - /** - * @description Defines a base64 pad string - * @param {string} Pad - * @return {Object} this - * @public - */ - this.setPad = function (a) { - b64pad = a || b64pad; - return this; - }; - /** - * @description Defines a base64 pad string - * @param {boolean} - * @return {Object} this - * @public - */ - this.setUTF8 = function (a) { - if (typeof a === 'boolean') { - utf8 = a; - } - return this; - }; + /** + * Bitwise rotate a 32-bit number to the left. + */ + function bit_rol(num, cnt) { + return (num << cnt) | (num >>> (32 - cnt)); + } - /* private methods */ - - /** - * Calculate the SHA-512 of a raw string - */ - function rstr(s) { - s = (utf8) ? utf8Encode(s) : s; - return binb2rstr(binb(rstr2binb(s), s.length * 8)); + /** + * Convert a raw string to a hex string + */ + function rstr2hex(input, hexcase) { + var hex_tab = hexcase ? '0123456789ABCDEF' : '0123456789abcdef', + output = '', x, i = 0, l = input.length; + for (; i < l; i+=1) { + x = input.charCodeAt(i); + output += hex_tab.charAt((x >>> 4) & 0x0F) + hex_tab.charAt(x & 0x0F); } - /* - * Calculate the HMAC-SHA-512 of a key and some data (raw strings) - */ - function rstr_hmac(key, data) { - key = (utf8) ? utf8Encode(key) : key; - data = (utf8) ? utf8Encode(data) : data; - - var hash, i = 0, - bkey = rstr2binb(key), - ipad = Array(32), opad = Array(32); + return output; + } - if (bkey.length > 32) { bkey = binb(bkey, key.length * 8); } - - for (; i < 32; i+=1) { - ipad[i] = bkey[i] ^ 0x36363636; - opad[i] = bkey[i] ^ 0x5C5C5C5C; - } - - hash = binb(ipad.concat(rstr2binb(data)), 1024 + data.length * 8); - return binb2rstr(binb(opad.concat(hash), 1024 + 512)); + /** + * Encode a string as utf-16 + */ + function str2rstr_utf16le(input) { + var i, l = input.length, output = ''; + for (i = 0; i < l; i+=1) { + output += String.fromCharCode( input.charCodeAt(i) & 0xFF, (input.charCodeAt(i) >>> 8) & 0xFF); } - - /** - * Calculate the SHA-512 of an array of big-endian dwords, and a bit length - */ - function binb(x, len) { - var j, i, l, - W = new Array(80), - hash = new Array(16), - //Initial hash values - H = [ - new int64(0x6a09e667, -205731576), - new int64(-1150833019, -2067093701), - new int64(0x3c6ef372, -23791573), - new int64(-1521486534, 0x5f1d36f1), - new int64(0x510e527f, -1377402159), - new int64(-1694144372, 0x2b3e6c1f), - new int64(0x1f83d9ab, -79577749), - new int64(0x5be0cd19, 0x137e2179) - ], - T1 = new int64(0, 0), - T2 = new int64(0, 0), - a = new int64(0,0), - b = new int64(0,0), - c = new int64(0,0), - d = new int64(0,0), - e = new int64(0,0), - f = new int64(0,0), - g = new int64(0,0), - h = new int64(0,0), - //Temporary variables not specified by the document - s0 = new int64(0, 0), - s1 = new int64(0, 0), - Ch = new int64(0, 0), - Maj = new int64(0, 0), - r1 = new int64(0, 0), - r2 = new int64(0, 0), - r3 = new int64(0, 0); + return output; + } - if (sha512_k === undefined) { - //SHA512 constants - sha512_k = [ - new int64(0x428a2f98, -685199838), new int64(0x71374491, 0x23ef65cd), - new int64(-1245643825, -330482897), new int64(-373957723, -2121671748), - new int64(0x3956c25b, -213338824), new int64(0x59f111f1, -1241133031), - new int64(-1841331548, -1357295717), new int64(-1424204075, -630357736), - new int64(-670586216, -1560083902), new int64(0x12835b01, 0x45706fbe), - new int64(0x243185be, 0x4ee4b28c), new int64(0x550c7dc3, -704662302), - new int64(0x72be5d74, -226784913), new int64(-2132889090, 0x3b1696b1), - new int64(-1680079193, 0x25c71235), new int64(-1046744716, -815192428), - new int64(-459576895, -1628353838), new int64(-272742522, 0x384f25e3), - new int64(0xfc19dc6, -1953704523), new int64(0x240ca1cc, 0x77ac9c65), - new int64(0x2de92c6f, 0x592b0275), new int64(0x4a7484aa, 0x6ea6e483), - new int64(0x5cb0a9dc, -1119749164), new int64(0x76f988da, -2096016459), - new int64(-1740746414, -295247957), new int64(-1473132947, 0x2db43210), - new int64(-1341970488, -1728372417), new int64(-1084653625, -1091629340), - new int64(-958395405, 0x3da88fc2), new int64(-710438585, -1828018395), - new int64(0x6ca6351, -536640913), new int64(0x14292967, 0xa0e6e70), - new int64(0x27b70a85, 0x46d22ffc), new int64(0x2e1b2138, 0x5c26c926), - new int64(0x4d2c6dfc, 0x5ac42aed), new int64(0x53380d13, -1651133473), - new int64(0x650a7354, -1951439906), new int64(0x766a0abb, 0x3c77b2a8), - new int64(-2117940946, 0x47edaee6), new int64(-1838011259, 0x1482353b), - new int64(-1564481375, 0x4cf10364), new int64(-1474664885, -1136513023), - new int64(-1035236496, -789014639), new int64(-949202525, 0x654be30), - new int64(-778901479, -688958952), new int64(-694614492, 0x5565a910), - new int64(-200395387, 0x5771202a), new int64(0x106aa070, 0x32bbd1b8), - new int64(0x19a4c116, -1194143544), new int64(0x1e376c08, 0x5141ab53), - new int64(0x2748774c, -544281703), new int64(0x34b0bcb5, -509917016), - new int64(0x391c0cb3, -976659869), new int64(0x4ed8aa4a, -482243893), - new int64(0x5b9cca4f, 0x7763e373), new int64(0x682e6ff3, -692930397), - new int64(0x748f82ee, 0x5defb2fc), new int64(0x78a5636f, 0x43172f60), - new int64(-2067236844, -1578062990), new int64(-1933114872, 0x1a6439ec), - new int64(-1866530822, 0x23631e28), new int64(-1538233109, -561857047), - new int64(-1090935817, -1295615723), new int64(-965641998, -479046869), - new int64(-903397682, -366583396), new int64(-779700025, 0x21c0c207), - new int64(-354779690, -840897762), new int64(-176337025, -294727304), - new int64(0x6f067aa, 0x72176fba), new int64(0xa637dc5, -1563912026), - new int64(0x113f9804, -1090974290), new int64(0x1b710b35, 0x131c471b), - new int64(0x28db77f5, 0x23047d84), new int64(0x32caab7b, 0x40c72493), - new int64(0x3c9ebe0a, 0x15c9bebc), new int64(0x431d67c4, -1676669620), - new int64(0x4cc5d4be, -885112138), new int64(0x597f299c, -60457430), - new int64(0x5fcb6fab, 0x3ad6faec), new int64(0x6c44198c, 0x4a475817) - ]; - } - - for (i=0; i<80; i+=1) { - W[i] = new int64(0, 0); - } - - // append padding to the source string. The format is described in the FIPS. - x[len >> 5] |= 0x80 << (24 - (len & 0x1f)); - x[((len + 128 >> 10)<< 5) + 31] = len; - l = x.length; - for (i = 0; i=32 - //The function revrrot() is for that - function int64rrot(dst, x, shift) { - dst.l = (x.l >>> shift) | (x.h << (32-shift)); - dst.h = (x.h >>> shift) | (x.l << (32-shift)); - } - - //Reverses the dwords of the source and then rotates right by shift. - //This is equivalent to rotation by 32+shift - function int64revrrot(dst, x, shift) { - dst.l = (x.h >>> shift) | (x.l << (32-shift)); - dst.h = (x.l >>> shift) | (x.h << (32-shift)); - } - - //Bitwise-shifts right a 64-bit number by shift - //Won't handle shift>=32, but it's never needed in SHA512 - function int64shr(dst, x, shift) { - dst.l = (x.l >>> shift) | (x.h << (32-shift)); - dst.h = (x.h >>> shift); - } - - //Adds two 64-bit numbers - //Like the original implementation, does not rely on 32-bit operations - function int64add(dst, x, y) { - var w0 = (x.l & 0xffff) + (y.l & 0xffff); - var w1 = (x.l >>> 16) + (y.l >>> 16) + (w0 >>> 16); - var w2 = (x.h & 0xffff) + (y.h & 0xffff) + (w1 >>> 16); - var w3 = (x.h >>> 16) + (y.h >>> 16) + (w2 >>> 16); - dst.l = (w0 & 0xffff) | (w1 << 16); - dst.h = (w2 & 0xffff) | (w3 << 16); - } - - //Same, except with 4 addends. Works faster than adding them one by one. - function int64add4(dst, a, b, c, d) { - var w0 = (a.l & 0xffff) + (b.l & 0xffff) + (c.l & 0xffff) + (d.l & 0xffff); - var w1 = (a.l >>> 16) + (b.l >>> 16) + (c.l >>> 16) + (d.l >>> 16) + (w0 >>> 16); - var w2 = (a.h & 0xffff) + (b.h & 0xffff) + (c.h & 0xffff) + (d.h & 0xffff) + (w1 >>> 16); - var w3 = (a.h >>> 16) + (b.h >>> 16) + (c.h >>> 16) + (d.h >>> 16) + (w2 >>> 16); - dst.l = (w0 & 0xffff) | (w1 << 16); - dst.h = (w2 & 0xffff) | (w3 << 16); - } - - //Same, except with 5 addends - function int64add5(dst, a, b, c, d, e) { - var w0 = (a.l & 0xffff) + (b.l & 0xffff) + (c.l & 0xffff) + (d.l & 0xffff) + (e.l & 0xffff), - w1 = (a.l >>> 16) + (b.l >>> 16) + (c.l >>> 16) + (d.l >>> 16) + (e.l >>> 16) + (w0 >>> 16), - w2 = (a.h & 0xffff) + (b.h & 0xffff) + (c.h & 0xffff) + (d.h & 0xffff) + (e.h & 0xffff) + (w1 >>> 16), - w3 = (a.h >>> 16) + (b.h >>> 16) + (c.h >>> 16) + (d.h >>> 16) + (e.h >>> 16) + (w2 >>> 16); - dst.l = (w0 & 0xffff) | (w1 << 16); - dst.h = (w2 & 0xffff) | (w3 << 16); + function str2rstr_utf16be(input) { + var i, l = input.length, output = ''; + for (i = 0; i < l; i+=1) { + output += String.fromCharCode((input.charCodeAt(i) >>> 8) & 0xFF, input.charCodeAt(i) & 0xFF); } - }, + return output; + } + /** - * @class Hashes.RMD160 - * @constructor - * @param {Object} [config] - * - * A JavaScript implementation of the RIPEMD-160 Algorithm - * Version 2.2 Copyright Jeremy Lin, Paul Johnston 2000 - 2009. - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet - * See http://pajhome.org.uk/crypt/md5 for details. - * Also http://www.ocf.berkeley.edu/~jjlin/jsotp/ + * Convert an array of big-endian words to a string */ - RMD160 : function (options) { - /** - * Private properties configuration variables. You may need to tweak these to be compatible with - * the server-side, but the defaults work in most cases. - * @see this.setUpperCase() method - * @see this.setPad() method - */ - var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, /* hexadecimal output case format. false - lowercase; true - uppercase */ - b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', /* base-64 pad character. Default '=' for strict RFC compliance */ - utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true, /* enable/disable utf8 encoding */ - rmd160_r1 = [ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, - 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, - 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, - 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13 - ], - rmd160_r2 = [ - 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, - 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, - 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, - 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, - 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11 - ], - rmd160_s1 = [ - 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, - 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, - 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, - 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, - 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 - ], - rmd160_s2 = [ - 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, - 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, - 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, - 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, - 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 - ]; - - /* privileged (public) methods */ - this.hex = function (s) { - return rstr2hex(rstr(s, utf8)); - }; - this.b64 = function (s) { - return rstr2b64(rstr(s, utf8), b64pad); - }; - this.any = function (s, e) { - return rstr2any(rstr(s, utf8), e); - }; - this.hex_hmac = function (k, d) { - return rstr2hex(rstr_hmac(k, d)); - }; - this.b64_hmac = function (k, d) { - return rstr2b64(rstr_hmac(k, d), b64pad); - }; - this.any_hmac = function (k, d, e) { - return rstr2any(rstr_hmac(k, d), e); - }; - /** - * Perform a simple self-test to see if the VM is working - * @return {String} Hexadecimal hash sample - * @public - */ - this.vm_test = function () { - return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72'; - }; - /** - * @description Enable/disable uppercase hexadecimal returned string - * @param {boolean} - * @return {Object} this - * @public - */ - this.setUpperCase = function (a) { - if (typeof a === 'boolean' ) { hexcase = a; } - return this; - }; - /** - * @description Defines a base64 pad string - * @param {string} Pad - * @return {Object} this - * @public - */ - this.setPad = function (a) { - if (typeof a !== 'undefined' ) { b64pad = a; } - return this; - }; - /** - * @description Defines a base64 pad string - * @param {boolean} - * @return {Object} this - * @public - */ - this.setUTF8 = function (a) { - if (typeof a === 'boolean') { utf8 = a; } - return this; - }; - - /* private methods */ - - /** - * Calculate the rmd160 of a raw string - */ - function rstr(s) { - s = (utf8) ? utf8Encode(s) : s; - return binl2rstr(binl(rstr2binl(s), s.length * 8)); + function binb2rstr(input) { + var i, l = input.length * 32, output = ''; + for (i = 0; i < l; i += 8) { + output += String.fromCharCode((input[i>>5] >>> (24 - i % 32)) & 0xFF); } + return output; + } - /** - * Calculate the HMAC-rmd160 of a key and some data (raw strings) - */ - function rstr_hmac(key, data) { - key = (utf8) ? utf8Encode(key) : key; - data = (utf8) ? utf8Encode(data) : data; - var i, hash, - bkey = rstr2binl(key), - ipad = Array(16), opad = Array(16); + /** + * Convert an array of little-endian words to a string + */ + function binl2rstr(input) { + var i, l = input.length * 32, output = ''; + for (i = 0;i < l; i += 8) { + output += String.fromCharCode((input[i>>5] >>> (i % 32)) & 0xFF); + } + return output; + } - if (bkey.length > 16) { - bkey = binl(bkey, key.length * 8); - } - - for (i = 0; i < 16; i+=1) { - ipad[i] = bkey[i] ^ 0x36363636; - opad[i] = bkey[i] ^ 0x5C5C5C5C; - } - hash = binl(ipad.concat(rstr2binl(data)), 512 + data.length * 8); - return binl2rstr(binl(opad.concat(hash), 512 + 160)); + /** + * Convert a raw string to an array of little-endian words + * Characters >255 have their high-byte silently ignored. + */ + function rstr2binl(input) { + var i, l = input.length * 8, output = Array(input.length >> 2), lo = output.length; + for (i = 0; i < lo; i+=1) { + output[i] = 0; } + for (i = 0; i < l; i += 8) { + output[i>>5] |= (input.charCodeAt(i / 8) & 0xFF) << (i%32); + } + return output; + } - /** - * Convert an array of little-endian words to a string - */ - function binl2rstr(input) { - var i, output = '', l = input.length * 32; + /** + * Convert a raw string to an array of big-endian words + * Characters >255 have their high-byte silently ignored. + */ + function rstr2binb(input) { + var i, l = input.length * 8, output = Array(input.length >> 2), lo = output.length; + for (i = 0; i < lo; i+=1) { + output[i] = 0; + } for (i = 0; i < l; i += 8) { - output += String.fromCharCode((input[i>>5] >>> (i % 32)) & 0xFF); - } + output[i>>5] |= (input.charCodeAt(i / 8) & 0xFF) << (24 - i % 32); + } return output; + } + + /** + * Convert a raw string to an arbitrary string encoding + */ + function rstr2any(input, encoding) { + var divisor = encoding.length, + remainders = Array(), + i, q, x, ld, quotient, dividend, output, full_length; + + /* Convert to an array of 16-bit big-endian values, forming the dividend */ + dividend = Array(Math.ceil(input.length / 2)); + ld = dividend.length; + for (i = 0; i < ld; i+=1) { + dividend[i] = (input.charCodeAt(i * 2) << 8) | input.charCodeAt(i * 2 + 1); } /** - * Calculate the RIPE-MD160 of an array of little-endian words, and a bit length. + * Repeatedly perform a long division. The binary array forms the dividend, + * the length of the encoding is the divisor. Once computed, the quotient + * forms the dividend for the next step. We stop when the dividend is zerHashes. + * All remainders are stored for later use. */ - function binl(x, len) { - var T, j, i, l, - h0 = 0x67452301, - h1 = 0xefcdab89, - h2 = 0x98badcfe, - h3 = 0x10325476, - h4 = 0xc3d2e1f0, - A1, B1, C1, D1, E1, - A2, B2, C2, D2, E2; - - /* append padding */ - x[len >> 5] |= 0x80 << (len % 32); - x[(((len + 64) >>> 9) << 4) + 14] = len; - l = x.length; - - for (i = 0; i < l; i+=16) { - A1 = A2 = h0; B1 = B2 = h1; C1 = C2 = h2; D1 = D2 = h3; E1 = E2 = h4; - for (j = 0; j <= 79; j+=1) { - T = safe_add(A1, rmd160_f(j, B1, C1, D1)); - T = safe_add(T, x[i + rmd160_r1[j]]); - T = safe_add(T, rmd160_K1(j)); - T = safe_add(bit_rol(T, rmd160_s1[j]), E1); - A1 = E1; E1 = D1; D1 = bit_rol(C1, 10); C1 = B1; B1 = T; - T = safe_add(A2, rmd160_f(79-j, B2, C2, D2)); - T = safe_add(T, x[i + rmd160_r2[j]]); - T = safe_add(T, rmd160_K2(j)); - T = safe_add(bit_rol(T, rmd160_s2[j]), E2); - A2 = E2; E2 = D2; D2 = bit_rol(C2, 10); C2 = B2; B2 = T; + while(dividend.length > 0) { + quotient = Array(); + x = 0; + for (i = 0; i < dividend.length; i+=1) { + x = (x << 16) + dividend[i]; + q = Math.floor(x / divisor); + x -= q * divisor; + if (quotient.length > 0 || q > 0) { + quotient[quotient.length] = q; } - - T = safe_add(h1, safe_add(C1, D2)); - h1 = safe_add(h2, safe_add(D1, E2)); - h2 = safe_add(h3, safe_add(E1, A2)); - h3 = safe_add(h4, safe_add(A1, B2)); - h4 = safe_add(h0, safe_add(B1, C2)); - h0 = T; } - return [h0, h1, h2, h3, h4]; - } - - // specific algorithm methods - function rmd160_f(j, x, y, z) { - return ( 0 <= j && j <= 15) ? (x ^ y ^ z) : - (16 <= j && j <= 31) ? (x & y) | (~x & z) : - (32 <= j && j <= 47) ? (x | ~y) ^ z : - (48 <= j && j <= 63) ? (x & z) | (y & ~z) : - (64 <= j && j <= 79) ? x ^ (y | ~z) : - 'rmd160_f: j out of range'; + remainders[remainders.length] = x; + dividend = quotient; } - function rmd160_K1(j) { - return ( 0 <= j && j <= 15) ? 0x00000000 : - (16 <= j && j <= 31) ? 0x5a827999 : - (32 <= j && j <= 47) ? 0x6ed9eba1 : - (48 <= j && j <= 63) ? 0x8f1bbcdc : - (64 <= j && j <= 79) ? 0xa953fd4e : - 'rmd160_K1: j out of range'; + /* Convert the remainders to the output string */ + output = ''; + for (i = remainders.length - 1; i >= 0; i--) { + output += encoding.charAt(remainders[i]); } - function rmd160_K2(j){ - return ( 0 <= j && j <= 15) ? 0x50a28be6 : - (16 <= j && j <= 31) ? 0x5c4dd124 : - (32 <= j && j <= 47) ? 0x6d703ef3 : - (48 <= j && j <= 63) ? 0x7a6d76e9 : - (64 <= j && j <= 79) ? 0x00000000 : - 'rmd160_K2: j out of range'; + /* Append leading zero equivalents */ + full_length = Math.ceil(input.length * 8 / (Math.log(encoding.length) / Math.log(2))); + for (i = output.length; i < full_length; i+=1) { + output = encoding[0] + output; } + return output; } -}; - // exposes Hashes - (function( window, undefined ) { - var freeExports = false; - if (typeof exports === 'object' ) { - freeExports = exports; - if (exports && typeof global === 'object' && global && global === global.global ) { window = global; } - } - - if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) { - // define as an anonymous module, so, through path mapping, it can be aliased - define(function () { return Hashes; }); - } - else if ( freeExports ) { - // in Node.js or RingoJS v0.8.0+ - if ( typeof module === 'object' && module && module.exports === freeExports ) { - module.exports = Hashes; - } - // in Narwhal or RingoJS v0.7.0- - else { - freeExports.Hashes = Hashes; - } - } - else { - // in a browser or Rhino - window.Hashes = Hashes; + /** + * Convert a raw string to a base-64 string + */ + function rstr2b64(input, b64pad) { + var tab = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', + output = '', + len = input.length, i, j, triplet; + b64pad= b64pad || '='; + for (i = 0; i < len; i += 3) { + triplet = (input.charCodeAt(i) << 16) + | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0) + | (i + 2 < len ? input.charCodeAt(i+2) : 0); + for (j = 0; j < 4; j+=1) { + if (i * 8 + j * 6 > input.length * 8) { + output += b64pad; + } else { + output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F); + } + } } - }( this )); -}()); // IIFE - -})(window) -},{}],2:[function(require,module,exports){ -'use strict'; - -var hashes = require('jshashes'), - xtend = require('xtend'), - sha1 = new hashes.SHA1(); + return output; + } -var ohauth = {}; + Hashes = { + /** + * @property {String} version + * @readonly + */ + VERSION : '1.0.3', + /** + * @member Hashes + * @class Base64 + * @constructor + */ + Base64 : function () { + // private properties + var tab = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', + pad = '=', // default pad according with the RFC standard + url = false, // URL encoding support @todo + utf8 = true; // by default enable UTF-8 support encoding -ohauth.qsString = function(obj) { - return Object.keys(obj).sort().map(function(key) { - return ohauth.percentEncode(key) + '=' + - ohauth.percentEncode(obj[key]); - }).join('&'); -}; + // public method for encoding + this.encode = function (input) { + var i, j, triplet, + output = '', + len = input.length; -ohauth.stringQs = function(str) { - return str.split('&').reduce(function(obj, pair){ - var parts = pair.split('='); - obj[decodeURIComponent(parts[0])] = (null === parts[1]) ? - '' : decodeURIComponent(parts[1]); - return obj; - }, {}); -}; + pad = pad || '='; + input = (utf8) ? utf8Encode(input) : input; -ohauth.rawxhr = function(method, url, data, headers, callback) { - var xhr = new XMLHttpRequest(), - twoHundred = /^20\d$/; - xhr.onreadystatechange = function() { - if (4 == xhr.readyState && 0 !== xhr.status) { - if (twoHundred.test(xhr.status)) callback(null, xhr); - else return callback(xhr, null); + for (i = 0; i < len; i += 3) { + triplet = (input.charCodeAt(i) << 16) + | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0) + | (i + 2 < len ? input.charCodeAt(i+2) : 0); + for (j = 0; j < 4; j+=1) { + if (i * 8 + j * 6 > len * 8) { + output += pad; + } else { + output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F); + } } + } + return output; }; - xhr.onerror = function(e) { return callback(e, null); }; - xhr.open(method, url, true); - for (var h in headers) xhr.setRequestHeader(h, headers[h]); - xhr.send(data); -}; - -ohauth.xhr = function(method, url, auth, data, options, callback) { - var headers = (options && options.header) || { - 'Content-Type': 'application/x-www-form-urlencoded' - }; - headers.Authorization = 'OAuth ' + ohauth.authHeader(auth); - ohauth.rawxhr(method, url, data, headers, callback); -}; - -ohauth.nonce = function() { - for (var o = ''; o.length < 6;) { - o += '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'[Math.floor(Math.random() * 61)]; - } - return o; -}; - -ohauth.authHeader = function(obj) { - return Object.keys(obj).sort().map(function(key) { - return encodeURIComponent(key) + '="' + encodeURIComponent(obj[key]) + '"'; - }).join(', '); -}; - -ohauth.timestamp = function() { return ~~((+new Date()) / 1000); }; -ohauth.percentEncode = function(s) { - return encodeURIComponent(s) - .replace(/\!/g, '%21').replace(/\'/g, '%27') - .replace(/\*/g, '%2A').replace(/\(/g, '%28').replace(/\)/g, '%29'); -}; + // public method for decoding + this.decode = function (input) { + // var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; + var i, o1, o2, o3, h1, h2, h3, h4, bits, ac, + dec = '', + arr = []; + if (!input) { return input; } -ohauth.baseString = function(method, url, params) { - if (params.oauth_signature) delete params.oauth_signature; - return [ - method, - ohauth.percentEncode(url), - ohauth.percentEncode(ohauth.qsString(params))].join('&'); -}; + i = ac = 0; + input = input.replace(new RegExp('\\'+pad,'gi'),''); // use '=' + //input += ''; -ohauth.signature = function(oauth_secret, token_secret, baseString) { - return sha1.b64_hmac( - ohauth.percentEncode(oauth_secret) + '&' + - ohauth.percentEncode(token_secret), - baseString); -}; + do { // unpack four hexets into three octets using index points in b64 + h1 = tab.indexOf(input.charAt(i+=1)); + h2 = tab.indexOf(input.charAt(i+=1)); + h3 = tab.indexOf(input.charAt(i+=1)); + h4 = tab.indexOf(input.charAt(i+=1)); -/** - * Takes an options object for configuration (consumer_key, - * consumer_secret, version, signature_method, token) and returns a - * function that generates the Authorization header for given data. - * - * The returned function takes these parameters: - * - method: GET/POST/... - * - uri: full URI with protocol, port, path and query string - * - extra_params: any extra parameters (that are passed in the POST data), - * can be an object or a from-urlencoded string. - * - * Returned function returns full OAuth header with "OAuth" string in it. - */ + bits = h1 << 18 | h2 << 12 | h3 << 6 | h4; -ohauth.headerGenerator = function(options) { - options = options || {}; - var consumer_key = options.consumer_key || '', - consumer_secret = options.consumer_secret || '', - signature_method = options.signature_method || 'HMAC-SHA1', - version = options.version || '1.0', - token = options.token || ''; + o1 = bits >> 16 & 0xff; + o2 = bits >> 8 & 0xff; + o3 = bits & 0xff; + ac += 1; - return function(method, uri, extra_params) { - method = method.toUpperCase(); - if (typeof extra_params === 'string' && extra_params.length > 0) { - extra_params = ohauth.stringQs(extra_params); + if (h3 === 64) { + arr[ac] = String.fromCharCode(o1); + } else if (h4 === 64) { + arr[ac] = String.fromCharCode(o1, o2); + } else { + arr[ac] = String.fromCharCode(o1, o2, o3); } + } while (i < input.length); - var uri_parts = uri.split('?', 2), - base_uri = uri_parts[0]; + dec = arr.join(''); + dec = (utf8) ? utf8Decode(dec) : dec; - var query_params = uri_parts.length === 2 ? - ohauth.stringQs(uri_parts[1]) : {}; + return dec; + }; - var oauth_params = { - oauth_consumer_key: consumer_key, - oauth_signature_method: signature_method, - oauth_version: version, - oauth_timestamp: ohauth.timestamp(), - oauth_nonce: ohauth.nonce() - }; + // set custom pad string + this.setPad = function (str) { + pad = str || pad; + return this; + }; + // set custom tab string characters + this.setTab = function (str) { + tab = str || tab; + return this; + }; + this.setUTF8 = function (bool) { + if (typeof bool === 'boolean') { + utf8 = bool; + } + return this; + }; + }, - if (token) oauth_params.oauth_token = token; + /** + * CRC-32 calculation + * @member Hashes + * @method CRC32 + * @static + * @param {String} str Input String + * @return {String} + */ + CRC32 : function (str) { + var crc = 0, x = 0, y = 0, table, i, iTop; + str = utf8Encode(str); - var all_params = xtend({}, oauth_params, query_params, extra_params), - base_str = ohauth.baseString(method, base_uri, all_params); + table = [ + '00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 ', + '79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 ', + '84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F ', + '63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD ', + 'A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC ', + '51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 ', + 'B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 ', + '06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 ', + 'E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 ', + '12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 ', + 'D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 ', + '33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 ', + 'CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 ', + '9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E ', + '7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D ', + '806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 ', + '60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA ', + 'AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 ', + '5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 ', + 'B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 ', + '05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 ', + 'F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA ', + '11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 ', + 'D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F ', + '30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E ', + 'C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D' + ].join(''); - oauth_params.oauth_signature = ohauth.signature(consumer_secret, token, base_str); + crc = crc ^ (-1); + for (i = 0, iTop = str.length; i < iTop; i+=1 ) { + y = ( crc ^ str.charCodeAt( i ) ) & 0xFF; + x = '0x' + table.substr( y * 9, 8 ); + crc = ( crc >>> 8 ) ^ x; + } + // always return a positive number (that's what >>> 0 does) + return (crc ^ (-1)) >>> 0; + }, + /** + * @member Hashes + * @class MD5 + * @constructor + * @param {Object} [config] + * + * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message + * Digest Algorithm, as defined in RFC 1321. + * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 + * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet + * See for more infHashes. + */ + MD5 : function (options) { + /** + * Private config properties. You may need to tweak these to be compatible with + * the server-side, but the defaults work in most cases. + * See {@link Hashes.MD5#method-setUpperCase} and {@link Hashes.SHA1#method-setUpperCase} + */ + var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, // hexadecimal output case format. false - lowercase; true - uppercase + b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', // base-64 pad character. Defaults to '=' for strict RFC compliance + utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true; // enable/disable utf8 encoding - return 'OAuth ' + ohauth.authHeader(oauth_params); + // privileged (public) methods + this.hex = function (s) { + return rstr2hex(rstr(s, utf8), hexcase); + }; + this.b64 = function (s) { + return rstr2b64(rstr(s), b64pad); + }; + this.any = function(s, e) { + return rstr2any(rstr(s, utf8), e); + }; + this.hex_hmac = function (k, d) { + return rstr2hex(rstr_hmac(k, d), hexcase); + }; + this.b64_hmac = function (k, d) { + return rstr2b64(rstr_hmac(k,d), b64pad); + }; + this.any_hmac = function (k, d, e) { + return rstr2any(rstr_hmac(k, d), e); + }; + /** + * Perform a simple self-test to see if the VM is working + * @return {String} Hexadecimal hash sample + */ + this.vm_test = function () { + return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72'; + }; + /** + * Enable/disable uppercase hexadecimal returned string + * @param {Boolean} + * @return {Object} this + */ + this.setUpperCase = function (a) { + if (typeof a === 'boolean' ) { + hexcase = a; + } + return this; + }; + /** + * Defines a base64 pad string + * @param {String} Pad + * @return {Object} this + */ + this.setPad = function (a) { + b64pad = a || b64pad; + return this; + }; + /** + * Defines a base64 pad string + * @param {Boolean} + * @return {Object} [this] + */ + this.setUTF8 = function (a) { + if (typeof a === 'boolean') { + utf8 = a; + } + return this; }; -}; -module.exports = ohauth; + // private methods -},{"jshashes":7,"xtend":4}],6:[function(require,module,exports){ -module.exports = Object.keys || require('./shim'); + /** + * Calculate the MD5 of a raw string + */ + function rstr(s) { + s = (utf8) ? utf8Encode(s): s; + return binl2rstr(binl(rstr2binl(s), s.length * 8)); + } + /** + * Calculate the HMAC-MD5, of a key and some data (raw strings) + */ + function rstr_hmac(key, data) { + var bkey, ipad, opad, hash, i; -},{"./shim":8}],8:[function(require,module,exports){ -(function () { - "use strict"; + key = (utf8) ? utf8Encode(key) : key; + data = (utf8) ? utf8Encode(data) : data; + bkey = rstr2binl(key); + if (bkey.length > 16) { + bkey = binl(bkey, key.length * 8); + } - // modified from https://github.com/kriskowal/es5-shim - var has = Object.prototype.hasOwnProperty, - is = require('is'), - forEach = require('foreach'), - hasDontEnumBug = !({'toString': null}).propertyIsEnumerable('toString'), - dontEnums = [ - "toString", - "toLocaleString", - "valueOf", - "hasOwnProperty", - "isPrototypeOf", - "propertyIsEnumerable", - "constructor" - ], - keysShim; + ipad = Array(16), opad = Array(16); + for (i = 0; i < 16; i+=1) { + ipad[i] = bkey[i] ^ 0x36363636; + opad[i] = bkey[i] ^ 0x5C5C5C5C; + } + hash = binl(ipad.concat(rstr2binl(data)), 512 + data.length * 8); + return binl2rstr(binl(opad.concat(hash), 512 + 128)); + } - keysShim = function keys(object) { - if (!is.object(object) && !is.array(object)) { - throw new TypeError("Object.keys called on a non-object"); - } + /** + * Calculate the MD5 of an array of little-endian words, and a bit length. + */ + function binl(x, len) { + var i, olda, oldb, oldc, oldd, + a = 1732584193, + b = -271733879, + c = -1732584194, + d = 271733878; - var name, theKeys = []; - for (name in object) { - if (has.call(object, name)) { - theKeys.push(name); - } - } + /* append padding */ + x[len >> 5] |= 0x80 << ((len) % 32); + x[(((len + 64) >>> 9) << 4) + 14] = len; - if (hasDontEnumBug) { - forEach(dontEnums, function (dontEnum) { - if (has.call(object, dontEnum)) { - theKeys.push(dontEnum); - } - }); - } - return theKeys; - }; + for (i = 0; i < x.length; i += 16) { + olda = a; + oldb = b; + oldc = c; + oldd = d; - module.exports = keysShim; -}()); + a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936); + d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586); + c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819); + b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330); + a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897); + d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426); + c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341); + b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983); + a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416); + d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417); + c = md5_ff(c, d, a, b, x[i+10], 17, -42063); + b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162); + a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682); + d = md5_ff(d, a, b, c, x[i+13], 12, -40341101); + c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290); + b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329); + a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510); + d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632); + c = md5_gg(c, d, a, b, x[i+11], 14, 643717713); + b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302); + a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691); + d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083); + c = md5_gg(c, d, a, b, x[i+15], 14, -660478335); + b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848); + a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438); + d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690); + c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961); + b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501); + a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467); + d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784); + c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473); + b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734); -},{"is":9,"foreach":10}],9:[function(require,module,exports){ + a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558); + d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463); + c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562); + b = md5_hh(b, c, d, a, x[i+14], 23, -35309556); + a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060); + d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353); + c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632); + b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640); + a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174); + d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222); + c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979); + b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189); + a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487); + d = md5_hh(d, a, b, c, x[i+12], 11, -421815835); + c = md5_hh(c, d, a, b, x[i+15], 16, 530742520); + b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651); -/**! - * is - * the definitive JavaScript type testing library - * - * @copyright 2013 Enrico Marino - * @license MIT - */ + a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844); + d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415); + c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905); + b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055); + a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571); + d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606); + c = md5_ii(c, d, a, b, x[i+10], 15, -1051523); + b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799); + a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359); + d = md5_ii(d, a, b, c, x[i+15], 10, -30611744); + c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380); + b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649); + a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070); + d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379); + c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259); + b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551); -var objProto = Object.prototype; -var owns = objProto.hasOwnProperty; -var toString = objProto.toString; -var isActualNaN = function (value) { - return value !== value; -}; -var NON_HOST_TYPES = { - "boolean": 1, - "number": 1, - "string": 1, - "undefined": 1 -}; - -/** - * Expose `is` - */ - -var is = module.exports = {}; - -/** - * Test general. - */ - -/** - * is.type - * Test if `value` is a type of `type`. - * - * @param {Mixed} value value to test - * @param {String} type type - * @return {Boolean} true if `value` is a type of `type`, false otherwise - * @api public - */ - -is.a = -is.type = function (value, type) { - return typeof value === type; -}; - -/** - * is.defined - * Test if `value` is defined. - * - * @param {Mixed} value value to test - * @return {Boolean} true if 'value' is defined, false otherwise - * @api public - */ + a = safe_add(a, olda); + b = safe_add(b, oldb); + c = safe_add(c, oldc); + d = safe_add(d, oldd); + } + return Array(a, b, c, d); + } -is.defined = function (value) { - return value !== undefined; -}; + /** + * These functions implement the four basic operations the algorithm uses. + */ + function md5_cmn(q, a, b, x, s, t) { + return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b); + } + function md5_ff(a, b, c, d, x, s, t) { + return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t); + } + function md5_gg(a, b, c, d, x, s, t) { + return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t); + } + function md5_hh(a, b, c, d, x, s, t) { + return md5_cmn(b ^ c ^ d, a, b, x, s, t); + } + function md5_ii(a, b, c, d, x, s, t) { + return md5_cmn(c ^ (b | (~d)), a, b, x, s, t); + } + }, + /** + * @member Hashes + * @class Hashes.SHA1 + * @param {Object} [config] + * @constructor + * + * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined in FIPS 180-1 + * Version 2.2 Copyright Paul Johnston 2000 - 2009. + * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet + * See http://pajhome.org.uk/crypt/md5 for details. + */ + SHA1 : function (options) { + /** + * Private config properties. You may need to tweak these to be compatible with + * the server-side, but the defaults work in most cases. + * See {@link Hashes.MD5#method-setUpperCase} and {@link Hashes.SHA1#method-setUpperCase} + */ + var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, // hexadecimal output case format. false - lowercase; true - uppercase + b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', // base-64 pad character. Defaults to '=' for strict RFC compliance + utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true; // enable/disable utf8 encoding -/** - * is.empty - * Test if `value` is empty. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is empty, false otherwise - * @api public - */ + // public methods + this.hex = function (s) { + return rstr2hex(rstr(s, utf8), hexcase); + }; + this.b64 = function (s) { + return rstr2b64(rstr(s, utf8), b64pad); + }; + this.any = function (s, e) { + return rstr2any(rstr(s, utf8), e); + }; + this.hex_hmac = function (k, d) { + return rstr2hex(rstr_hmac(k, d)); + }; + this.b64_hmac = function (k, d) { + return rstr2b64(rstr_hmac(k, d), b64pad); + }; + this.any_hmac = function (k, d, e) { + return rstr2any(rstr_hmac(k, d), e); + }; + /** + * Perform a simple self-test to see if the VM is working + * @return {String} Hexadecimal hash sample + * @public + */ + this.vm_test = function () { + return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72'; + }; + /** + * @description Enable/disable uppercase hexadecimal returned string + * @param {boolean} + * @return {Object} this + * @public + */ + this.setUpperCase = function (a) { + if (typeof a === 'boolean') { + hexcase = a; + } + return this; + }; + /** + * @description Defines a base64 pad string + * @param {string} Pad + * @return {Object} this + * @public + */ + this.setPad = function (a) { + b64pad = a || b64pad; + return this; + }; + /** + * @description Defines a base64 pad string + * @param {boolean} + * @return {Object} this + * @public + */ + this.setUTF8 = function (a) { + if (typeof a === 'boolean') { + utf8 = a; + } + return this; + }; -is.empty = function (value) { - var type = toString.call(value); - var key; + // private methods - if ('[object Array]' === type || '[object Arguments]' === type) { - return value.length === 0; - } + /** + * Calculate the SHA-512 of a raw string + */ + function rstr(s) { + s = (utf8) ? utf8Encode(s) : s; + return binb2rstr(binb(rstr2binb(s), s.length * 8)); + } - if ('[object Object]' === type) { - for (key in value) if (owns.call(value, key)) return false; - return true; - } + /** + * Calculate the HMAC-SHA1 of a key and some data (raw strings) + */ + function rstr_hmac(key, data) { + var bkey, ipad, opad, i, hash; + key = (utf8) ? utf8Encode(key) : key; + data = (utf8) ? utf8Encode(data) : data; + bkey = rstr2binb(key); - if ('[object String]' === type) { - return '' === value; - } + if (bkey.length > 16) { + bkey = binb(bkey, key.length * 8); + } + ipad = Array(16), opad = Array(16); + for (i = 0; i < 16; i+=1) { + ipad[i] = bkey[i] ^ 0x36363636; + opad[i] = bkey[i] ^ 0x5C5C5C5C; + } + hash = binb(ipad.concat(rstr2binb(data)), 512 + data.length * 8); + return binb2rstr(binb(opad.concat(hash), 512 + 160)); + } - return false; -}; + /** + * Calculate the SHA-1 of an array of big-endian words, and a bit length + */ + function binb(x, len) { + var i, j, t, olda, oldb, oldc, oldd, olde, + w = Array(80), + a = 1732584193, + b = -271733879, + c = -1732584194, + d = 271733878, + e = -1009589776; -/** - * is.equal - * Test if `value` is equal to `other`. - * - * @param {Mixed} value value to test - * @param {Mixed} other value to compare with - * @return {Boolean} true if `value` is equal to `other`, false otherwise - */ + /* append padding */ + x[len >> 5] |= 0x80 << (24 - len % 32); + x[((len + 64 >> 9) << 4) + 15] = len; -is.equal = function (value, other) { - var type = toString.call(value) - var key; + for (i = 0; i < x.length; i += 16) { + olda = a, + oldb = b; + oldc = c; + oldd = d; + olde = e; - if (type !== toString.call(other)) { - return false; - } + for (j = 0; j < 80; j+=1) { + if (j < 16) { + w[j] = x[i + j]; + } else { + w[j] = bit_rol(w[j-3] ^ w[j-8] ^ w[j-14] ^ w[j-16], 1); + } + t = safe_add(safe_add(bit_rol(a, 5), sha1_ft(j, b, c, d)), + safe_add(safe_add(e, w[j]), sha1_kt(j))); + e = d; + d = c; + c = bit_rol(b, 30); + b = a; + a = t; + } - if ('[object Object]' === type) { - for (key in value) { - if (!is.equal(value[key], other[key])) { - return false; + a = safe_add(a, olda); + b = safe_add(b, oldb); + c = safe_add(c, oldc); + d = safe_add(d, oldd); + e = safe_add(e, olde); } + return Array(a, b, c, d, e); } - return true; - } - if ('[object Array]' === type) { - key = value.length; - if (key !== other.length) { - return false; - } - while (--key) { - if (!is.equal(value[key], other[key])) { - return false; - } + /** + * Perform the appropriate triplet combination function for the current + * iteration + */ + function sha1_ft(t, b, c, d) { + if (t < 20) { return (b & c) | ((~b) & d); } + if (t < 40) { return b ^ c ^ d; } + if (t < 60) { return (b & c) | (b & d) | (c & d); } + return b ^ c ^ d; } - return true; - } - if ('[object Function]' === type) { - return value.prototype === other.prototype; - } + /** + * Determine the appropriate additive constant for the current iteration + */ + function sha1_kt(t) { + return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 : + (t < 60) ? -1894007588 : -899497514; + } + }, + /** + * @class Hashes.SHA256 + * @param {config} + * + * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined in FIPS 180-2 + * Version 2.2 Copyright Angel Marin, Paul Johnston 2000 - 2009. + * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet + * See http://pajhome.org.uk/crypt/md5 for details. + * Also http://anmar.eu.org/projects/jssha2/ + */ + SHA256 : function (options) { + /** + * Private properties configuration variables. You may need to tweak these to be compatible with + * the server-side, but the defaults work in most cases. + * @see this.setUpperCase() method + * @see this.setPad() method + */ + var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, // hexadecimal output case format. false - lowercase; true - uppercase */ + b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', /* base-64 pad character. Default '=' for strict RFC compliance */ + utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true, /* enable/disable utf8 encoding */ + sha256_K; - if ('[object Date]' === type) { - return value.getTime() === other.getTime(); - } + /* privileged (public) methods */ + this.hex = function (s) { + return rstr2hex(rstr(s, utf8)); + }; + this.b64 = function (s) { + return rstr2b64(rstr(s, utf8), b64pad); + }; + this.any = function (s, e) { + return rstr2any(rstr(s, utf8), e); + }; + this.hex_hmac = function (k, d) { + return rstr2hex(rstr_hmac(k, d)); + }; + this.b64_hmac = function (k, d) { + return rstr2b64(rstr_hmac(k, d), b64pad); + }; + this.any_hmac = function (k, d, e) { + return rstr2any(rstr_hmac(k, d), e); + }; + /** + * Perform a simple self-test to see if the VM is working + * @return {String} Hexadecimal hash sample + * @public + */ + this.vm_test = function () { + return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72'; + }; + /** + * Enable/disable uppercase hexadecimal returned string + * @param {boolean} + * @return {Object} this + * @public + */ + this.setUpperCase = function (a) { + if (typeof a === 'boolean') { + hexcase = a; + } + return this; + }; + /** + * @description Defines a base64 pad string + * @param {string} Pad + * @return {Object} this + * @public + */ + this.setPad = function (a) { + b64pad = a || b64pad; + return this; + }; + /** + * Defines a base64 pad string + * @param {boolean} + * @return {Object} this + * @public + */ + this.setUTF8 = function (a) { + if (typeof a === 'boolean') { + utf8 = a; + } + return this; + }; - return value === other; -}; + // private methods -/** - * is.hosted - * Test if `value` is hosted by `host`. - * - * @param {Mixed} value to test - * @param {Mixed} host host to test with - * @return {Boolean} true if `value` is hosted by `host`, false otherwise - * @api public - */ + /** + * Calculate the SHA-512 of a raw string + */ + function rstr(s, utf8) { + s = (utf8) ? utf8Encode(s) : s; + return binb2rstr(binb(rstr2binb(s), s.length * 8)); + } -is.hosted = function (value, host) { - var type = typeof host[value]; - return type === 'object' ? !!host[value] : !NON_HOST_TYPES[type]; -}; + /** + * Calculate the HMAC-sha256 of a key and some data (raw strings) + */ + function rstr_hmac(key, data) { + key = (utf8) ? utf8Encode(key) : key; + data = (utf8) ? utf8Encode(data) : data; + var hash, i = 0, + bkey = rstr2binb(key), + ipad = Array(16), + opad = Array(16); -/** - * is.instance - * Test if `value` is an instance of `constructor`. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is an instance of `constructor` - * @api public - */ + if (bkey.length > 16) { bkey = binb(bkey, key.length * 8); } -is.instance = is['instanceof'] = function (value, constructor) { - return value instanceof constructor; -}; + for (; i < 16; i+=1) { + ipad[i] = bkey[i] ^ 0x36363636; + opad[i] = bkey[i] ^ 0x5C5C5C5C; + } -/** - * is.null - * Test if `value` is null. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is null, false otherwise - * @api public - */ + hash = binb(ipad.concat(rstr2binb(data)), 512 + data.length * 8); + return binb2rstr(binb(opad.concat(hash), 512 + 256)); + } -is['null'] = function (value) { - return value === null; -}; + /* + * Main sha256 function, with its support functions + */ + function sha256_S (X, n) {return ( X >>> n ) | (X << (32 - n));} + function sha256_R (X, n) {return ( X >>> n );} + function sha256_Ch(x, y, z) {return ((x & y) ^ ((~x) & z));} + function sha256_Maj(x, y, z) {return ((x & y) ^ (x & z) ^ (y & z));} + function sha256_Sigma0256(x) {return (sha256_S(x, 2) ^ sha256_S(x, 13) ^ sha256_S(x, 22));} + function sha256_Sigma1256(x) {return (sha256_S(x, 6) ^ sha256_S(x, 11) ^ sha256_S(x, 25));} + function sha256_Gamma0256(x) {return (sha256_S(x, 7) ^ sha256_S(x, 18) ^ sha256_R(x, 3));} + function sha256_Gamma1256(x) {return (sha256_S(x, 17) ^ sha256_S(x, 19) ^ sha256_R(x, 10));} + function sha256_Sigma0512(x) {return (sha256_S(x, 28) ^ sha256_S(x, 34) ^ sha256_S(x, 39));} + function sha256_Sigma1512(x) {return (sha256_S(x, 14) ^ sha256_S(x, 18) ^ sha256_S(x, 41));} + function sha256_Gamma0512(x) {return (sha256_S(x, 1) ^ sha256_S(x, 8) ^ sha256_R(x, 7));} + function sha256_Gamma1512(x) {return (sha256_S(x, 19) ^ sha256_S(x, 61) ^ sha256_R(x, 6));} -/** - * is.undefined - * Test if `value` is undefined. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is undefined, false otherwise - * @api public - */ + sha256_K = [ + 1116352408, 1899447441, -1245643825, -373957723, 961987163, 1508970993, + -1841331548, -1424204075, -670586216, 310598401, 607225278, 1426881987, + 1925078388, -2132889090, -1680079193, -1046744716, -459576895, -272742522, + 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, + -1740746414, -1473132947, -1341970488, -1084653625, -958395405, -710438585, + 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, + 1695183700, 1986661051, -2117940946, -1838011259, -1564481375, -1474664885, + -1035236496, -949202525, -778901479, -694614492, -200395387, 275423344, + 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, + 1537002063, 1747873779, 1955562222, 2024104815, -2067236844, -1933114872, + -1866530822, -1538233109, -1090935817, -965641998 + ]; -is.undefined = function (value) { - return value === undefined; -}; + function binb(m, l) { + var HASH = [1779033703, -1150833019, 1013904242, -1521486534, + 1359893119, -1694144372, 528734635, 1541459225]; + var W = new Array(64); + var a, b, c, d, e, f, g, h; + var i, j, T1, T2; -/** - * Test arguments. - */ + /* append padding */ + m[l >> 5] |= 0x80 << (24 - l % 32); + m[((l + 64 >> 9) << 4) + 15] = l; -/** - * is.arguments - * Test if `value` is an arguments object. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is an arguments object, false otherwise - * @api public - */ + for (i = 0; i < m.length; i += 16) + { + a = HASH[0]; + b = HASH[1]; + c = HASH[2]; + d = HASH[3]; + e = HASH[4]; + f = HASH[5]; + g = HASH[6]; + h = HASH[7]; -is.arguments = function (value) { - var isStandardArguments = '[object Arguments]' === toString.call(value); - var isOldArguments = !is.array(value) && is.arraylike(value) && is.object(value) && is.fn(value.callee); - return isStandardArguments || isOldArguments; -}; + for (j = 0; j < 64; j+=1) + { + if (j < 16) { + W[j] = m[j + i]; + } else { + W[j] = safe_add(safe_add(safe_add(sha256_Gamma1256(W[j - 2]), W[j - 7]), + sha256_Gamma0256(W[j - 15])), W[j - 16]); + } -/** - * Test array. - */ + T1 = safe_add(safe_add(safe_add(safe_add(h, sha256_Sigma1256(e)), sha256_Ch(e, f, g)), + sha256_K[j]), W[j]); + T2 = safe_add(sha256_Sigma0256(a), sha256_Maj(a, b, c)); + h = g; + g = f; + f = e; + e = safe_add(d, T1); + d = c; + c = b; + b = a; + a = safe_add(T1, T2); + } -/** - * is.array - * Test if 'value' is an array. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is an array, false otherwise - * @api public - */ - -is.array = function (value) { - return '[object Array]' === toString.call(value); -}; + HASH[0] = safe_add(a, HASH[0]); + HASH[1] = safe_add(b, HASH[1]); + HASH[2] = safe_add(c, HASH[2]); + HASH[3] = safe_add(d, HASH[3]); + HASH[4] = safe_add(e, HASH[4]); + HASH[5] = safe_add(f, HASH[5]); + HASH[6] = safe_add(g, HASH[6]); + HASH[7] = safe_add(h, HASH[7]); + } + return HASH; + } -/** - * is.arguments.empty - * Test if `value` is an empty arguments object. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is an empty arguments object, false otherwise - * @api public - */ -is.arguments.empty = function (value) { - return is.arguments(value) && value.length === 0; -}; + }, -/** - * is.array.empty - * Test if `value` is an empty array. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is an empty array, false otherwise - * @api public - */ -is.array.empty = function (value) { - return is.array(value) && value.length === 0; -}; + /** + * @class Hashes.SHA512 + * @param {config} + * + * A JavaScript implementation of the Secure Hash Algorithm, SHA-512, as defined in FIPS 180-2 + * Version 2.2 Copyright Anonymous Contributor, Paul Johnston 2000 - 2009. + * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet + * See http://pajhome.org.uk/crypt/md5 for details. + */ + SHA512 : function (options) { + /** + * Private properties configuration variables. You may need to tweak these to be compatible with + * the server-side, but the defaults work in most cases. + * @see this.setUpperCase() method + * @see this.setPad() method + */ + var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false , /* hexadecimal output case format. false - lowercase; true - uppercase */ + b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', /* base-64 pad character. Default '=' for strict RFC compliance */ + utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true, /* enable/disable utf8 encoding */ + sha512_k; -/** - * is.arraylike - * Test if `value` is an arraylike object. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is an arguments object, false otherwise - * @api public - */ + /* privileged (public) methods */ + this.hex = function (s) { + return rstr2hex(rstr(s)); + }; + this.b64 = function (s) { + return rstr2b64(rstr(s), b64pad); + }; + this.any = function (s, e) { + return rstr2any(rstr(s), e); + }; + this.hex_hmac = function (k, d) { + return rstr2hex(rstr_hmac(k, d)); + }; + this.b64_hmac = function (k, d) { + return rstr2b64(rstr_hmac(k, d), b64pad); + }; + this.any_hmac = function (k, d, e) { + return rstr2any(rstr_hmac(k, d), e); + }; + /** + * Perform a simple self-test to see if the VM is working + * @return {String} Hexadecimal hash sample + * @public + */ + this.vm_test = function () { + return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72'; + }; + /** + * @description Enable/disable uppercase hexadecimal returned string + * @param {boolean} + * @return {Object} this + * @public + */ + this.setUpperCase = function (a) { + if (typeof a === 'boolean') { + hexcase = a; + } + return this; + }; + /** + * @description Defines a base64 pad string + * @param {string} Pad + * @return {Object} this + * @public + */ + this.setPad = function (a) { + b64pad = a || b64pad; + return this; + }; + /** + * @description Defines a base64 pad string + * @param {boolean} + * @return {Object} this + * @public + */ + this.setUTF8 = function (a) { + if (typeof a === 'boolean') { + utf8 = a; + } + return this; + }; -is.arraylike = function (value) { - return !!value && !is.boolean(value) - && owns.call(value, 'length') - && isFinite(value.length) - && is.number(value.length) - && value.length >= 0; -}; + /* private methods */ -/** - * Test boolean. - */ + /** + * Calculate the SHA-512 of a raw string + */ + function rstr(s) { + s = (utf8) ? utf8Encode(s) : s; + return binb2rstr(binb(rstr2binb(s), s.length * 8)); + } + /* + * Calculate the HMAC-SHA-512 of a key and some data (raw strings) + */ + function rstr_hmac(key, data) { + key = (utf8) ? utf8Encode(key) : key; + data = (utf8) ? utf8Encode(data) : data; -/** - * is.boolean - * Test if `value` is a boolean. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is a boolean, false otherwise - * @api public - */ + var hash, i = 0, + bkey = rstr2binb(key), + ipad = Array(32), opad = Array(32); -is.boolean = function (value) { - return '[object Boolean]' === toString.call(value); -}; + if (bkey.length > 32) { bkey = binb(bkey, key.length * 8); } -/** - * is.false - * Test if `value` is false. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is false, false otherwise - * @api public - */ + for (; i < 32; i+=1) { + ipad[i] = bkey[i] ^ 0x36363636; + opad[i] = bkey[i] ^ 0x5C5C5C5C; + } -is['false'] = function (value) { - return is.boolean(value) && (value === false || value.valueOf() === false); -}; + hash = binb(ipad.concat(rstr2binb(data)), 1024 + data.length * 8); + return binb2rstr(binb(opad.concat(hash), 1024 + 512)); + } -/** - * is.true - * Test if `value` is true. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is true, false otherwise - * @api public - */ + /** + * Calculate the SHA-512 of an array of big-endian dwords, and a bit length + */ + function binb(x, len) { + var j, i, l, + W = new Array(80), + hash = new Array(16), + //Initial hash values + H = [ + new int64(0x6a09e667, -205731576), + new int64(-1150833019, -2067093701), + new int64(0x3c6ef372, -23791573), + new int64(-1521486534, 0x5f1d36f1), + new int64(0x510e527f, -1377402159), + new int64(-1694144372, 0x2b3e6c1f), + new int64(0x1f83d9ab, -79577749), + new int64(0x5be0cd19, 0x137e2179) + ], + T1 = new int64(0, 0), + T2 = new int64(0, 0), + a = new int64(0,0), + b = new int64(0,0), + c = new int64(0,0), + d = new int64(0,0), + e = new int64(0,0), + f = new int64(0,0), + g = new int64(0,0), + h = new int64(0,0), + //Temporary variables not specified by the document + s0 = new int64(0, 0), + s1 = new int64(0, 0), + Ch = new int64(0, 0), + Maj = new int64(0, 0), + r1 = new int64(0, 0), + r2 = new int64(0, 0), + r3 = new int64(0, 0); -is['true'] = function (value) { - return is.boolean(value) && (value === true || value.valueOf() === true); -}; + if (sha512_k === undefined) { + //SHA512 constants + sha512_k = [ + new int64(0x428a2f98, -685199838), new int64(0x71374491, 0x23ef65cd), + new int64(-1245643825, -330482897), new int64(-373957723, -2121671748), + new int64(0x3956c25b, -213338824), new int64(0x59f111f1, -1241133031), + new int64(-1841331548, -1357295717), new int64(-1424204075, -630357736), + new int64(-670586216, -1560083902), new int64(0x12835b01, 0x45706fbe), + new int64(0x243185be, 0x4ee4b28c), new int64(0x550c7dc3, -704662302), + new int64(0x72be5d74, -226784913), new int64(-2132889090, 0x3b1696b1), + new int64(-1680079193, 0x25c71235), new int64(-1046744716, -815192428), + new int64(-459576895, -1628353838), new int64(-272742522, 0x384f25e3), + new int64(0xfc19dc6, -1953704523), new int64(0x240ca1cc, 0x77ac9c65), + new int64(0x2de92c6f, 0x592b0275), new int64(0x4a7484aa, 0x6ea6e483), + new int64(0x5cb0a9dc, -1119749164), new int64(0x76f988da, -2096016459), + new int64(-1740746414, -295247957), new int64(-1473132947, 0x2db43210), + new int64(-1341970488, -1728372417), new int64(-1084653625, -1091629340), + new int64(-958395405, 0x3da88fc2), new int64(-710438585, -1828018395), + new int64(0x6ca6351, -536640913), new int64(0x14292967, 0xa0e6e70), + new int64(0x27b70a85, 0x46d22ffc), new int64(0x2e1b2138, 0x5c26c926), + new int64(0x4d2c6dfc, 0x5ac42aed), new int64(0x53380d13, -1651133473), + new int64(0x650a7354, -1951439906), new int64(0x766a0abb, 0x3c77b2a8), + new int64(-2117940946, 0x47edaee6), new int64(-1838011259, 0x1482353b), + new int64(-1564481375, 0x4cf10364), new int64(-1474664885, -1136513023), + new int64(-1035236496, -789014639), new int64(-949202525, 0x654be30), + new int64(-778901479, -688958952), new int64(-694614492, 0x5565a910), + new int64(-200395387, 0x5771202a), new int64(0x106aa070, 0x32bbd1b8), + new int64(0x19a4c116, -1194143544), new int64(0x1e376c08, 0x5141ab53), + new int64(0x2748774c, -544281703), new int64(0x34b0bcb5, -509917016), + new int64(0x391c0cb3, -976659869), new int64(0x4ed8aa4a, -482243893), + new int64(0x5b9cca4f, 0x7763e373), new int64(0x682e6ff3, -692930397), + new int64(0x748f82ee, 0x5defb2fc), new int64(0x78a5636f, 0x43172f60), + new int64(-2067236844, -1578062990), new int64(-1933114872, 0x1a6439ec), + new int64(-1866530822, 0x23631e28), new int64(-1538233109, -561857047), + new int64(-1090935817, -1295615723), new int64(-965641998, -479046869), + new int64(-903397682, -366583396), new int64(-779700025, 0x21c0c207), + new int64(-354779690, -840897762), new int64(-176337025, -294727304), + new int64(0x6f067aa, 0x72176fba), new int64(0xa637dc5, -1563912026), + new int64(0x113f9804, -1090974290), new int64(0x1b710b35, 0x131c471b), + new int64(0x28db77f5, 0x23047d84), new int64(0x32caab7b, 0x40c72493), + new int64(0x3c9ebe0a, 0x15c9bebc), new int64(0x431d67c4, -1676669620), + new int64(0x4cc5d4be, -885112138), new int64(0x597f299c, -60457430), + new int64(0x5fcb6fab, 0x3ad6faec), new int64(0x6c44198c, 0x4a475817) + ]; + } -/** - * Test date. - */ + for (i=0; i<80; i+=1) { + W[i] = new int64(0, 0); + } -/** - * is.date - * Test if `value` is a date. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is a date, false otherwise - * @api public - */ + // append padding to the source string. The format is described in the FIPS. + x[len >> 5] |= 0x80 << (24 - (len & 0x1f)); + x[((len + 128 >> 10)<< 5) + 31] = len; + l = x.length; + for (i = 0; i=32 + //The function revrrot() is for that + function int64rrot(dst, x, shift) { + dst.l = (x.l >>> shift) | (x.h << (32-shift)); + dst.h = (x.h >>> shift) | (x.l << (32-shift)); + } -/** - * is.infinite - * Test if `value` is positive or negative infinity. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is positive or negative Infinity, false otherwise - * @api public - */ -is.infinite = function (value) { - return value === Infinity || value === -Infinity; -}; + //Reverses the dwords of the source and then rotates right by shift. + //This is equivalent to rotation by 32+shift + function int64revrrot(dst, x, shift) { + dst.l = (x.h >>> shift) | (x.l << (32-shift)); + dst.h = (x.l >>> shift) | (x.h << (32-shift)); + } -/** - * is.decimal - * Test if `value` is a decimal number. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is a decimal number, false otherwise - * @api public - */ + //Bitwise-shifts right a 64-bit number by shift + //Won't handle shift>=32, but it's never needed in SHA512 + function int64shr(dst, x, shift) { + dst.l = (x.l >>> shift) | (x.h << (32-shift)); + dst.h = (x.h >>> shift); + } -is.decimal = function (value) { - return is.number(value) && !isActualNaN(value) && value % 1 !== 0; -}; + //Adds two 64-bit numbers + //Like the original implementation, does not rely on 32-bit operations + function int64add(dst, x, y) { + var w0 = (x.l & 0xffff) + (y.l & 0xffff); + var w1 = (x.l >>> 16) + (y.l >>> 16) + (w0 >>> 16); + var w2 = (x.h & 0xffff) + (y.h & 0xffff) + (w1 >>> 16); + var w3 = (x.h >>> 16) + (y.h >>> 16) + (w2 >>> 16); + dst.l = (w0 & 0xffff) | (w1 << 16); + dst.h = (w2 & 0xffff) | (w3 << 16); + } -/** - * is.divisibleBy - * Test if `value` is divisible by `n`. - * - * @param {Number} value value to test - * @param {Number} n dividend - * @return {Boolean} true if `value` is divisible by `n`, false otherwise - * @api public - */ + //Same, except with 4 addends. Works faster than adding them one by one. + function int64add4(dst, a, b, c, d) { + var w0 = (a.l & 0xffff) + (b.l & 0xffff) + (c.l & 0xffff) + (d.l & 0xffff); + var w1 = (a.l >>> 16) + (b.l >>> 16) + (c.l >>> 16) + (d.l >>> 16) + (w0 >>> 16); + var w2 = (a.h & 0xffff) + (b.h & 0xffff) + (c.h & 0xffff) + (d.h & 0xffff) + (w1 >>> 16); + var w3 = (a.h >>> 16) + (b.h >>> 16) + (c.h >>> 16) + (d.h >>> 16) + (w2 >>> 16); + dst.l = (w0 & 0xffff) | (w1 << 16); + dst.h = (w2 & 0xffff) | (w3 << 16); + } -is.divisibleBy = function (value, n) { - var isDividendInfinite = is.infinite(value); - var isDivisorInfinite = is.infinite(n); - var isNonZeroNumber = is.number(value) && !isActualNaN(value) && is.number(n) && !isActualNaN(n) && n !== 0; - return isDividendInfinite || isDivisorInfinite || (isNonZeroNumber && value % n === 0); -}; + //Same, except with 5 addends + function int64add5(dst, a, b, c, d, e) { + var w0 = (a.l & 0xffff) + (b.l & 0xffff) + (c.l & 0xffff) + (d.l & 0xffff) + (e.l & 0xffff), + w1 = (a.l >>> 16) + (b.l >>> 16) + (c.l >>> 16) + (d.l >>> 16) + (e.l >>> 16) + (w0 >>> 16), + w2 = (a.h & 0xffff) + (b.h & 0xffff) + (c.h & 0xffff) + (d.h & 0xffff) + (e.h & 0xffff) + (w1 >>> 16), + w3 = (a.h >>> 16) + (b.h >>> 16) + (c.h >>> 16) + (d.h >>> 16) + (e.h >>> 16) + (w2 >>> 16); + dst.l = (w0 & 0xffff) | (w1 << 16); + dst.h = (w2 & 0xffff) | (w3 << 16); + } + }, + /** + * @class Hashes.RMD160 + * @constructor + * @param {Object} [config] + * + * A JavaScript implementation of the RIPEMD-160 Algorithm + * Version 2.2 Copyright Jeremy Lin, Paul Johnston 2000 - 2009. + * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet + * See http://pajhome.org.uk/crypt/md5 for details. + * Also http://www.ocf.berkeley.edu/~jjlin/jsotp/ + */ + RMD160 : function (options) { + /** + * Private properties configuration variables. You may need to tweak these to be compatible with + * the server-side, but the defaults work in most cases. + * @see this.setUpperCase() method + * @see this.setPad() method + */ + var hexcase = (options && typeof options.uppercase === 'boolean') ? options.uppercase : false, /* hexadecimal output case format. false - lowercase; true - uppercase */ + b64pad = (options && typeof options.pad === 'string') ? options.pda : '=', /* base-64 pad character. Default '=' for strict RFC compliance */ + utf8 = (options && typeof options.utf8 === 'boolean') ? options.utf8 : true, /* enable/disable utf8 encoding */ + rmd160_r1 = [ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, + 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, + 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, + 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13 + ], + rmd160_r2 = [ + 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, + 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, + 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, + 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, + 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11 + ], + rmd160_s1 = [ + 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, + 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, + 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, + 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, + 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 + ], + rmd160_s2 = [ + 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, + 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, + 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, + 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, + 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 + ]; -/** - * is.int - * Test if `value` is an integer. - * - * @param value to test - * @return {Boolean} true if `value` is an integer, false otherwise - * @api public - */ + /* privileged (public) methods */ + this.hex = function (s) { + return rstr2hex(rstr(s, utf8)); + }; + this.b64 = function (s) { + return rstr2b64(rstr(s, utf8), b64pad); + }; + this.any = function (s, e) { + return rstr2any(rstr(s, utf8), e); + }; + this.hex_hmac = function (k, d) { + return rstr2hex(rstr_hmac(k, d)); + }; + this.b64_hmac = function (k, d) { + return rstr2b64(rstr_hmac(k, d), b64pad); + }; + this.any_hmac = function (k, d, e) { + return rstr2any(rstr_hmac(k, d), e); + }; + /** + * Perform a simple self-test to see if the VM is working + * @return {String} Hexadecimal hash sample + * @public + */ + this.vm_test = function () { + return hex('abc').toLowerCase() === '900150983cd24fb0d6963f7d28e17f72'; + }; + /** + * @description Enable/disable uppercase hexadecimal returned string + * @param {boolean} + * @return {Object} this + * @public + */ + this.setUpperCase = function (a) { + if (typeof a === 'boolean' ) { hexcase = a; } + return this; + }; + /** + * @description Defines a base64 pad string + * @param {string} Pad + * @return {Object} this + * @public + */ + this.setPad = function (a) { + if (typeof a !== 'undefined' ) { b64pad = a; } + return this; + }; + /** + * @description Defines a base64 pad string + * @param {boolean} + * @return {Object} this + * @public + */ + this.setUTF8 = function (a) { + if (typeof a === 'boolean') { utf8 = a; } + return this; + }; -is.int = function (value) { - return is.number(value) && !isActualNaN(value) && value % 1 === 0; -}; + /* private methods */ -/** - * is.maximum - * Test if `value` is greater than 'others' values. - * - * @param {Number} value value to test - * @param {Array} others values to compare with - * @return {Boolean} true if `value` is greater than `others` values - * @api public - */ + /** + * Calculate the rmd160 of a raw string + */ + function rstr(s) { + s = (utf8) ? utf8Encode(s) : s; + return binl2rstr(binl(rstr2binl(s), s.length * 8)); + } -is.maximum = function (value, others) { - if (isActualNaN(value)) { - throw new TypeError('NaN is not a valid value'); - } else if (!is.arraylike(others)) { - throw new TypeError('second argument must be array-like'); - } - var len = others.length; + /** + * Calculate the HMAC-rmd160 of a key and some data (raw strings) + */ + function rstr_hmac(key, data) { + key = (utf8) ? utf8Encode(key) : key; + data = (utf8) ? utf8Encode(data) : data; + var i, hash, + bkey = rstr2binl(key), + ipad = Array(16), opad = Array(16); - while (--len >= 0) { - if (value < others[len]) { - return false; + if (bkey.length > 16) { + bkey = binl(bkey, key.length * 8); + } + + for (i = 0; i < 16; i+=1) { + ipad[i] = bkey[i] ^ 0x36363636; + opad[i] = bkey[i] ^ 0x5C5C5C5C; + } + hash = binl(ipad.concat(rstr2binl(data)), 512 + data.length * 8); + return binl2rstr(binl(opad.concat(hash), 512 + 160)); } - } - return true; -}; + /** + * Convert an array of little-endian words to a string + */ + function binl2rstr(input) { + var i, output = '', l = input.length * 32; + for (i = 0; i < l; i += 8) { + output += String.fromCharCode((input[i>>5] >>> (i % 32)) & 0xFF); + } + return output; + } -/** - * is.minimum - * Test if `value` is less than `others` values. - * - * @param {Number} value value to test - * @param {Array} others values to compare with - * @return {Boolean} true if `value` is less than `others` values - * @api public - */ + /** + * Calculate the RIPE-MD160 of an array of little-endian words, and a bit length. + */ + function binl(x, len) { + var T, j, i, l, + h0 = 0x67452301, + h1 = 0xefcdab89, + h2 = 0x98badcfe, + h3 = 0x10325476, + h4 = 0xc3d2e1f0, + A1, B1, C1, D1, E1, + A2, B2, C2, D2, E2; -is.minimum = function (value, others) { - if (isActualNaN(value)) { - throw new TypeError('NaN is not a valid value'); - } else if (!is.arraylike(others)) { - throw new TypeError('second argument must be array-like'); - } - var len = others.length; + /* append padding */ + x[len >> 5] |= 0x80 << (len % 32); + x[(((len + 64) >>> 9) << 4) + 14] = len; + l = x.length; - while (--len >= 0) { - if (value > others[len]) { - return false; + for (i = 0; i < l; i+=16) { + A1 = A2 = h0; B1 = B2 = h1; C1 = C2 = h2; D1 = D2 = h3; E1 = E2 = h4; + for (j = 0; j <= 79; j+=1) { + T = safe_add(A1, rmd160_f(j, B1, C1, D1)); + T = safe_add(T, x[i + rmd160_r1[j]]); + T = safe_add(T, rmd160_K1(j)); + T = safe_add(bit_rol(T, rmd160_s1[j]), E1); + A1 = E1; E1 = D1; D1 = bit_rol(C1, 10); C1 = B1; B1 = T; + T = safe_add(A2, rmd160_f(79-j, B2, C2, D2)); + T = safe_add(T, x[i + rmd160_r2[j]]); + T = safe_add(T, rmd160_K2(j)); + T = safe_add(bit_rol(T, rmd160_s2[j]), E2); + A2 = E2; E2 = D2; D2 = bit_rol(C2, 10); C2 = B2; B2 = T; + } + + T = safe_add(h1, safe_add(C1, D2)); + h1 = safe_add(h2, safe_add(D1, E2)); + h2 = safe_add(h3, safe_add(E1, A2)); + h3 = safe_add(h4, safe_add(A1, B2)); + h4 = safe_add(h0, safe_add(B1, C2)); + h0 = T; + } + return [h0, h1, h2, h3, h4]; } - } - return true; -}; + // specific algorithm methods + function rmd160_f(j, x, y, z) { + return ( 0 <= j && j <= 15) ? (x ^ y ^ z) : + (16 <= j && j <= 31) ? (x & y) | (~x & z) : + (32 <= j && j <= 47) ? (x | ~y) ^ z : + (48 <= j && j <= 63) ? (x & z) | (y & ~z) : + (64 <= j && j <= 79) ? x ^ (y | ~z) : + 'rmd160_f: j out of range'; + } -/** - * is.nan - * Test if `value` is not a number. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is not a number, false otherwise - * @api public - */ + function rmd160_K1(j) { + return ( 0 <= j && j <= 15) ? 0x00000000 : + (16 <= j && j <= 31) ? 0x5a827999 : + (32 <= j && j <= 47) ? 0x6ed9eba1 : + (48 <= j && j <= 63) ? 0x8f1bbcdc : + (64 <= j && j <= 79) ? 0xa953fd4e : + 'rmd160_K1: j out of range'; + } -is.nan = function (value) { - return !is.number(value) || value !== value; + function rmd160_K2(j){ + return ( 0 <= j && j <= 15) ? 0x50a28be6 : + (16 <= j && j <= 31) ? 0x5c4dd124 : + (32 <= j && j <= 47) ? 0x6d703ef3 : + (48 <= j && j <= 63) ? 0x7a6d76e9 : + (64 <= j && j <= 79) ? 0x00000000 : + 'rmd160_K2: j out of range'; + } + } }; -/** - * is.even - * Test if `value` is an even number. - * - * @param {Number} value value to test - * @return {Boolean} true if `value` is an even number, false otherwise - * @api public - */ + // exposes Hashes + (function( window, undefined ) { + var freeExports = false; + if (typeof exports === 'object' ) { + freeExports = exports; + if (exports && typeof global === 'object' && global && global === global.global ) { window = global; } + } -is.even = function (value) { - return is.infinite(value) || (is.number(value) && value === value && value % 2 === 0); -}; + if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) { + // define as an anonymous module, so, through path mapping, it can be aliased + define(function () { return Hashes; }); + } + else if ( freeExports ) { + // in Node.js or RingoJS v0.8.0+ + if ( typeof module === 'object' && module && module.exports === freeExports ) { + module.exports = Hashes; + } + // in Narwhal or RingoJS v0.7.0- + else { + freeExports.Hashes = Hashes; + } + } + else { + // in a browser or Rhino + window.Hashes = Hashes; + } + }( this )); +}()); // IIFE -/** - * is.odd - * Test if `value` is an odd number. - * - * @param {Number} value value to test - * @return {Boolean} true if `value` is an odd number, false otherwise - * @api public - */ +})(window) +},{}],2:[function(require,module,exports){ +'use strict'; -is.odd = function (value) { - return is.infinite(value) || (is.number(value) && value === value && value % 2 !== 0); -}; +var hashes = require('jshashes'), + xtend = require('xtend'), + sha1 = new hashes.SHA1(); -/** - * is.ge - * Test if `value` is greater than or equal to `other`. - * - * @param {Number} value value to test - * @param {Number} other value to compare with - * @return {Boolean} - * @api public - */ +var ohauth = {}; -is.ge = function (value, other) { - if (isActualNaN(value) || isActualNaN(other)) { - throw new TypeError('NaN is not a valid value'); - } - return !is.infinite(value) && !is.infinite(other) && value >= other; +ohauth.qsString = function(obj) { + return Object.keys(obj).sort().map(function(key) { + return ohauth.percentEncode(key) + '=' + + ohauth.percentEncode(obj[key]); + }).join('&'); }; -/** - * is.gt - * Test if `value` is greater than `other`. - * - * @param {Number} value value to test - * @param {Number} other value to compare with - * @return {Boolean} - * @api public - */ - -is.gt = function (value, other) { - if (isActualNaN(value) || isActualNaN(other)) { - throw new TypeError('NaN is not a valid value'); - } - return !is.infinite(value) && !is.infinite(other) && value > other; +ohauth.stringQs = function(str) { + return str.split('&').reduce(function(obj, pair){ + var parts = pair.split('='); + obj[decodeURIComponent(parts[0])] = (null === parts[1]) ? + '' : decodeURIComponent(parts[1]); + return obj; + }, {}); }; -/** - * is.le - * Test if `value` is less than or equal to `other`. - * - * @param {Number} value value to test - * @param {Number} other value to compare with - * @return {Boolean} if 'value' is less than or equal to 'other' - * @api public - */ - -is.le = function (value, other) { - if (isActualNaN(value) || isActualNaN(other)) { - throw new TypeError('NaN is not a valid value'); - } - return !is.infinite(value) && !is.infinite(other) && value <= other; +ohauth.rawxhr = function(method, url, data, headers, callback) { + var xhr = new XMLHttpRequest(), + twoHundred = /^20\d$/; + xhr.onreadystatechange = function() { + if (4 == xhr.readyState && 0 !== xhr.status) { + if (twoHundred.test(xhr.status)) callback(null, xhr); + else return callback(xhr, null); + } + }; + xhr.onerror = function(e) { return callback(e, null); }; + xhr.open(method, url, true); + for (var h in headers) xhr.setRequestHeader(h, headers[h]); + xhr.send(data); }; -/** - * is.lt - * Test if `value` is less than `other`. - * - * @param {Number} value value to test - * @param {Number} other value to compare with - * @return {Boolean} if `value` is less than `other` - * @api public - */ - -is.lt = function (value, other) { - if (isActualNaN(value) || isActualNaN(other)) { - throw new TypeError('NaN is not a valid value'); - } - return !is.infinite(value) && !is.infinite(other) && value < other; +ohauth.xhr = function(method, url, auth, data, options, callback) { + var headers = (options && options.header) || { + 'Content-Type': 'application/x-www-form-urlencoded' + }; + headers.Authorization = 'OAuth ' + ohauth.authHeader(auth); + ohauth.rawxhr(method, url, data, headers, callback); }; -/** - * is.within - * Test if `value` is within `start` and `finish`. - * - * @param {Number} value value to test - * @param {Number} start lower bound - * @param {Number} finish upper bound - * @return {Boolean} true if 'value' is is within 'start' and 'finish' - * @api public - */ -is.within = function (value, start, finish) { - if (isActualNaN(value) || isActualNaN(start) || isActualNaN(finish)) { - throw new TypeError('NaN is not a valid value'); - } else if (!is.number(value) || !is.number(start) || !is.number(finish)) { - throw new TypeError('all arguments must be numbers'); - } - var isAnyInfinite = is.infinite(value) || is.infinite(start) || is.infinite(finish); - return isAnyInfinite || (value >= start && value <= finish); +ohauth.nonce = function() { + for (var o = ''; o.length < 6;) { + o += '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'[Math.floor(Math.random() * 61)]; + } + return o; }; -/** - * Test object. - */ +ohauth.authHeader = function(obj) { + return Object.keys(obj).sort().map(function(key) { + return encodeURIComponent(key) + '="' + encodeURIComponent(obj[key]) + '"'; + }).join(', '); +}; -/** - * is.object - * Test if `value` is an object. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is an object, false otherwise - * @api public - */ +ohauth.timestamp = function() { return ~~((+new Date()) / 1000); }; -is.object = function (value) { - return value && '[object Object]' === toString.call(value); +ohauth.percentEncode = function(s) { + return encodeURIComponent(s) + .replace(/\!/g, '%21').replace(/\'/g, '%27') + .replace(/\*/g, '%2A').replace(/\(/g, '%28').replace(/\)/g, '%29'); }; -/** - * is.hash - * Test if `value` is a hash - a plain object literal. - * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is a hash, false otherwise - * @api public - */ - -is.hash = function (value) { - return is.object(value) && value.constructor === Object && !value.nodeType && !value.setInterval; +ohauth.baseString = function(method, url, params) { + if (params.oauth_signature) delete params.oauth_signature; + return [ + method, + ohauth.percentEncode(url), + ohauth.percentEncode(ohauth.qsString(params))].join('&'); }; -/** - * Test regexp. - */ +ohauth.signature = function(oauth_secret, token_secret, baseString) { + return sha1.b64_hmac( + ohauth.percentEncode(oauth_secret) + '&' + + ohauth.percentEncode(token_secret), + baseString); +}; /** - * is.regexp - * Test if `value` is a regular expression. + * Takes an options object for configuration (consumer_key, + * consumer_secret, version, signature_method, token) and returns a + * function that generates the Authorization header for given data. * - * @param {Mixed} value value to test - * @return {Boolean} true if `value` is a regexp, false otherwise - * @api public + * The returned function takes these parameters: + * - method: GET/POST/... + * - uri: full URI with protocol, port, path and query string + * - extra_params: any extra parameters (that are passed in the POST data), + * can be an object or a from-urlencoded string. + * + * Returned function returns full OAuth header with "OAuth" string in it. */ -is.regexp = function (value) { - return '[object RegExp]' === toString.call(value); -}; - -/** - * Test string. - */ - -/** - * is.string - * Test if `value` is a string. - * - * @param {Mixed} value value to test - * @return {Boolean} true if 'value' is a string, false otherwise - * @api public - */ - -is.string = function (value) { - return '[object String]' === toString.call(value); -}; - - -},{}],10:[function(require,module,exports){ - -var hasOwn = Object.prototype.hasOwnProperty; -var toString = Object.prototype.toString; +ohauth.headerGenerator = function(options) { + options = options || {}; + var consumer_key = options.consumer_key || '', + consumer_secret = options.consumer_secret || '', + signature_method = options.signature_method || 'HMAC-SHA1', + version = options.version || '1.0', + token = options.token || ''; -module.exports = function forEach (obj, fn, ctx) { - if (toString.call(fn) !== '[object Function]') { - throw new TypeError('iterator must be a function'); - } - var l = obj.length; - if (l === +l) { - for (var i = 0; i < l; i++) { - fn.call(ctx, obj[i], i, obj); - } - } else { - for (var k in obj) { - if (hasOwn.call(obj, k)) { - fn.call(ctx, obj[k], k, obj); - } + return function(method, uri, extra_params) { + method = method.toUpperCase(); + if (typeof extra_params === 'string' && extra_params.length > 0) { + extra_params = ohauth.stringQs(extra_params); } - } -}; + var uri_parts = uri.split('?', 2), + base_uri = uri_parts[0]; -},{}]},{},[1])(1) -}); -;/* - (c) 2013, Vladimir Agafonkin - RBush, a JavaScript library for high-performance 2D spatial indexing of points and rectangles. - https://github.com/mourner/rbush -*/ + var query_params = uri_parts.length === 2 ? + ohauth.stringQs(uri_parts[1]) : {}; -(function () { 'use strict'; + var oauth_params = { + oauth_consumer_key: consumer_key, + oauth_signature_method: signature_method, + oauth_version: version, + oauth_timestamp: ohauth.timestamp(), + oauth_nonce: ohauth.nonce() + }; -function rbush(maxEntries, format) { + if (token) oauth_params.oauth_token = token; - // jshint newcap: false, validthis: true - if (!(this instanceof rbush)) { return new rbush(maxEntries, format); } + var all_params = xtend({}, oauth_params, query_params, extra_params), + base_str = ohauth.baseString(method, base_uri, all_params); - // max entries in a node is 9 by default; min node fill is 40% for best performance - this._maxEntries = Math.max(4, maxEntries || 9); - this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4)); + oauth_params.oauth_signature = ohauth.signature(consumer_secret, token, base_str); - if (format) { - this._initFormat(format); - } + return 'OAuth ' + ohauth.authHeader(oauth_params); + }; +}; - this.clear(); -} +module.exports = ohauth; -rbush.prototype = { +},{"jshashes":7,"xtend":4}],6:[function(require,module,exports){ +module.exports = Object.keys || require('./shim'); - all: function () { - return this._all(this.data, []); - }, - search: function (bbox) { +},{"./shim":8}],8:[function(require,module,exports){ +(function () { + "use strict"; - var node = this.data, - result = []; + // modified from https://github.com/kriskowal/es5-shim + var has = Object.prototype.hasOwnProperty, + is = require('is'), + forEach = require('foreach'), + hasDontEnumBug = !({'toString': null}).propertyIsEnumerable('toString'), + dontEnums = [ + "toString", + "toLocaleString", + "valueOf", + "hasOwnProperty", + "isPrototypeOf", + "propertyIsEnumerable", + "constructor" + ], + keysShim; - if (!this._intersects(bbox, node.bbox)) { return result; } + keysShim = function keys(object) { + if (!is.object(object) && !is.array(object)) { + throw new TypeError("Object.keys called on a non-object"); + } - var nodesToSearch = [], - i, len, child, childBBox; + var name, theKeys = []; + for (name in object) { + if (has.call(object, name)) { + theKeys.push(name); + } + } - while (node) { - for (i = 0, len = node.children.length; i < len; i++) { - child = node.children[i]; - childBBox = node.leaf ? this.toBBox(child) : child.bbox; + if (hasDontEnumBug) { + forEach(dontEnums, function (dontEnum) { + if (has.call(object, dontEnum)) { + theKeys.push(dontEnum); + } + }); + } + return theKeys; + }; - if (this._intersects(bbox, childBBox)) { + module.exports = keysShim; +}()); - if (node.leaf) { - result.push(child); - } else if (this._contains(bbox, childBBox)) { - this._all(child, result); +},{"is":9,"foreach":10}],9:[function(require,module,exports){ - } else { - nodesToSearch.push(child); - } - } - } +/**! + * is + * the definitive JavaScript type testing library + * + * @copyright 2013 Enrico Marino + * @license MIT + */ - node = nodesToSearch.pop(); - } +var objProto = Object.prototype; +var owns = objProto.hasOwnProperty; +var toString = objProto.toString; +var isActualNaN = function (value) { + return value !== value; +}; +var NON_HOST_TYPES = { + "boolean": 1, + "number": 1, + "string": 1, + "undefined": 1 +}; - return result; - }, +/** + * Expose `is` + */ - load: function (data) { - if (!(data && data.length)) { return this; } +var is = module.exports = {}; - if (data.length < this._minEntries) { - for (var i = 0, len = data.length; i < len; i++) { - this.insert(data[i]); - } - return this; - } +/** + * Test general. + */ - // recursively build the tree with the given data from stratch using OMT algorithm - var node = this._build(data.slice(), 0); +/** + * is.type + * Test if `value` is a type of `type`. + * + * @param {Mixed} value value to test + * @param {String} type type + * @return {Boolean} true if `value` is a type of `type`, false otherwise + * @api public + */ - if (!this.data.children.length) { - // save as is if tree is empty - this.data = node; +is.a = +is.type = function (value, type) { + return typeof value === type; +}; - } else if (this.data.height === node.height) { - // split root if trees have the same height - this._splitRoot(this.data, node); +/** + * is.defined + * Test if `value` is defined. + * + * @param {Mixed} value value to test + * @return {Boolean} true if 'value' is defined, false otherwise + * @api public + */ - } else { - if (this.data.height < node.height) { - // swap trees if inserted one is bigger - var tmpNode = this.data; - this.data = node; - node = tmpNode; - } +is.defined = function (value) { + return value !== undefined; +}; - // insert the small tree into the large tree at appropriate level - this._insert(node, this.data.height - node.height - 1, true); - } +/** + * is.empty + * Test if `value` is empty. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is empty, false otherwise + * @api public + */ - return this; - }, +is.empty = function (value) { + var type = toString.call(value); + var key; - insert: function (item) { - if (item) { - this._insert(item, this.data.height - 1); - } - return this; - }, + if ('[object Array]' === type || '[object Arguments]' === type) { + return value.length === 0; + } - clear: function () { - this.data = { - children: [], - leaf: true, - bbox: this._empty(), - height: 1 - }; - return this; - }, + if ('[object Object]' === type) { + for (key in value) if (owns.call(value, key)) return false; + return true; + } - remove: function (item) { - if (!item) { return this; } + if ('[object String]' === type) { + return '' === value; + } - var node = this.data, - bbox = this.toBBox(item), - path = [], - indexes = [], - i, parent, index, goingUp; + return false; +}; - // depth-first iterative tree traversal - while (node || path.length) { +/** + * is.equal + * Test if `value` is equal to `other`. + * + * @param {Mixed} value value to test + * @param {Mixed} other value to compare with + * @return {Boolean} true if `value` is equal to `other`, false otherwise + */ - if (!node) { // go up - node = path.pop(); - parent = path[path.length - 1]; - i = indexes.pop(); - goingUp = true; - } +is.equal = function (value, other) { + var type = toString.call(value) + var key; - if (node.leaf) { // check current node - index = node.children.indexOf(item); + if (type !== toString.call(other)) { + return false; + } - if (index !== -1) { - // item found, remove the item and condense tree upwards - node.children.splice(index, 1); - path.push(node); - this._condense(path); - return this; - } - } + if ('[object Object]' === type) { + for (key in value) { + if (!is.equal(value[key], other[key])) { + return false; + } + } + return true; + } - if (!goingUp && !node.leaf && this._intersects(bbox, node.bbox)) { // go down - path.push(node); - indexes.push(i); - i = 0; - parent = node; - node = node.children[0]; + if ('[object Array]' === type) { + key = value.length; + if (key !== other.length) { + return false; + } + while (--key) { + if (!is.equal(value[key], other[key])) { + return false; + } + } + return true; + } - } else if (parent) { // go right - i++; - node = parent.children[i]; - goingUp = false; + if ('[object Function]' === type) { + return value.prototype === other.prototype; + } - } else { // nothing found - node = null; - } - } + if ('[object Date]' === type) { + return value.getTime() === other.getTime(); + } - return this; - }, + return value === other; +}; - toBBox: function (item) { return item; }, +/** + * is.hosted + * Test if `value` is hosted by `host`. + * + * @param {Mixed} value to test + * @param {Mixed} host host to test with + * @return {Boolean} true if `value` is hosted by `host`, false otherwise + * @api public + */ - compareMinX: function (a, b) { return a[0] - b[0]; }, - compareMinY: function (a, b) { return a[1] - b[1]; }, +is.hosted = function (value, host) { + var type = typeof host[value]; + return type === 'object' ? !!host[value] : !NON_HOST_TYPES[type]; +}; - toJSON: function () { return this.data; }, +/** + * is.instance + * Test if `value` is an instance of `constructor`. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is an instance of `constructor` + * @api public + */ - fromJSON: function (data) { - this.data = data; - return this; - }, +is.instance = is['instanceof'] = function (value, constructor) { + return value instanceof constructor; +}; - _all: function (node, result) { - var nodesToSearch = []; - while (node) { - if (node.leaf) { - result.push.apply(result, node.children); - } else { - nodesToSearch.push.apply(nodesToSearch, node.children); - } - node = nodesToSearch.pop(); - } - return result; - }, +/** + * is.null + * Test if `value` is null. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is null, false otherwise + * @api public + */ - _build: function (items, level, height) { +is['null'] = function (value) { + return value === null; +}; - var N = items.length, - M = this._maxEntries, - node; +/** + * is.undefined + * Test if `value` is undefined. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is undefined, false otherwise + * @api public + */ - if (N <= M) { - node = { - children: items, - leaf: true, - height: 1 - }; - this._calcBBox(node); - return node; - } +is.undefined = function (value) { + return value === undefined; +}; - if (!level) { - // target height of the bulk-loaded tree - height = Math.ceil(Math.log(N) / Math.log(M)); +/** + * Test arguments. + */ - // target number of root entries to maximize storage utilization - M = Math.ceil(N / Math.pow(M, height - 1)); +/** + * is.arguments + * Test if `value` is an arguments object. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is an arguments object, false otherwise + * @api public + */ - items.sort(this.compareMinX); - } +is.arguments = function (value) { + var isStandardArguments = '[object Arguments]' === toString.call(value); + var isOldArguments = !is.array(value) && is.arraylike(value) && is.object(value) && is.fn(value.callee); + return isStandardArguments || isOldArguments; +}; - // TODO eliminate recursion? +/** + * Test array. + */ - node = { - children: [], - height: height - }; +/** + * is.array + * Test if 'value' is an array. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is an array, false otherwise + * @api public + */ - var N1 = Math.ceil(N / M) * Math.ceil(Math.sqrt(M)), - N2 = Math.ceil(N / M), - compare = level % 2 === 1 ? this.compareMinX : this.compareMinY, - i, j, slice, sliceLen, childNode; +is.array = function (value) { + return '[object Array]' === toString.call(value); +}; - // split the items into M mostly square tiles - for (i = 0; i < N; i += N1) { - slice = items.slice(i, i + N1).sort(compare); +/** + * is.arguments.empty + * Test if `value` is an empty arguments object. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is an empty arguments object, false otherwise + * @api public + */ +is.arguments.empty = function (value) { + return is.arguments(value) && value.length === 0; +}; - for (j = 0, sliceLen = slice.length; j < sliceLen; j += N2) { - // pack each entry recursively - childNode = this._build(slice.slice(j, j + N2), level + 1, height - 1); - node.children.push(childNode); - } - } +/** + * is.array.empty + * Test if `value` is an empty array. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is an empty array, false otherwise + * @api public + */ +is.array.empty = function (value) { + return is.array(value) && value.length === 0; +}; - this._calcBBox(node); +/** + * is.arraylike + * Test if `value` is an arraylike object. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is an arguments object, false otherwise + * @api public + */ - return node; - }, +is.arraylike = function (value) { + return !!value && !is.boolean(value) + && owns.call(value, 'length') + && isFinite(value.length) + && is.number(value.length) + && value.length >= 0; +}; - _chooseSubtree: function (bbox, node, level, path) { +/** + * Test boolean. + */ - var i, len, child, targetNode, area, enlargement, minArea, minEnlargement; +/** + * is.boolean + * Test if `value` is a boolean. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is a boolean, false otherwise + * @api public + */ - while (true) { - path.push(node); +is.boolean = function (value) { + return '[object Boolean]' === toString.call(value); +}; - if (node.leaf || path.length - 1 === level) { break; } +/** + * is.false + * Test if `value` is false. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is false, false otherwise + * @api public + */ - minArea = minEnlargement = Infinity; +is['false'] = function (value) { + return is.boolean(value) && (value === false || value.valueOf() === false); +}; - for (i = 0, len = node.children.length; i < len; i++) { - child = node.children[i]; - area = this._area(child.bbox); - enlargement = this._enlargedArea(bbox, child.bbox) - area; +/** + * is.true + * Test if `value` is true. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is true, false otherwise + * @api public + */ - // choose entry with the least area enlargement - if (enlargement < minEnlargement) { - minEnlargement = enlargement; - minArea = area < minArea ? area : minArea; - targetNode = child; +is['true'] = function (value) { + return is.boolean(value) && (value === true || value.valueOf() === true); +}; - } else if (enlargement === minEnlargement) { - // otherwise choose one with the smallest area - if (area < minArea) { - minArea = area; - targetNode = child; - } - } - } +/** + * Test date. + */ - node = targetNode; - } +/** + * is.date + * Test if `value` is a date. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is a date, false otherwise + * @api public + */ - return node; - }, +is.date = function (value) { + return '[object Date]' === toString.call(value); +}; - _insert: function (item, level, isNode, root) { +/** + * Test element. + */ - var bbox = isNode ? item.bbox : this.toBBox(item), - insertPath = []; +/** + * is.element + * Test if `value` is an html element. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is an HTML Element, false otherwise + * @api public + */ - // find the best node for accommodating the item, saving all nodes along the path too - var node = this._chooseSubtree(bbox, root || this.data, level, insertPath), - splitOccured; +is.element = function (value) { + return value !== undefined + && typeof HTMLElement !== 'undefined' + && value instanceof HTMLElement + && value.nodeType === 1; +}; - // put the item into the node - node.children.push(item); - this._extend(node.bbox, bbox); +/** + * Test error. + */ - // split on node overflow; propagate upwards if necessary - do { - splitOccured = false; - if (insertPath[level].children.length > this._maxEntries) { - this._split(insertPath, level); - splitOccured = true; - level--; - } - } while (level >= 0 && splitOccured); +/** + * is.error + * Test if `value` is an error object. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is an error object, false otherwise + * @api public + */ - // adjust bboxes along the insertion path - this._adjustParentBBoxes(bbox, insertPath, level); - }, +is.error = function (value) { + return '[object Error]' === toString.call(value); +}; - // split overflowed node into two - _split: function (insertPath, level) { +/** + * Test function. + */ - var node = insertPath[level], - M = node.children.length, - m = this._minEntries; +/** + * is.fn / is.function (deprecated) + * Test if `value` is a function. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is a function, false otherwise + * @api public + */ - this._chooseSplitAxis(node, m, M); +is.fn = is['function'] = function (value) { + var isAlert = typeof window !== 'undefined' && value === window.alert; + return isAlert || '[object Function]' === toString.call(value); +}; - var newNode = { - children: node.children.splice(this._chooseSplitIndex(node, m, M)), - height: node.height - }; +/** + * Test number. + */ - if (node.leaf) { - newNode.leaf = true; - } +/** + * is.number + * Test if `value` is a number. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is a number, false otherwise + * @api public + */ - this._calcBBox(node); - this._calcBBox(newNode); +is.number = function (value) { + return '[object Number]' === toString.call(value); +}; - if (level) { - insertPath[level - 1].children.push(newNode); - } else { - this._splitRoot(node, newNode); - } - }, +/** + * is.infinite + * Test if `value` is positive or negative infinity. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is positive or negative Infinity, false otherwise + * @api public + */ +is.infinite = function (value) { + return value === Infinity || value === -Infinity; +}; - _splitRoot: function (node, newNode) { - // split root node - this.data = {}; - this.data.children = [node, newNode]; - this.data.height = node.height + 1; - this._calcBBox(this.data); - }, +/** + * is.decimal + * Test if `value` is a decimal number. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is a decimal number, false otherwise + * @api public + */ - _chooseSplitIndex: function (node, m, M) { +is.decimal = function (value) { + return is.number(value) && !isActualNaN(value) && value % 1 !== 0; +}; - var i, bbox1, bbox2, overlap, area, minOverlap, minArea, index; +/** + * is.divisibleBy + * Test if `value` is divisible by `n`. + * + * @param {Number} value value to test + * @param {Number} n dividend + * @return {Boolean} true if `value` is divisible by `n`, false otherwise + * @api public + */ - minOverlap = minArea = Infinity; +is.divisibleBy = function (value, n) { + var isDividendInfinite = is.infinite(value); + var isDivisorInfinite = is.infinite(n); + var isNonZeroNumber = is.number(value) && !isActualNaN(value) && is.number(n) && !isActualNaN(n) && n !== 0; + return isDividendInfinite || isDivisorInfinite || (isNonZeroNumber && value % n === 0); +}; - for (i = m; i <= M - m; i++) { - bbox1 = this._distBBox(node, 0, i); - bbox2 = this._distBBox(node, i, M); +/** + * is.int + * Test if `value` is an integer. + * + * @param value to test + * @return {Boolean} true if `value` is an integer, false otherwise + * @api public + */ - overlap = this._intersectionArea(bbox1, bbox2); - area = this._area(bbox1) + this._area(bbox2); +is.int = function (value) { + return is.number(value) && !isActualNaN(value) && value % 1 === 0; +}; - // choose distribution with minimum overlap - if (overlap < minOverlap) { - minOverlap = overlap; - index = i; +/** + * is.maximum + * Test if `value` is greater than 'others' values. + * + * @param {Number} value value to test + * @param {Array} others values to compare with + * @return {Boolean} true if `value` is greater than `others` values + * @api public + */ - minArea = area < minArea ? area : minArea; +is.maximum = function (value, others) { + if (isActualNaN(value)) { + throw new TypeError('NaN is not a valid value'); + } else if (!is.arraylike(others)) { + throw new TypeError('second argument must be array-like'); + } + var len = others.length; - } else if (overlap === minOverlap) { - // otherwise choose distribution with minimum area - if (area < minArea) { - minArea = area; - index = i; - } - } - } + while (--len >= 0) { + if (value < others[len]) { + return false; + } + } - return index; - }, + return true; +}; - // sorts node children by the best axis for split - _chooseSplitAxis: function (node, m, M) { +/** + * is.minimum + * Test if `value` is less than `others` values. + * + * @param {Number} value value to test + * @param {Array} others values to compare with + * @return {Boolean} true if `value` is less than `others` values + * @api public + */ - var compareMinX = node.leaf ? this.compareMinX : this._compareNodeMinX, - compareMinY = node.leaf ? this.compareMinY : this._compareNodeMinY, - xMargin = this._allDistMargin(node, m, M, compareMinX), - yMargin = this._allDistMargin(node, m, M, compareMinY); +is.minimum = function (value, others) { + if (isActualNaN(value)) { + throw new TypeError('NaN is not a valid value'); + } else if (!is.arraylike(others)) { + throw new TypeError('second argument must be array-like'); + } + var len = others.length; - // if total distributions margin value is minimal for x, sort by minX, - // otherwise it's already sorted by minY + while (--len >= 0) { + if (value > others[len]) { + return false; + } + } - if (xMargin < yMargin) { - node.children.sort(compareMinX); - } - }, + return true; +}; - // total margin of all possible split distributions where each node is at least m full - _allDistMargin: function (node, m, M, compare) { +/** + * is.nan + * Test if `value` is not a number. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is not a number, false otherwise + * @api public + */ - node.children.sort(compare); +is.nan = function (value) { + return !is.number(value) || value !== value; +}; - var leftBBox = this._distBBox(node, 0, m), - rightBBox = this._distBBox(node, M - m, M), - margin = this._margin(leftBBox) + this._margin(rightBBox), - i, child; +/** + * is.even + * Test if `value` is an even number. + * + * @param {Number} value value to test + * @return {Boolean} true if `value` is an even number, false otherwise + * @api public + */ - for (i = m; i < M - m; i++) { - child = node.children[i]; - this._extend(leftBBox, node.leaf ? this.toBBox(child) : child.bbox); - margin += this._margin(leftBBox); - } +is.even = function (value) { + return is.infinite(value) || (is.number(value) && value === value && value % 2 === 0); +}; - for (i = M - m - 1; i >= 0; i--) { - child = node.children[i]; - this._extend(rightBBox, node.leaf ? this.toBBox(child) : child.bbox); - margin += this._margin(rightBBox); - } +/** + * is.odd + * Test if `value` is an odd number. + * + * @param {Number} value value to test + * @return {Boolean} true if `value` is an odd number, false otherwise + * @api public + */ - return margin; - }, +is.odd = function (value) { + return is.infinite(value) || (is.number(value) && value === value && value % 2 !== 0); +}; - // min bounding rectangle of node children from k to p-1 - _distBBox: function (node, k, p) { - var bbox = this._empty(); +/** + * is.ge + * Test if `value` is greater than or equal to `other`. + * + * @param {Number} value value to test + * @param {Number} other value to compare with + * @return {Boolean} + * @api public + */ - for (var i = k, child; i < p; i++) { - child = node.children[i]; - this._extend(bbox, node.leaf ? this.toBBox(child) : child.bbox); - } +is.ge = function (value, other) { + if (isActualNaN(value) || isActualNaN(other)) { + throw new TypeError('NaN is not a valid value'); + } + return !is.infinite(value) && !is.infinite(other) && value >= other; +}; - return bbox; - }, +/** + * is.gt + * Test if `value` is greater than `other`. + * + * @param {Number} value value to test + * @param {Number} other value to compare with + * @return {Boolean} + * @api public + */ - // calculate node's bbox from bboxes of its children - _calcBBox: function (node) { - node.bbox = this._empty(); +is.gt = function (value, other) { + if (isActualNaN(value) || isActualNaN(other)) { + throw new TypeError('NaN is not a valid value'); + } + return !is.infinite(value) && !is.infinite(other) && value > other; +}; - for (var i = 0, len = node.children.length, child; i < len; i++) { - child = node.children[i]; - this._extend(node.bbox, node.leaf ? this.toBBox(child) : child.bbox); - } - }, +/** + * is.le + * Test if `value` is less than or equal to `other`. + * + * @param {Number} value value to test + * @param {Number} other value to compare with + * @return {Boolean} if 'value' is less than or equal to 'other' + * @api public + */ - _adjustParentBBoxes: function (bbox, path, level) { - // adjust bboxes along the given tree path - for (var i = level; i >= 0; i--) { - this._extend(path[i].bbox, bbox); - } - }, +is.le = function (value, other) { + if (isActualNaN(value) || isActualNaN(other)) { + throw new TypeError('NaN is not a valid value'); + } + return !is.infinite(value) && !is.infinite(other) && value <= other; +}; - _condense: function (path) { - // go through the path, removing empty nodes and updating bboxes - for (var i = path.length - 1, parent; i >= 0; i--) { - if (path[i].children.length === 0) { - if (i > 0) { - parent = path[i - 1].children; - parent.splice(parent.indexOf(path[i]), 1); - } else { - this.clear(); - } - } else { - this._calcBBox(path[i]); - } - } - }, +/** + * is.lt + * Test if `value` is less than `other`. + * + * @param {Number} value value to test + * @param {Number} other value to compare with + * @return {Boolean} if `value` is less than `other` + * @api public + */ - _contains: function(a, b) { - return a[0] <= b[0] && - a[1] <= b[1] && - b[2] <= a[2] && - b[3] <= a[3]; - }, +is.lt = function (value, other) { + if (isActualNaN(value) || isActualNaN(other)) { + throw new TypeError('NaN is not a valid value'); + } + return !is.infinite(value) && !is.infinite(other) && value < other; +}; - _intersects: function (a, b) { - return b[0] <= a[2] && - b[1] <= a[3] && - b[2] >= a[0] && - b[3] >= a[1]; - }, +/** + * is.within + * Test if `value` is within `start` and `finish`. + * + * @param {Number} value value to test + * @param {Number} start lower bound + * @param {Number} finish upper bound + * @return {Boolean} true if 'value' is is within 'start' and 'finish' + * @api public + */ +is.within = function (value, start, finish) { + if (isActualNaN(value) || isActualNaN(start) || isActualNaN(finish)) { + throw new TypeError('NaN is not a valid value'); + } else if (!is.number(value) || !is.number(start) || !is.number(finish)) { + throw new TypeError('all arguments must be numbers'); + } + var isAnyInfinite = is.infinite(value) || is.infinite(start) || is.infinite(finish); + return isAnyInfinite || (value >= start && value <= finish); +}; - _extend: function (a, b) { - a[0] = Math.min(a[0], b[0]); - a[1] = Math.min(a[1], b[1]); - a[2] = Math.max(a[2], b[2]); - a[3] = Math.max(a[3], b[3]); - return a; - }, +/** + * Test object. + */ - _area: function (a) { return (a[2] - a[0]) * (a[3] - a[1]); }, - _margin: function (a) { return (a[2] - a[0]) + (a[3] - a[1]); }, +/** + * is.object + * Test if `value` is an object. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is an object, false otherwise + * @api public + */ - _enlargedArea: function (a, b) { - return (Math.max(b[2], a[2]) - Math.min(b[0], a[0])) * - (Math.max(b[3], a[3]) - Math.min(b[1], a[1])); - }, +is.object = function (value) { + return value && '[object Object]' === toString.call(value); +}; - _intersectionArea: function (a, b) { - var minX = Math.max(a[0], b[0]), - minY = Math.max(a[1], b[1]), - maxX = Math.min(a[2], b[2]), - maxY = Math.min(a[3], b[3]); +/** + * is.hash + * Test if `value` is a hash - a plain object literal. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is a hash, false otherwise + * @api public + */ - return Math.max(0, maxX - minX) * - Math.max(0, maxY - minY); - }, +is.hash = function (value) { + return is.object(value) && value.constructor === Object && !value.nodeType && !value.setInterval; +}; - _empty: function () { return [Infinity, Infinity, -Infinity, -Infinity]; }, +/** + * Test regexp. + */ - _compareNodeMinX: function (a, b) { return a.bbox[0] - b.bbox[0]; }, - _compareNodeMinY: function (a, b) { return a.bbox[1] - b.bbox[1]; }, +/** + * is.regexp + * Test if `value` is a regular expression. + * + * @param {Mixed} value value to test + * @return {Boolean} true if `value` is a regexp, false otherwise + * @api public + */ - _initFormat: function (format) { - // data format (minX, minY, maxX, maxY accessors) +is.regexp = function (value) { + return '[object RegExp]' === toString.call(value); +}; - // uses eval-type function compilation instead of just accepting a toBBox function - // because the algorithms are very sensitive to sorting functions performance, - // so they should be dead simple and without inner calls +/** + * Test string. + */ - // jshint evil: true +/** + * is.string + * Test if `value` is a string. + * + * @param {Mixed} value value to test + * @return {Boolean} true if 'value' is a string, false otherwise + * @api public + */ - var compareArr = ['return a', ' - b', ';']; +is.string = function (value) { + return '[object String]' === toString.call(value); +}; - this.compareMinX = new Function('a', 'b', compareArr.join(format[0])); - this.compareMinY = new Function('a', 'b', compareArr.join(format[1])); - this.toBBox = new Function('a', 'return [a' + format.join(', a') + '];'); +},{}],10:[function(require,module,exports){ + +var hasOwn = Object.prototype.hasOwnProperty; +var toString = Object.prototype.toString; + +module.exports = function forEach (obj, fn, ctx) { + if (toString.call(fn) !== '[object Function]') { + throw new TypeError('iterator must be a function'); + } + var l = obj.length; + if (l === +l) { + for (var i = 0; i < l; i++) { + fn.call(ctx, obj[i], i, obj); + } + } else { + for (var k in obj) { + if (hasOwn.call(obj, k)) { + fn.call(ctx, obj[k], k, obj); + } + } } }; -if (typeof define === 'function' && define.amd) { - define(function() { - return rbush; - }); -} else if (typeof module !== 'undefined') { - module.exports = rbush; -} else if (typeof self !== 'undefined') { - self.rbush = rbush; -} else { - window.rbush = rbush; -} -})(); -toGeoJSON = (function() { - 'use strict'; +},{}]},{},[1])(1) +}); +; +/* + (c) 2013, Vladimir Agafonkin + RBush, a JavaScript library for high-performance 2D spatial indexing of points and rectangles. + https://github.com/mourner/rbush +*/ - var removeSpace = (/\s*/g), - trimSpace = (/^\s*|\s*$/g), - splitSpace = (/\s+/); - // generate a short, numeric hash of a string - function okhash(x) { - if (!x || !x.length) return 0; - for (var i = 0, h = 0; i < x.length; i++) { - h = ((h << 5) - h) + x.charCodeAt(i) | 0; - } return h; +(function () { 'use strict'; + +function rbush(maxEntries, format) { + + // jshint newcap: false, validthis: true + if (!(this instanceof rbush)) return new rbush(maxEntries, format); + + // max entries in a node is 9 by default; min node fill is 40% for best performance + this._maxEntries = Math.max(4, maxEntries || 9); + this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4)); + + if (format) { + this._initFormat(format); + } + + this.clear(); +} + +rbush.prototype = { + + all: function () { + return this._all(this.data, []); + }, + + search: function (bbox) { + + var node = this.data, + result = [], + toBBox = this.toBBox; + + if (!intersects(bbox, node.bbox)) return result; + + var nodesToSearch = [], + i, len, child, childBBox; + + while (node) { + for (i = 0, len = node.children.length; i < len; i++) { + + child = node.children[i]; + childBBox = node.leaf ? toBBox(child) : child.bbox; + + if (intersects(bbox, childBBox)) { + if (node.leaf) result.push(child); + else if (contains(bbox, childBBox)) this._all(child, result); + else nodesToSearch.push(child); + } + } + node = nodesToSearch.pop(); + } + + return result; + }, + + load: function (data) { + if (!(data && data.length)) return this; + + if (data.length < this._minEntries) { + for (var i = 0, len = data.length; i < len; i++) { + this.insert(data[i]); + } + return this; + } + + // recursively build the tree with the given data from stratch using OMT algorithm + var node = this._build(data.slice(), 0, data.length - 1, 0); + + if (!this.data.children.length) { + // save as is if tree is empty + this.data = node; + + } else if (this.data.height === node.height) { + // split root if trees have the same height + this._splitRoot(this.data, node); + + } else { + if (this.data.height < node.height) { + // swap trees if inserted one is bigger + var tmpNode = this.data; + this.data = node; + node = tmpNode; + } + + // insert the small tree into the large tree at appropriate level + this._insert(node, this.data.height - node.height - 1, true); + } + + return this; + }, + + insert: function (item) { + if (item) this._insert(item, this.data.height - 1); + return this; + }, + + clear: function () { + this.data = { + children: [], + height: 1, + bbox: empty(), + leaf: true + }; + return this; + }, + + remove: function (item) { + if (!item) return this; + + var node = this.data, + bbox = this.toBBox(item), + path = [], + indexes = [], + i, parent, index, goingUp; + + // depth-first iterative tree traversal + while (node || path.length) { + + if (!node) { // go up + node = path.pop(); + parent = path[path.length - 1]; + i = indexes.pop(); + goingUp = true; + } + + if (node.leaf) { // check current node + index = node.children.indexOf(item); + + if (index !== -1) { + // item found, remove the item and condense tree upwards + node.children.splice(index, 1); + path.push(node); + this._condense(path); + return this; + } + } + + if (!goingUp && !node.leaf && contains(node.bbox, bbox)) { // go down + path.push(node); + indexes.push(i); + i = 0; + parent = node; + node = node.children[0]; + + } else if (parent) { // go right + i++; + node = parent.children[i]; + goingUp = false; + + } else node = null; // nothing found + } + + return this; + }, + + toBBox: function (item) { return item; }, + + compareMinX: function (a, b) { return a[0] - b[0]; }, + compareMinY: function (a, b) { return a[1] - b[1]; }, + + toJSON: function () { return this.data; }, + + fromJSON: function (data) { + this.data = data; + return this; + }, + + _all: function (node, result) { + var nodesToSearch = []; + while (node) { + if (node.leaf) result.push.apply(result, node.children); + else nodesToSearch.push.apply(nodesToSearch, node.children); + + node = nodesToSearch.pop(); + } + return result; + }, + + _build: function (items, left, right, level, height) { + + var N = right - left + 1, + M = this._maxEntries, + node; + + if (N <= M) { + node = { + children: items.slice(left, right + 1), + height: 1, + bbox: null, + leaf: true + }; + calcBBox(node, this.toBBox); + return node; + } + + if (!level) { + // target height of the bulk-loaded tree + height = Math.ceil(Math.log(N) / Math.log(M)); + + // target number of root entries to maximize storage utilization + M = Math.ceil(N / Math.pow(M, height - 1)); + } + + // TODO eliminate recursion? + + node = { + children: [], + height: height, + bbox: null + }; + + var N2 = Math.ceil(N / M), + N1 = N2 * Math.ceil(Math.sqrt(M)), + i, j, right2, childNode; + + // split the items into M mostly square tiles + for (i = left; i <= right; i += N1) { + + if (i + N1 <= right) partitionSort(items, i, right, i + N1, this.compareMinX); + right2 = Math.min(i + N1 - 1, right); + + for (j = i; j <= right2; j += N2) { + + if (j + N2 <= right2) partitionSort(items, j, right2, j + N2, this.compareMinY); + + // pack each entry recursively + childNode = this._build(items, j, Math.min(j + N2 - 1, right2), level + 1, height - 1); + node.children.push(childNode); + } + } + + calcBBox(node, this.toBBox); + + return node; + }, + + _chooseSubtree: function (bbox, node, level, path) { + + var i, len, child, targetNode, area, enlargement, minArea, minEnlargement; + + while (true) { + path.push(node); + + if (node.leaf || path.length - 1 === level) break; + + minArea = minEnlargement = Infinity; + + for (i = 0, len = node.children.length; i < len; i++) { + child = node.children[i]; + area = bboxArea(child.bbox); + enlargement = enlargedArea(bbox, child.bbox) - area; + + // choose entry with the least area enlargement + if (enlargement < minEnlargement) { + minEnlargement = enlargement; + minArea = area < minArea ? area : minArea; + targetNode = child; + + } else if (enlargement === minEnlargement) { + // otherwise choose one with the smallest area + if (area < minArea) { + minArea = area; + targetNode = child; + } + } + } + + node = targetNode; + } + + return node; + }, + + _insert: function (item, level, isNode) { + + var toBBox = this.toBBox, + bbox = isNode ? item.bbox : toBBox(item), + insertPath = []; + + // find the best node for accommodating the item, saving all nodes along the path too + var node = this._chooseSubtree(bbox, this.data, level, insertPath); + + // put the item into the node + node.children.push(item); + extend(node.bbox, bbox); + + // split on node overflow; propagate upwards if necessary + while (level >= 0) { + if (insertPath[level].children.length > this._maxEntries) { + this._split(insertPath, level); + level--; + } else break; + } + + // adjust bboxes along the insertion path + this._adjustParentBBoxes(bbox, insertPath, level); + }, + + // split overflowed node into two + _split: function (insertPath, level) { + + var node = insertPath[level], + M = node.children.length, + m = this._minEntries; + + this._chooseSplitAxis(node, m, M); + + var newNode = { + children: node.children.splice(this._chooseSplitIndex(node, m, M)), + height: node.height + }; + + if (node.leaf) newNode.leaf = true; + + calcBBox(node, this.toBBox); + calcBBox(newNode, this.toBBox); + + if (level) insertPath[level - 1].children.push(newNode); + else this._splitRoot(node, newNode); + }, + + _splitRoot: function (node, newNode) { + // split root node + this.data = { + children: [node, newNode], + height: node.height + 1 + }; + calcBBox(this.data, this.toBBox); + }, + + _chooseSplitIndex: function (node, m, M) { + + var i, bbox1, bbox2, overlap, area, minOverlap, minArea, index; + + minOverlap = minArea = Infinity; + + for (i = m; i <= M - m; i++) { + bbox1 = distBBox(node, 0, i, this.toBBox); + bbox2 = distBBox(node, i, M, this.toBBox); + + overlap = intersectionArea(bbox1, bbox2); + area = bboxArea(bbox1) + bboxArea(bbox2); + + // choose distribution with minimum overlap + if (overlap < minOverlap) { + minOverlap = overlap; + index = i; + + minArea = area < minArea ? area : minArea; + + } else if (overlap === minOverlap) { + // otherwise choose distribution with minimum area + if (area < minArea) { + minArea = area; + index = i; + } + } + } + + return index; + }, + + // sorts node children by the best axis for split + _chooseSplitAxis: function (node, m, M) { + + var compareMinX = node.leaf ? this.compareMinX : compareNodeMinX, + compareMinY = node.leaf ? this.compareMinY : compareNodeMinY, + xMargin = this._allDistMargin(node, m, M, compareMinX), + yMargin = this._allDistMargin(node, m, M, compareMinY); + + // if total distributions margin value is minimal for x, sort by minX, + // otherwise it's already sorted by minY + if (xMargin < yMargin) node.children.sort(compareMinX); + }, + + // total margin of all possible split distributions where each node is at least m full + _allDistMargin: function (node, m, M, compare) { + + node.children.sort(compare); + + var toBBox = this.toBBox, + leftBBox = distBBox(node, 0, m, toBBox), + rightBBox = distBBox(node, M - m, M, toBBox), + margin = bboxMargin(leftBBox) + bboxMargin(rightBBox), + i, child; + + for (i = m; i < M - m; i++) { + child = node.children[i]; + extend(leftBBox, node.leaf ? toBBox(child) : child.bbox); + margin += bboxMargin(leftBBox); + } + + for (i = M - m - 1; i >= m; i--) { + child = node.children[i]; + extend(rightBBox, node.leaf ? toBBox(child) : child.bbox); + margin += bboxMargin(rightBBox); + } + + return margin; + }, + + _adjustParentBBoxes: function (bbox, path, level) { + // adjust bboxes along the given tree path + for (var i = level; i >= 0; i--) { + extend(path[i].bbox, bbox); + } + }, + + _condense: function (path) { + // go through the path, removing empty nodes and updating bboxes + for (var i = path.length - 1, siblings; i >= 0; i--) { + if (path[i].children.length === 0) { + if (i > 0) { + siblings = path[i - 1].children; + siblings.splice(siblings.indexOf(path[i]), 1); + + } else this.clear(); + + } else calcBBox(path[i], this.toBBox); + } + }, + + _initFormat: function (format) { + // data format (minX, minY, maxX, maxY accessors) + + // uses eval-type function compilation instead of just accepting a toBBox function + // because the algorithms are very sensitive to sorting functions performance, + // so they should be dead simple and without inner calls + + // jshint evil: true + + var compareArr = ['return a', ' - b', ';']; + + this.compareMinX = new Function('a', 'b', compareArr.join(format[0])); + this.compareMinY = new Function('a', 'b', compareArr.join(format[1])); + + this.toBBox = new Function('a', 'return [a' + format.join(', a') + '];'); + } +}; + +// calculate node's bbox from bboxes of its children +function calcBBox(node, toBBox) { + node.bbox = distBBox(node, 0, node.children.length, toBBox); +} + +// min bounding rectangle of node children from k to p-1 +function distBBox(node, k, p, toBBox) { + var bbox = empty(); + + for (var i = k, child; i < p; i++) { + child = node.children[i]; + extend(bbox, node.leaf ? toBBox(child) : child.bbox); + } + + return bbox; +} + + +function empty() { return [Infinity, Infinity, -Infinity, -Infinity]; } + +function extend(a, b) { + a[0] = Math.min(a[0], b[0]); + a[1] = Math.min(a[1], b[1]); + a[2] = Math.max(a[2], b[2]); + a[3] = Math.max(a[3], b[3]); + return a; +} + +function compareNodeMinX(a, b) { return a.bbox[0] - b.bbox[0]; } +function compareNodeMinY(a, b) { return a.bbox[1] - b.bbox[1]; } + +function bboxArea(a) { return (a[2] - a[0]) * (a[3] - a[1]); } +function bboxMargin(a) { return (a[2] - a[0]) + (a[3] - a[1]); } + +function enlargedArea(a, b) { + return (Math.max(b[2], a[2]) - Math.min(b[0], a[0])) * + (Math.max(b[3], a[3]) - Math.min(b[1], a[1])); +} + +function intersectionArea (a, b) { + var minX = Math.max(a[0], b[0]), + minY = Math.max(a[1], b[1]), + maxX = Math.min(a[2], b[2]), + maxY = Math.min(a[3], b[3]); + + return Math.max(0, maxX - minX) * + Math.max(0, maxY - minY); +} + +function contains(a, b) { + return a[0] <= b[0] && + a[1] <= b[1] && + b[2] <= a[2] && + b[3] <= a[3]; +} + +function intersects (a, b) { + return b[0] <= a[2] && + b[1] <= a[3] && + b[2] >= a[0] && + b[3] >= a[1]; +} + + +function partitionSort(arr, left, right, k, compare) { + var pivot; + + while (true) { + pivot = Math.floor((left + right) / 2); + pivot = partition(arr, left, right, pivot, compare); + + if (k === pivot) break; + else if (k < pivot) right = pivot - 1; + else left = pivot + 1; + } + + partition(arr, left, right, k, compare); +} + +function partition(arr, left, right, pivot, compare) { + var k = left, + value = arr[pivot]; + + swap(arr, pivot, right); + + for (var i = left; i < right; i++) { + if (compare(arr[i], value) < 0) { + swap(arr, k, i); + k++; + } + } + swap(arr, right, k); + + return k; +} + +function swap(arr, i, j) { + var tmp = arr[i]; + arr[i] = arr[j]; + arr[j] = tmp; +} + + +// export as AMD/CommonJS module or global variable +if (typeof define === 'function' && define.amd) define(function() { return rbush; }); +else if (typeof module !== 'undefined') module.exports = rbush; +else if (typeof self !== 'undefined') self.rbush = rbush; +else window.rbush = rbush; + +})();(function(e){if("function"==typeof bootstrap)bootstrap("sexagesimal",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeSexagesimal=e}else"undefined"!=typeof window?window.sexagesimal=e():global.sexagesimal=e()})(function(){var define,ses,bootstrap,module,exports; +return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o= 0 ? 0 : 1], + abs = Math.abs(x), + whole = Math.floor(abs), + fraction = abs - whole, + fractionMinutes = fraction * 60, + minutes = Math.floor(fractionMinutes), + seconds = Math.floor((fractionMinutes - minutes) * 60); + + return whole + '° ' + + (minutes ? minutes + "' " : '') + + (seconds ? seconds + '" ' : '') + dir; +} + +function search(x, dims, r) { + if (!dims) dims = 'NSEW'; + if (typeof x !== 'string') return { val: null, regex: r }; + r = r || /[\s\,]*([\-|\—|\―]?[0-9.]+)°? *(?:([0-9.]+)['’′‘] *)?(?:([0-9.]+)(?:''|"|”|″) *)?([NSEW])?/gi; + var m = r.exec(x); + if (!m) return { val: null, regex: r }; + else if (m[4] && dims.indexOf(m[4]) === -1) return { val: null, regex: r }; + else return { + val: (((m[1]) ? parseFloat(m[1]) : 0) + + ((m[2] ? parseFloat(m[2]) / 60 : 0)) + + ((m[3] ? parseFloat(m[3]) / 3600 : 0))) * + ((m[4] && m[4] === 'S' || m[4] === 'W') ? -1 : 1), + regex: r, + raw: m[0], + dim: m[4] + }; +} + +function pair(x, dims) { + x = x.trim(); + var one = search(x, dims); + if (one.val === null) return null; + var two = search(x, dims, one.regex); + if (two.val === null) return null; + // null if one/two are not contiguous. + if (one.raw + two.raw !== x) return null; + if (one.dim) return swapdim(one.val, two.val, one.dim); + else return [one.val, two.val]; +} + +function swapdim(a, b, dim) { + if (dim == 'N' || dim == 'S') return [a, b]; + if (dim == 'W' || dim == 'E') return [b, a]; +} + +},{}]},{},[1]) +(1) +}); +;toGeoJSON = (function() { + 'use strict'; + + var removeSpace = (/\s*/g), + trimSpace = (/^\s*|\s*$/g), + splitSpace = (/\s+/); + // generate a short, numeric hash of a string + function okhash(x) { + if (!x || !x.length) return 0; + for (var i = 0, h = 0; i < x.length; i++) { + h = ((h << 5) - h) + x.charCodeAt(i) | 0; + } return h; } // all Y children of X function get(x, y) { return x.getElementsByTagName(y); } @@ -15956,7 +19012,6 @@ if (typeof exports === 'object') { }).call(function() { return this || (typeof window !== 'undefined' ? window : global); }()); -/* jshint ignore:start */ (function () { 'use strict'; window.iD = function () { @@ -15968,7 +19023,7 @@ window.iD = function () { // https://github.com/openstreetmap/iD/issues/772 // http://mathiasbynens.be/notes/localstorage-pattern#comment-9 - try { storage = localStorage; } catch (e) {} + try { storage = localStorage; } catch (e) {} // eslint-disable-line no-empty storage = storage || (function() { var s = {}; return { @@ -15985,12 +19040,22 @@ window.iD = function () { else storage.setItem(k, v); } catch(e) { // localstorage quota exceeded - /* jshint devel:true */ + /* eslint-disable no-console */ if (typeof console !== 'undefined') console.error('localStorage quota exceeded'); - /* jshint devel:false */ + /* eslint-enable no-console */ } }; + /* Accessor for setting minimum zoom for editing features. */ + + var minEditableZoom = 16; + context.minEditableZoom = function(_) { + if (!arguments.length) return minEditableZoom; + minEditableZoom = _; + connection.tileZoom(_); + return context; + }; + var history = iD.History(context), dispatch = d3.dispatch('enter', 'exit'), mode, @@ -16004,18 +19069,20 @@ window.iD = function () { locale = locale.split('-')[0]; } - connection.on('load.context', function loadContext(err, result) { - history.merge(result.data, result.extent); - }); - context.preauth = function(options) { connection.switch(options); return context; }; - context.locale = function(_, path) { - locale = _; + context.locale = function(loc, path) { + locale = loc; localePath = path; + + // Also set iD.detect().locale (unless we detected 'en-us' and openstreetmap wants 'en').. + if (!(loc.toLowerCase() === 'en' && iD.detect().locale.toLowerCase() === 'en-us')) { + iD.detect().locale = loc; + } + return context; }; @@ -16037,6 +19104,51 @@ window.iD = function () { context.connection = function() { return connection; }; context.history = function() { return history; }; + /* Connection */ + function entitiesLoaded(err, result) { + if (!err) history.merge(result.data, result.extent); + } + + context.loadTiles = function(projection, dimensions, callback) { + function done(err, result) { + entitiesLoaded(err, result); + if (callback) callback(err, result); + } + connection.loadTiles(projection, dimensions, done); + }; + + context.loadEntity = function(id, callback) { + function done(err, result) { + entitiesLoaded(err, result); + if (callback) callback(err, result); + } + connection.loadEntity(id, done); + }; + + context.zoomToEntity = function(id, zoomTo) { + if (zoomTo !== false) { + this.loadEntity(id, function(err, result) { + if (err) return; + var entity = _.find(result.data, function(e) { return e.id === id; }); + if (entity) { map.zoomTo(entity); } + }); + } + + map.on('drawn.zoomToEntity', function() { + if (!context.hasEntity(id)) return; + map.on('drawn.zoomToEntity', null); + context.on('enter.zoomToEntity', null); + context.enter(iD.modes.Select(context, [id])); + }); + + context.on('enter.zoomToEntity', function() { + if (mode.id !== 'browse') { + map.on('drawn.zoomToEntity', null); + context.on('enter.zoomToEntity', null); + } + }); + }; + /* History */ context.graph = history.graph; context.changes = history.changes; @@ -16051,13 +19163,14 @@ window.iD = function () { }; context.save = function() { - if (inIntro) return; + if (inIntro || (mode && mode.id === 'save')) return; history.save(); if (history.hasChanges()) return t('save.unsaved_changes'); }; context.flush = function() { connection.flush(); + features.reset(); history.reset(); return context; }; @@ -16076,6 +19189,7 @@ window.iD = function () { context.perform = withDebouncedSave(history.perform); context.replace = withDebouncedSave(history.replace); context.pop = withDebouncedSave(history.pop); + context.overwrite = withDebouncedSave(history.overwrite); context.undo = withDebouncedSave(history.undo); context.redo = withDebouncedSave(history.redo); @@ -16120,34 +19234,6 @@ window.iD = function () { } }; - context.loadEntity = function(id, zoomTo) { - if (zoomTo !== false) { - connection.loadEntity(id, function(error, entity) { - if (entity) { - map.zoomTo(entity); - } - }); - } - - map.on('drawn.loadEntity', function() { - if (!context.hasEntity(id)) return; - map.on('drawn.loadEntity', null); - context.on('enter.loadEntity', null); - context.enter(iD.modes.Select(context, [id])); - }); - - context.on('enter.loadEntity', function() { - if (mode.id !== 'browse') { - map.on('drawn.loadEntity', null); - context.on('enter.loadEntity', null); - } - }); - }; - - context.editable = function() { - return map.editable() && mode && mode.id !== 'save'; - }; - /* Behaviors */ context.install = function(behavior) { context.surface().call(behavior); @@ -16157,68 +19243,45 @@ window.iD = function () { context.surface().call(behavior.off); }; - /* Projection */ - function rawMercator() { - var project = d3.geo.mercator.raw, - k = 512 / Math.PI, // scale - x = 0, y = 0, // translate - clipExtent = [[0, 0], [0, 0]]; - - function projection(point) { - point = project(point[0] * Math.PI / 180, point[1] * Math.PI / 180); - return [point[0] * k + x, y - point[1] * k]; - } - - projection.invert = function(point) { - point = project.invert((point[0] - x) / k, (y - point[1]) / k); - return point && [point[0] * 180 / Math.PI, point[1] * 180 / Math.PI]; - }; - - projection.scale = function(_) { - if (!arguments.length) return k; - k = +_; - return projection; - }; - - projection.translate = function(_) { - if (!arguments.length) return [x, y]; - x = +_[0]; - y = +_[1]; - return projection; - }; - - projection.clipExtent = function(_) { - if (!arguments.length) return clipExtent; - clipExtent = _; - return projection; - }; - - projection.stream = d3.geo.transform({ - point: function(x, y) { - x = projection([x, y]); - this.stream.point(x[0], x[1]); - } - }).stream; - - return projection; - } + /* Copy/Paste */ + var copyIDs = [], copyGraph; + context.copyGraph = function() { return copyGraph; }; + context.copyIDs = function(_) { + if (!arguments.length) return copyIDs; + copyIDs = _; + copyGraph = history.graph(); + return context; + }; - context.projection = rawMercator(); + /* Projection */ + context.projection = iD.geo.RawMercator(); /* Background */ var background = iD.Background(context); context.background = function() { return background; }; + /* Features */ + var features = iD.Features(context); + context.features = function() { return features; }; + context.hasHiddenConnections = function(id) { + var graph = history.graph(), + entity = graph.entity(id); + return features.hasHiddenConnections(entity, graph); + }; + /* Map */ var map = iD.Map(context); context.map = function() { return map; }; context.layers = function() { return map.layers; }; context.surface = function() { return map.surface; }; + context.editable = function() { return map.editable(); }; context.mouse = map.mouse; context.extent = map.extent; context.pan = map.pan; context.zoomIn = map.zoomIn; context.zoomOut = map.zoomOut; + context.zoomInFurther = map.zoomInFurther; + context.zoomOutFurther = map.zoomOutFurther; context.surfaceRect = function() { // Work around a bug in Firefox. @@ -16228,11 +19291,18 @@ window.iD = function () { }; /* Presets */ - var presets = iD.presets() - .load(iD.data.presets); + var presets = iD.presets(); - context.presets = function() { - return presets; + context.presets = function(_) { + if (!arguments.length) return presets; + presets.load(_); + iD.areaKeys = presets.areaKeys(); + return context; + }; + + context.imagery = function(_) { + background.load(_); + return context; }; context.container = function(_) { @@ -16242,6 +19312,14 @@ window.iD = function () { return context; }; + /* Taginfo */ + var taginfo; + context.taginfo = function(_) { + if (!arguments.length) return taginfo; + taginfo = _; + return context; + }; + var embed = false; context.embed = function(_) { if (!arguments.length) return embed; @@ -16271,25 +19349,64 @@ window.iD = function () { return d3.rebind(context, dispatch, 'on'); }; -iD.version = '1.3.10'; +iD.version = '1.8.2'; (function() { var detected = {}; var ua = navigator.userAgent, - msie = new RegExp('MSIE ([0-9]{1,}[\\.0-9]{0,})'); + m = null; + + m = ua.match(/(edge)\/?\s*(\.?\d+(\.\d+)*)/i); // Edge + if (m !== null) { + detected.browser = m[1]; + detected.version = m[2]; + } + if (!detected.browser) { + m = ua.match(/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/i); // IE11 + if (m !== null) { + detected.browser = 'msie'; + detected.version = m[1]; + } + } + if (!detected.browser) { + m = ua.match(/(opr)\/?\s*(\.?\d+(\.\d+)*)/i); // Opera 15+ + if (m !== null) { + detected.browser = 'Opera'; + detected.version = m[2]; + } + } + if (!detected.browser) { + m = ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); + if (m !== null) { + detected.browser = m[1]; + detected.version = m[2]; + m = ua.match(/version\/([\.\d]+)/i); + if (m !== null) detected.version = m[1]; + } + } + if (!detected.browser) { + detected.browser = navigator.appName; + detected.version = navigator.appVersion; + } - if (msie.exec(ua) !== null) { - var rv = parseFloat(RegExp.$1); - detected.support = !(rv && rv < 9); + // keep major.minor version only.. + detected.version = detected.version.split(/\W/).slice(0,2).join('.'); + + if (detected.browser.toLowerCase() === 'msie') { + detected.ie = true; + detected.browser = 'Internet Explorer'; + detected.support = parseFloat(detected.version) >= 11; } else { + detected.ie = false; detected.support = true; } // Added due to incomplete svg style support. See #715 - detected.opera = ua.indexOf('Opera') >= 0; + detected.opera = (detected.browser.toLowerCase() === 'opera' && parseFloat(detected.version) < 15 ); - detected.locale = navigator.language || navigator.userLanguage; + detected.locale = (navigator.languages && navigator.languages.length) + ? navigator.languages[0] : (navigator.language || navigator.userLanguage || 'en-US'); detected.filedrop = (window.FileReader && 'ondrop' in window); @@ -16297,14 +19414,63 @@ iD.version = '1.3.10'; return navigator.userAgent.indexOf(x) !== -1; } - if (nav('Win')) detected.os = 'win'; - else if (nav('Mac')) detected.os = 'mac'; - else if (nav('X11')) detected.os = 'linux'; - else if (nav('Linux')) detected.os = 'linux'; - else detected.os = 'win'; + if (nav('Win')) { + detected.os = 'win'; + detected.platform = 'Windows'; + } + else if (nav('Mac')) { + detected.os = 'mac'; + detected.platform = 'Macintosh'; + } + else if (nav('X11') || nav('Linux')) { + detected.os = 'linux'; + detected.platform = 'Linux'; + } + else { + detected.os = 'win'; + detected.platform = 'Unknown'; + } iD.detect = function() { return detected; }; })(); +iD.countryCode = function() { + var countryCode = {}, + endpoint = 'https://nominatim.openstreetmap.org/reverse?'; + + if (!iD.countryCode.cache) { + iD.countryCode.cache = rbush(); + } + + var cache = iD.countryCode.cache; + + countryCode.search = function(location, callback) { + var countryCodes = cache.search([location[0], location[1], location[0], location[1]]); + + if (countryCodes.length > 0) + return callback(null, countryCodes[0][4]); + + d3.json(endpoint + + iD.util.qsString({ + format: 'json', + addressdetails: 1, + lat: location[1], + lon: location[0] + }), function(err, result) { + if (err) + return callback(err); + else if (result && result.error) + return callback(result.error); + + var extent = iD.geo.Extent(location).padByMeters(1000); + + cache.insert([extent[0][0], extent[0][1], extent[1][0], extent[1][1], result.address.country_code]); + + callback(null, result.address.country_code); + }); + }; + + return countryCode; +}; iD.taginfo = function() { var taginfo = {}, endpoint = 'https://taginfo.openstreetmap.org/api/4/', @@ -16346,19 +19512,10 @@ iD.taginfo = function() { return _.omit(parameters, 'geometry', 'debounce'); } - function shorten(parameters) { - if (!parameters.query) { - delete parameters.query; - } else { - parameters.query = parameters.query.slice(0, 3); - } - return parameters; - } - function popularKeys(parameters) { var pop_field = 'count_all'; if (parameters.filter) pop_field = 'count_' + parameters.filter; - return function(d) { return parseFloat(d[pop_field]) > 10000; }; + return function(d) { return parseFloat(d[pop_field]) > 5000 || d.in_wiki; }; } function popularValues() { @@ -16393,7 +19550,7 @@ iD.taginfo = function() { taginfo.keys = function(parameters, callback) { var debounce = parameters.debounce; - parameters = clean(shorten(setSort(setFilter(parameters)))); + parameters = clean(setSort(parameters)); request(endpoint + 'keys/all?' + iD.util.qsString(_.extend({ rp: 10, @@ -16408,7 +19565,7 @@ iD.taginfo = function() { taginfo.values = function(parameters, callback) { var debounce = parameters.debounce; - parameters = clean(shorten(setSort(setFilter(parameters)))); + parameters = clean(setSort(setFilter(parameters))); request(endpoint + 'key/values?' + iD.util.qsString(_.extend({ rp: 25, @@ -16429,8 +19586,10 @@ iD.taginfo = function() { if (parameters.value) path = 'tag/wiki_pages?'; else if (parameters.rtype) path = 'relation/wiki_pages?'; - request(endpoint + path + - iD.util.qsString(parameters), debounce, callback); + request(endpoint + path + iD.util.qsString(parameters), debounce, function(err, d) { + if (err) return callback(err); + callback(null, d.data); + }); }; taginfo.endpoint = function(_) { @@ -16534,6 +19693,14 @@ iD.util.displayName = function(entity) { return entity.tags[localeName] || entity.tags.name || entity.tags.ref; }; +iD.util.displayType = function(id) { + return { + n: t('inspector.node'), + w: t('inspector.way'), + r: t('inspector.relation') + }[id.charAt(0)]; +}; + iD.util.stringQs = function(str) { return str.split('&').reduce(function(obj, pair){ var parts = pair.split('='); @@ -16545,7 +19712,11 @@ iD.util.stringQs = function(str) { }; iD.util.qsString = function(obj, noencode) { - function softEncode(s) { return s.replace('&', '%26'); } + function softEncode(s) { + // encode everything except special characters used in certain hash parameters: + // "/" in map states, ":", ",", {" and "}" in background + return encodeURIComponent(s).replace(/(%2F|%3A|%2C|%7B|%7D)/g, decodeURIComponent); + } return Object.keys(obj).sort().map(function(key) { return encodeURIComponent(key) + '=' + ( noencode ? softEncode(obj[key]) : encodeURIComponent(obj[key])); @@ -16631,7 +19802,7 @@ iD.util.editDistance = function(a, b) { // 1. Only works on HTML elements, not SVG // 2. Does not cause style recalculation iD.util.fastMouse = function(container) { - var rect = _.clone(container.getBoundingClientRect()), + var rect = container.getBoundingClientRect(), rectLeft = rect.left, rectTop = rect.top, clientLeft = +container.clientLeft, @@ -16643,8 +19814,9 @@ iD.util.fastMouse = function(container) { }; }; -/* jshint -W103 */ +/* eslint-disable no-proto */ iD.util.getPrototypeOf = Object.getPrototypeOf || function(obj) { return obj.__proto__; }; +/* eslint-enable no-proto */ iD.util.asyncMap = function(inputs, func, callback) { var remaining = inputs.length, @@ -16655,7 +19827,7 @@ iD.util.asyncMap = function(inputs, func, callback) { func(d, function done(err, data) { errors[i] = err; results[i] = data; - remaining --; + remaining--; if (!remaining) callback(errors, results); }); }); @@ -16754,11 +19926,38 @@ iD.geo.euclideanDistance = function(a, b) { var x = a[0] - b[0], y = a[1] - b[1]; return Math.sqrt((x * x) + (y * y)); }; + +// using WGS84 polar radius (6356752.314245179 m) +// const = 2 * PI * r / 360 +iD.geo.latToMeters = function(dLat) { + return dLat * 110946.257617; +}; + +// using WGS84 equatorial radius (6378137.0 m) +// const = 2 * PI * r / 360 +iD.geo.lonToMeters = function(dLon, atLat) { + return Math.abs(atLat) >= 90 ? 0 : + dLon * 111319.490793 * Math.abs(Math.cos(atLat * (Math.PI/180))); +}; + +// using WGS84 polar radius (6356752.314245179 m) +// const = 2 * PI * r / 360 +iD.geo.metersToLat = function(m) { + return m / 110946.257617; +}; + +// using WGS84 equatorial radius (6378137.0 m) +// const = 2 * PI * r / 360 +iD.geo.metersToLon = function(m, atLat) { + return Math.abs(atLat) >= 90 ? 0 : + m / 111319.490793 / Math.abs(Math.cos(atLat * (Math.PI/180))); +}; + // Equirectangular approximation of spherical distances on Earth iD.geo.sphericalDistance = function(a, b) { - var x = Math.cos(a[1]*Math.PI/180) * (a[0] - b[0]), - y = a[1] - b[1]; - return 6.3710E6 * Math.sqrt((x * x) + (y * y)) * Math.PI/180; + var x = iD.geo.lonToMeters(a[0] - b[0], (a[1] + b[1]) / 2), + y = iD.geo.latToMeters(a[1] - b[1]); + return Math.sqrt((x * x) + (y * y)); }; iD.geo.edgeEqual = function(a, b) { @@ -16766,6 +19965,14 @@ iD.geo.edgeEqual = function(a, b) { (a[0] === b[1] && a[1] === b[0]); }; +// Return the counterclockwise angle in the range (-pi, pi) +// between the positive X axis and the line intersecting a and b. +iD.geo.angle = function(a, b, projection) { + a = projection(a.loc); + b = projection(b.loc); + return Math.atan2(b[1] - a[1], b[0] - a[0]); +}; + // Choose the edge with the minimal distance from `point` to its orthogonal // projection onto that edge, if such a projection exists, or the distance to // the closest vertex on that edge. Returns an object with the `index` of the @@ -16812,6 +20019,52 @@ iD.geo.chooseEdge = function(nodes, point, projection) { }; }; +// Return the intersection point of 2 line segments. +// From https://github.com/pgkelley4/line-segments-intersect +// This uses the vector cross product approach described below: +// http://stackoverflow.com/a/565282/786339 +iD.geo.lineIntersection = function(a, b) { + function subtractPoints(point1, point2) { + return [point1[0] - point2[0], point1[1] - point2[1]]; + } + function crossProduct(point1, point2) { + return point1[0] * point2[1] - point1[1] * point2[0]; + } + + var p = [a[0][0], a[0][1]], + p2 = [a[1][0], a[1][1]], + q = [b[0][0], b[0][1]], + q2 = [b[1][0], b[1][1]], + r = subtractPoints(p2, p), + s = subtractPoints(q2, q), + uNumerator = crossProduct(subtractPoints(q, p), r), + denominator = crossProduct(r, s); + + if (uNumerator && denominator) { + var u = uNumerator / denominator, + t = crossProduct(subtractPoints(q, p), s) / denominator; + + if ((t >= 0) && (t <= 1) && (u >= 0) && (u <= 1)) { + return iD.geo.interp(p, p2, t); + } + } + + return null; +}; + +iD.geo.pathIntersections = function(path1, path2) { + var intersections = []; + for (var i = 0; i < path1.length - 1; i++) { + for (var j = 0; j < path2.length - 1; j++) { + var a = [ path1[i], path1[i+1] ], + b = [ path2[j], path2[j+1] ], + hit = iD.geo.lineIntersection(a, b); + if (hit) intersections.push(hit); + } + } + return intersections; +}; + // Return whether point is contained in polygon. // // `point` should be a 2-item array of coordinates. @@ -16844,10 +20097,25 @@ iD.geo.polygonContainsPolygon = function(outer, inner) { }); }; -iD.geo.polygonIntersectsPolygon = function(outer, inner) { - return _.some(inner, function(point) { - return iD.geo.pointInPolygon(point, outer); - }); +iD.geo.polygonIntersectsPolygon = function(outer, inner, checkSegments) { + function testSegments(outer, inner) { + for (var i = 0; i < outer.length - 1; i++) { + for (var j = 0; j < inner.length - 1; j++) { + var a = [ outer[i], outer[i+1] ], + b = [ inner[j], inner[j+1] ]; + if (iD.geo.lineIntersection(a, b)) return true; + } + } + return false; + } + + function testPoints(outer, inner) { + return _.some(inner, function(point) { + return iD.geo.pointInPolygon(point, outer); + }); + } + + return testPoints(outer, inner) || (!!checkSegments && testSegments(outer, inner)); }; iD.geo.pathLength = function(path) { @@ -16873,9 +20141,16 @@ iD.geo.Extent = function geoExtent(min, max) { } }; -iD.geo.Extent.prototype = [[], []]; +iD.geo.Extent.prototype = new Array(2); _.extend(iD.geo.Extent.prototype, { + equals: function (obj) { + return this[0][0] === obj[0][0] && + this[0][1] === obj[0][1] && + this[1][0] === obj[1][0] && + this[1][1] === obj[1][1]; + }, + extend: function(obj) { if (!(obj instanceof iD.geo.Extent)) obj = new iD.geo.Extent(obj); return iD.geo.Extent([Math.min(obj[0][0], this[0][0]), @@ -16884,6 +20159,13 @@ _.extend(iD.geo.Extent.prototype, { Math.max(obj[1][1], this[1][1])]); }, + _extend: function(extent) { + this[0][0] = Math.min(extent[0][0], this[0][0]); + this[0][1] = Math.min(extent[0][1], this[0][1]); + this[1][0] = Math.max(extent[1][0], this[1][0]); + this[1][1] = Math.max(extent[1][1], this[1][1]); + }, + area: function() { return Math.abs((this[1][0] - this[0][0]) * (this[1][1] - this[0][1])); }, @@ -16903,6 +20185,14 @@ _.extend(iD.geo.Extent.prototype, { ]; }, + contains: function(obj) { + if (!(obj instanceof iD.geo.Extent)) obj = new iD.geo.Extent(obj); + return obj[0][0] >= this[0][0] && + obj[0][1] >= this[0][1] && + obj[1][0] <= this[1][0] && + obj[1][1] <= this[1][1]; + }, + intersects: function(obj) { if (!(obj instanceof iD.geo.Extent)) obj = new iD.geo.Extent(obj); return obj[0][0] <= this[1][0] && @@ -16919,9 +20209,21 @@ _.extend(iD.geo.Extent.prototype, { Math.min(obj[1][1], this[1][1])]); }, + percentContainedIn: function(obj) { + if (!(obj instanceof iD.geo.Extent)) obj = new iD.geo.Extent(obj); + var a1 = this.intersection(obj).area(), + a2 = this.area(); + + if (a1 === Infinity || a2 === Infinity || a1 === 0 || a2 === 0) { + return 0; + } else { + return a1 / a2; + } + }, + padByMeters: function(meters) { - var dLat = meters / 111200, - dLon = meters / 111200 / Math.abs(Math.cos(this.center()[1])); + var dLat = iD.geo.metersToLat(meters), + dLon = iD.geo.metersToLon(meters, this.center()[1]); return iD.geo.Extent( [this[0][0] - dLon, this[0][1] - dLat], [this[1][0] + dLon, this[1][1] + dLat]); @@ -16930,7 +20232,202 @@ _.extend(iD.geo.Extent.prototype, { toParam: function() { return [this[0][0], this[0][1], this[1][0], this[1][1]].join(','); } + }); +iD.geo.Turn = function(turn) { + if (!(this instanceof iD.geo.Turn)) + return new iD.geo.Turn(turn); + _.extend(this, turn); +}; + +iD.geo.Intersection = function(graph, vertexId) { + var vertex = graph.entity(vertexId), + parentWays = graph.parentWays(vertex), + coincident = [], + highways = {}; + + function addHighway(way, adjacentNodeId) { + if (highways[adjacentNodeId]) { + coincident.push(adjacentNodeId); + } else { + highways[adjacentNodeId] = way; + } + } + + // Pre-split ways that would need to be split in + // order to add a restriction. The real split will + // happen when the restriction is added. + parentWays.forEach(function(way) { + if (!way.tags.highway || way.isArea() || way.isDegenerate()) + return; + + var isFirst = (vertexId === way.first()), + isLast = (vertexId === way.last()), + isAffix = (isFirst || isLast), + isClosingNode = (isFirst && isLast); + + if (isAffix && !isClosingNode) { + var index = (isFirst ? 1 : way.nodes.length - 2); + addHighway(way, way.nodes[index]); + + } else { + var splitIndex, wayA, wayB, indexA, indexB; + if (isClosingNode) { + splitIndex = Math.ceil(way.nodes.length / 2); // split at midpoint + wayA = iD.Way({id: way.id + '-a', tags: way.tags, nodes: way.nodes.slice(0, splitIndex)}); + wayB = iD.Way({id: way.id + '-b', tags: way.tags, nodes: way.nodes.slice(splitIndex)}); + indexA = 1; + indexB = way.nodes.length - 2; + } else { + splitIndex = _.indexOf(way.nodes, vertex.id, 1); // split at vertexid + wayA = iD.Way({id: way.id + '-a', tags: way.tags, nodes: way.nodes.slice(0, splitIndex + 1)}); + wayB = iD.Way({id: way.id + '-b', tags: way.tags, nodes: way.nodes.slice(splitIndex)}); + indexA = splitIndex - 1; + indexB = splitIndex + 1; + } + graph = graph.replace(wayA).replace(wayB); + addHighway(wayA, way.nodes[indexA]); + addHighway(wayB, way.nodes[indexB]); + } + }); + + // remove any ways from this intersection that are coincident + // (i.e. any adjacent node used by more than one intersecting way) + coincident.forEach(function (n) { + delete highways[n]; + }); + + + var intersection = { + highways: highways, + ways: _.values(highways), + graph: graph + }; + + intersection.adjacentNodeId = function(fromWayId) { + return _.find(_.keys(highways), function(k) { + return highways[k].id === fromWayId; + }); + }; + + intersection.turns = function(fromNodeId) { + var start = highways[fromNodeId]; + if (!start) + return []; + + if (start.first() === vertex.id && start.tags.oneway === 'yes') + return []; + if (start.last() === vertex.id && start.tags.oneway === '-1') + return []; + + function withRestriction(turn) { + graph.parentRelations(graph.entity(turn.from.way)).forEach(function(relation) { + if (relation.tags.type !== 'restriction') + return; + + var f = relation.memberByRole('from'), + t = relation.memberByRole('to'), + v = relation.memberByRole('via'); + + if (f && f.id === turn.from.way && + v && v.id === turn.via.node && + t && t.id === turn.to.way) { + turn.restriction = relation.id; + } else if (/^only_/.test(relation.tags.restriction) && + f && f.id === turn.from.way && + v && v.id === turn.via.node && + t && t.id !== turn.to.way) { + turn.restriction = relation.id; + turn.indirect_restriction = true; + } + }); + + return iD.geo.Turn(turn); + } + + var from = { + node: fromNodeId, + way: start.id.split(/-(a|b)/)[0] + }, + via = { node: vertex.id }, + turns = []; + + _.each(highways, function(end, adjacentNodeId) { + if (end === start) + return; + + // backward + if (end.first() !== vertex.id && end.tags.oneway !== 'yes') { + turns.push(withRestriction({ + from: from, + via: via, + to: { + node: adjacentNodeId, + way: end.id.split(/-(a|b)/)[0] + } + })); + } + + // forward + if (end.last() !== vertex.id && end.tags.oneway !== '-1') { + turns.push(withRestriction({ + from: from, + via: via, + to: { + node: adjacentNodeId, + way: end.id.split(/-(a|b)/)[0] + } + })); + } + + }); + + // U-turn + if (start.tags.oneway !== 'yes' && start.tags.oneway !== '-1') { + turns.push(withRestriction({ + from: from, + via: via, + to: from, + u: true + })); + } + + return turns; + }; + + return intersection; +}; + + +iD.geo.inferRestriction = function(graph, from, via, to, projection) { + var fromWay = graph.entity(from.way), + fromNode = graph.entity(from.node), + toWay = graph.entity(to.way), + toNode = graph.entity(to.node), + viaNode = graph.entity(via.node), + fromOneWay = (fromWay.tags.oneway === 'yes' && fromWay.last() === via.node) || + (fromWay.tags.oneway === '-1' && fromWay.first() === via.node), + toOneWay = (toWay.tags.oneway === 'yes' && toWay.first() === via.node) || + (toWay.tags.oneway === '-1' && toWay.last() === via.node), + angle = iD.geo.angle(viaNode, fromNode, projection) - + iD.geo.angle(viaNode, toNode, projection); + + angle = angle * 180 / Math.PI; + + while (angle < 0) + angle += 360; + + if (fromNode === toNode) + return 'no_u_turn'; + if ((angle < 23 || angle > 336) && fromOneWay && toOneWay) + return 'no_u_turn'; + if (angle < 158) + return 'no_right_turn'; + if (angle > 202) + return 'no_left_turn'; + + return 'no_straight_on'; +}; // For fixing up rendering of multipolygons with tags on the outer member. // https://github.com/openstreetmap/iD/issues/613 iD.geo.isSimpleMultipolygonOuterMember = function(entity, graph) { @@ -17014,7 +20511,7 @@ iD.geo.joinWays = function(array, graph) { } function reverse(member) { - return member.tags ? iD.actions.Reverse(member.id)(graph).entity(member.id) : member; + return member.tags ? iD.actions.Reverse(member.id, {reverseOneway: true})(graph).entity(member.id) : member; } while (array.length) { @@ -17066,67 +20563,55 @@ iD.geo.joinWays = function(array, graph) { return joined; }; -iD.geo.turns = function(graph, entityID) { - var way = graph.entity(entityID); - if (way.type !== 'way' || !way.tags.highway || way.isArea()) - return []; - - function withRestriction(turn) { - graph.parentRelations(turn.from).forEach(function(relation) { - if (relation.tags.type !== 'restriction') - return; - - var f = relation.memberByRole('from'), - t = relation.memberByRole('to'), - v = relation.memberByRole('via'); - - if (f && f.id === turn.from.id && - t && t.id === turn.to.id && - v && v.id === turn.via.id) { - turn.restriction = relation; - } - }); +/* + Bypasses features of D3's default projection stream pipeline that are unnecessary: + * Antimeridian clipping + * Spherical rotation + * Resampling +*/ +iD.geo.RawMercator = function () { + var project = d3.geo.mercator.raw, + k = 512 / Math.PI, // scale + x = 0, y = 0, // translate + clipExtent = [[0, 0], [0, 0]]; - return turn; + function projection(point) { + point = project(point[0] * Math.PI / 180, point[1] * Math.PI / 180); + return [point[0] * k + x, y - point[1] * k]; } - var turns = []; + projection.invert = function(point) { + point = project.invert((point[0] - x) / k, (y - point[1]) / k); + return point && [point[0] * 180 / Math.PI, point[1] * 180 / Math.PI]; + }; - [way.first(), way.last()].forEach(function(nodeID) { - var node = graph.entity(nodeID); - graph.parentWays(node).forEach(function(parent) { - if (parent === way || parent.isDegenerate() || !parent.tags.highway) - return; - if (way.first() === node.id && way.tags.oneway === 'yes') - return; - if (way.last() === node.id && way.tags.oneway === '-1') - return; + projection.scale = function(_) { + if (!arguments.length) return k; + k = +_; + return projection; + }; - var index = parent.nodes.indexOf(node.id); + projection.translate = function(_) { + if (!arguments.length) return [x, y]; + x = +_[0]; + y = +_[1]; + return projection; + }; - // backward - if (parent.first() !== node.id && parent.tags.oneway !== 'yes') { - turns.push(withRestriction({ - from: way, - to: parent, - via: node, - toward: graph.entity(parent.nodes[index - 1]) - })); - } + projection.clipExtent = function(_) { + if (!arguments.length) return clipExtent; + clipExtent = _; + return projection; + }; - // forward - if (parent.last() !== node.id && parent.tags.oneway !== '-1') { - turns.push(withRestriction({ - from: way, - to: parent, - via: node, - toward: graph.entity(parent.nodes[index + 1]) - })); - } - }); - }); + projection.stream = d3.geo.transform({ + point: function(x, y) { + x = projection([x, y]); + this.stream.point(x[0], x[1]); + } + }).stream; - return turns; + return projection; }; iD.actions = {}; iD.actions.AddEntity = function(way) { @@ -17323,16 +20808,16 @@ iD.actions.Circularize = function(wayId, projection, maxAngle) { var startIndex1 = way.nodes.lastIndexOf(startNode.id), endIndex1 = way.nodes.lastIndexOf(endNode.id), wayDirection1 = (endIndex1 - startIndex1); - if (wayDirection1 < -1) { wayDirection1 = 1;} + if (wayDirection1 < -1) { wayDirection1 = 1; } - /*jshint -W083 */ + /* eslint-disable no-loop-func */ _.each(_.without(graph.parentWays(keyNodes[i]), way), function(sharedWay) { if (sharedWay.areAdjacent(startNode.id, endNode.id)) { var startIndex2 = sharedWay.nodes.lastIndexOf(startNode.id), endIndex2 = sharedWay.nodes.lastIndexOf(endNode.id), wayDirection2 = (endIndex2 - startIndex2), insertAt = endIndex2; - if (wayDirection2 < -1) { wayDirection2 = 1;} + if (wayDirection2 < -1) { wayDirection2 = 1; } if (wayDirection1 !== wayDirection2) { inBetweenNodes.reverse(); @@ -17344,7 +20829,7 @@ iD.actions.Circularize = function(wayId, projection, maxAngle) { graph = graph.replace(sharedWay); } }); - /*jshint +W083 */ + /* eslint-enable no-loop-func */ } } @@ -17419,7 +20904,7 @@ iD.actions.Connect = function(nodeIds) { for (var i = 0; i < nodeIds.length - 1; i++) { var node = graph.entity(nodeIds[i]); - /*jshint -W083 */ + /* eslint-disable no-loop-func */ graph.parentWays(node).forEach(function(parent) { if (!parent.areAdjacent(node.id, survivor.id)) { graph = graph.replace(parent.replaceNode(node.id, survivor.id)); @@ -17429,7 +20914,7 @@ iD.actions.Connect = function(nodeIds) { graph.parentRelations(node).forEach(function(parent) { graph = graph.replace(parent.replaceMember(node, survivor)); }); - /*jshint +W083 */ + /* eslint-enable no-loop-func */ survivor = survivor.mergeTags(node.tags); graph = iD.actions.DeleteNode(node.id)(graph); @@ -17440,9 +20925,38 @@ iD.actions.Connect = function(nodeIds) { return graph; }; }; +iD.actions.CopyEntity = function(id, fromGraph, deep) { + var newEntities = []; + + var action = function(graph) { + var entity = fromGraph.entity(id); + + newEntities = entity.copy(deep, fromGraph); + + for (var i = 0; i < newEntities.length; i++) { + graph = graph.replace(newEntities[i]); + } + + return graph; + }; + + action.newEntities = function() { + return newEntities; + }; + + return action; +}; iD.actions.DeleteMember = function(relationId, memberIndex) { return function(graph) { - return graph.replace(graph.entity(relationId).removeMember(memberIndex)); + var relation = graph.entity(relationId) + .removeMember(memberIndex); + + graph = graph.replace(relation); + + if (relation.isDegenerate()) + graph = iD.actions.DeleteRelation(relation.id)(graph); + + return graph; }; }; iD.actions.DeleteMultiple = function(ids) { @@ -17579,8 +21093,18 @@ iD.actions.DeleteWay = function(wayId) { return graph.remove(way); }; - action.disabled = function() { - return false; + action.disabled = function(graph) { + var disabled = false; + + graph.parentRelations(graph.entity(wayId)).forEach(function(parent) { + var type = parent.tags.type, + role = parent.memberById(wayId).role || 'outer'; + if (type === 'route' || type === 'boundary' || (type === 'multipolygon' && role === 'outer')) { + disabled = 'part_of_relation'; + } + }); + + return disabled; }; return action; @@ -17777,7 +21301,9 @@ iD.actions.Join = function(ids) { return 'not_adjacent'; var nodeIds = _.pluck(joined[0].nodes, 'id').slice(1, -1), - relation; + relation, + tags = {}, + conflicting = false; joined[0].forEach(function(way) { var parents = graph.parentRelations(way); @@ -17785,10 +21311,21 @@ iD.actions.Join = function(ids) { if (parent.isRestriction() && parent.members.some(function(m) { return nodeIds.indexOf(m.id) >= 0; })) relation = parent; }); + + for (var k in way.tags) { + if (!(k in tags)) { + tags[k] = way.tags[k]; + } else if (tags[k] && iD.interestingTag(k) && tags[k] !== way.tags[k]) { + conflicting = true; + } + } }); if (relation) return 'restriction'; + + if (conflicting) + return 'conflicting_tags'; }; return action; @@ -17945,34 +21482,521 @@ iD.actions.MergePolygon = function(ids, newRelationId) { return action; }; +iD.actions.MergeRemoteChanges = function(id, localGraph, remoteGraph, formatUser) { + var option = 'safe', // 'safe', 'force_local', 'force_remote' + conflicts = []; + + function user(d) { + return _.isFunction(formatUser) ? formatUser(d) : d; + } + + + function mergeLocation(remote, target) { + function pointEqual(a, b) { + var epsilon = 1e-6; + return (Math.abs(a[0] - b[0]) < epsilon) && (Math.abs(a[1] - b[1]) < epsilon); + } + + if (option === 'force_local' || pointEqual(target.loc, remote.loc)) { + return target; + } + if (option === 'force_remote') { + return target.update({loc: remote.loc}); + } + + conflicts.push(t('merge_remote_changes.conflict.location', { user: user(remote.user) })); + return target; + } + + + function mergeNodes(base, remote, target) { + if (option === 'force_local' || _.isEqual(target.nodes, remote.nodes)) { + return target; + } + if (option === 'force_remote') { + return target.update({nodes: remote.nodes}); + } + + var ccount = conflicts.length, + o = base.nodes || [], + a = target.nodes || [], + b = remote.nodes || [], + nodes = [], + hunks = Diff3.diff3_merge(a, o, b, true); + + for (var i = 0; i < hunks.length; i++) { + var hunk = hunks[i]; + if (hunk.ok) { + nodes.push.apply(nodes, hunk.ok); + } else { + // for all conflicts, we can assume c.a !== c.b + // because `diff3_merge` called with `true` option to exclude false conflicts.. + var c = hunk.conflict; + if (_.isEqual(c.o, c.a)) { // only changed remotely + nodes.push.apply(nodes, c.b); + } else if (_.isEqual(c.o, c.b)) { // only changed locally + nodes.push.apply(nodes, c.a); + } else { // changed both locally and remotely + conflicts.push(t('merge_remote_changes.conflict.nodelist', { user: user(remote.user) })); + break; + } + } + } + + return (conflicts.length === ccount) ? target.update({nodes: nodes}) : target; + } + + + function mergeChildren(targetWay, children, updates, graph) { + function isUsed(node, targetWay) { + var parentWays = _.pluck(graph.parentWays(node), 'id'); + return node.hasInterestingTags() || + _.without(parentWays, targetWay.id).length > 0 || + graph.parentRelations(node).length > 0; + } + + var ccount = conflicts.length; + + for (var i = 0; i < children.length; i++) { + var id = children[i], + node = graph.hasEntity(id); + + // remove unused childNodes.. + if (targetWay.nodes.indexOf(id) === -1) { + if (node && !isUsed(node, targetWay)) { + updates.removeIds.push(id); + } + continue; + } + + // restore used childNodes.. + var local = localGraph.hasEntity(id), + remote = remoteGraph.hasEntity(id), + target; + + if (option === 'force_remote' && remote && remote.visible) { + updates.replacements.push(remote); + + } else if (option === 'force_local' && local) { + target = iD.Entity(local); + if (remote) { + target = target.update({ version: remote.version }); + } + updates.replacements.push(target); + + } else if (option === 'safe' && local && remote && local.version !== remote.version) { + target = iD.Entity(local, { version: remote.version }); + if (remote.visible) { + target = mergeLocation(remote, target); + } else { + conflicts.push(t('merge_remote_changes.conflict.deleted', { user: user(remote.user) })); + } + + if (conflicts.length !== ccount) break; + updates.replacements.push(target); + } + } + + return targetWay; + } + + + function updateChildren(updates, graph) { + for (var i = 0; i < updates.replacements.length; i++) { + graph = graph.replace(updates.replacements[i]); + } + if (updates.removeIds.length) { + graph = iD.actions.DeleteMultiple(updates.removeIds)(graph); + } + return graph; + } + + + function mergeMembers(remote, target) { + if (option === 'force_local' || _.isEqual(target.members, remote.members)) { + return target; + } + if (option === 'force_remote') { + return target.update({members: remote.members}); + } + + conflicts.push(t('merge_remote_changes.conflict.memberlist', { user: user(remote.user) })); + return target; + } + + + function mergeTags(base, remote, target) { + function ignoreKey(k) { + return _.contains(iD.data.discarded, k); + } + + if (option === 'force_local' || _.isEqual(target.tags, remote.tags)) { + return target; + } + if (option === 'force_remote') { + return target.update({tags: remote.tags}); + } + + var ccount = conflicts.length, + o = base.tags || {}, + a = target.tags || {}, + b = remote.tags || {}, + keys = _.reject(_.union(_.keys(o), _.keys(a), _.keys(b)), ignoreKey), + tags = _.clone(a), + changed = false; + + for (var i = 0; i < keys.length; i++) { + var k = keys[i]; + + if (o[k] !== b[k] && a[k] !== b[k]) { // changed remotely.. + if (o[k] !== a[k]) { // changed locally.. + conflicts.push(t('merge_remote_changes.conflict.tags', + { tag: k, local: a[k], remote: b[k], user: user(remote.user) })); + + } else { // unchanged locally, accept remote change.. + if (b.hasOwnProperty(k)) { + tags[k] = b[k]; + } else { + delete tags[k]; + } + changed = true; + } + } + } + + return (changed && conflicts.length === ccount) ? target.update({tags: tags}) : target; + } + + + // `graph.base()` is the common ancestor of the two graphs. + // `localGraph` contains user's edits up to saving + // `remoteGraph` contains remote edits to modified nodes + // `graph` must be a descendent of `localGraph` and may include + // some conflict resolution actions performed on it. + // + // --- ... --- `localGraph` -- ... -- `graph` + // / + // `graph.base()` --- ... --- `remoteGraph` + // + var action = function(graph) { + var updates = { replacements: [], removeIds: [] }, + base = graph.base().entities[id], + local = localGraph.entity(id), + remote = remoteGraph.entity(id), + target = iD.Entity(local, { version: remote.version }); + + // delete/undelete + if (!remote.visible) { + if (option === 'force_remote') { + return iD.actions.DeleteMultiple([id])(graph); + + } else if (option === 'force_local') { + if (target.type === 'way') { + target = mergeChildren(target, _.uniq(local.nodes), updates, graph); + graph = updateChildren(updates, graph); + } + return graph.replace(target); + + } else { + conflicts.push(t('merge_remote_changes.conflict.deleted', { user: user(remote.user) })); + return graph; // do nothing + } + } + + // merge + if (target.type === 'node') { + target = mergeLocation(remote, target); + + } else if (target.type === 'way') { + // pull in any child nodes that may not be present locally.. + graph.rebase(remoteGraph.childNodes(remote), [graph], false); + target = mergeNodes(base, remote, target); + target = mergeChildren(target, _.union(local.nodes, remote.nodes), updates, graph); + + } else if (target.type === 'relation') { + target = mergeMembers(remote, target); + } + + target = mergeTags(base, remote, target); + + if (!conflicts.length) { + graph = updateChildren(updates, graph).replace(target); + } + + return graph; + }; + + action.withOption = function(opt) { + option = opt; + return action; + }; + + action.conflicts = function() { + return conflicts; + }; + + return action; +}; // https://github.com/openstreetmap/josm/blob/mirror/src/org/openstreetmap/josm/command/MoveCommand.java // https://github.com/openstreetmap/potlatch2/blob/master/net/systemeD/halcyon/connection/actions/MoveNodeAction.as -iD.actions.Move = function(ids, delta, projection) { - function addNodes(ids, nodes, graph) { - ids.forEach(function(id) { - var entity = graph.entity(id); - if (entity.type === 'node') { - nodes.push(id); - } else if (entity.type === 'way') { - nodes.push.apply(nodes, entity.nodes); - } else { - addNodes(_.pluck(entity.members, 'id'), nodes, graph); +iD.actions.Move = function(moveIds, tryDelta, projection, cache) { + var delta = tryDelta; + + function vecAdd(a, b) { return [a[0] + b[0], a[1] + b[1]]; } + function vecSub(a, b) { return [a[0] - b[0], a[1] - b[1]]; } + + function setupCache(graph) { + function canMove(nodeId) { + var parents = _.pluck(graph.parentWays(graph.entity(nodeId)), 'id'); + if (parents.length < 3) return true; + + // Don't move a vertex where >2 ways meet, unless all parentWays are moving too.. + var parentsMoving = _.all(parents, function(id) { return cache.moving[id]; }); + if (!parentsMoving) delete cache.moving[nodeId]; + + return parentsMoving; + } + + function cacheEntities(ids) { + _.each(ids, function(id) { + if (cache.moving[id]) return; + cache.moving[id] = true; + + var entity = graph.hasEntity(id); + if (!entity) return; + + if (entity.type === 'node') { + cache.nodes.push(id); + cache.startLoc[id] = entity.loc; + } else if (entity.type === 'way') { + cache.ways.push(id); + cacheEntities(entity.nodes); + } else { + cacheEntities(_.pluck(entity.members, 'id')); + } + }); + } + + function cacheIntersections(ids) { + function isEndpoint(way, id) { return !way.isClosed() && !!way.affix(id); } + + _.each(ids, function(id) { + // consider only intersections with 1 moved and 1 unmoved way. + _.each(graph.childNodes(graph.entity(id)), function(node) { + var parents = graph.parentWays(node); + if (parents.length !== 2) return; + + var moved = graph.entity(id), + unmoved = _.find(parents, function(way) { return !cache.moving[way.id]; }); + if (!unmoved) return; + + // exclude ways that are overly connected.. + if (_.intersection(moved.nodes, unmoved.nodes).length > 2) return; + + if (moved.isArea() || unmoved.isArea()) return; + + cache.intersection[node.id] = { + nodeId: node.id, + movedId: moved.id, + unmovedId: unmoved.id, + movedIsEP: isEndpoint(moved, node.id), + unmovedIsEP: isEndpoint(unmoved, node.id) + }; + }); + }); + } + + + if (!cache) { + cache = {}; + } + if (!cache.ok) { + cache.moving = {}; + cache.intersection = {}; + cache.replacedVertex = {}; + cache.startLoc = {}; + cache.nodes = []; + cache.ways = []; + + cacheEntities(moveIds); + cacheIntersections(cache.ways); + cache.nodes = _.filter(cache.nodes, canMove); + + cache.ok = true; + } + } + + + // Place a vertex where the moved vertex used to be, to preserve way shape.. + function replaceMovedVertex(nodeId, wayId, graph, delta) { + var way = graph.entity(wayId), + moved = graph.entity(nodeId), + movedIndex = way.nodes.indexOf(nodeId), + len, prevIndex, nextIndex; + + if (way.isClosed()) { + len = way.nodes.length - 1; + prevIndex = (movedIndex + len - 1) % len; + nextIndex = (movedIndex + len + 1) % len; + } else { + len = way.nodes.length; + prevIndex = movedIndex - 1; + nextIndex = movedIndex + 1; + } + + var prev = graph.hasEntity(way.nodes[prevIndex]), + next = graph.hasEntity(way.nodes[nextIndex]); + + // Don't add orig vertex at endpoint.. + if (!prev || !next) return graph; + + var key = wayId + '_' + nodeId, + orig = cache.replacedVertex[key]; + if (!orig) { + orig = iD.Node(); + cache.replacedVertex[key] = orig; + cache.startLoc[orig.id] = cache.startLoc[nodeId]; + } + + var start, end; + if (delta) { + start = projection(cache.startLoc[nodeId]); + end = projection.invert(vecAdd(start, delta)); + } else { + end = cache.startLoc[nodeId]; + } + orig = orig.move(end); + + var angle = Math.abs(iD.geo.angle(orig, prev, projection) - + iD.geo.angle(orig, next, projection)) * 180 / Math.PI; + + // Don't add orig vertex if it would just make a straight line.. + if (angle > 175 && angle < 185) return graph; + + // Don't add orig vertex if another point is already nearby (within 10m) + if (iD.geo.sphericalDistance(prev.loc, orig.loc) < 10 || + iD.geo.sphericalDistance(orig.loc, next.loc) < 10) return graph; + + // moving forward or backward along way? + var p1 = [prev.loc, orig.loc, moved.loc, next.loc].map(projection), + p2 = [prev.loc, moved.loc, orig.loc, next.loc].map(projection), + d1 = iD.geo.pathLength(p1), + d2 = iD.geo.pathLength(p2), + insertAt = (d1 < d2) ? movedIndex : nextIndex; + + // moving around closed loop? + if (way.isClosed() && insertAt === 0) insertAt = len; + + way = way.addNode(orig.id, insertAt); + return graph.replace(orig).replace(way); + } + + // Reorder nodes around intersections that have moved.. + function unZorroIntersection(intersection, graph) { + var vertex = graph.entity(intersection.nodeId), + way1 = graph.entity(intersection.movedId), + way2 = graph.entity(intersection.unmovedId), + isEP1 = intersection.movedIsEP, + isEP2 = intersection.unmovedIsEP; + + // don't move the vertex if it is the endpoint of both ways. + if (isEP1 && isEP2) return graph; + + var nodes1 = _.without(graph.childNodes(way1), vertex), + nodes2 = _.without(graph.childNodes(way2), vertex); + + if (way1.isClosed() && way1.first() === vertex.id) nodes1.push(nodes1[0]); + if (way2.isClosed() && way2.first() === vertex.id) nodes2.push(nodes2[0]); + + var edge1 = !isEP1 && iD.geo.chooseEdge(nodes1, projection(vertex.loc), projection), + edge2 = !isEP2 && iD.geo.chooseEdge(nodes2, projection(vertex.loc), projection), + loc; + + // snap vertex to nearest edge (or some point between them).. + if (!isEP1 && !isEP2) { + var epsilon = 1e-4, maxIter = 10; + for (var i = 0; i < maxIter; i++) { + loc = iD.geo.interp(edge1.loc, edge2.loc, 0.5); + edge1 = iD.geo.chooseEdge(nodes1, projection(loc), projection); + edge2 = iD.geo.chooseEdge(nodes2, projection(loc), projection); + if (Math.abs(edge1.distance - edge2.distance) < epsilon) break; + } + } else if (!isEP1) { + loc = edge1.loc; + } else { + loc = edge2.loc; + } + + graph = graph.replace(vertex.move(loc)); + + // if zorro happened, reorder nodes.. + if (!isEP1 && edge1.index !== way1.nodes.indexOf(vertex.id)) { + way1 = way1.removeNode(vertex.id).addNode(vertex.id, edge1.index); + graph = graph.replace(way1); + } + if (!isEP2 && edge2.index !== way2.nodes.indexOf(vertex.id)) { + way2 = way2.removeNode(vertex.id).addNode(vertex.id, edge2.index); + graph = graph.replace(way2); + } + + return graph; + } + + + function cleanupIntersections(graph) { + _.each(cache.intersection, function(obj) { + graph = replaceMovedVertex(obj.nodeId, obj.movedId, graph, delta); + graph = replaceMovedVertex(obj.nodeId, obj.unmovedId, graph, null); + graph = unZorroIntersection(obj, graph); + }); + + return graph; + } + + // check if moving way endpoint can cross an unmoved way, if so limit delta.. + function limitDelta(graph) { + _.each(cache.intersection, function(obj) { + if (!obj.movedIsEP) return; + + var node = graph.entity(obj.nodeId), + start = projection(node.loc), + end = vecAdd(start, delta), + movedNodes = graph.childNodes(graph.entity(obj.movedId)), + movedPath = _.map(_.pluck(movedNodes, 'loc'), + function(loc) { return vecAdd(projection(loc), delta); }), + unmovedNodes = graph.childNodes(graph.entity(obj.unmovedId)), + unmovedPath = _.map(_.pluck(unmovedNodes, 'loc'), projection), + hits = iD.geo.pathIntersections(movedPath, unmovedPath); + + for (var i = 0; i < hits.length; i++) { + if (_.isEqual(hits[i], end)) continue; + var edge = iD.geo.chooseEdge(unmovedNodes, end, projection); + delta = vecSub(projection(edge.loc), start); } }); } + var action = function(graph) { - var nodes = []; + if (delta[0] === 0 && delta[1] === 0) return graph; - addNodes(ids, nodes, graph); + setupCache(graph); - _.uniq(nodes).forEach(function(id) { + if (!_.isEmpty(cache.intersection)) { + limitDelta(graph); + } + + _.each(cache.nodes, function(id) { var node = graph.entity(id), start = projection(node.loc), - end = projection.invert([start[0] + delta[0], start[1] + delta[1]]); - graph = graph.replace(node.move(end)); + end = vecAdd(start, delta); + graph = graph.replace(node.move(projection.invert(end))); }); + if (!_.isEmpty(cache.intersection)) { + graph = cleanupIntersections(graph); + } + return graph; }; @@ -17982,10 +22006,14 @@ iD.actions.Move = function(ids, delta, projection) { return entity.type === 'relation' && !entity.isComplete(graph); } - if (_.any(ids, incompleteRelation)) + if (_.any(moveIds, incompleteRelation)) return 'incomplete_relation'; }; + action.delta = function() { + return delta; + }; + return action; }; // https://github.com/openstreetmap/josm/blob/mirror/src/org/openstreetmap/josm/command/MoveCommand.java @@ -18172,6 +22200,94 @@ iD.actions.Orthogonalize = function(wayId, projection) { return action; }; +// Create a restriction relation for `turn`, which must have the following structure: +// +// { +// from: { node: , way: }, +// via: { node: }, +// to: { node: , way: }, +// restriction: <'no_right_turn', 'no_left_turn', etc.> +// } +// +// This specifies a restriction of type `restriction` when traveling from +// `from.node` in `from.way` toward `to.node` in `to.way` via `via.node`. +// (The action does not check that these entities form a valid intersection.) +// +// If `restriction` is not provided, it is automatically determined by +// iD.geo.inferRestriction. +// +// If necessary, the `from` and `to` ways are split. In these cases, `from.node` +// and `to.node` are used to determine which portion of the split ways become +// members of the restriction. +// +// For testing convenience, accepts an ID to assign to the new relation. +// Normally, this will be undefined and the relation will automatically +// be assigned a new ID. +// +iD.actions.RestrictTurn = function(turn, projection, restrictionId) { + return function(graph) { + var from = graph.entity(turn.from.way), + via = graph.entity(turn.via.node), + to = graph.entity(turn.to.way); + + function isClosingNode(way, nodeId) { + return nodeId === way.first() && nodeId === way.last(); + } + + function split(toOrFrom) { + var newID = toOrFrom.newID || iD.Way().id; + graph = iD.actions.Split(via.id, [newID]) + .limitWays([toOrFrom.way])(graph); + + var a = graph.entity(newID), + b = graph.entity(toOrFrom.way); + + if (a.nodes.indexOf(toOrFrom.node) !== -1) { + return [a, b]; + } else { + return [b, a]; + } + } + + if (!from.affix(via.id) || isClosingNode(from, via.id)) { + if (turn.from.node === turn.to.node) { + // U-turn + from = to = split(turn.from)[0]; + } else if (turn.from.way === turn.to.way) { + // Straight-on or circular + var s = split(turn.from); + from = s[0]; + to = s[1]; + } else { + // Other + from = split(turn.from)[0]; + } + } + + if (!to.affix(via.id) || isClosingNode(to, via.id)) { + to = split(turn.to)[0]; + } + + return graph.replace(iD.Relation({ + id: restrictionId, + tags: { + type: 'restriction', + restriction: turn.restriction || + iD.geo.inferRestriction( + graph, + turn.from, + turn.via, + turn.to, + projection) + }, + members: [ + {id: from.id, type: 'way', role: 'from'}, + {id: via.id, type: 'node', role: 'via'}, + {id: to.id, type: 'way', role: 'to'} + ] + })); + }; +}; /* Order the nodes of a way in reverse order and reverse any direction dependent tags other than `oneway`. (We assume that correcting a backwards oneway is the primary @@ -18203,7 +22319,7 @@ iD.actions.Orthogonalize = function(wayId, projection) { http://wiki.openstreetmap.org/wiki/Route#Members http://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java */ -iD.actions.Reverse = function(wayId) { +iD.actions.Reverse = function(wayId, options) { var replacements = [ [/:right$/, ':left'], [/:left$/, ':right'], [/:forward$/, ':backward'], [/:backward$/, ':forward'] @@ -18233,6 +22349,8 @@ iD.actions.Reverse = function(wayId) { return value.replace(numeric, function(_, sign) { return sign === '-' ? '' : '-'; }); } else if (key === 'incline' || key === 'direction') { return {up: 'down', down: 'up'}[value] || value; + } else if (options && options.reverseOneway && key === 'oneway') { + return {yes: '-1', '1': '-1', '-1': 'yes'}[value] || value; } else { return {left: 'right', right: 'left'}[value] || value; } @@ -18259,6 +22377,41 @@ iD.actions.Reverse = function(wayId) { return graph.replace(way.update({nodes: nodes, tags: tags})); }; }; +iD.actions.Revert = function(id) { + + var action = function(graph) { + var entity = graph.hasEntity(id), + base = graph.base().entities[id]; + + if (entity && !base) { // entity will be removed.. + if (entity.type === 'node') { + graph.parentWays(entity) + .forEach(function(parent) { + parent = parent.removeNode(id); + graph = graph.replace(parent); + + if (parent.isDegenerate()) { + graph = iD.actions.DeleteWay(parent.id)(graph); + } + }); + } + + graph.parentRelations(entity) + .forEach(function(parent) { + parent = parent.removeMembersWithID(id); + graph = graph.replace(parent); + + if (parent.isDegenerate()) { + graph = iD.actions.DeleteRelation(parent.id)(graph); + } + }); + } + + return graph.revert(id); + }; + + return action; +}; iD.actions.RotateWay = function(wayId, pivot, angle, projection) { return function(graph) { return graph.update(function(graph) { @@ -18546,6 +22699,29 @@ iD.actions.Straighten = function(wayId, projection) { return action; }; +// Remove the effects of `turn.restriction` on `turn`, which must have the +// following structure: +// +// { +// from: { node: , way: }, +// via: { node: }, +// to: { node: , way: }, +// restriction: +// } +// +// In the simple case, `restriction` is a reference to a `no_*` restriction +// on the turn itself. In this case, it is simply deleted. +// +// The more complex case is where `restriction` references an `only_*` +// restriction on a different turn in the same intersection. In that case, +// that restriction is also deleted, but at the same time restrictions on +// the turns other than the first two are created. +// +iD.actions.UnrestrictTurn = function(turn) { + return function(graph) { + return iD.actions.DeleteRelation(turn.restriction)(graph); + }; +}; iD.behavior = {}; iD.behavior.AddWay = function(context) { var event = d3.dispatch('start', 'startFromWay', 'startFromNode'), @@ -18583,6 +22759,84 @@ iD.behavior.AddWay = function(context) { return d3.rebind(addWay, event, 'on'); }; +iD.behavior.Copy = function(context) { + var keybinding = d3.keybinding('copy'); + + function groupEntities(ids, graph) { + var entities = ids.map(function (id) { return graph.entity(id); }); + return _.extend({relation: [], way: [], node: []}, + _.groupBy(entities, function(entity) { return entity.type; })); + } + + function getDescendants(id, graph, descendants) { + var entity = graph.entity(id), + i, children; + + descendants = descendants || {}; + + if (entity.type === 'relation') { + children = _.pluck(entity.members, 'id'); + } else if (entity.type === 'way') { + children = entity.nodes; + } else { + children = []; + } + + for (i = 0; i < children.length; i++) { + if (!descendants[children[i]]) { + descendants[children[i]] = true; + descendants = getDescendants(children[i], graph, descendants); + } + } + + return descendants; + } + + function doCopy() { + d3.event.preventDefault(); + + var graph = context.graph(), + selected = groupEntities(context.selectedIDs(), graph), + canCopy = [], + skip = {}, + i, entity; + + for (i = 0; i < selected.relation.length; i++) { + entity = selected.relation[i]; + if (!skip[entity.id] && entity.isComplete(graph)) { + canCopy.push(entity.id); + skip = getDescendants(entity.id, graph, skip); + } + } + for (i = 0; i < selected.way.length; i++) { + entity = selected.way[i]; + if (!skip[entity.id]) { + canCopy.push(entity.id); + skip = getDescendants(entity.id, graph, skip); + } + } + for (i = 0; i < selected.node.length; i++) { + entity = selected.node[i]; + if (!skip[entity.id]) { + canCopy.push(entity.id); + } + } + + context.copyIDs(canCopy); + } + + function copy() { + keybinding.on(iD.ui.cmd('⌘C'), doCopy); + d3.select(document).call(keybinding); + return copy; + } + + copy.off = function() { + d3.select(document).call(keybinding.off); + }; + + return copy; +}; /* `iD.behavior.drag` is like `d3.behavior.drag`, with the following differences: @@ -18676,6 +22930,9 @@ iD.behavior.drag = function() { var p = point(), dx = p[0] - origin_[0], dy = p[1] - origin_[1]; + + if (dx === 0 && dy === 0) + return; if (!started) { started = true; @@ -18783,7 +23040,7 @@ iD.behavior.drag = function() { }; iD.behavior.Draw = function(context) { var event = d3.dispatch('move', 'click', 'clickWay', - 'clickNode', 'undo', 'cancel', 'finish'), + 'clickNode', 'undo', 'cancel', 'finish'), keybinding = d3.keybinding('draw'), hover = iD.behavior.Hover(context) .altDisables(true) @@ -18801,7 +23058,7 @@ iD.behavior.Draw = function(context) { function mousedown() { function point() { - var p = element.node().parentNode; + var p = context.container().node(); return touchId !== null ? d3.touches(p).filter(function(p) { return p.identifier === touchId; })[0] : d3.mouse(p); @@ -18809,17 +23066,20 @@ iD.behavior.Draw = function(context) { var element = d3.select(this), touchId = d3.event.touches ? d3.event.changedTouches[0].identifier : null, - time = +new Date(), - pos = point(); + t1 = +new Date(), + p1 = point(); element.on('mousemove.draw', null); d3.select(window).on('mouseup.draw', function() { + var t2 = +new Date(), + p2 = point(), + dist = iD.geo.euclideanDistance(p1, p2); + element.on('mousemove.draw', mousemove); - if (iD.geo.euclideanDistance(pos, point()) < closeTolerance || - (iD.geo.euclideanDistance(pos, point()) < tolerance && - (+new Date() - time) < 500)) { + d3.select(window).on('mouseup.draw', null); + if (dist < closeTolerance || (dist < tolerance && (t2 - t1) < 500)) { // Prevent a quick second click d3.select(window).on('click.draw-block', function() { d3.event.stopPropagation(); @@ -18875,7 +23135,7 @@ iD.behavior.Draw = function(context) { context.install(hover); context.install(edit); - if (!iD.behavior.Draw.usedTails[tail.text()]) { + if (!context.inIntro() && !iD.behavior.Draw.usedTails[tail.text()]) { context.install(tail); } @@ -18899,7 +23159,7 @@ iD.behavior.Draw = function(context) { context.uninstall(hover); context.uninstall(edit); - if (!iD.behavior.Draw.usedTails[tail.text()]) { + if (!context.inIntro() && !iD.behavior.Draw.usedTails[tail.text()]) { context.uninstall(tail); iD.behavior.Draw.usedTails[tail.text()] = true; } @@ -19126,7 +23386,7 @@ iD.behavior.DrawWay = function(context, wayId, index, mode, baseGraph) { iD.behavior.Edit = function(context) { function edit() { context.map() - .minzoom(16); + .minzoom(context.minEditableZoom()); } edit.off = function() { @@ -19152,23 +23412,38 @@ iD.behavior.Hash = function(context) { }; var formatter = function(map) { - var center = map.center(), + var mode = context.mode(), + center = map.center(), zoom = map.zoom(), - precision = Math.max(0, Math.ceil(Math.log(zoom) / Math.LN2)); - var q = iD.util.stringQs(location.hash.substring(1)); - return '#' + iD.util.qsString(_.assign(q, { - map: zoom.toFixed(2) + - '/' + center[0].toFixed(precision) + - '/' + center[1].toFixed(precision) - }), true); + precision = Math.max(0, Math.ceil(Math.log(zoom) / Math.LN2)), + q = _.omit(iD.util.stringQs(location.hash.substring(1)), 'comment'), + newParams = {}; + + if (mode && mode.id === 'browse') { + delete q.id; + } else { + var selected = context.selectedIDs().filter(function(id) { + return !context.entity(id).isNew(); + }); + if (selected.length) { + newParams.id = selected.join(','); + } + } + + newParams.map = zoom.toFixed(2) + + '/' + center[0].toFixed(precision) + + '/' + center[1].toFixed(precision); + + return '#' + iD.util.qsString(_.assign(q, newParams), true); }; function update() { + if (context.inIntro()) return; var s1 = formatter(context.map()); if (s0 !== s1) location.replace(s0 = s1); // don't recenter the map! } - var move = _.throttle(update, 500); + var throttledUpdate = _.throttle(update, 500); function hashchange() { if (location.hash === s0) return; // ignore spurious hashchange events @@ -19179,14 +23454,18 @@ iD.behavior.Hash = function(context) { function hash() { context.map() - .on('move.hash', move); + .on('move.hash', throttledUpdate); + + context + .on('enter.hash', throttledUpdate); d3.select(window) .on('hashchange.hash', hashchange); if (location.hash) { var q = iD.util.stringQs(location.hash.substring(1)); - if (q.id) context.loadEntity(q.id, !q.map); + if (q.id) context.zoomToEntity(q.id.split(',')[0], !q.map); + if (q.comment) context.storage('comment', q.comment); hashchange(); if (q.map) hash.hadHash = true; } @@ -19196,6 +23475,9 @@ iD.behavior.Hash = function(context) { context.map() .on('move.hash', null); + context + .on('enter.hash', null); + d3.select(window) .on('hashchange.hash', null); @@ -19349,8 +23631,6 @@ iD.behavior.Lasso = function(context) { .on('mouseup.lasso', mouseup); d3.event.stopPropagation(); - d3.event.preventDefault(); - } } @@ -19402,6 +23682,83 @@ iD.behavior.Lasso = function(context) { return behavior; }; +iD.behavior.Paste = function(context) { + var keybinding = d3.keybinding('paste'); + + function omitTag(v, k) { + return ( + k === 'phone' || + k === 'fax' || + k === 'email' || + k === 'website' || + k === 'url' || + k === 'note' || + k === 'description' || + k.indexOf('name') !== -1 || + k.indexOf('wiki') === 0 || + k.indexOf('addr:') === 0 || + k.indexOf('contact:') === 0 + ); + } + + function doPaste() { + d3.event.preventDefault(); + + var mouse = context.mouse(), + projection = context.projection, + viewport = iD.geo.Extent(projection.clipExtent()).polygon(); + + if (!iD.geo.pointInPolygon(mouse, viewport)) return; + + var extent = iD.geo.Extent(), + oldIDs = context.copyIDs(), + oldGraph = context.copyGraph(), + newIDs = [], + i, j; + + if (!oldIDs.length) return; + + for (i = 0; i < oldIDs.length; i++) { + var oldEntity = oldGraph.entity(oldIDs[i]), + action = iD.actions.CopyEntity(oldEntity.id, oldGraph, true), + newEntities; + + extent._extend(oldEntity.extent(oldGraph)); + context.perform(action); + + // First element in `newEntities` contains the copied Entity, + // Subsequent array elements contain any descendants.. + newEntities = action.newEntities(); + newIDs.push(newEntities[0].id); + + for (j = 0; j < newEntities.length; j++) { + var newEntity = newEntities[j], + tags = _.omit(newEntity.tags, omitTag); + + context.perform(iD.actions.ChangeTags(newEntity.id, tags)); + } + } + + // Put pasted objects where mouse pointer is.. + var center = projection(extent.center()), + delta = [ mouse[0] - center[0], mouse[1] - center[1] ]; + + context.perform(iD.actions.Move(newIDs, delta, projection)); + context.enter(iD.modes.Move(context, newIDs)); + } + + function paste() { + keybinding.on(iD.ui.cmd('⌘V'), doPaste); + d3.select(document).call(keybinding); + return paste; + } + + paste.off = function() { + d3.select(document).call(keybinding.off); + }; + + return paste; +}; iD.behavior.Select = function(context) { function keydown() { if (d3.event && d3.event.shiftKey) { @@ -19418,10 +23775,12 @@ iD.behavior.Select = function(context) { } function click() { - var datum = d3.event.target.__data__; - var lasso = d3.select('#surface .lasso').node(); + var datum = d3.event.target.__data__, + lasso = d3.select('#surface .lasso').node(), + mode = context.mode(); + if (!(datum instanceof iD.Entity)) { - if (!d3.event.shiftKey && !lasso) + if (!d3.event.shiftKey && !lasso && mode.id !== 'browse') context.enter(iD.modes.Browse(context)); } else if (!d3.event.shiftKey && !lasso) { @@ -19429,7 +23788,7 @@ iD.behavior.Select = function(context) { if (context.selectedIDs().length !== 1 || context.selectedIDs()[0] !== datum.id) { context.enter(iD.modes.Select(context, [datum.id])); } else { - context.mode().reselect(); + mode.suppressMenu(false).reselect(); } } else if (context.selectedIDs().indexOf(datum.id) >= 0) { var selectedIDs = _.without(context.selectedIDs(), datum.id); @@ -19733,11 +24092,11 @@ iD.modes.Browse = function(context) { button: 'browse', id: 'browse', title: t('modes.browse.title'), - description: t('modes.browse.description'), - key: '1' + description: t('modes.browse.description') }, sidebar; var behaviors = [ + iD.behavior.Paste(context), iD.behavior.Hover(context) .on('hover', context.ui().sidebar.hover), iD.behavior.Select(context), @@ -19767,7 +24126,7 @@ iD.modes.Browse = function(context) { }); if (sidebar) { - context.ui().sidebar.hide(sidebar); + context.ui().sidebar.hide(); } }; @@ -19829,7 +24188,9 @@ iD.modes.DragNode = function(context) { } function start(entity) { - cancelled = d3.event.sourceEvent.shiftKey; + cancelled = d3.event.sourceEvent.shiftKey || + context.features().hasHiddenConnections(entity, context.graph()); + if (cancelled) return behavior.cancel(); wasMidpoint = entity.type === 'midpoint'; @@ -20080,9 +24441,12 @@ iD.modes.Move = function(context, entityIDs) { annotation = entityIDs.length === 1 ? t('operations.move.annotation.' + context.geometry(entityIDs[0])) : t('operations.move.annotation.multiple'), + cache, origin, nudgeInterval; + function vecSub(a, b) { return [a[0] - b[0], a[1] - b[1]]; } + function edge(point, size) { var pad = [30, 100, 30, 100]; if (point[0] > size[0] - pad[0]) return [-10, 0]; @@ -20096,11 +24460,14 @@ iD.modes.Move = function(context, entityIDs) { if (nudgeInterval) window.clearInterval(nudgeInterval); nudgeInterval = window.setInterval(function() { context.pan(nudge); - context.replace( - iD.actions.Move(entityIDs, [-nudge[0], -nudge[1]], context.projection), - annotation); - var c = context.projection(origin); - origin = context.projection.invert([c[0] - nudge[0], c[1] - nudge[1]]); + + var currMouse = context.mouse(), + origMouse = context.projection(origin), + delta = vecSub(vecSub(currMouse, origMouse), nudge), + action = iD.actions.Move(entityIDs, delta, context.projection, cache); + + context.overwrite(action, annotation); + }, 50); } @@ -20110,35 +24477,27 @@ iD.modes.Move = function(context, entityIDs) { } function move() { - var p = context.mouse(); + var currMouse = context.mouse(), + origMouse = context.projection(origin), + delta = vecSub(currMouse, origMouse), + action = iD.actions.Move(entityIDs, delta, context.projection, cache); - var delta = origin ? - [p[0] - context.projection(origin)[0], - p[1] - context.projection(origin)[1]] : - [0, 0]; + context.overwrite(action, annotation); - var nudge = edge(p, context.map().dimensions()); + var nudge = edge(currMouse, context.map().dimensions()); if (nudge) startNudge(nudge); else stopNudge(); - - origin = context.map().mouseCoordinates(); - - context.replace( - iD.actions.Move(entityIDs, delta, context.projection), - annotation); } function finish() { d3.event.stopPropagation(); - context.enter(iD.modes.Select(context, entityIDs) - .suppressMenu(true)); + context.enter(iD.modes.Select(context, entityIDs).suppressMenu(true)); stopNudge(); } function cancel() { context.pop(); - context.enter(iD.modes.Select(context, entityIDs) - .suppressMenu(true)); + context.enter(iD.modes.Select(context, entityIDs).suppressMenu(true)); stopNudge(); } @@ -20147,6 +24506,9 @@ iD.modes.Move = function(context, entityIDs) { } mode.enter = function() { + origin = context.map().mouseCoordinates(); + cache = {}; + context.install(edit); context.perform( @@ -20270,44 +24632,296 @@ iD.modes.RotateWay = function(context, wayId) { }; iD.modes.Save = function(context) { var ui = iD.ui.Commit(context) - .on('cancel', cancel) - .on('save', save); + .on('cancel', cancel) + .on('save', save); function cancel() { context.enter(iD.modes.Browse(context)); } - function save(e) { - var loading = iD.ui.Loading(context) - .message(t('save.uploading')) - .blocking(true); + function save(e, tryAgain) { + function withChildNodes(ids, graph) { + return _.uniq(_.reduce(ids, function(result, id) { + var e = graph.entity(id); + if (e.type === 'way') { + var cn = graph.childNodes(e); + result.push.apply(result, _.pluck(_.filter(cn, 'version'), 'id')); + } + return result; + }, _.clone(ids))); + } + + var loading = iD.ui.Loading(context).message(t('save.uploading')).blocking(true), + history = context.history(), + origChanges = history.changes(iD.actions.DiscardTags(history.difference())), + localGraph = context.graph(), + remoteGraph = iD.Graph(history.base(), true), + modified = _.filter(history.difference().summary(), {changeType: 'modified'}), + toCheck = _.pluck(_.pluck(modified, 'entity'), 'id'), + toLoad = withChildNodes(toCheck, localGraph), + conflicts = [], + errors = []; + + if (!tryAgain) history.perform(iD.actions.Noop()); // checkpoint + context.container().call(loading); + + if (toCheck.length) { + context.connection().loadMultiple(toLoad, loaded); + } else { + finalize(); + } - context.container() - .call(loading); - - context.connection().putChangeset( - context.history().changes(iD.actions.DiscardTags(context.history().difference())), - e.comment, - context.history().imageryUsed(), - function(err, changeset_id) { - loading.close(); - if (err) { - var confirm = iD.ui.confirm(context.container()); - confirm - .select('.modal-section.header') - .append('h3') - .text(t('save.error')); - confirm - .select('.modal-section.message-text') - .append('p') - .text(err.responseText); - } else { - context.flush(); - success(e, changeset_id); + + // Reload modified entities into an alternate graph and check for conflicts.. + function loaded(err, result) { + if (errors.length) return; + + if (err) { + errors.push({ + msg: err.responseText, + details: [ t('save.status_code', { code: err.status }) ] + }); + showErrors(); + + } else { + var loadMore = []; + _.each(result.data, function(entity) { + remoteGraph.replace(entity); + toLoad = _.without(toLoad, entity.id); + + // Because loadMultiple doesn't download /full like loadEntity, + // need to also load children that aren't already being checked.. + if (!entity.visible) return; + if (entity.type === 'way') { + loadMore.push.apply(loadMore, + _.difference(entity.nodes, toCheck, toLoad, loadMore)); + } else if (entity.type === 'relation' && entity.isMultipolygon()) { + loadMore.push.apply(loadMore, + _.difference(_.pluck(entity.members, 'id'), toCheck, toLoad, loadMore)); + } + }); + + if (loadMore.length) { + toLoad.push.apply(toLoad, loadMore); + context.connection().loadMultiple(loadMore, loaded); + } + + if (!toLoad.length) { + checkConflicts(); } + } + } + + + function checkConflicts() { + function choice(id, text, action) { + return { id: id, text: text, action: function() { history.replace(action); } }; + } + function formatUser(d) { + return '' + d + ''; + } + function entityName(entity) { + return iD.util.displayName(entity) || (iD.util.displayType(entity.id) + ' ' + entity.id); + } + + function compareVersions(local, remote) { + if (local.version !== remote.version) return false; + + if (local.type === 'way') { + var children = _.union(local.nodes, remote.nodes); + + for (var i = 0; i < children.length; i++) { + var a = localGraph.hasEntity(children[i]), + b = remoteGraph.hasEntity(children[i]); + + if (a && b && a.version !== b.version) return false; + } + } + + return true; + } + + _.each(toCheck, function(id) { + var local = localGraph.entity(id), + remote = remoteGraph.entity(id); + + if (compareVersions(local, remote)) return; + + var action = iD.actions.MergeRemoteChanges, + merge = action(id, localGraph, remoteGraph, formatUser); + + history.replace(merge); + + var mergeConflicts = merge.conflicts(); + if (!mergeConflicts.length) return; // merged safely + + var forceLocal = action(id, localGraph, remoteGraph).withOption('force_local'), + forceRemote = action(id, localGraph, remoteGraph).withOption('force_remote'), + keepMine = t('save.conflict.' + (remote.visible ? 'keep_local' : 'restore')), + keepTheirs = t('save.conflict.' + (remote.visible ? 'keep_remote' : 'delete')); + + conflicts.push({ + id: id, + name: entityName(local), + details: mergeConflicts, + chosen: 1, + choices: [ + choice(id, keepMine, forceLocal), + choice(id, keepTheirs, forceRemote) + ] + }); }); + + finalize(); + } + + + function finalize() { + if (conflicts.length) { + conflicts.sort(function(a,b) { return b.id.localeCompare(a.id); }); + showConflicts(); + } else if (errors.length) { + showErrors(); + } else { + var changes = history.changes(iD.actions.DiscardTags(history.difference())); + if (changes.modified.length || changes.created.length || changes.deleted.length) { + context.connection().putChangeset( + changes, + e.comment, + history.imageryUsed(), + function(err, changeset_id) { + if (err) { + errors.push({ + msg: err.responseText, + details: [ t('save.status_code', { code: err.status }) ] + }); + showErrors(); + } else { + history.clearSaved(); + success(e, changeset_id); + // Add delay to allow for postgres replication #1646 #2678 + window.setTimeout(function() { + loading.close(); + context.flush(); + }, 2500); + } + }); + } else { // changes were insignificant or reverted by user + loading.close(); + context.flush(); + cancel(); + } + } + } + + + function showConflicts() { + var selection = context.container() + .select('#sidebar') + .append('div') + .attr('class','sidebar-component'); + + loading.close(); + + selection.call(iD.ui.Conflicts(context) + .list(conflicts) + .on('download', function() { + var data = JXON.stringify(context.connection().osmChangeJXON('CHANGEME', origChanges)), + win = window.open('data:text/xml,' + encodeURIComponent(data), '_blank'); + win.focus(); + }) + .on('cancel', function() { + history.pop(); + selection.remove(); + }) + .on('save', function() { + for (var i = 0; i < conflicts.length; i++) { + if (conflicts[i].chosen === 1) { // user chose "keep theirs" + var entity = context.hasEntity(conflicts[i].id); + if (entity && entity.type === 'way') { + var children = _.uniq(entity.nodes); + for (var j = 0; j < children.length; j++) { + history.replace(iD.actions.Revert(children[j])); + } + } + history.replace(iD.actions.Revert(conflicts[i].id)); + } + } + + selection.remove(); + save(e, true); + }) + ); + } + + + function showErrors() { + var selection = iD.ui.confirm(context.container()); + + history.pop(); + loading.close(); + + selection + .select('.modal-section.header') + .append('h3') + .text(t('save.error')); + + addErrors(selection, errors); + selection.okButton(); + } + + + function addErrors(selection, data) { + var message = selection + .select('.modal-section.message-text'); + + var items = message + .selectAll('.error-container') + .data(data); + + var enter = items.enter() + .append('div') + .attr('class', 'error-container'); + + enter + .append('a') + .attr('class', 'error-description') + .attr('href', '#') + .classed('hide-toggle', true) + .text(function(d) { return d.msg || t('save.unknown_error_details'); }) + .on('click', function() { + var error = d3.select(this), + detail = d3.select(this.nextElementSibling), + exp = error.classed('expanded'); + + detail.style('display', exp ? 'none' : 'block'); + error.classed('expanded', !exp); + + d3.event.preventDefault(); + }); + + var details = enter + .append('div') + .attr('class', 'error-detail-container') + .style('display', 'none'); + + details + .append('ul') + .attr('class', 'error-detail-list') + .selectAll('li') + .data(function(d) { return d.details || []; }) + .enter() + .append('li') + .attr('class', 'error-detail-item') + .text(function(d) { return d; }); + + items.exit() + .remove(); + } + } + function success(e, changeset_id) { context.enter(iD.modes.Browse(context) .sidebar(iD.ui.Success(context) @@ -20315,8 +24929,8 @@ iD.modes.Save = function(context) { id: changeset_id, comment: e.comment }) - .on('cancel', function(ui) { - context.ui().sidebar.hide(ui); + .on('cancel', function() { + context.ui().sidebar.hide(); }))); } @@ -20324,28 +24938,18 @@ iD.modes.Save = function(context) { id: 'save' }; - var behaviors = [ - iD.behavior.Hover(context), - iD.behavior.Select(context), - iD.behavior.Lasso(context), - iD.modes.DragNode(context).behavior]; - mode.enter = function() { - behaviors.forEach(function(behavior) { - context.install(behavior); - }); - - context.connection().authenticate(function() { - context.ui().sidebar.show(ui); + context.connection().authenticate(function(err) { + if (err) { + cancel(); + } else { + context.ui().sidebar.show(ui); + } }); }; mode.exit = function() { - behaviors.forEach(function(behavior) { - context.uninstall(behavior); - }); - - context.ui().sidebar.hide(ui); + context.ui().sidebar.hide(); }; return mode; @@ -20359,6 +24963,8 @@ iD.modes.Select = function(context, selectedIDs) { var keybinding = d3.keybinding('select'), timeout = null, behaviors = [ + iD.behavior.Copy(context), + iD.behavior.Paste(context), iD.behavior.Hover(context), iD.behavior.Select(context), iD.behavior.Lasso(context), @@ -20373,26 +24979,51 @@ iD.modes.Select = function(context, selectedIDs) { var wrap = context.container() .select('.inspector-wrap'); + function singular() { if (selectedIDs.length === 1) { return context.entity(selectedIDs[0]); } } + function closeMenu() { + if (radialMenu) { + context.surface().call(radialMenu.close); + } + } + function positionMenu() { - var entity = singular(); + if (suppressMenu || !radialMenu) { return; } - if (entity && entity.type === 'node') { + var entity = singular(); + if (entity && context.geometry(entity.id) === 'relation') { + suppressMenu = true; + } else if (entity && entity.type === 'node') { radialMenu.center(context.projection(entity.loc)); } else { - radialMenu.center(context.mouse()); + var point = context.mouse(), + viewport = iD.geo.Extent(context.projection.clipExtent()).polygon(); + if (iD.geo.pointInPolygon(point, viewport)) { + radialMenu.center(point); + } else { + suppressMenu = true; + } } } function showMenu() { - context.surface() - .call(radialMenu.close) - .call(radialMenu); + closeMenu(); + if (!suppressMenu && radialMenu) { + context.surface().call(radialMenu); + } + } + + function toggleMenu() { + if (d3.select('.radial-menu').empty()) { + showMenu(); + } else { + closeMenu(); + } } mode.selectedIDs = function() { @@ -20422,60 +25053,14 @@ iD.modes.Select = function(context, selectedIDs) { }; mode.enter = function() { - behaviors.forEach(function(behavior) { - context.install(behavior); - }); - - var operations = _.without(d3.values(iD.operations), iD.operations.Delete) - .map(function(o) { return o(selectedIDs, context); }) - .filter(function(o) { return o.available(); }); - operations.unshift(iD.operations.Delete(selectedIDs, context)); - - keybinding.on('⎋', function() { - context.enter(iD.modes.Browse(context)); - }, true); - - operations.forEach(function(operation) { - operation.keys.forEach(function(key) { - keybinding.on(key, function() { - if (!operation.disabled()) { - operation(); - } - }); - }); - }); - - var notNew = selectedIDs.filter(function(id) { - return !context.entity(id).isNew(); - }); - - if (notNew.length) { - var q = iD.util.stringQs(location.hash.substring(1)); - location.replace('#' + iD.util.qsString(_.assign(q, { - id: notNew.join(',') - }), true)); - } - - context.ui().sidebar - .select(singular() ? singular().id : null, newFeature); - - context.history() - .on('undone.select', update) - .on('redone.select', update); - function update() { - context.surface().call(radialMenu.close); - + closeMenu(); if (_.any(selectedIDs, function(id) { return !context.hasEntity(id); })) { // Exit mode if selected entity gets undone context.enter(iD.modes.Browse(context)); } } - context.map().on('move.select', function() { - context.surface().call(radialMenu.close); - }); - function dblclick() { var target = d3.select(d3.event.target), datum = target.datum(); @@ -20496,19 +25081,69 @@ iD.modes.Select = function(context, selectedIDs) { } } + function selectElements(drawn) { + var entity = singular(); + if (entity && context.geometry(entity.id) === 'relation') { + suppressMenu = true; + return; + } + + var selection = context.surface() + .selectAll(iD.util.entityOrMemberSelector(selectedIDs, context.graph())); + + if (selection.empty()) { + if (drawn) { // Exit mode if selected DOM elements have disappeared.. + context.enter(iD.modes.Browse(context)); + } + } else { + selection + .classed('selected', true); + } + } + + + behaviors.forEach(function(behavior) { + context.install(behavior); + }); + + var operations = _.without(d3.values(iD.operations), iD.operations.Delete) + .map(function(o) { return o(selectedIDs, context); }) + .filter(function(o) { return o.available(); }); + + operations.unshift(iD.operations.Delete(selectedIDs, context)); + + keybinding + .on('⎋', function() { context.enter(iD.modes.Browse(context)); }, true) + .on('space', toggleMenu); + + operations.forEach(function(operation) { + operation.keys.forEach(function(key) { + keybinding.on(key, function() { + if (!operation.disabled()) { + operation(); + } + }); + }); + }); + d3.select(document) .call(keybinding); - function selectElements() { - context.surface() - .selectAll(iD.util.entityOrMemberSelector(selectedIDs, context.graph())) - .classed('selected', true); - } + radialMenu = iD.ui.RadialMenu(context, operations); + + context.ui().sidebar + .select(singular() ? singular().id : null, newFeature); + + context.history() + .on('undone.select', update) + .on('redone.select', update); + + context.map() + .on('move.select', closeMenu) + .on('drawn.select', selectElements); - context.map().on('drawn.select', selectElements); selectElements(); - radialMenu = iD.ui.RadialMenu(context, operations); var show = d3.event && !suppressMenu; if (show) { @@ -20539,17 +25174,15 @@ iD.modes.Select = function(context, selectedIDs) { context.uninstall(behavior); }); - var q = iD.util.stringQs(location.hash.substring(1)); - location.replace('#' + iD.util.qsString(_.omit(q, 'id'), true)); - keybinding.off(); + closeMenu(); + radialMenu = undefined; context.history() .on('undone.select', null) .on('redone.select', null); context.surface() - .call(radialMenu.close) .on('dblclick.select', null) .selectAll('.selected') .classed('selected', false); @@ -20563,6 +25196,8 @@ iD.modes.Select = function(context, selectedIDs) { iD.operations = {}; iD.operations.Circularize = function(selectedIDs, context) { var entityId = selectedIDs[0], + entity = context.entity(entityId), + extent = entity.extent(context.graph()), geometry = context.geometry(entityId), action = iD.actions.Circularize(entityId, context.projection); @@ -20572,24 +25207,19 @@ iD.operations.Circularize = function(selectedIDs, context) { }; operation.available = function() { - var entity = context.entity(entityId); return selectedIDs.length === 1 && entity.type === 'way' && _.uniq(entity.nodes).length > 1; }; operation.disabled = function() { - var way = context.entity(entityId), - wayExtent = way.extent(context.graph()), - mapExtent = context.extent(), - intersection = mapExtent.intersection(wayExtent), - pctVisible = intersection.area() / wayExtent.area(); - - if (pctVisible < 0.8) { - return 'too_large'; - } else { - return action.disabled(context.graph()); + var reason; + if (extent.percentContainedIn(context.extent()) < 0.8) { + reason = 'too_large'; + } else if (context.hasHiddenConnections(entityId)) { + reason = 'connected_to_hidden'; } + return action.disabled(context.graph()) || reason; }; operation.tooltip = function() { @@ -20630,7 +25260,8 @@ iD.operations.Continue = function(selectedIDs, context) { }; operation.available = function() { - return geometries.vertex.length === 1 && geometries.line.length <= 1; + return geometries.vertex.length === 1 && geometries.line.length <= 1 && + !context.features().hasHiddenConnections(vertex, context.graph()); }; operation.disabled = function() { @@ -20692,15 +25323,15 @@ iD.operations.Delete = function(selectedIDs, context) { } } - context.perform( - action, - annotation); - if (nextSelectedID && context.hasEntity(nextSelectedID)) { context.enter(iD.modes.Select(context, [nextSelectedID])); } else { context.enter(iD.modes.Browse(context)); } + + context.perform( + action, + annotation); }; operation.available = function() { @@ -20708,7 +25339,11 @@ iD.operations.Delete = function(selectedIDs, context) { }; operation.disabled = function() { - return action.disabled(context.graph()); + var reason; + if (_.any(selectedIDs, context.hasHiddenConnections)) { + reason = 'connected_to_hidden'; + } + return action.disabled(context.graph()) || reason; }; operation.tooltip = function() { @@ -20745,7 +25380,11 @@ iD.operations.Disconnect = function(selectedIDs, context) { }; operation.disabled = function() { - return action.disabled(context.graph()); + var reason; + if (_.any(selectedIDs, context.hasHiddenConnections)) { + reason = 'connected_to_hidden'; + } + return action.disabled(context.graph()) || reason; }; operation.tooltip = function() { @@ -20817,6 +25456,10 @@ iD.operations.Merge = function(selectedIDs, context) { return operation; }; iD.operations.Move = function(selectedIDs, context) { + var extent = selectedIDs.reduce(function(extent, id) { + return extent.extend(context.entity(id).extent(context.graph())); + }, iD.geo.Extent()); + var operation = function() { context.enter(iD.modes.Move(context, selectedIDs)); }; @@ -20827,8 +25470,13 @@ iD.operations.Move = function(selectedIDs, context) { }; operation.disabled = function() { - return iD.actions.Move(selectedIDs) - .disabled(context.graph()); + var reason; + if (extent.area() && extent.percentContainedIn(context.extent()) < 0.8) { + reason = 'too_large'; + } else if (_.any(selectedIDs, context.hasHiddenConnections)) { + reason = 'connected_to_hidden'; + } + return iD.actions.Move(selectedIDs).disabled(context.graph()) || reason; }; operation.tooltip = function() { @@ -20846,16 +25494,17 @@ iD.operations.Move = function(selectedIDs, context) { }; iD.operations.Orthogonalize = function(selectedIDs, context) { var entityId = selectedIDs[0], + entity = context.entity(entityId), + extent = entity.extent(context.graph()), geometry = context.geometry(entityId), action = iD.actions.Orthogonalize(entityId, context.projection); - function operation() { + var operation = function() { var annotation = t('operations.orthogonalize.annotation.' + geometry); context.perform(action, annotation); - } + }; operation.available = function() { - var entity = context.entity(entityId); return selectedIDs.length === 1 && entity.type === 'way' && entity.isClosed() && @@ -20863,17 +25512,13 @@ iD.operations.Orthogonalize = function(selectedIDs, context) { }; operation.disabled = function() { - var way = context.entity(entityId), - wayExtent = way.extent(context.graph()), - mapExtent = context.extent(), - intersection = mapExtent.intersection(wayExtent), - pctVisible = intersection.area() / wayExtent.area(); - - if (pctVisible < 0.8) { - return 'too_large'; - } else { - return action.disabled(context.graph()); + var reason; + if (extent.percentContainedIn(context.extent()) < 0.8) { + reason = 'too_large'; + } else if (context.hasHiddenConnections(entityId)) { + reason = 'connected_to_hidden'; } + return action.disabled(context.graph()) || reason; }; operation.tooltip = function() { @@ -20918,33 +25563,41 @@ iD.operations.Reverse = function(selectedIDs, context) { return operation; }; iD.operations.Rotate = function(selectedIDs, context) { - var entityId = selectedIDs[0]; + var entityId = selectedIDs[0], + entity = context.entity(entityId), + extent = entity.extent(context.graph()), + geometry = context.geometry(entityId); var operation = function() { context.enter(iD.modes.RotateWay(context, entityId)); }; operation.available = function() { - var graph = context.graph(), - entity = graph.entity(entityId); - - if (selectedIDs.length !== 1 || - entity.type !== 'way') + if (selectedIDs.length !== 1 || entity.type !== 'way') return false; - if (context.geometry(entityId) === 'area') + if (geometry === 'area') return true; if (entity.isClosed() && - graph.parentRelations(entity).some(function(r) { return r.isMultipolygon(); })) + context.graph().parentRelations(entity).some(function(r) { return r.isMultipolygon(); })) return true; return false; }; operation.disabled = function() { - return false; + if (extent.percentContainedIn(context.extent()) < 0.8) { + return 'too_large'; + } else if (context.hasHiddenConnections(entityId)) { + return 'connected_to_hidden'; + } else { + return false; + } }; operation.tooltip = function() { - return t('operations.rotate.description'); + var disable = operation.disabled(); + return disable ? + t('operations.rotate.' + disable) : + t('operations.rotate.description'); }; operation.id = 'rotate'; @@ -20984,7 +25637,11 @@ iD.operations.Split = function(selectedIDs, context) { }; operation.disabled = function() { - return action.disabled(context.graph()); + var reason; + if (_.any(selectedIDs, context.hasHiddenConnections)) { + reason = 'connected_to_hidden'; + } + return action.disabled(context.graph()) || reason; }; operation.tooltip = function() { @@ -21025,7 +25682,11 @@ iD.operations.Straighten = function(selectedIDs, context) { }; operation.disabled = function() { - return action.disabled(context.graph()); + var reason; + if (context.hasHiddenConnections(entityId)) { + reason = 'connected_to_hidden'; + } + return action.disabled(context.graph()) || reason; }; operation.tooltip = function() { @@ -21041,105 +25702,20 @@ iD.operations.Straighten = function(selectedIDs, context) { return operation; }; -/* jshint -W109 */ -iD.areaKeys = { - "aeroway": { - "gate": true, - "taxiway": true - }, - "amenity": { - "atm": true, - "bbq": true, - "bench": true, - "clock": true, - "drinking_water": true, - "parking_entrance": true, - "post_box": true, - "telephone": true, - "vending_machine": true, - "waste_basket": true - }, - "area": {}, - "barrier": { - "block": true, - "bollard": true, - "cattle_grid": true, - "cycle_barrier": true, - "entrance": true, - "fence": true, - "gate": true, - "kissing_gate": true, - "lift_gate": true, - "stile": true, - "toll_booth": true - }, - "building": { - "entrance": true - }, - "craft": {}, - "emergency": { - "fire_hydrant": true, - "phone": true - }, - "golf": { - "hole": true - }, - "historic": { - "boundary_stone": true - }, - "landuse": {}, - "leisure": { - "picnic_table": true, - "slipway": true - }, - "man_made": { - "cutline": true, - "embankment": true, - "flagpole": true, - "pipeline": true, - "survey_point": true - }, - "military": {}, - "natural": { - "coastline": true, - "peak": true, - "spring": true, - "tree": true - }, - "office": {}, - "piste:type": {}, - "place": {}, - "power": { - "line": true, - "minor_line": true, - "pole": true, - "tower": true - }, - "public_transport": { - "stop_position": true - }, - "shop": {}, - "tourism": { - "viewpoint": true - }, - "waterway": { - "canal": true, - "ditch": true, - "drain": true, - "river": true, - "stream": true, - "weir": true - } -};iD.Connection = function() { - - var event = d3.dispatch('authenticating', 'authenticated', 'auth', 'loading', 'load', 'loaded'), - url = 'http://www.openstreetmap.org', +iD.Connection = function(useHttps) { + if (typeof useHttps !== 'boolean') { + useHttps = window.location.protocol === 'https:'; + } + + var event = d3.dispatch('authenticating', 'authenticated', 'auth', 'loading', 'loaded'), + protocol = useHttps ? 'https:' : 'http:', + url = protocol + '//www.openstreetmap.org', connection = {}, inflight = {}, loadedTiles = {}, tileZoom = 16, oauth = osmAuth({ - url: 'http://www.openstreetmap.org', + url: protocol + '//www.openstreetmap.org', oauth_consumer_key: '5A043yRSEugj4DJ5TljuapfnrflWDte8jTOcWLlT', oauth_secret: 'aB3jKq1TRsCOUrfOIZ6oQMEDmv2ptV76PA54NGLL', loading: authenticating, @@ -21151,8 +25727,10 @@ iD.areaKeys = { nodeStr = 'node', wayStr = 'way', relationStr = 'relation', + userDetails, off; + connection.changesetURL = function(changesetId) { return url + '/changeset/' + changesetId; }; @@ -21174,10 +25752,10 @@ iD.areaKeys = { }; connection.loadFromURL = function(url, callback) { - function done(dom) { - return callback(null, parse(dom)); + function done(err, dom) { + return callback(err, parse(dom)); } - return d3.xml(url).get().on('load', done); + return d3.xml(url).get(done); }; connection.loadEntity = function(id, callback) { @@ -21187,9 +25765,34 @@ iD.areaKeys = { connection.loadFromURL( url + '/api/0.6/' + type + '/' + osmID + (type !== 'node' ? '/full' : ''), function(err, entities) { - event.load(err, {data: entities}); - if (callback) callback(err, entities && _.find(entities, function(e) { return e.id === id; })); + if (callback) callback(err, {data: entities}); + }); + }; + + connection.loadEntityVersion = function(id, version, callback) { + var type = iD.Entity.id.type(id), + osmID = iD.Entity.id.toOSM(id); + + connection.loadFromURL( + url + '/api/0.6/' + type + '/' + osmID + '/' + version, + function(err, entities) { + if (callback) callback(err, {data: entities}); + }); + }; + + connection.loadMultiple = function(ids, callback) { + _.each(_.groupBy(_.uniq(ids), iD.Entity.id.type), function(v, k) { + var type = k + 's', + osmIDs = _.map(v, iD.Entity.id.toOSM); + + _.each(_.chunk(osmIDs, 150), function(arr) { + connection.loadFromURL( + url + '/api/0.6/' + type + '?' + type + '=' + arr.join(), + function(err, entities) { + if (callback) callback(err, {data: entities}); + }); }); + }); }; function authenticating() { @@ -21200,11 +25803,17 @@ iD.areaKeys = { event.authenticated(); } + function getLoc(attrs) { + var lon = attrs.lon && attrs.lon.value, + lat = attrs.lat && attrs.lat.value; + return [parseFloat(lon), parseFloat(lat)]; + } + function getNodes(obj) { var elems = obj.getElementsByTagName(ndStr), nodes = new Array(elems.length); for (var i = 0, l = elems.length; i < l; i++) { - nodes[i] = 'n' + elems[i].attributes.ref.nodeValue; + nodes[i] = 'n' + elems[i].attributes.ref.value; } return nodes; } @@ -21214,7 +25823,7 @@ iD.areaKeys = { tags = {}; for (var i = 0, l = elems.length; i < l; i++) { var attrs = elems[i].attributes; - tags[attrs.k.nodeValue] = attrs.v.nodeValue; + tags[attrs.k.value] = attrs.v.value; } return tags; } @@ -21225,51 +25834,58 @@ iD.areaKeys = { for (var i = 0, l = elems.length; i < l; i++) { var attrs = elems[i].attributes; members[i] = { - id: attrs.type.nodeValue[0] + attrs.ref.nodeValue, - type: attrs.type.nodeValue, - role: attrs.role.nodeValue + id: attrs.type.value[0] + attrs.ref.value, + type: attrs.type.value, + role: attrs.role.value }; } return members; } + function getVisible(attrs) { + return (!attrs.visible || attrs.visible.value !== 'false'); + } + var parsers = { node: function nodeData(obj) { var attrs = obj.attributes; return new iD.Node({ - id: iD.Entity.id.fromOSM(nodeStr, attrs.id.nodeValue), - loc: [parseFloat(attrs.lon.nodeValue), parseFloat(attrs.lat.nodeValue)], - version: attrs.version.nodeValue, - user: attrs.user && attrs.user.nodeValue, - tags: getTags(obj) + id: iD.Entity.id.fromOSM(nodeStr, attrs.id.value), + loc: getLoc(attrs), + version: attrs.version.value, + user: attrs.user && attrs.user.value, + tags: getTags(obj), + visible: getVisible(attrs) }); }, way: function wayData(obj) { var attrs = obj.attributes; return new iD.Way({ - id: iD.Entity.id.fromOSM(wayStr, attrs.id.nodeValue), - version: attrs.version.nodeValue, - user: attrs.user && attrs.user.nodeValue, + id: iD.Entity.id.fromOSM(wayStr, attrs.id.value), + version: attrs.version.value, + user: attrs.user && attrs.user.value, tags: getTags(obj), - nodes: getNodes(obj) + nodes: getNodes(obj), + visible: getVisible(attrs) }); }, relation: function relationData(obj) { var attrs = obj.attributes; return new iD.Relation({ - id: iD.Entity.id.fromOSM(relationStr, attrs.id.nodeValue), - version: attrs.version.nodeValue, - user: attrs.user && attrs.user.nodeValue, + id: iD.Entity.id.fromOSM(relationStr, attrs.id.value), + version: attrs.version.value, + user: attrs.user && attrs.user.value, tags: getTags(obj), - members: getMembers(obj) + members: getMembers(obj), + visible: getVisible(attrs) }); } }; function parse(dom) { - if (!dom || !dom.childNodes) return new Error('Bad request'); + if (!dom || !dom.childNodes) return; var root = dom.childNodes[0], children = root.childNodes, @@ -21298,7 +25914,7 @@ iD.areaKeys = { tag: _.map(tags, function(value, key) { return { '@k': key, '@v': value }; }), - '@version': 0.3, + '@version': 0.6, '@generator': 'iD' } } @@ -21328,7 +25944,7 @@ iD.areaKeys = { return { osmChange: { - '@version': 0.3, + '@version': 0.6, '@generator': 'iD', 'create': nest(changes.created.map(rep), ['node', 'way', 'relation']), 'modify': nest(changes.modified.map(rep), ['node', 'way', 'relation']), @@ -21338,13 +25954,16 @@ iD.areaKeys = { }; connection.changesetTags = function(comment, imageryUsed) { - var tags = { - imagery_used: imageryUsed.join(';'), - created_by: 'iD ' + iD.version - }; + var detected = iD.detect(), + tags = { + created_by: 'iD ' + iD.version, + imagery_used: imageryUsed.join(';').substr(0, 255), + host: (window.location.origin + window.location.pathname).substr(0, 255), + locale: detected.locale + }; if (comment) { - tags.comment = comment; + tags.comment = comment.substr(0, 255); } return tags; @@ -21365,18 +25984,18 @@ iD.areaKeys = { content: JXON.stringify(connection.osmChangeJXON(changeset_id, changes)) }, function(err) { if (err) return callback(err); + // POST was successful, safe to call the callback. + // Still attempt to close changeset, but ignore response because #2667 + // Add delay to allow for postgres replication #1646 #2678 + window.setTimeout(function() { callback(null, changeset_id); }, 2500); oauth.xhr({ method: 'PUT', path: '/api/0.6/changeset/' + changeset_id + '/close' - }, function(err) { - callback(err, changeset_id); - }); + }, d3.functor(true)); }); }); }; - var userDetails; - connection.userDetails = function(callback) { if (userDetails) { callback(undefined, userDetails); @@ -21395,9 +26014,9 @@ iD.areaKeys = { } userDetails = { - display_name: u.attributes.display_name.nodeValue, + display_name: u.attributes.display_name.value, image_url: image_url, - id: u.attributes.id.nodeValue + id: u.attributes.id.value }; callback(undefined, userDetails); @@ -21424,7 +26043,7 @@ iD.areaKeys = { return connection; }; - connection.loadTiles = function(projection, dimensions) { + connection.loadTiles = function(projection, dimensions, callback) { if (off) return; @@ -21477,7 +26096,7 @@ iD.areaKeys = { loadedTiles[id] = true; delete inflight[id]; - event.load(err, _.extend({data: parsed}, tile)); + if (callback) callback(err, _.extend({data: parsed}, tile)); if (_.isEmpty(inflight)) { event.loaded(); @@ -21503,6 +26122,7 @@ iD.areaKeys = { }; connection.flush = function() { + userDetails = undefined; _.forEach(inflight, abortRequest); loadedTiles = {}; inflight = {}; @@ -21516,12 +26136,14 @@ iD.areaKeys = { }; connection.logout = function() { + userDetails = undefined; oauth.logout(); event.auth(); return connection; }; connection.authenticate = function(callback) { + userDetails = undefined; function done(err, res) { event.auth(); if (callback) callback(err, res); @@ -21543,7 +26165,7 @@ iD.Difference = function(base, head) { var changes = {}, length = 0; function changed(h, b) { - return !_.isEqual(_.omit(h, 'v'), _.omit(b, 'v')); + return h !== b && !_.isEqual(_.omit(h, 'v'), _.omit(b, 'v')); } _.each(head.entities, function(h, id) { @@ -21753,7 +26375,11 @@ iD.Entity.prototype = { var source = sources[i]; for (var prop in source) { if (Object.prototype.hasOwnProperty.call(source, prop)) { - this[prop] = source[prop]; + if (source[prop] === undefined) { + delete this[prop]; + } else { + this[prop] = source[prop]; + } } } } @@ -21761,6 +26387,9 @@ iD.Entity.prototype = { if (!this.id && this.type) { this.id = iD.Entity.id(this.type); } + if (!this.hasOwnProperty('visible')) { + this.visible = true; + } if (iD.debug) { Object.freeze(this); @@ -21774,6 +26403,12 @@ iD.Entity.prototype = { return this; }, + copy: function() { + // Returns an array so that we can support deep copying ways and relations. + // The first array element will contain this.copy, followed by any descendants. + return [iD.Entity(this, {id: undefined, user: undefined, version: undefined})]; + }, + osmId: function() { return iD.Entity.id.toOSM(this.id); }, @@ -21812,13 +26447,11 @@ iD.Entity.prototype = { }, hasInterestingTags: function() { - return _.keys(this.tags).some(function(key) { - return key !== 'attribution' && - key !== 'created_by' && - key !== 'source' && - key !== 'odbl' && - key.indexOf('tiger:') !== 0; - }); + return _.keys(this.tags).some(iD.interestingTag); + }, + + isHighwayIntersection: function() { + return false; }, deprecatedTags: function() { @@ -21856,10 +26489,7 @@ iD.Graph = function(other, mutable) { this.transients = {}; this._childNodes = {}; - - if (!mutable) { - this.freeze(); - } + this.frozen = !mutable; }; iD.Graph.prototype = { @@ -21890,7 +26520,15 @@ iD.Graph.prototype = { }, parentWays: function(entity) { - return _.map(this._parentWays[entity.id], this.entity, this); + var parents = this._parentWays[entity.id], + result = []; + + if (parents) { + for (var i = 0; i < parents.length; i++) { + result.push(this.entity(parents[i])); + } + } + return result; }, isPoi: function(entity) { @@ -21904,7 +26542,15 @@ iD.Graph.prototype = { }, parentRelations: function(entity) { - return _.map(this._parentRels[entity.id], this.entity, this); + var parents = this._parentRels[entity.id], + result = []; + + if (parents) { + for (var i = 0; i < parents.length; i++) { + result.push(this.entity(parents[i])); + } + } + return result; }, childNodes: function(entity) { @@ -21912,8 +26558,10 @@ iD.Graph.prototype = { return this._childNodes[entity.id]; var nodes = []; - for (var i = 0, l = entity.nodes.length; i < l; i++) { - nodes[i] = this.entity(entity.nodes[i]); + if (entity.nodes) { + for (var i = 0; i < entity.nodes.length; i++) { + nodes[i] = this.entity(entity.nodes[i]); + } } if (iD.debug) Object.freeze(nodes); @@ -21934,20 +26582,19 @@ iD.Graph.prototype = { // is used only during the history operation that merges newly downloaded // data into each state. To external consumers, it should appear as if the // graph always contained the newly downloaded data. - rebase: function(entities, stack) { + rebase: function(entities, stack, force) { var base = this.base(), i, j, k, id; for (i = 0; i < entities.length; i++) { var entity = entities[i]; - if (base.entities[entity.id]) + if (!entity.visible || (!force && base.entities[entity.id])) continue; // Merging data into the base graph base.entities[entity.id] = entity; - this._updateCalculated(undefined, entity, - base.parentWays, base.parentRels); + this._updateCalculated(undefined, entity, base.parentWays, base.parentRels); // Restore provisionally-deleted nodes that are discovered to have an extant parent if (entity.type === 'way') { @@ -22077,6 +26724,19 @@ iD.Graph.prototype = { }); }, + revert: function(id) { + var baseEntity = this.base().entities[id], + headEntity = this.entities[id]; + + if (headEntity === baseEntity) + return this; + + return this.update(function() { + this._updateCalculated(headEntity, baseEntity); + delete this.entities[id]; + }); + }, + update: function() { var graph = this.frozen ? iD.Graph(this, true) : this; @@ -22084,15 +26744,9 @@ iD.Graph.prototype = { arguments[i].call(graph, graph); } - return this.frozen ? graph.freeze() : this; - }, + if (this.frozen) graph.frozen = true; - freeze: function() { - this.frozen = true; - - // No longer freezing entities here due to in-place updates needed in rebase. - - return this; + return graph; }, // Obliterates any existing entities @@ -22151,9 +26805,13 @@ iD.History = function(context) { return stack[index].graph; }, + base: function() { + return stack[0].graph; + }, + merge: function(entities, extent) { - stack[0].graph.rebase(entities, _.pluck(stack, 'graph')); - tree.rebase(entities); + stack[0].graph.rebase(entities, _.pluck(stack, 'graph'), false); + tree.rebase(entities, false); dispatch.change(undefined, extent); }, @@ -22187,6 +26845,21 @@ iD.History = function(context) { } }, + // Same as calling pop and then perform + overwrite: function() { + var previous = stack[index].graph; + + if (index > 0) { + index--; + stack.pop(); + } + stack = stack.slice(0, index + 1); + stack.push(perform(arguments)); + index++; + + return change(previous); + }, + undo: function() { var previous = stack[index].graph; @@ -22255,6 +26928,13 @@ iD.History = function(context) { }; }, + validate: function(changes) { + return _(iD.validations) + .map(function(fn) { return fn()(changes, stack[index].graph); }) + .flatten() + .value(); + }, + hasChanges: function() { return this.difference().length() > 0; }, @@ -22282,7 +26962,7 @@ iD.History = function(context) { }, toJSON: function() { - if (stack.length <= 1) return; + if (!this.hasChanges()) return; var allEntities = {}, baseEntities = {}, @@ -22305,6 +26985,12 @@ iD.History = function(context) { if (id in base.graph.entities) { baseEntities[id] = base.graph.entities[id]; } + // get originals of parent entities too + _.forEach(base.graph._parentWays[id], function(parentId) { + if (parentId in base.graph.entities) { + baseEntities[parentId] = base.graph.entities[parentId]; + } + }); }); var x = {}; @@ -22327,7 +27013,7 @@ iD.History = function(context) { }); }, - fromJSON: function(json) { + fromJSON: function(json, loadChildNodes) { var h = JSON.parse(json); iD.Entity.id.next = h.nextIDs; @@ -22341,12 +27027,46 @@ iD.History = function(context) { }); if (h.version === 3) { - // this merges originals for changed entities into the base of + // This merges originals for changed entities into the base of // the stack even if the current stack doesn't have them (for // example when iD has been restarted in a different region) - var baseEntities = h.baseEntities.map(iD.Entity); - stack[0].graph.rebase(baseEntities, _.pluck(stack, 'graph')); - tree.rebase(baseEntities); + var baseEntities = h.baseEntities.map(function(entity) { + return iD.Entity(entity); + }); + stack[0].graph.rebase(baseEntities, _.pluck(stack, 'graph'), true); + tree.rebase(baseEntities, true); + + // When we restore a modified way, we also need to fetch any missing + // childnodes that would normally have been downloaded with it.. #2142 + if (loadChildNodes) { + var missing = _(baseEntities) + .filter('type', 'way') + .pluck('nodes') + .flatten() + .uniq() + .reject(function(n) { return stack[0].graph.hasEntity(n); }) + .value(); + + if (!_.isEmpty(missing)) { + var childNodesLoaded = function(err, result) { + if (err) return; + + var visible = _.groupBy(result.data, 'visible'); + if (!_.isEmpty(visible.true)) { + stack[0].graph.rebase(visible.true, _.pluck(stack, 'graph'), false); + tree.rebase(visible.true, false); + } + + // fetch older versions of nodes that were deleted.. + _.each(visible.false, function(entity) { + context.connection() + .loadEntityVersion(entity.id, +entity.version - 1, childNodesLoaded); + }); + }; + + context.connection().loadMultiple(missing, childNodesLoaded); + } + } } stack = h.stack.map(function(d) { @@ -22419,7 +27139,7 @@ iD.History = function(context) { if (!lock.locked()) return; var json = context.storage(getKey('saved_history')); - if (json) history.fromJSON(json); + if (json) history.fromJSON(json, true); }, _getKey: getKey @@ -22469,6 +27189,14 @@ _.extend(iD.Node.prototype, { }); }, + isHighwayIntersection: function(resolver) { + return resolver.transient(this, 'isHighwayIntersection', function() { + return resolver.parentWays(this).filter(function(parent) { + return parent.tags.highway && parent.geometry(resolver) === 'line'; + }).length > 1; + }); + }, + asJXON: function(changeset_id) { var r = { node: { @@ -22514,19 +27242,48 @@ _.extend(iD.Relation.prototype, { type: 'relation', members: [], + copy: function(deep, resolver, replacements) { + var copy = iD.Entity.prototype.copy.call(this); + if (!deep || !resolver || !this.isComplete(resolver)) { + return copy; + } + + var members = [], + i, oldmember, oldid, newid, children; + + replacements = replacements || {}; + replacements[this.id] = copy[0].id; + + for (i = 0; i < this.members.length; i++) { + oldmember = this.members[i]; + oldid = oldmember.id; + newid = replacements[oldid]; + if (!newid) { + children = resolver.entity(oldid).copy(true, resolver, replacements); + newid = replacements[oldid] = children[0].id; + copy = copy.concat(children); + } + members.push({id: newid, type: oldmember.type, role: oldmember.role}); + } + + copy[0] = copy[0].update({members: members}); + return copy; + }, + extent: function(resolver, memo) { return resolver.transient(this, 'extent', function() { if (memo && memo[this.id]) return iD.geo.Extent(); memo = memo || {}; memo[this.id] = true; - return this.members.reduce(function(extent, member) { - member = resolver.hasEntity(member.id); + + var extent = iD.geo.Extent(); + for (var i = 0; i < this.members.length; i++) { + var member = resolver.hasEntity(this.members[i].id); if (member) { - return extent.extend(member.extent(resolver, memo)); - } else { - return extent; + extent._extend(member.extent(resolver, memo)); } - }, iD.geo.Extent()); + } + return extent; }); }, @@ -22743,6 +27500,57 @@ _.extend(iD.Relation.prototype, { return result; } }); +iD.oneWayTags = { + 'aerialway': { + 'chair_lift': true, + 'mixed_lift': true, + 't-bar': true, + 'j-bar': true, + 'platter': true, + 'rope_tow': true, + 'magic_carpet': true, + 'yes': true + }, + 'highway': { + 'motorway': true, + 'motorway_link': true + }, + 'junction': { + 'roundabout': true + }, + 'man_made': { + 'piste:halfpipe': true + }, + 'piste:type': { + 'downhill': true, + 'sled': true, + 'yes': true + }, + 'waterway': { + 'river': true, + 'stream': true + } +}; + +iD.pavedTags = { + 'surface': { + 'paved': true, + 'asphalt': true, + 'concrete': true + }, + 'tracktype': { + 'grade1': true + } +}; + +iD.interestingTag = function (key) { + return key !== 'attribution' && + key !== 'created_by' && + key !== 'source' && + key !== 'odbl' && + key.indexOf('tiger:') !== 0; + +}; iD.Tree = function(head) { var rtree = rbush(), rectangles = {}; @@ -22764,21 +27572,19 @@ iD.Tree = function(head) { } function updateParents(entity, insertions, memo) { - if (memo && memo[entity.id]) return; - memo = memo || {}; - memo[entity.id] = true; - head.parentWays(entity).forEach(function(parent) { if (rectangles[parent.id]) { rtree.remove(rectangles[parent.id]); - insertions.push(parent); + insertions[parent.id] = parent; } }); head.parentRelations(entity).forEach(function(parent) { + if (memo[entity.id]) return; + memo[entity.id] = true; if (rectangles[parent.id]) { rtree.remove(rectangles[parent.id]); - insertions.push(parent); + insertions[parent.id] = parent; } updateParents(parent, insertions, memo); }); @@ -22786,19 +27592,28 @@ iD.Tree = function(head) { var tree = {}; - tree.rebase = function(entities) { - var insertions = []; + tree.rebase = function(entities, force) { + var insertions = {}; - entities.forEach(function(entity) { - if (head.entities.hasOwnProperty(entity.id) || rectangles[entity.id]) - return; + for (var i = 0; i < entities.length; i++) { + var entity = entities[i]; - insertions.push(entity); - updateParents(entity, insertions); - }); + if (!entity.visible) + continue; - insertions = _.unique(insertions).map(entityRectangle); - rtree.load(insertions); + if (head.entities.hasOwnProperty(entity.id) || rectangles[entity.id]) { + if (!force) { + continue; + } else if (rectangles[entity.id]) { + rtree.remove(rectangles[entity.id]); + } + } + + insertions[entity.id] = entity; + updateParents(entity, insertions, {}); + } + + rtree.load(_.map(insertions, entityRectangle)); return tree; }; @@ -22806,7 +27621,7 @@ iD.Tree = function(head) { tree.intersects = function(extent, graph) { if (graph !== head) { var diff = iD.Difference(head, graph), - insertions = []; + insertions = {}; head = graph; @@ -22817,16 +27632,15 @@ iD.Tree = function(head) { diff.modified().forEach(function(entity) { rtree.remove(rectangles[entity.id]); - insertions.push(entity); - updateParents(entity, insertions); + insertions[entity.id] = entity; + updateParents(entity, insertions, {}); }); diff.created().forEach(function(entity) { - insertions.push(entity); + insertions[entity.id] = entity; }); - insertions = _.unique(insertions).map(entityRectangle); - rtree.load(insertions); + rtree.load(_.map(insertions, entityRectangle)); } return rtree.search(extentRectangle(extent)).map(function(rect) { @@ -22850,16 +27664,42 @@ _.extend(iD.Way.prototype, { type: 'way', nodes: [], + copy: function(deep, resolver) { + var copy = iD.Entity.prototype.copy.call(this); + + if (!deep || !resolver) { + return copy; + } + + var nodes = [], + replacements = {}, + i, oldid, newid, child; + + for (i = 0; i < this.nodes.length; i++) { + oldid = this.nodes[i]; + newid = replacements[oldid]; + if (!newid) { + child = resolver.entity(oldid).copy(); + newid = replacements[oldid] = child[0].id; + copy = copy.concat(child); + } + nodes.push(newid); + } + + copy[0] = copy[0].update({nodes: nodes}); + return copy; + }, + extent: function(resolver) { return resolver.transient(this, 'extent', function() { - return this.nodes.reduce(function(extent, id) { - var node = resolver.hasEntity(id); + var extent = iD.geo.Extent(); + for (var i = 0; i < this.nodes.length; i++) { + var node = resolver.hasEntity(this.nodes[i]); if (node) { - return extent.extend(node.extent()); - } else { - return extent; + extent._extend(node.extent()); } - }, iD.geo.Extent()); + } + return extent; }); }, @@ -22880,17 +27720,40 @@ _.extend(iD.Way.prototype, { if (this.nodes[this.nodes.length - 1] === node) return 'suffix'; }, + layer: function() { + // explicit layer tag, clamp between -10, 10.. + if (this.tags.layer !== undefined) { + return Math.max(-10, Math.min(+(this.tags.layer), 10)); + } + + // implied layer tag.. + if (this.tags.location === 'overground') return 1; + if (this.tags.location === 'underground') return -1; + if (this.tags.location === 'underwater') return -10; + + if (this.tags.power === 'line') return 10; + if (this.tags.power === 'minor_line') return 10; + if (this.tags.aerialway) return 10; + if (this.tags.bridge) return 1; + if (this.tags.cutting) return -1; + if (this.tags.tunnel) return -1; + if (this.tags.waterway) return -1; + if (this.tags.man_made === 'pipeline') return -10; + if (this.tags.boundary) return -10; + return 0; + }, + isOneWay: function() { // explicit oneway tag.. if (['yes', '1', '-1'].indexOf(this.tags.oneway) !== -1) { return true; } if (['no', '0'].indexOf(this.tags.oneway) !== -1) { return false; } // implied oneway tag.. - return this.tags.waterway === 'river' || - this.tags.waterway === 'stream' || - this.tags.highway === 'motorway' || - this.tags.highway === 'motorway_link' || - this.tags.junction === 'roundabout'; + for (var key in this.tags) { + if (key in iD.oneWayTags && (this.tags[key] in iD.oneWayTags[key])) + return true; + } + return false; }, isClosed: function() { @@ -23033,20 +27896,20 @@ _.extend(iD.Way.prototype, { 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')] }; + if (!this.isClosed() && nodes.length) { + json.coordinates[0].push(nodes[0].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) { + if (area > 2 * Math.PI) { json.coordinates[0] = json.coordinates[0].reverse(); area = d3.geo.area(json); } @@ -23061,17 +27924,10 @@ iD.Background = function(context) { .projection(context.projection), gpxLayer = iD.GpxLayer(context, dispatch) .projection(context.projection), + mapillaryLayer = iD.MapillaryLayer(context), overlayLayers = []; - var backgroundSources = iD.data.imagery.map(function(source) { - if (source.type === 'bing') { - return iD.BackgroundSource.Bing(source, dispatch); - } else { - return iD.BackgroundSource(source); - } - }); - - backgroundSources.unshift(iD.BackgroundSource.None()); + var backgroundSources; function findSource(id) { return _.find(backgroundSources, function(d) { @@ -23128,19 +27984,11 @@ iD.Background = function(context) { base.call(baseLayer); - var gpx = selection.selectAll('.gpx-layer') - .data([0]); - - gpx.enter().insert('div', '.layer-data') - .attr('class', 'layer-layer gpx-layer'); - - gpx.call(gpxLayer); - - var overlays = selection.selectAll('.overlay-layer') + var overlays = selection.selectAll('.layer-overlay') .data(overlayLayers, function(d) { return d.source().name(); }); overlays.enter().insert('div', '.layer-data') - .attr('class', 'layer-layer overlay-layer'); + .attr('class', 'layer-layer layer-overlay'); overlays.each(function(layer) { d3.select(this).call(layer); @@ -23148,6 +27996,22 @@ iD.Background = function(context) { overlays.exit() .remove(); + + var gpx = selection.selectAll('.layer-gpx') + .data([0]); + + gpx.enter().insert('div') + .attr('class', 'layer-layer layer-gpx'); + + gpx.call(gpxLayer); + + var mapillary = selection.selectAll('.layer-mapillary') + .data([0]); + + mapillary.enter().insert('div') + .attr('class', 'layer-layer layer-mapillary'); + + mapillary.call(mapillaryLayer); } background.sources = function(extent) { @@ -23159,6 +28023,7 @@ iD.Background = function(context) { background.dimensions = function(_) { baseLayer.dimensions(_); gpxLayer.dimensions(_); + mapillaryLayer.dimensions(_); overlayLayers.forEach(function(layer) { layer.dimensions(_); @@ -23197,6 +28062,7 @@ iD.Background = function(context) { reader.onload = function(e) { gpxLayer.geojson(toGeoJSON.gpx(toDom(e.target.result))); + iD.ui.MapInMap.gpxLayer.geojson(toGeoJSON.gpx(toDom(e.target.result))); background.zoomToGpxLayer(); dispatch.change(); }; @@ -23206,13 +28072,32 @@ iD.Background = function(context) { background.zoomToGpxLayer = function() { if (background.hasGpxLayer()) { - context.map() - .extent(d3.geo.bounds(gpxLayer.geojson())); + var map = context.map(), + viewport = map.trimmedExtent().polygon(), + coords = _.reduce(gpxLayer.geojson().features, function(coords, feature) { + var c = feature.geometry.coordinates; + return _.union(coords, feature.geometry.type === 'Point' ? [c] : c); + }, []); + + if (!iD.geo.polygonIntersectsPolygon(viewport, coords, true)) { + var extent = iD.geo.Extent(d3.geo.bounds(gpxLayer.geojson())); + map.centerZoom(extent.center(), map.trimmedExtentZoom(extent)); + } } }; background.toggleGpxLayer = function() { gpxLayer.enable(!gpxLayer.enable()); + iD.ui.MapInMap.gpxLayer.enable(!iD.ui.MapInMap.gpxLayer.enable()); + dispatch.change(); + }; + + background.showsMapillaryLayer = function() { + return mapillaryLayer.enable(); + }; + + background.toggleMapillaryLayer = function() { + mapillaryLayer.enable(!mapillaryLayer.enable()); dispatch.change(); }; @@ -23262,45 +28147,75 @@ iD.Background = function(context) { return background; }; - var q = iD.util.stringQs(location.hash.substring(1)), - chosen = q.background || q.layer; + background.load = function(imagery) { + function parseMap(qmap) { + if (!qmap) return false; + var args = qmap.split('/').map(Number); + if (args.length < 3 || args.some(isNaN)) return false; + return iD.geo.Extent([args[1], args[2]]); + } + + var q = iD.util.stringQs(location.hash.substring(1)), + chosen = q.background || q.layer, + extent = parseMap(q.map), + best; - if (chosen && chosen.indexOf('custom:') === 0) { - background.baseLayerSource(iD.BackgroundSource.Custom(chosen.replace(/^custom:/, ''))); - } else { - background.baseLayerSource(findSource(chosen) || findSource('Bing')); - } + backgroundSources = imagery.map(function(source) { + if (source.type === 'bing') { + return iD.BackgroundSource.Bing(source, dispatch); + } else { + return iD.BackgroundSource(source); + } + }); - var locator = _.find(backgroundSources, function(d) { - return d.overlay && d.default; - }); + backgroundSources.unshift(iD.BackgroundSource.None()); - if (locator) { - background.toggleOverlayLayer(locator); - } + if (!chosen && extent) { + best = this.sources(extent).find(function(s) { return s.best(); }); + } - var overlays = (q.overlays || '').split(','); - overlays.forEach(function(overlay) { - overlay = findSource(overlay); - if (overlay) background.toggleOverlayLayer(overlay); - }); + if (chosen && chosen.indexOf('custom:') === 0) { + background.baseLayerSource(iD.BackgroundSource.Custom(chosen.replace(/^custom:/, ''))); + } else { + background.baseLayerSource(findSource(chosen) || best || findSource('Bing') || backgroundSources[1]); + } - var gpx = q.gpx; - if (gpx) { - d3.text(gpx, function(err, gpxTxt) { - gpxLayer.geojson(toGeoJSON.gpx(toDom(gpxTxt))); - dispatch.change(); + var locator = _.find(backgroundSources, function(d) { + return d.overlay && d.default; }); - } + + if (locator) { + background.toggleOverlayLayer(locator); + } + + var overlays = (q.overlays || '').split(','); + overlays.forEach(function(overlay) { + overlay = findSource(overlay); + if (overlay) background.toggleOverlayLayer(overlay); + }); + + var gpx = q.gpx; + if (gpx) { + d3.text(gpx, function(err, gpxTxt) { + if (!err) { + gpxLayer.geojson(toGeoJSON.gpx(toDom(gpxTxt))); + iD.ui.MapInMap.gpxLayer.geojson(toGeoJSON.gpx(toDom(gpxTxt))); + dispatch.change(); + } + }); + } + }; return d3.rebind(background, dispatch, 'on'); }; iD.BackgroundSource = function(data) { var source = _.clone(data), offset = [0, 0], - name = source.name; + name = source.name, + best = !!source.best; source.scaleExtent = data.scaleExtent || [0, 20]; + source.overzoom = data.overzoom !== false; source.offset = function(_) { if (!arguments.length) return offset; @@ -23318,6 +28233,10 @@ iD.BackgroundSource = function(data) { return name; }; + source.best = function() { + return best; + }; + source.imageryUsed = function() { return source.id || name; }; @@ -23349,13 +28268,13 @@ iD.BackgroundSource = function(data) { source.intersects = function(extent) { extent = extent.polygon(); return !data.polygon || data.polygon.some(function(polygon) { - return iD.geo.polygonIntersectsPolygon(polygon, extent); + return iD.geo.polygonIntersectsPolygon(polygon, extent, true); }); }; source.validZoom = function(z) { return source.scaleExtent[0] <= z && - (!source.isLocatorOverlay() || source.scaleExtent[1] > z); + (source.overzoom || source.scaleExtent[1] > z); }; source.isLocatorOverlay = function() { @@ -23440,6 +28359,428 @@ iD.BackgroundSource.Custom = function(template) { return source; }; +iD.Features = function(context) { + var major_roads = { + 'motorway': true, + 'motorway_link': true, + 'trunk': true, + 'trunk_link': true, + 'primary': true, + 'primary_link': true, + 'secondary': true, + 'secondary_link': true, + 'tertiary': true, + 'tertiary_link': true, + 'residential': true + }; + + var minor_roads = { + 'service': true, + 'living_street': true, + 'road': true, + 'unclassified': true, + 'track': true + }; + + var paths = { + 'path': true, + 'footway': true, + 'cycleway': true, + 'bridleway': true, + 'steps': true, + 'pedestrian': true, + 'corridor': true + }; + + var past_futures = { + 'proposed': true, + 'construction': true, + 'abandoned': true, + 'dismantled': true, + 'disused': true, + 'razed': true, + 'demolished': true, + 'obliterated': true + }; + + var dispatch = d3.dispatch('change', 'redraw'), + _cullFactor = 1, + _cache = {}, + _features = {}, + _stats = {}, + _keys = [], + _hidden = []; + + function update() { + _hidden = features.hidden(); + dispatch.change(); + dispatch.redraw(); + } + + function defineFeature(k, filter, max) { + _keys.push(k); + _features[k] = { + filter: filter, + enabled: true, // whether the user wants it enabled.. + count: 0, + currentMax: (max || Infinity), + defaultMax: (max || Infinity), + enable: function() { this.enabled = true; this.currentMax = this.defaultMax; }, + disable: function() { this.enabled = false; this.currentMax = 0; }, + hidden: function() { return !context.editable() || this.count > this.currentMax * _cullFactor; }, + autoHidden: function() { return this.hidden() && this.currentMax > 0; } + }; + } + + + defineFeature('points', function isPoint(entity, resolver, geometry) { + return geometry === 'point'; + }, 200); + + defineFeature('major_roads', function isMajorRoad(entity) { + return major_roads[entity.tags.highway]; + }); + + defineFeature('minor_roads', function isMinorRoad(entity) { + return minor_roads[entity.tags.highway]; + }); + + defineFeature('paths', function isPath(entity) { + return paths[entity.tags.highway]; + }); + + defineFeature('buildings', function isBuilding(entity) { + return ( + !!entity.tags['building:part'] || + (!!entity.tags.building && entity.tags.building !== 'no') || + entity.tags.amenity === 'shelter' || + entity.tags.parking === 'multi-storey' || + entity.tags.parking === 'sheds' || + entity.tags.parking === 'carports' || + entity.tags.parking === 'garage_boxes' + ); + }, 250); + + defineFeature('landuse', function isLanduse(entity, resolver, geometry) { + return geometry === 'area' && + !_features.buildings.filter(entity) && + !_features.water.filter(entity); + }); + + defineFeature('boundaries', function isBoundary(entity) { + return !!entity.tags.boundary; + }); + + defineFeature('water', function isWater(entity) { + return ( + !!entity.tags.waterway || + entity.tags.natural === 'water' || + entity.tags.natural === 'coastline' || + entity.tags.natural === 'bay' || + entity.tags.landuse === 'pond' || + entity.tags.landuse === 'basin' || + entity.tags.landuse === 'reservoir' || + entity.tags.landuse === 'salt_pond' + ); + }); + + defineFeature('rail', function isRail(entity) { + return ( + !!entity.tags.railway || + entity.tags.landuse === 'railway' + ) && !( + major_roads[entity.tags.highway] || + minor_roads[entity.tags.highway] || + paths[entity.tags.highway] + ); + }); + + defineFeature('power', function isPower(entity) { + return !!entity.tags.power; + }); + + // contains a past/future tag, but not in active use as a road/path/cycleway/etc.. + defineFeature('past_future', function isPastFuture(entity) { + if ( + major_roads[entity.tags.highway] || + minor_roads[entity.tags.highway] || + paths[entity.tags.highway] + ) { return false; } + + var strings = Object.keys(entity.tags); + + for (var i = 0; i < strings.length; i++) { + var s = strings[i]; + if (past_futures[s] || past_futures[entity.tags[s]]) { return true; } + } + return false; + }); + + // Lines or areas that don't match another feature filter. + // IMPORTANT: The 'others' feature must be the last one defined, + // so that code in getMatches can skip this test if `hasMatch = true` + defineFeature('others', function isOther(entity, resolver, geometry) { + return (geometry === 'line' || geometry === 'area'); + }); + + + function features() {} + + features.features = function() { + return _features; + }; + + features.keys = function() { + return _keys; + }; + + features.enabled = function(k) { + if (!arguments.length) { + return _.filter(_keys, function(k) { return _features[k].enabled; }); + } + return _features[k] && _features[k].enabled; + }; + + features.disabled = function(k) { + if (!arguments.length) { + return _.reject(_keys, function(k) { return _features[k].enabled; }); + } + return _features[k] && !_features[k].enabled; + }; + + features.hidden = function(k) { + if (!arguments.length) { + return _.filter(_keys, function(k) { return _features[k].hidden(); }); + } + return _features[k] && _features[k].hidden(); + }; + + features.autoHidden = function(k) { + if (!arguments.length) { + return _.filter(_keys, function(k) { return _features[k].autoHidden(); }); + } + return _features[k] && _features[k].autoHidden(); + }; + + features.enable = function(k) { + if (_features[k] && !_features[k].enabled) { + _features[k].enable(); + update(); + } + }; + + features.disable = function(k) { + if (_features[k] && _features[k].enabled) { + _features[k].disable(); + update(); + } + }; + + features.toggle = function(k) { + if (_features[k]) { + (function(f) { return f.enabled ? f.disable() : f.enable(); }(_features[k])); + update(); + } + }; + + features.resetStats = function() { + _.each(_features, function(f) { f.count = 0; }); + dispatch.change(); + }; + + features.gatherStats = function(d, resolver, dimensions) { + var needsRedraw = false, + type = _.groupBy(d, function(ent) { return ent.type; }), + entities = [].concat(type.relation || [], type.way || [], type.node || []), + currHidden, geometry, matches; + + _.each(_features, function(f) { f.count = 0; }); + + // adjust the threshold for point/building culling based on viewport size.. + // a _cullFactor of 1 corresponds to a 1000x1000px viewport.. + _cullFactor = dimensions[0] * dimensions[1] / 1000000; + + for (var i = 0; i < entities.length; i++) { + geometry = entities[i].geometry(resolver); + if (!(geometry === 'vertex' || geometry === 'relation')) { + matches = Object.keys(features.getMatches(entities[i], resolver, geometry)); + for (var j = 0; j < matches.length; j++) { + _features[matches[j]].count++; + } + } + } + + currHidden = features.hidden(); + if (currHidden !== _hidden) { + _hidden = currHidden; + needsRedraw = true; + dispatch.change(); + } + + return needsRedraw; + }; + + features.stats = function() { + _.each(_keys, function(k) { _stats[k] = _features[k].count; }); + return _stats; + }; + + features.clear = function(d) { + for (var i = 0; i < d.length; i++) { + features.clearEntity(d[i]); + } + }; + + features.clearEntity = function(entity) { + delete _cache[iD.Entity.key(entity)]; + }; + + features.reset = function() { + _cache = {}; + }; + + features.getMatches = function(entity, resolver, geometry) { + var ent = iD.Entity.key(entity); + + if (!_cache[ent]) { + _cache[ent] = {}; + } + if (!_cache[ent].matches) { + var matches = {}, + hasMatch = false; + + if (!(geometry === 'vertex' || geometry === 'relation')) { + for (var i = 0; i < _keys.length; i++) { + + if (_keys[i] === 'others') { + if (hasMatch) continue; + + // If the entity is a way that has not matched any other + // feature type, see if it has a parent relation, and if so, + // match whatever feature types the parent has matched. + // (The way is a member of a multipolygon.) + // + // IMPORTANT: + // For this to work, getMatches must be called on relations before ways. + // + if (entity.type === 'way') { + var parents = features.getParents(entity, resolver, geometry); + if (parents.length === 1) { + var pkey = iD.Entity.key(parents[0]); + if (_cache[pkey] && _cache[pkey].matches) { + matches = _.clone(_cache[pkey].matches); + continue; + } + } + } + } + + if (_features[_keys[i]].filter(entity, resolver, geometry)) { + matches[_keys[i]] = hasMatch = true; + } + } + } + _cache[ent].matches = matches; + } + return _cache[ent].matches; + }; + + features.getParents = function(entity, resolver, geometry) { + var ent = iD.Entity.key(entity); + + if (!_cache[ent]) { + _cache[ent] = {}; + } + if (!_cache[ent].parents) { + var parents = []; + + if (geometry !== 'point') { + if (geometry === 'vertex') { + parents = resolver.parentWays(entity); + } else { // 'line', 'area', 'relation' + parents = resolver.parentRelations(entity); + } + } + _cache[ent].parents = parents; + } + return _cache[ent].parents; + }; + + features.isHiddenFeature = function(entity, resolver, geometry) { + if (!entity.version) return false; + + var matches = features.getMatches(entity, resolver, geometry); + + for (var i = 0; i < _hidden.length; i++) { + if (matches[_hidden[i]]) { return true; } + } + return false; + }; + + features.isHiddenChild = function(entity, resolver, geometry) { + if (!entity.version || geometry === 'point') { return false; } + + var parents = features.getParents(entity, resolver, geometry); + + if (!parents.length) { return false; } + + for (var i = 0; i < parents.length; i++) { + if (!features.isHidden(parents[i], resolver, parents[i].geometry(resolver))) { + return false; + } + } + return true; + }; + + features.hasHiddenConnections = function(entity, resolver) { + var childNodes, connections; + + if (entity.type === 'midpoint') { + childNodes = [resolver.entity(entity.edge[0]), resolver.entity(entity.edge[1])]; + connections = []; + } else { + childNodes = resolver.childNodes(entity); + connections = features.getParents(entity, resolver, entity.geometry(resolver)); + } + + // gather ways connected to child nodes.. + connections = _.reduce(childNodes, function(result, e) { + return resolver.isShared(e) ? _.union(result, resolver.parentWays(e)) : result; + }, connections); + + return connections.length ? _.any(connections, function(e) { + return features.isHidden(e, resolver, e.geometry(resolver)); + }) : false; + }; + + features.isHidden = function(entity, resolver, geometry) { + if (!entity.version) return false; + + if (geometry === 'vertex') + return features.isHiddenChild(entity, resolver, geometry); + if (geometry === 'point') + return features.isHiddenFeature(entity, resolver, geometry); + + return features.isHiddenFeature(entity, resolver, geometry) || + features.isHiddenChild(entity, resolver, geometry); + }; + + features.filter = function(d, resolver) { + if (!_hidden.length) + return d; + + var result = []; + for (var i = 0; i < d.length; i++) { + var entity = d[i]; + if (!features.isHidden(entity, resolver, entity.geometry(resolver))) { + result.push(entity); + } + } + return result; + }; + + return d3.rebind(features, dispatch, 'on'); +}; iD.GpxLayer = function(context) { var projection, gj = {}, @@ -23482,7 +28823,7 @@ iD.GpxLayer = function(context) { .append('text') .attr('class', 'gpx') .text(function(d) { - return d.properties.name; + return d.properties.desc || d.properties.name; }) .attr('x', function(d) { var centroid = path.centroid(d); @@ -23545,7 +28886,6 @@ iD.Map = function(context) { var dimensions = [1, 1], dispatch = d3.dispatch('move', 'drawn'), projection = context.projection, - roundedProjection = iD.svg.RoundProjection(projection), zoom = d3.behavior.zoom() .translate(projection.translate()) .scale(projection.scale() * 2 * Math.PI) @@ -23555,11 +28895,11 @@ iD.Map = function(context) { transformStart, transformed = false, minzoom = 0, - points = iD.svg.Points(roundedProjection, context), - vertices = iD.svg.Vertices(roundedProjection, context), + points = iD.svg.Points(projection, context), + vertices = iD.svg.Vertices(projection, context), lines = iD.svg.Lines(projection), areas = iD.svg.Areas(projection), - midpoints = iD.svg.Midpoints(roundedProjection, context), + midpoints = iD.svg.Midpoints(projection, context), labels = iD.svg.Labels(projection, context), supersurface, surface, mouse, @@ -23570,14 +28910,16 @@ iD.Map = function(context) { .on('change.map', redraw); context.background() .on('change.map', redraw); + context.features() + .on('redraw.map', redraw); - selection.call(zoom); + selection + .on('dblclick.map', dblClick) + .call(zoom); supersurface = selection.append('div') .attr('id', 'supersurface'); - supersurface.call(context.background()); - // Need a wrapper div because Opera can't cope with an absolutely positioned // SVG element: http://bl.ocks.org/jfirebaugh/6fbfbd922552bf776c16 var dataLayer = supersurface.append('div') @@ -23595,6 +28937,8 @@ iD.Map = function(context) { .attr('id', 'surface') .call(iD.svg.Surface(context)); + supersurface.call(context.background()); + surface.on('mousemove.map', function() { mousemove = d3.event; }); @@ -23619,10 +28963,11 @@ iD.Map = function(context) { if (map.editable() && !transformed) { var all = context.intersects(map.extent()), filter = d3.functor(true), - extent = map.extent(), graph = context.graph(); - surface.call(vertices, graph, all, filter, extent, map.zoom()); - surface.call(midpoints, graph, all, filter, extent); + + all = context.features().filter(all, graph); + surface.call(vertices, graph, all, filter, map.extent(), map.zoom()); + surface.call(midpoints, graph, all, filter, map.trimmedExtent()); dispatch.drawn({full: false}); } }); @@ -23635,82 +28980,71 @@ iD.Map = function(context) { function pxCenter() { return [dimensions[0] / 2, dimensions[1] / 2]; } function drawVector(difference, extent) { - var filter, all, - graph = context.graph(); + var graph = context.graph(), + features = context.features(), + all = context.intersects(map.extent()), + data, filter; if (difference) { var complete = difference.complete(map.extent()); - all = _.compact(_.values(complete)); - filter = function(d) { - if (d.type === 'midpoint') { - - var a = d.edge[0], - b = d.edge[1]; - - // redraw a midpoint if it needs to be - // - moved (either edge node moved) - // - deleted (edge nodes not consecutive in any parent way) - if (a in complete || b in complete) return true; - - var parentsWays = graph.parentWays({ id: a }); - for (var i = 0; i < parentsWays.length; i++) { - var nodes = parentsWays[i].nodes; - for (var n = 0; n < nodes.length; n++) { - if (nodes[n] === a && (nodes[n - 1] === b || nodes[n + 1] === b)) return false; - } - } - return true; + data = _.compact(_.values(complete)); + filter = function(d) { return d.id in complete; }; + features.clear(data); - } else { - return d.id in complete; - } - }; + } else { + // force a full redraw if gatherStats detects that a feature + // should be auto-hidden (e.g. points or buildings).. + if (features.gatherStats(all, graph, dimensions)) { + extent = undefined; + } - } else if (extent) { - all = context.intersects(map.extent().intersection(extent)); - var set = d3.set(_.pluck(all, 'id')); - filter = function(d) { return set.has(d.id); }; + if (extent) { + data = context.intersects(map.extent().intersection(extent)); + var set = d3.set(_.pluck(data, 'id')); + filter = function(d) { return set.has(d.id); }; - } else { - all = context.intersects(map.extent()); - filter = d3.functor(true); + } else { + data = all; + filter = d3.functor(true); + } } + data = features.filter(data, graph); + surface - .call(vertices, graph, all, filter, map.extent(), map.zoom()) - .call(lines, graph, all, filter) - .call(areas, graph, all, filter) - .call(midpoints, graph, all, filter, map.extent()) - .call(labels, graph, all, filter, dimensions, !difference && !extent); - - if (points.points(context.intersects(map.extent()), 100).length >= 100) { - surface.select('.layer-hit').selectAll('g.point').remove(); - } else { - surface.call(points, points.points(all), filter); - } + .call(vertices, graph, data, filter, map.extent(), map.zoom()) + .call(lines, graph, data, filter) + .call(areas, graph, data, filter) + .call(midpoints, graph, data, filter, map.trimmedExtent()) + .call(labels, graph, data, filter, dimensions, !difference && !extent) + .call(points, data, filter); dispatch.drawn({full: true}); } function editOff() { + context.features().resetStats(); surface.selectAll('.layer *').remove(); dispatch.drawn({full: true}); } - function zoomPan() { - if (d3.event && d3.event.sourceEvent.type === 'dblclick') { - if (!dblclickEnabled) { - zoom.scale(projection.scale() * 2 * Math.PI) - .translate(projection.translate()); - return d3.event.sourceEvent.preventDefault(); - } + function dblClick() { + if (!dblclickEnabled) { + d3.event.preventDefault(); + d3.event.stopImmediatePropagation(); } + } - if (Math.log(d3.event.scale / Math.LN2 - 8) < minzoom + 1) { + function zoomPan() { + if (Math.log(d3.event.scale) / Math.LN2 - 8 < minzoom) { + surface.interrupt(); iD.ui.flash(context.container()) .select('.content') .text(t('cannot_zoom')); - return setZoom(16, true); + setZoom(context.minEditableZoom(), true); + queueRedraw(); + dispatch.move(map); + return; } projection @@ -23718,8 +29052,8 @@ iD.Map = function(context) { .scale(d3.event.scale / (2 * Math.PI)); var scale = d3.event.scale / transformStart[0], - tX = Math.round((d3.event.translate[0] / scale - transformStart[1][0]) * scale), - tY = Math.round((d3.event.translate[1] / scale - transformStart[1][1]) * scale); + tX = (d3.event.translate[0] / scale - transformStart[1][0]) * scale, + tY = (d3.event.translate[1] / scale - transformStart[1][1]) * scale; transformed = true; iD.util.setTransform(supersurface, tX, tY, scale); @@ -23736,7 +29070,6 @@ iD.Map = function(context) { } function redraw(difference, extent) { - if (!surface) return; clearTimeout(timeoutId); @@ -23759,7 +29092,7 @@ iD.Map = function(context) { } if (map.editable()) { - context.connection().loadTiles(projection, dimensions); + context.loadTiles(projection, dimensions); drawVector(difference, extent); } else { editOff(); @@ -23806,6 +29139,22 @@ iD.Map = function(context) { return map; }; + function interpolateZoom(_) { + var k = projection.scale(), + t = projection.translate(); + + surface.node().__chart__ = { + x: t[0], + y: t[1], + k: k * 2 * Math.PI + }; + + setZoom(_); + projection.scale(k).translate(t); // undo setZoom projection changes + + zoom.event(surface.transition()); + } + function setZoom(_, force) { if (_ === map.zoom() && !force) return false; @@ -23860,8 +29209,19 @@ iD.Map = function(context) { return redraw(); }; - map.zoomIn = function() { return map.zoom(Math.ceil(map.zoom() + 1)); }; - map.zoomOut = function() { return map.zoom(Math.floor(map.zoom() - 1)); }; + function zoomIn(integer) { + interpolateZoom(~~map.zoom() + integer); + } + + function zoomOut(integer) { + interpolateZoom(~~map.zoom() - integer); + } + + map.zoomIn = function() { zoomIn(1); }; + map.zoomInFurther = function() { zoomIn(4); }; + + map.zoomOut = function() { zoomOut(1); }; + map.zoomOutFurther = function() { zoomOut(4); }; map.center = function(loc) { if (!arguments.length) { @@ -23880,6 +29240,14 @@ iD.Map = function(context) { return Math.max(Math.log(projection.scale() * 2 * Math.PI) / Math.LN2 - 8, 0); } + if (z < minzoom) { + surface.interrupt(); + iD.ui.flash(context.container()) + .select('.content') + .text(t('cannot_zoom')); + z = context.minEditableZoom(); + } + if (setZoom(z)) { dispatch.move(map); } @@ -23888,9 +29256,11 @@ iD.Map = function(context) { }; map.zoomTo = function(entity, zoomLimits) { - var extent = entity.extent(context.graph()), - zoom = map.extentZoom(extent); - zoomLimits = zoomLimits || [16, 20]; + var extent = entity.extent(context.graph()); + if (!isFinite(extent.area())) return; + + var zoom = map.trimmedExtentZoom(extent); + zoomLimits = zoomLimits || [context.minEditableZoom(), 20]; map.centerZoom(extent.center(), Math.min(Math.max(zoom, zoomLimits[0]), zoomLimits[1])); }; @@ -23932,23 +29302,43 @@ iD.Map = function(context) { } }; - map.extentZoom = function(_) { - var extent = iD.geo.Extent(_), - tl = projection([extent[0][0], extent[1][1]]), + map.trimmedExtent = function(_) { + if (!arguments.length) { + var headerY = 60, footerY = 30, pad = 10; + return new iD.geo.Extent(projection.invert([pad, dimensions[1] - footerY - pad]), + projection.invert([dimensions[0] - pad, headerY + pad])); + } else { + var extent = iD.geo.Extent(_); + map.centerZoom(extent.center(), map.trimmedExtentZoom(extent)); + } + }; + + function calcZoom(extent, dim) { + var tl = projection([extent[0][0], extent[1][1]]), br = projection([extent[1][0], extent[0][1]]); // Calculate maximum zoom that fits extent - var hFactor = (br[0] - tl[0]) / dimensions[0], - vFactor = (br[1] - tl[1]) / dimensions[1], + var hFactor = (br[0] - tl[0]) / dim[0], + vFactor = (br[1] - tl[1]) / dim[1], hZoomDiff = Math.log(Math.abs(hFactor)) / Math.LN2, vZoomDiff = Math.log(Math.abs(vFactor)) / Math.LN2, newZoom = map.zoom() - Math.max(hZoomDiff, vZoomDiff); return newZoom; + } + + map.extentZoom = function(_) { + return calcZoom(iD.geo.Extent(_), dimensions); + }; + + map.trimmedExtentZoom = function(_) { + var trimY = 120, trimX = 40, + trimmed = [dimensions[0] - trimX, dimensions[1] - trimY]; + return calcZoom(iD.geo.Extent(_), trimmed); }; map.editable = function() { - return map.zoom() >= 16; + return map.zoom() >= context.minEditableZoom(); }; map.minzoom = function(_) { @@ -23959,6 +29349,165 @@ iD.Map = function(context) { return d3.rebind(map, dispatch, 'on'); }; +iD.MapillaryLayer = function (context) { + var enable = false, + currentImage, + svg, div, request; + + function show(image) { + svg.selectAll('g') + .classed('selected', function(d) { + return currentImage && d.key === currentImage.key; + }); + + div.classed('hidden', false) + .classed('temp', image !== currentImage); + + div.selectAll('img') + .attr('src', 'https://d1cuyjsrcm0gby.cloudfront.net/' + image.key + '/thumb-320.jpg'); + + div.selectAll('a') + .attr('href', 'http://mapillary.com/map/im/' + image.key); + } + + function hide() { + currentImage = undefined; + + svg.selectAll('g') + .classed('selected', false); + + div.classed('hidden', true); + } + + function transform(image) { + var t = 'translate(' + context.projection(image.loc) + ')'; + if (image.ca) t += 'rotate(' + image.ca + ',0,0)'; + return t; + } + + function render(selection) { + svg = selection.selectAll('svg') + .data([0]); + + svg.enter().append('svg') + .on('click', function() { + var image = d3.event.target.__data__; + if (currentImage === image) { + hide(); + } else { + currentImage = image; + show(image); + } + }) + .on('mouseover', function() { + show(d3.event.target.__data__); + }) + .on('mouseout', function() { + if (currentImage) { + show(currentImage); + } else { + hide(); + } + }); + + svg.style('display', enable ? 'block' : 'none'); + + div = context.container().selectAll('.mapillary-image') + .data([0]); + + var enter = div.enter().append('div') + .attr('class', 'mapillary-image'); + + enter.append('button') + .on('click', hide) + .append('div') + .call(iD.svg.Icon('#icon-close')); + + enter.append('img'); + + enter + .append('a') + .attr('class', 'link') + .attr('target', '_blank') + .call(iD.svg.Icon('#icon-out-link', 'inline')) + .append('span') + .text(t('mapillary.view_on_mapillary')); + + if (!enable) { + hide(); + + svg.selectAll('g') + .remove(); + + return; + } + + // Update existing images while waiting for new ones to load. + svg.selectAll('g') + .attr('transform', transform); + + var extent = context.map().extent(); + + if (request) + request.abort(); + + request = d3.json('https://a.mapillary.com/v2/search/s/geojson?client_id=NzNRM2otQkR2SHJzaXJmNmdQWVQ0dzoxNjQ3MDY4ZTUxY2QzNGI2&min_lat=' + + extent[0][1] + '&max_lat=' + extent[1][1] + '&min_lon=' + + extent[0][0] + '&max_lon=' + extent[1][0] + '&max_results=100&geojson=true', + function (error, data) { + if (error) return; + + var images = []; + + for (var i = 0; i < data.features.length; i++) { + var sequence = data.features[i]; + for (var j = 0; j < sequence.geometry.coordinates.length; j++) { + images.push({ + key: sequence.properties.keys[j], + ca: sequence.properties.cas[j], + loc: sequence.geometry.coordinates[j] + }); + if (images.length >= 1000) break; + } + } + + var g = svg.selectAll('g') + .data(images, function(d) { return d.key; }); + + var enter = g.enter().append('g') + .attr('class', 'image'); + + enter.append('path') + .attr('class', 'viewfield') + .attr('transform', 'scale(1.5,1.5),translate(-8, -13)') + .attr('d', 'M 6,9 C 8,8.4 8,8.4 10,9 L 16,-2 C 12,-5 4,-5 0,-2 z'); + + enter.append('circle') + .attr('dx', '0') + .attr('dy', '0') + .attr('r', '6'); + + g.attr('transform', transform); + + g.exit() + .remove(); + }); + } + + render.enable = function(_) { + if (!arguments.length) return enable; + enable = _; + return render; + }; + + render.dimensions = function(_) { + if (!arguments.length) return svg.dimensions(); + svg.dimensions(_); + return render; + }; + + return render; +}; iD.TileLayer = function() { var tileSize = 256, tile = d3.geo.tile(), @@ -23970,7 +29519,7 @@ iD.TileLayer = function() { source = d3.functor(''); function tileSizeAtZoom(d, z) { - return Math.ceil(tileSize * Math.pow(2, z - d[2])) / tileSize; + return (tileSize * Math.pow(2, z - d[2])) / tileSize; } function atZoom(t, distance) { @@ -24030,6 +29579,7 @@ iD.TileLayer = function() { tile().forEach(function(d) { addSource(d); if (d[3] === '') return; + if (typeof d[3] !== 'string') return; // Workaround for chrome crash https://github.com/openstreetmap/iD/issues/2295 requests.push(d); if (cache[d[3]] === false && lookUp(d)) { requests.push(addSource(lookUp(d))); @@ -24043,8 +29593,8 @@ iD.TileLayer = function() { } var pixelOffset = [ - Math.round(source.offset()[0] * Math.pow(2, z)), - Math.round(source.offset()[1] * Math.pow(2, z)) + source.offset()[0] * Math.pow(2, z), + source.offset()[1] * Math.pow(2, z) ]; function load(d) { @@ -24069,8 +29619,8 @@ iD.TileLayer = function() { var _ts = tileSize * Math.pow(2, z - d[2]); var scale = tileSizeAtZoom(d, z); return 'translate(' + - (Math.round((d[0] * _ts) - tileOrigin[0]) + pixelOffset[0]) + 'px,' + - (Math.round((d[1] * _ts) - tileOrigin[1]) + pixelOffset[1]) + 'px)' + + ((d[0] * _ts) - tileOrigin[0] + pixelOffset[0]) + 'px,' + + ((d[1] * _ts) - tileOrigin[1] + pixelOffset[1]) + 'px)' + 'scale(' + scale + ',' + scale + ')'; } @@ -24124,12 +29674,6 @@ iD.TileLayer = function() { return background; }; iD.svg = { - RoundProjection: function(projection) { - return function(d) { - return iD.geo.roundCoords(projection(d)); - }; - }, - PointTransform: function(projection) { return function(entity) { // http://jsperf.com/short-array-join @@ -24138,25 +29682,18 @@ iD.svg = { }; }, - Round: function () { - return d3.geo.transform({ - point: function(x, y) { return this.stream.point(Math.floor(x), Math.floor(y)); } - }); - }, - Path: function(projection, graph, polygon) { var cache = {}, - round = iD.svg.Round().stream, clip = d3.geo.clipExtent().extent(projection.clipExtent()).stream, project = projection.stream, path = d3.geo.path() - .projection({stream: function(output) { return polygon ? project(round(output)) : project(clip(round(output))); }}); + .projection({stream: function(output) { return polygon ? project(output) : project(clip(output)); }}); return function(entity) { if (entity.id in cache) { return cache[entity.id]; } else { - return cache[entity.id] = path(entity.asGeoJSON(graph)); // jshint ignore:line + return cache[entity.id] = path(entity.asGeoJSON(graph)); } }; }, @@ -24168,6 +29705,7 @@ iD.svg = { i = 0, offset = dt, segments = [], + clip = d3.geo.clipExtent().extent(projection.clipExtent()).stream, coordinates = graph.childNodes(entity).map(function(n) { return n.loc; }); @@ -24177,7 +29715,7 @@ iD.svg = { d3.geo.stream({ type: 'LineString', coordinates: coordinates - }, projection.stream({ + }, projection.stream(clip({ lineStart: function() {}, lineEnd: function() { a = null; @@ -24214,7 +29752,7 @@ iD.svg = { a = b; } - })); + }))); return segments; }; @@ -24254,11 +29792,11 @@ iD.svg.Areas = function(projection) { function setPattern(d) { for (var i = 0; i < patternKeys.length; i++) { if (patterns.hasOwnProperty(d.tags[patternKeys[i]])) { - this.style.fill = 'url("#pattern-' + patterns[d.tags[patternKeys[i]]] + '")'; + this.style.fill = this.style.stroke = 'url("#pattern-' + patterns[d.tags[patternKeys[i]]] + '")'; return; } } - this.style.fill = ''; + this.style.fill = this.style.stroke = ''; } return function drawAreas(surface, graph, entities, filter) { @@ -24293,13 +29831,39 @@ iD.svg.Areas = function(projection) { }); var data = { + clip: areas, shadow: strokes, stroke: strokes, fill: areas }; - var paths = surface.selectAll('.layer-shadow, .layer-stroke, .layer-fill') - .selectAll('path.area') + var clipPaths = surface.selectAll('defs').selectAll('.clipPath') + .filter(filter) + .data(data.clip, iD.Entity.key); + + clipPaths.enter() + .append('clipPath') + .attr('class', 'clipPath') + .attr('id', function(entity) { return entity.id + '-clippath'; }) + .append('path'); + + clipPaths.selectAll('path') + .attr('d', path); + + clipPaths.exit() + .remove(); + + var areagroup = surface + .select('.layer-areas') + .selectAll('g.areagroup') + .data(['fill', 'shadow', 'stroke']); + + areagroup.enter() + .append('g') + .attr('class', function(d) { return 'layer areagroup area-' + d; }); + + var paths = areagroup + .selectAll('path') .filter(filter) .data(function(layer) { return data[layer]; }, iD.Entity.key); @@ -24308,7 +29872,7 @@ iD.svg.Areas = function(projection) { paths.exit() .remove(); - var fills = surface.selectAll('.layer-fill path.area')[0]; + var fills = surface.selectAll('.area-fill path.area')[0]; var bisect = d3.bisector(function(node) { return -node.__data__.area(graph); @@ -24328,6 +29892,7 @@ iD.svg.Areas = function(projection) { this.setAttribute('class', entity.type + ' area ' + layer + ' ' + entity.id); if (layer === 'fill') { + this.setAttribute('clip-path', 'url(#' + entity.id + '-clippath)'); setPattern.apply(this, arguments); } }) @@ -24337,6 +29902,129 @@ iD.svg.Areas = function(projection) { .attr('d', path); }; }; +/* + A standalone SVG element that contains only a `defs` sub-element. To be + used once globally, since defs IDs must be unique within a document. +*/ +iD.svg.Defs = function(context) { + + function SVGSpriteDefinition(id, href) { + return function(defs) { + d3.xml(href, 'image/svg+xml', function(err, svg) { + if (err) return; + defs.node().appendChild( + d3.select(svg.documentElement).attr('id', id).node() + ); + }); + }; + } + + return function (selection) { + var defs = selection.append('defs'); + + // marker + defs.append('marker') + .attr({ + id: 'oneway-marker', + viewBox: '0 0 10 10', + refY: 2.5, + refX: 5, + markerWidth: 2, + markerHeight: 2, + markerUnits: 'strokeWidth', + orient: 'auto' + }) + .append('path') + .attr('class', 'oneway') + .attr('d', 'M 5 3 L 0 3 L 0 2 L 5 2 L 5 0 L 10 2.5 L 5 5 z') + .attr('stroke', 'none') + .attr('fill', '#000') + .attr('opacity', '0.5'); + + // patterns + var patterns = defs.selectAll('pattern') + .data([ + // pattern name, pattern image name + ['wetland', 'wetland'], + ['construction', 'construction'], + ['cemetery', 'cemetery'], + ['orchard', 'orchard'], + ['farmland', 'farmland'], + ['beach', 'dots'], + ['scrub', 'dots'], + ['meadow', 'dots'] + ]) + .enter() + .append('pattern') + .attr({ + id: function (d) { + return 'pattern-' + d[0]; + }, + width: 32, + height: 32, + patternUnits: 'userSpaceOnUse' + }); + + patterns.append('rect') + .attr({ + x: 0, + y: 0, + width: 32, + height: 32, + 'class': function (d) { + return 'pattern-color-' + d[0]; + } + }); + + patterns.append('image') + .attr({ + x: 0, + y: 0, + width: 32, + height: 32 + }) + .attr('xlink:href', function (d) { + return context.imagePath('pattern/' + d[1] + '.png'); + }); + + // clip paths + defs.selectAll() + .data([12, 18, 20, 32, 45]) + .enter().append('clipPath') + .attr('id', function (d) { + return 'clip-square-' + d; + }) + .append('rect') + .attr('x', 0) + .attr('y', 0) + .attr('width', function (d) { + return d; + }) + .attr('height', function (d) { + return d; + }); + + defs.call(SVGSpriteDefinition( + 'iD-sprite', + context.imagePath('iD-sprite.svg'))); + + defs.call(SVGSpriteDefinition( + 'maki-sprite', + context.imagePath('maki-sprite.svg'))); + }; +}; +iD.svg.Icon = function(name, svgklass, useklass) { + return function (selection) { + selection.selectAll('svg') + .data([0]) + .enter() + .append('svg') + .attr('class', 'icon ' + (svgklass || '')) + .append('use') + .attr('xlink:href', name) + .attr('class', useklass); + }; +}; iD.svg.Labels = function(projection, context) { var path = d3.geo.path().projection(projection); @@ -24500,19 +30188,20 @@ iD.svg.Labels = function(projection, context) { } function drawAreaIcons(group, entities, filter, classes, labels) { - var icons = group.selectAll('use') .filter(filter) .data(entities, iD.Entity.key); icons.enter() .append('use') - .attr('clip-path', 'url(#clip-square-18)') - .attr('class', 'icon'); + .attr('class', 'icon areaicon') + .attr('width', '18px') + .attr('height', '18px'); icons.attr('transform', get(labels, 'transform')) .attr('xlink:href', function(d) { - return '#maki-' + context.presets().match(d, context.graph()).icon + '-18'; + var icon = context.presets().match(d, context.graph()).icon; + return '#' + icon + (icon === 'hairdresser' ? '-24': '-18'); // workaround: maki hairdresser-18 broken? }); @@ -24521,7 +30210,7 @@ iD.svg.Labels = function(projection, context) { function reverse(p) { var angle = Math.atan2(p[1][1] - p[0][1], p[1][0] - p[0][0]); - return !(p[0][0] < p[p.length - 1][0] && angle < Math.PI/2 && angle > - Math.PI/2); + return !(p[0][0] < p[p.length - 1][0] && angle < Math.PI/2 && angle > -Math.PI/2); } function lineString(nodes) { @@ -24618,7 +30307,7 @@ iD.svg.Labels = function(projection, context) { if (!icon && !iD.util.displayName(entity)) continue; - for (k = 0; k < label_stack.length; k ++) { + for (k = 0; k < label_stack.length; k++) { if (geometry === label_stack[k][0] && entity.tags[label_stack[k][1]]) { labelable[k].push(entity); break; @@ -24641,7 +30330,7 @@ iD.svg.Labels = function(projection, context) { // Try and find a valid label for labellable entities for (k = 0; k < labelable.length; k++) { var font_size = font_sizes[k]; - for (i = 0; i < labelable[k].length; i ++) { + for (i = 0; i < labelable[k].length; i++) { entity = labelable[k][i]; var name = iD.util.displayName(entity), width = name && textWidth(name, font_size), @@ -24682,7 +30371,7 @@ iD.svg.Labels = function(projection, context) { length = iD.geo.pathLength(nodes); if (length < width + 20) return; - for (var i = 0; i < lineOffsets.length; i ++) { + for (var i = 0; i < lineOffsets.length; i++) { var offset = lineOffsets[i], middle = offset / 100 * length, start = middle - width/2; @@ -24710,7 +30399,7 @@ iD.svg.Labels = function(projection, context) { entitywidth = projection(extent[1])[0] - projection(extent[0])[0], rect; - if (!centroid || entitywidth < 20) return; + if (isNaN(centroid[0]) || entitywidth < 20) return; var iconX = centroid[0] - (iconSize/2), iconY = centroid[1] - (iconSize/2), @@ -24796,80 +30485,98 @@ iD.svg.Lines = function(projection) { }; function waystack(a, b) { - if (!a || !b || !a.tags || !b.tags) return 0; - if (a.tags.layer !== undefined && b.tags.layer !== undefined) { - return a.tags.layer - b.tags.layer; - } - if (a.tags.bridge) return 1; - if (b.tags.bridge) return -1; - if (a.tags.tunnel) return -1; - if (b.tags.tunnel) return 1; var as = 0, bs = 0; - if (a.tags.highway && b.tags.highway) { - as -= highway_stack[a.tags.highway]; - bs -= highway_stack[b.tags.highway]; - } + + if (a.tags.highway) { as -= highway_stack[a.tags.highway]; } + if (b.tags.highway) { bs -= highway_stack[b.tags.highway]; } return as - bs; } return function drawLines(surface, graph, entities, filter) { - var lines = [], - path = iD.svg.Path(projection, graph); + var ways = [], pathdata = {}, onewaydata = {}, + getPath = iD.svg.Path(projection, graph); for (var i = 0; i < entities.length; i++) { var entity = entities[i], outer = iD.geo.simpleMultipolygonOuterMember(entity, graph); if (outer) { - lines.push(entity.mergeTags(outer.tags)); + ways.push(entity.mergeTags(outer.tags)); } else if (entity.geometry(graph) === 'line') { - lines.push(entity); + ways.push(entity); } } - lines = lines.filter(path); - lines.sort(waystack); + ways = ways.filter(getPath); - function drawPaths(klass) { - var paths = surface.select('.layer-' + klass) - .selectAll('path.line') - .filter(filter) - .data(lines, iD.Entity.key); + pathdata = _.groupBy(ways, function(way) { return way.layer(); }); - var enter = paths.enter() - .append('path') - .attr('class', function(d) { return 'way line ' + klass + ' ' + d.id; }); + _.forOwn(pathdata, function(v, k) { + onewaydata[k] = _(v) + .filter(function(d) { return d.isOneWay(); }) + .map(iD.svg.OneWaySegments(projection, graph, 35)) + .flatten() + .valueOf(); + }); - // Optimization: call simple TagClasses only on enter selection. This - // works because iD.Entity.key is defined to include the entity v attribute. - if (klass !== 'stroke') { - enter.call(iD.svg.TagClasses()); - } else { - paths.call(iD.svg.TagClasses() - .tags(iD.svg.MultipolygonMemberTags(graph))); - } + var layergroup = surface + .select('.layer-lines') + .selectAll('g.layergroup') + .data(d3.range(-10, 11)); - paths - .order() - .attr('d', path); + layergroup.enter() + .append('g') + .attr('class', function(d) { return 'layer layergroup layer' + String(d); }); - paths.exit() - .remove(); - } - drawPaths('shadow'); - drawPaths('casing'); - drawPaths('stroke'); + var linegroup = layergroup + .selectAll('g.linegroup') + .data(['shadow', 'casing', 'stroke']); + + linegroup.enter() + .append('g') + .attr('class', function(d) { return 'layer linegroup line-' + d; }); + + + var lines = linegroup + .selectAll('path') + .filter(filter) + .data( + function() { return pathdata[this.parentNode.parentNode.__data__] || []; }, + iD.Entity.key + ); + + // Optimization: call simple TagClasses only on enter selection. This + // works because iD.Entity.key is defined to include the entity v attribute. + lines.enter() + .append('path') + .attr('class', function(d) { return 'way line ' + this.parentNode.__data__ + ' ' + d.id; }) + .call(iD.svg.TagClasses()); + + lines + .sort(waystack) + .attr('d', getPath) + .call(iD.svg.TagClasses().tags(iD.svg.MultipolygonMemberTags(graph))); + + lines.exit() + .remove(); + - var segments = _(lines) - .filter(function(d) { return d.isOneWay(); }) - .map(iD.svg.OneWaySegments(projection, graph, 35)) - .flatten() - .valueOf(); + var onewaygroup = layergroup + .selectAll('g.onewaygroup') + .data(['oneway']); - var oneways = surface.select('.layer-oneway') - .selectAll('path.oneway') + onewaygroup.enter() + .append('g') + .attr('class', 'layer onewaygroup'); + + + var oneways = onewaygroup + .selectAll('path') .filter(filter) - .data(segments, function(d) { return [d.id, d.index]; }); + .data( + function() { return onewaydata[this.parentNode.parentNode.__data__] || []; }, + function(d) { return [d.id, d.index]; } + ); oneways.enter() .append('path') @@ -24877,72 +30584,117 @@ iD.svg.Lines = function(projection) { .attr('marker-mid', 'url(#oneway-marker)'); oneways - .order() .attr('d', function(d) { return d.d; }); + if (iD.detect().ie) { + oneways.each(function() { this.parentNode.insertBefore(this, this); }); + } + oneways.exit() .remove(); + }; }; iD.svg.Midpoints = function(projection, context) { return function drawMidpoints(surface, graph, entities, filter, extent) { - var midpoints = {}; + var poly = extent.polygon(), + midpoints = {}; for (var i = 0; i < entities.length; i++) { var entity = entities[i]; - if (entity.type !== 'way') continue; - if (context.selectedIDs().indexOf(entity.id) < 0) continue; + if (entity.type !== 'way') + continue; + if (!filter(entity)) + continue; + if (context.selectedIDs().indexOf(entity.id) < 0) + continue; var nodes = graph.childNodes(entity); - - // skip the last node because it is always repeated for (var j = 0; j < nodes.length - 1; j++) { var a = nodes[j], b = nodes[j + 1], id = [a.id, b.id].sort().join('-'); - // Redraw midpoints in two cases: - // 1. One of the two endpoint nodes changed (e.g. was moved). - // 2. A node was deleted. The midpoint between the two new - // endpoints needs to be redrawn. In this case only the - // way will be in the diff. - if (!midpoints[id] && (filter(a) || filter(b) || filter(entity))) { - var loc = iD.geo.interp(a.loc, b.loc, 0.5); - if (extent.intersects(loc) && iD.geo.euclideanDistance(projection(a.loc), projection(b.loc)) > 40) { - midpoints[id] = { - type: 'midpoint', - id: id, - loc: loc, - edge: [a.id, b.id] - }; + if (midpoints[id]) { + midpoints[id].parents.push(entity); + } else { + if (iD.geo.euclideanDistance(projection(a.loc), projection(b.loc)) > 40) { + var point = iD.geo.interp(a.loc, b.loc, 0.5), + loc = null; + + if (extent.intersects(point)) { + loc = point; + } else { + for (var k = 0; k < 4; k++) { + point = iD.geo.lineIntersection([a.loc, b.loc], [poly[k], poly[k+1]]); + if (point && + iD.geo.euclideanDistance(projection(a.loc), projection(point)) > 20 && + iD.geo.euclideanDistance(projection(b.loc), projection(point)) > 20) + { + loc = point; + break; + } + } + } + + if (loc) { + midpoints[id] = { + type: 'midpoint', + id: id, + loc: loc, + edge: [a.id, b.id], + parents: [entity] + }; + } } } } } + function midpointFilter(d) { + if (midpoints[d.id]) + return true; + + for (var i = 0; i < d.parents.length; i++) + if (filter(d.parents[i])) + return true; + + return false; + } + var groups = surface.select('.layer-hit').selectAll('g.midpoint') - .filter(filter) + .filter(midpointFilter) .data(_.values(midpoints), function(d) { return d.id; }); - var group = groups.enter() + var enter = groups.enter() .insert('g', ':first-child') .attr('class', 'midpoint'); - group.append('circle') - .attr('r', 7) + enter.append('polygon') + .attr('points', '-6,8 10,0 -6,-8') .attr('class', 'shadow'); - group.append('circle') - .attr('r', 3) + enter.append('polygon') + .attr('points', '-3,4 5,0 -3,-4') .attr('class', 'fill'); - groups.attr('transform', iD.svg.PointTransform(projection)); + groups + .attr('transform', function(d) { + var translate = iD.svg.PointTransform(projection), + a = context.entity(d.edge[0]), + b = context.entity(d.edge[1]), + angle = Math.round(iD.geo.angle(a, b, projection) * (180 / Math.PI)); + return translate(d) + ' rotate(' + angle + ')'; + }) + .call(iD.svg.TagClasses().tags( + function(d) { return d.parents[0].tags; } + )); // Propagate data bindings. - groups.select('circle.shadow'); - groups.select('circle.fill'); + groups.select('polygon.shadow'); + groups.select('polygon.fill'); groups.exit() .remove(); @@ -24960,7 +30712,13 @@ iD.svg.Points = function(projection, context) { return b.loc[1] - a.loc[1]; } - function drawPoints(surface, points, filter) { + return function drawPoints(surface, entities, filter) { + var graph = context.graph(), + wireframe = surface.classed('fill-wireframe'), + points = wireframe ? [] : _.filter(entities, function(e) { + return e.geometry(graph) === 'point'; + }); + points.sort(sortY); var groups = surface.select('.layer-hit').selectAll('g.point') @@ -24979,9 +30737,10 @@ iD.svg.Points = function(projection, context) { .call(markerPath, 'stroke'); group.append('use') - .attr('class', 'icon') .attr('transform', 'translate(-6, -20)') - .attr('clip-path', 'url(#clip-square-12)'); + .attr('class', 'icon') + .attr('width', '12px') + .attr('height', '12px'); groups.attr('transform', iD.svg.PointTransform(projection)) .call(iD.svg.TagClasses()); @@ -24993,238 +30752,49 @@ iD.svg.Points = function(projection, context) { groups.select('.icon') .attr('xlink:href', function(entity) { var preset = context.presets().match(entity, context.graph()); - return preset.icon ? '#maki-' + preset.icon + '-12' : ''; + return preset.icon ? '#' + preset.icon + '-12' : ''; }); groups.exit() .remove(); - } - - drawPoints.points = function(entities, limit) { - var graph = context.graph(), - points = []; - - for (var i = 0; i < entities.length; i++) { - var entity = entities[i]; - if (entity.geometry(graph) === 'point') { - points.push(entity); - if (limit && points.length >= limit) break; - } - } - - return points; - }; - - return drawPoints; -}; -iD.svg.Restrictions = function(context) { - var projection = context.projection; - - function drawRestrictions(surface) { - var turns = drawRestrictions.turns(context.graph(), context.selectedIDs()); - - var groups = surface.select('.layer-hit').selectAll('g.restriction') - .data(turns, iD.Entity.key); - - var enter = groups.enter().append('g') - .attr('class', 'restriction'); - - enter.append('circle') - .attr('class', 'restriction') - .attr('r', 4); - - groups - .attr('transform', function(restriction) { - var via = context.entity(restriction.memberByRole('via').id); - return iD.svg.PointTransform(projection)(via); - }); - - groups.exit() - .remove(); - - return this; - } - - drawRestrictions.turns = function (graph, selectedIDs) { - if (selectedIDs.length !== 1) - return []; - - var from = graph.entity(selectedIDs[0]); - if (from.type !== 'way') - return []; - - return graph.parentRelations(from).filter(function(relation) { - var f = relation.memberById(from.id), - t = relation.memberByRole('to'), - v = relation.memberByRole('via'); - - return relation.tags.type === 'restriction' && f.role === 'from' && - t && t.type === 'way' && graph.hasEntity(t.id) && - v && v.type === 'node' && graph.hasEntity(v.id) && - !graph.entity(t.id).isDegenerate() && - !graph.entity(f.id).isDegenerate() && - graph.entity(t.id).affix(v.id) && - graph.entity(f.id).affix(v.id); - }); }; - - drawRestrictions.datum = function(graph, from, restriction, projection) { - var to = graph.entity(restriction.memberByRole('to').id), - a = graph.entity(restriction.memberByRole('via').id), - b; - - if (to.first() === a.id) { - b = graph.entity(to.nodes[1]); - } else { - b = graph.entity(to.nodes[to.nodes.length - 2]); - } - - a = projection(a.loc); - b = projection(b.loc); - - return { - from: from, - to: to, - restriction: restriction, - angle: Math.atan2(b[1] - a[1], b[0] - a[0]) - }; - }; - - return drawRestrictions; }; -iD.svg.Surface = function(context) { - function autosize(image) { - var img = document.createElement('img'); - img.src = image.attr('xlink:href'); - img.onload = function() { - image.attr({ - width: img.width, - height: img.height - }); - }; - } - - function SpriteDefinition(id, href, data) { - return function(defs) { - defs.append('image') - .attr('id', id) - .attr('xlink:href', href) - .call(autosize); - - defs.selectAll() - .data(data) - .enter().append('use') - .attr('id', function(d) { return d.key; }) - .attr('transform', function(d) { return 'translate(-' + d.value[0] + ',-' + d.value[1] + ')'; }) - .attr('xlink:href', '#' + id); - }; - } - - return function drawSurface(selection) { - var defs = selection.append('defs'); - - defs.append('marker') - .attr({ - id: 'oneway-marker', - viewBox: '0 0 10 10', - refY: 2.5, - refX: 5, - markerWidth: 2, - markerHeight: 2, - orient: 'auto' - }) - .append('path') - .attr('d', 'M 5 3 L 0 3 L 0 2 L 5 2 L 5 0 L 10 2.5 L 5 5 z'); - - var patterns = defs.selectAll('pattern') - .data([ - // pattern name, pattern image name - ['wetland', 'wetland'], - ['construction', 'construction'], - ['cemetery', 'cemetery'], - ['orchard', 'orchard'], - ['farmland', 'farmland'], - ['beach', 'dots'], - ['scrub', 'dots'], - ['meadow', 'dots']]) +iD.svg.Surface = function() { + return function (selection) { + selection.selectAll('defs') + .data([0]) .enter() - .append('pattern') - .attr({ - id: function(d) { return 'pattern-' + d[0]; }, - width: 32, - height: 32, - patternUnits: 'userSpaceOnUse' - }); - - patterns.append('rect') - .attr({ - x: 0, - y: 0, - width: 32, - height: 32, - 'class': function(d) { return 'pattern-color-' + d[0]; } - }); - - patterns.append('image') - .attr({ - x: 0, - y: 0, - width: 32, - height: 32 - }) - .attr('xlink:href', function(d) { return context.imagePath('pattern/' + d[1] + '.png'); }); - - defs.selectAll() - .data([12, 18, 20]) - .enter().append('clipPath') - .attr('id', function(d) { return 'clip-square-' + d; }) - .append('rect') - .attr('x', 0) - .attr('y', 0) - .attr('width', function(d) { return d; }) - .attr('height', function(d) { return d; }); - - var maki = []; - _.forEach(iD.data.featureIcons, function(dimensions, name) { - if (dimensions['12'] && dimensions['18'] && dimensions['24']) { - maki.push({key: 'maki-' + name + '-12', value: dimensions['12']}); - maki.push({key: 'maki-' + name + '-18', value: dimensions['18']}); - maki.push({key: 'maki-' + name + '-24', value: dimensions['24']}); - } - }); - - defs.call(SpriteDefinition( - 'sprite', - context.imagePath('sprite.svg'), - d3.entries(iD.data.operations))); - - defs.call(SpriteDefinition( - 'maki-sprite', - context.imagePath('maki-sprite.png'), - maki)); + .append('defs'); var layers = selection.selectAll('.layer') - .data(['fill', 'shadow', 'casing', 'stroke', 'oneway', 'hit', 'halo', 'label']); + .data(['areas', 'lines', 'hit', 'halo', 'label']); layers.enter().append('g') .attr('class', function(d) { return 'layer layer-' + d; }); }; }; iD.svg.TagClasses = function() { - var primary = [ + var primaries = [ 'building', 'highway', 'railway', 'waterway', 'aeroway', 'motorway', 'boundary', 'power', 'amenity', 'natural', 'landuse', 'leisure', 'place' ], - secondary = [ - 'oneway', 'bridge', 'tunnel', 'construction', 'embankment', 'cutting' + statuses = [ + 'proposed', 'construction', 'disused', 'abandoned', 'dismantled', + 'razed', 'demolished', 'obliterated' + ], + secondaries = [ + 'oneway', 'bridge', 'tunnel', 'embankment', 'cutting', 'barrier', + 'surface', 'tracktype' ], tagClassRe = /^tag-/, tags = function(entity) { return entity.tags; }; + var tagClasses = function(selection) { selection.each(function tagClassesEach(entity) { - var classes, value = this.className; + var value = this.className, + classes, primary, status; if (value.baseVal !== undefined) value = value.baseVal; @@ -25234,21 +30804,72 @@ iD.svg.TagClasses = function() { var t = tags(entity), i, k, v; - for (i = 0; i < primary.length; i++) { - k = primary[i]; + // pick at most one primary classification tag.. + for (i = 0; i < primaries.length; i++) { + k = primaries[i]; v = t[k]; if (!v || v === 'no') continue; - classes += ' tag-' + k + ' tag-' + k + '-' + v; + + primary = k; + if (statuses.indexOf(v) !== -1) { // e.g. `railway=abandoned` + status = v; + classes += ' tag-' + k; + } else { + classes += ' tag-' + k + ' tag-' + k + '-' + v; + } + break; } - for (i = 0; i < secondary.length; i++) { - k = secondary[i]; + // add at most one status tag, only if relates to primary tag.. + if (!status) { + for (i = 0; i < statuses.length; i++) { + k = statuses[i]; + v = t[k]; + if (!v || v === 'no') continue; + + if (v === 'yes') { // e.g. `railway=rail + abandoned=yes` + status = k; + } + else if (primary && primary === v) { // e.g. `railway=rail + abandoned=railway` + status = k; + } else if (!primary && primaries.indexOf(v) !== -1) { // e.g. `abandoned=railway` + status = k; + primary = v; + classes += ' tag-' + v; + } // else ignore e.g. `highway=path + abandoned=railway` + + if (status) break; + } + } + + if (status) { + classes += ' tag-status tag-status-' + status; + } + + // add any secondary (structure) tags + for (i = 0; i < secondaries.length; i++) { + k = secondaries[i]; v = t[k]; if (!v || v === 'no') continue; classes += ' tag-' + k + ' tag-' + k + '-' + v; } + // For highways, look for surface tagging.. + if (primary === 'highway') { + var paved = (t.highway !== 'track'); + for (k in t) { + v = t[k]; + if (k in iD.pavedTags) { + paved = !!iD.pavedTags[k][v]; + break; + } + } + if (!paved) { + classes += ' tag-unpaved'; + } + } + classes = classes.trim(); if (classes !== value) { @@ -25265,6 +30886,79 @@ iD.svg.TagClasses = function() { return tagClasses; }; +iD.svg.Turns = function(projection) { + return function(surface, graph, turns) { + function key(turn) { + return [turn.from.node + turn.via.node + turn.to.node].join('-'); + } + + function icon(turn) { + var u = turn.u ? '-u' : ''; + if (!turn.restriction) + return '#turn-yes' + u; + var restriction = graph.entity(turn.restriction).tags.restriction; + return '#turn-' + + (!turn.indirect_restriction && /^only_/.test(restriction) ? 'only' : 'no') + u; + } + + var groups = surface.select('.layer-hit').selectAll('g.turn') + .data(turns, key); + + // Enter + var enter = groups.enter().append('g') + .attr('class', 'turn'); + + var nEnter = enter.filter(function (turn) { return !turn.u; }); + + nEnter.append('rect') + .attr('transform', 'translate(-22, -12)') + .attr('width', '44') + .attr('height', '24'); + + nEnter.append('use') + .attr('transform', 'translate(-22, -12)') + .attr('width', '44') + .attr('height', '24'); + + + var uEnter = enter.filter(function (turn) { return turn.u; }); + + uEnter.append('circle') + .attr('r', '16'); + + uEnter.append('use') + .attr('transform', 'translate(-16, -16)') + .attr('width', '32') + .attr('height', '32'); + + + // Update + groups + .attr('transform', function (turn) { + var v = graph.entity(turn.via.node), + t = graph.entity(turn.to.node), + a = iD.geo.angle(v, t, projection), + p = projection(v.loc), + r = turn.u ? 0 : 60; + + return 'translate(' + (r * Math.cos(a) + p[0]) + ',' + (r * Math.sin(a) + p[1]) + ') ' + + 'rotate(' + a * 180 / Math.PI + ')'; + }); + + groups.select('use') + .attr('xlink:href', icon); + + groups.select('rect'); + groups.select('circle'); + + + // Exit + groups.exit() + .remove(); + + return this; + }; +}; iD.svg.Vertices = function(projection, context) { var radiuses = { // z16-, z17, z18+, tagged @@ -25279,20 +30973,22 @@ iD.svg.Vertices = function(projection, context) { var vertices = {}; function addChildVertices(entity) { - var i; - if (entity.type === 'way') { - for (i = 0; i < entity.nodes.length; i++) { - addChildVertices(graph.entity(entity.nodes[i])); - } - } else if (entity.type === 'relation') { - for (i = 0; i < entity.members.length; i++) { - var member = context.hasEntity(entity.members[i].id); - if (member) { - addChildVertices(member); + if (!context.features().isHiddenFeature(entity, graph, entity.geometry(graph))) { + var i; + if (entity.type === 'way') { + for (i = 0; i < entity.nodes.length; i++) { + addChildVertices(graph.entity(entity.nodes[i])); } + } else if (entity.type === 'relation') { + for (i = 0; i < entity.members.length; i++) { + var member = context.hasEntity(entity.members[i].id); + if (member) { + addChildVertices(member); + } + } + } else if (entity.intersects(extent, graph)) { + vertices[entity.id] = entity; } - } else if (entity.intersects(extent, graph)) { - vertices[entity.id] = entity; } } @@ -25311,65 +31007,93 @@ iD.svg.Vertices = function(projection, context) { return vertices; } - function draw(groups, vertices, klass, graph, zoom) { - groups = groups.data(vertices, function(entity) { - return iD.Entity.key(entity) + ',' + zoom; - }); + function draw(selection, vertices, klass, graph, zoom) { + var icons = {}, + z; if (zoom < 17) { - zoom = 0; + z = 0; } else if (zoom < 18) { - zoom = 1; + z = 1; } else { - zoom = 2; + z = 2; } - var icons = {}; + var groups = selection.data(vertices, function(entity) { + return iD.Entity.key(entity); + }); + function icon(entity) { if (entity.id in icons) return icons[entity.id]; - icons[entity.id] = zoom !== 0 && + icons[entity.id] = entity.hasInterestingTags() && context.presets().match(entity, graph).icon; return icons[entity.id]; } - function circle(klass) { - var rads = radiuses[klass]; + function setClass(klass) { return function(entity) { - var i = icon(entity), - c = i ? 0.5 : 0, - r = rads[i ? 3 : zoom]; this.setAttribute('class', 'node vertex ' + klass + ' ' + entity.id); - this.setAttribute('cx', c); - this.setAttribute('cy', -c); - this.setAttribute('r', r); }; } - var enter = groups.enter().append('g') + function setAttributes(selection) { + ['shadow','stroke','fill'].forEach(function(klass) { + var rads = radiuses[klass]; + selection.selectAll('.' + klass) + .each(function(entity) { + var i = z && icon(entity), + c = i ? 0.5 : 0, + r = rads[i ? 3 : z]; + this.setAttribute('cx', c); + this.setAttribute('cy', -c); + this.setAttribute('r', r); + if (i && klass === 'fill') { + this.setAttribute('visibility', 'hidden'); + } else { + this.removeAttribute('visibility'); + } + }); + }); + + selection.selectAll('use') + .each(function() { + if (z) { + this.removeAttribute('visibility'); + } else { + this.setAttribute('visibility', 'hidden'); + } + }); + } + + var enter = groups.enter() + .append('g') .attr('class', function(d) { return 'node vertex ' + klass + ' ' + d.id; }); enter.append('circle') - .each(circle('shadow')); + .each(setClass('shadow')); enter.append('circle') - .each(circle('stroke')); + .each(setClass('stroke')); // Vertices with icons get a `use`. enter.filter(function(d) { return icon(d); }) .append('use') .attr('transform', 'translate(-6, -6)') - .attr('clip-path', 'url(#clip-square-12)') - .attr('xlink:href', function(d) { return '#maki-' + icon(d) + '-12'; }); + .attr('xlink:href', function(d) { return '#' + icon(d) + '-12'; }) + .attr('width', '12px') + .attr('height', '12px') + .each(setClass('icon')); - // Vertices with tags get a `circle`. - enter.filter(function(d) { return !icon(d) && d.hasInterestingTags(); }) + // Vertices with tags get a fill. + enter.filter(function(d) { return d.hasInterestingTags(); }) .append('circle') - .each(circle('fill')); + .each(setClass('fill')); groups .attr('transform', iD.svg.PointTransform(projection)) - .classed('shared', function(entity) { return graph.isShared(entity); }); + .classed('shared', function(entity) { return graph.isShared(entity); }) + .call(setAttributes); groups.exit() .remove(); @@ -25377,12 +31101,19 @@ iD.svg.Vertices = function(projection, context) { function drawVertices(surface, graph, entities, filter, extent, zoom) { var selected = siblingAndChildVertices(context.selectedIDs(), graph, extent), + wireframe = surface.classed('fill-wireframe'), vertices = []; for (var i = 0; i < entities.length; i++) { - var entity = entities[i]; + var entity = entities[i], + geometry = entity.geometry(graph); - if (entity.geometry(graph) !== 'vertex') + if (wireframe && geometry === 'point') { + vertices.push(entity); + continue; + } + + if (geometry !== 'vertex') continue; if (entity.id in selected || @@ -25426,9 +31157,13 @@ iD.ui = function(context) { hash(); if (!hash.hadHash) { - map.centerZoom([-77.02271, 38.90085], 20); + map.centerZoom([0, 0], 2); } + container.append('svg') + .attr('id', 'defs') + .call(iD.svg.Defs(context)); + container.append('div') .attr('id', 'sidebar') .attr('class', 'col4') @@ -25445,6 +31180,16 @@ iD.ui = function(context) { .attr('id', 'map') .call(map); + content.append('div') + .attr('class', 'map-in-map') + .style('display', 'none') + .call(iD.ui.MapInMap(context)); + + content.append('div') + .attr('class', 'infobox fillD2') + .style('display', 'none') + .call(iD.ui.Info(context)); + bar.append('div') .attr('class', 'spacer col4'); @@ -25463,17 +31208,14 @@ iD.ui = function(context) { .attr('class', 'button-wrap col1') .call(iD.ui.Save(context)); + bar.append('div') + .attr('class', 'full-screen') + .call(iD.ui.FullScreen(context)); + bar.append('div') .attr('class', 'spinner') .call(iD.ui.Spinner(context)); - content - .call(iD.ui.Attribution(context)); - - content.append('div') - .style('display', 'none') - .attr('class', 'help-wrap map-overlay fillL col5 content'); - var controls = bar.append('div') .attr('class', 'map-controls'); @@ -25489,49 +31231,77 @@ iD.ui = function(context) { .attr('class', 'map-control background-control') .call(iD.ui.Background(context)); + controls.append('div') + .attr('class', 'map-control map-data-control') + .call(iD.ui.MapData(context)); + controls.append('div') .attr('class', 'map-control help-control') .call(iD.ui.Help(context)); var about = content.append('div') - .attr('class','col12 about-block fillD'); + .attr('id', 'about'); about.append('div') + .attr('id', 'attrib') + .call(iD.ui.Attribution(context)); + + var footer = about.append('div') + .attr('id', 'footer') + .attr('class', 'fillD'); + + footer.append('div') .attr('class', 'api-status') .call(iD.ui.Status(context)); + footer.append('div') + .attr('id', 'scale-block') + .call(iD.ui.Scale(context)); + + var aboutList = footer.append('div') + .attr('id', 'info-block') + .append('ul') + .attr('id', 'about-list'); + if (!context.embed()) { - about.append('div') - .attr('class', 'account') - .call(iD.ui.Account(context)); + aboutList.call(iD.ui.Account(context)); } - var linkList = about.append('ul') - .attr('id', 'about') - .attr('class', 'link-list'); - - linkList.append('li') + aboutList.append('li') .append('a') .attr('target', '_blank') .attr('tabindex', -1) .attr('href', 'http://github.com/openstreetmap/iD') .text(iD.version); - var bugReport = linkList.append('li') - .append('a') + var issueLinks = aboutList.append('li'); + + issueLinks.append('a') .attr('target', '_blank') .attr('tabindex', -1) - .attr('href', 'https://github.com/openstreetmap/iD/issues'); - - bugReport.append('span') - .attr('class','icon bug light'); - - bugReport.call(bootstrap.tooltip() + .attr('href', 'https://github.com/openstreetmap/iD/issues') + .call(iD.svg.Icon('#icon-bug', 'light')) + .call(bootstrap.tooltip() .title(t('report_a_bug')) .placement('top') ); - linkList.append('li') + issueLinks.append('a') + .attr('target', '_blank') + .attr('tabindex', -1) + .attr('href', 'https://github.com/openstreetmap/iD/blob/master/CONTRIBUTING.md#translating') + .call(iD.svg.Icon('#icon-translate', 'light')) + .call(bootstrap.tooltip() + .title(t('help_translate')) + .placement('top') + ); + + aboutList.append('li') + .attr('class', 'feature-warning') + .attr('tabindex', -1) + .call(iD.ui.FeatureInfo(context)); + + aboutList.append('li') .attr('class', 'user-list') .attr('tabindex', -1) .call(iD.ui.Contributors(context)); @@ -25544,25 +31314,37 @@ iD.ui = function(context) { context.history().unlock(); }; + var mapDimensions = map.dimensions(); + d3.select(window).on('resize.editor', function() { + mapDimensions = m.dimensions(); map.dimensions(m.dimensions()); }); function pan(d) { return function() { + d3.event.preventDefault(); context.pan(d); }; } // pan amount - var pa = 5; + var pa = 10; var keybinding = d3.keybinding('main') .on('⌫', function() { d3.event.preventDefault(); }) .on('←', pan([pa, 0])) .on('↑', pan([0, pa])) .on('→', pan([-pa, 0])) - .on('↓', pan([0, -pa])); + .on('↓', pan([0, -pa])) + .on('⇧←', pan([mapDimensions[0], 0])) + .on('⇧↑', pan([0, mapDimensions[1]])) + .on('⇧→', pan([-mapDimensions[0], 0])) + .on('⇧↓', pan([0, -mapDimensions[1]])) + .on(iD.ui.cmd('⌘←'), pan([mapDimensions[0], 0])) + .on(iD.ui.cmd('⌘↑'), pan([0, mapDimensions[1]])) + .on(iD.ui.cmd('⌘→'), pan([-mapDimensions[0], 0])) + .on(iD.ui.cmd('⌘↓'), pan([0, -mapDimensions[1]])); d3.select(document) .call(keybinding); @@ -25599,38 +31381,49 @@ iD.ui = function(context) { }; iD.ui.tooltipHtml = function(text, key) { - return '' + text + '' + '
' + ' ' + (t('tooltip_keyhint')) + ' ' + ' ' + key + '
'; + var s = '' + text + ''; + if (key) { + s += '
' + + ' ' + (t('tooltip_keyhint')) + ' ' + + ' ' + key + '
'; + } + return s; }; iD.ui.Account = function(context) { var connection = context.connection(); function update(selection) { if (!connection.authenticated()) { - selection.html('') - .style('display', 'none'); + selection.selectAll('#userLink, #logoutLink') + .classed('hide', true); return; } - selection.style('display', 'block'); - connection.userDetails(function(err, details) { - selection.html(''); + var userLink = selection.select('#userLink'), + logoutLink = selection.select('#logoutLink'); + + userLink.html(''); + logoutLink.html(''); if (err) return; + selection.selectAll('#userLink, #logoutLink') + .classed('hide', false); + // Link - var userLink = selection.append('a') + userLink.append('a') .attr('href', connection.userURL(details.display_name)) .attr('target', '_blank'); // Add thumbnail or dont if (details.image_url) { userLink.append('img') - .attr('class', 'icon icon-pre-text user-icon') + .attr('class', 'icon pre-text user-icon') .attr('src', details.image_url); } else { - userLink.append('span') - .attr('class', 'icon avatar light icon-pre-text'); + userLink + .call(iD.svg.Icon('#icon-avatar', 'pre-text light')); } // Add user name @@ -25638,7 +31431,7 @@ iD.ui.Account = function(context) { .attr('class', 'label') .text(details.display_name); - selection.append('a') + logoutLink.append('a') .attr('class', 'logout') .attr('href', '#') .text(t('logout')) @@ -25650,7 +31443,15 @@ iD.ui.Account = function(context) { } return function(selection) { - connection.on('auth', function() { update(selection); }); + selection.append('li') + .attr('id', 'logoutLink') + .classed('hide', true); + + selection.append('li') + .attr('id', 'userLink') + .classed('hide', true); + + connection.on('auth.account', function() { update(selection); }); update(selection); }; }; @@ -25735,7 +31536,7 @@ iD.ui.Attribution = function(context) { }; }; iD.ui.Background = function(context) { - var key = 'b', + var key = 'B', opacities = [1, 0.75, 0.5, 0.25], directions = [ ['left', [1, 0]], @@ -25743,14 +31544,22 @@ iD.ui.Background = function(context) { ['right', [-1, 0]], ['bottom', [0, 1]]], opacityDefault = (context.storage('background-opacity') !== null) ? - (+context.storage('background-opacity')) : 0.5, - customTemplate = ''; + (+context.storage('background-opacity')) : 1.0, + customTemplate = context.storage('background-custom-template') || ''; // Can be 0 from <1.3.0 use or due to issue #1923. - if (opacityDefault === 0) opacityDefault = 0.5; + if (opacityDefault === 0) opacityDefault = 1.0; function background(selection) { + function sortSources(a, b) { + return a.best() ? -1 + : b.best() ? 1 + : a.id === 'none' ? 1 + : b.id === 'none' ? -1 + : d3.ascending(a, b); + } + function setOpacity(d) { var bg = context.container().selectAll('.background-layer') .transition() @@ -25800,6 +31609,7 @@ iD.ui.Background = function(context) { function setCustom(template) { context.background().baseLayerSource(iD.BackgroundSource.Custom(template)); selectLayer(); + context.storage('background-custom-template', template); } function clickSetOverlay(d) { @@ -25808,18 +31618,14 @@ iD.ui.Background = function(context) { selectLayer(); } - function clickGpx() { - context.background().toggleGpxLayer(); - update(); - } - function drawList(layerList, type, change, filter) { var sources = context.background() .sources(context.map().extent()) .filter(filter); var layerLinks = layerList.selectAll('li.layer') - .data(sources, function(d) { return d.name(); }); + .data(sources, function(d) { return d.name(); }) + .sort(sortSources); var enter = layerLinks.enter() .insert('li', '.custom_layer') @@ -25851,15 +31657,6 @@ iD.ui.Background = function(context) { backgroundList.call(drawList, 'radio', clickSetSource, function(d) { return !d.overlay; }); overlayList.call(drawList, 'checkbox', clickSetOverlay, function(d) { return d.overlay; }); - var hasGpx = context.background().hasGpxLayer(), - showsGpx = context.background().showsGpxLayer(); - - gpxLayerItem - .classed('active', showsGpx) - .selectAll('input') - .property('disabled', !hasGpx) - .property('checked', showsGpx); - selectLayer(); var source = context.background().baseLayerSource(); @@ -25869,7 +31666,6 @@ iD.ui.Background = function(context) { } function clickNudge(d) { - var timeout = window.setTimeout(function() { interval = window.setInterval(nudge, 100); }, 500), @@ -25889,13 +31685,6 @@ iD.ui.Background = function(context) { } } - var content = selection.append('div') - .attr('class', 'fillL map-overlay col3 content hide'), - tooltip = bootstrap.tooltip() - .placement('left') - .html(true) - .title(iD.ui.tooltipHtml(t('background.description'), key)); - function hide() { setVisible(false); } function toggle() { @@ -25932,17 +31721,22 @@ iD.ui.Background = function(context) { } } - var button = selection.append('button') + + var content = selection.append('div') + .attr('class', 'fillL map-overlay col3 content hide'), + tooltip = bootstrap.tooltip() + .placement('left') + .html(true) + .title(iD.ui.tooltipHtml(t('background.description'), key)), + button = selection.append('button') .attr('tabindex', -1) .on('click', toggle) + .call(iD.svg.Icon('#icon-layers', 'light')) .call(tooltip), - opa = content - .append('div') - .attr('class', 'opacity-options-wrapper'), shown = false; - button.append('span') - .attr('class', 'icon layers light'); + var opa = content.append('div') + .attr('class', 'opacity-options-wrapper'); opa.append('h4') .text(t('background.title')); @@ -25963,7 +31757,7 @@ iD.ui.Background = function(context) { .placement('left')) .append('div') .attr('class', 'opacity') - .style('opacity', String); + .style('opacity', function(d) { return 1.25 - d; }); var backgroundList = content.append('ul') .attr('class', 'layer-list'); @@ -25978,8 +31772,7 @@ iD.ui.Background = function(context) { .title(t('background.custom_button')) .placement('left')) .on('click', editCustom) - .append('span') - .attr('class', 'icon geocode'); + .call(iD.svg.Icon('#icon-search')); var label = custom.append('label'); @@ -26000,53 +31793,27 @@ iD.ui.Background = function(context) { var overlayList = content.append('ul') .attr('class', 'layer-list'); - var gpxLayerItem = content.append('ul') - .style('display', iD.detect().filedrop ? 'block' : 'none') - .attr('class', 'layer-list') - .append('li') - .classed('layer-toggle-gpx', true); - - gpxLayerItem.append('button') - .attr('class', 'layer-extent') - .call(bootstrap.tooltip() - .title(t('gpx.zoom')) - .placement('left')) - .on('click', function() { - d3.event.preventDefault(); - d3.event.stopPropagation(); - context.background().zoomToGpxLayer(); - }) - .append('span') - .attr('class', 'icon geolocate'); - - gpxLayerItem.append('button') - .attr('class', 'layer-browse') - .call(bootstrap.tooltip() - .title(t('gpx.browse')) - .placement('left')) - .on('click', function() { - d3.select(document.createElement('input')) - .attr('type', 'file') - .on('change', function() { - context.background().gpxLayerFiles(d3.event.target.files); - }) - .node().click(); - }) - .append('span') - .attr('class', 'icon geocode'); + var controls = content.append('div') + .attr('class', 'controls-list'); - label = gpxLayerItem.append('label') + var minimapLabel = controls + .append('label') .call(bootstrap.tooltip() - .title(t('gpx.drag_drop')) - .placement('top')); + .html(true) + .title(iD.ui.tooltipHtml(t('background.minimap.tooltip'), '/')) + .placement('top') + ); - label.append('input') + minimapLabel.classed('minimap-toggle', true) + .append('input') .attr('type', 'checkbox') - .property('disabled', true) - .on('change', clickGpx); + .on('change', function() { + iD.ui.MapInMap.toggle(); + d3.event.preventDefault(); + }); - label.append('span') - .text(t('gpx.local_layer')); + minimapLabel.append('span') + .text(t('background.minimap.description')); var adjustments = content.append('div') .attr('class', 'adjustments'); @@ -26073,15 +31840,14 @@ iD.ui.Background = function(context) { .attr('class', function(d) { return d[0] + ' nudge'; }) .on('mousedown', clickNudge); - var resetButton = nudgeContainer.append('button') + var resetButton = nudgeContainer + .append('button') .attr('class', 'reset disabled') .on('click', function () { context.background().offset([0, 0]); resetButton.classed('disabled', true); - }); - - resetButton.append('div') - .attr('class', 'icon undo'); + }) + .call(iD.svg.Icon('#icon-undo')); context.map() .on('move.background-update', _.debounce(update, 1000)); @@ -26092,8 +31858,10 @@ iD.ui.Background = function(context) { update(); setOpacity(opacityDefault); - var keybinding = d3.keybinding('background'); - keybinding.on(key, toggle); + var keybinding = d3.keybinding('background') + .on(key, toggle) + .on('F', hide) + .on('H', hide); d3.select(document) .call(keybinding); @@ -26107,33 +31875,35 @@ iD.ui.Background = function(context) { // Translate a MacOS key command into the appropriate Windows/Linux equivalent. // For example, ⌘Z -> Ctrl+Z iD.ui.cmd = function(code) { - if (iD.detect().os === 'mac') + if (iD.detect().os === 'mac') { return code; - - var replacements = { - '⌘': 'Ctrl', - '⇧': 'Shift', - '⌥': 'Alt', - '⌫': 'Backspace', - '⌦': 'Delete' - }, keys = []; + } if (iD.detect().os === 'win') { if (code === '⌘⇧Z') return 'Ctrl+Y'; } + var result = '', + replacements = { + '⌘': 'Ctrl', + '⇧': 'Shift', + '⌥': 'Alt', + '⌫': 'Backspace', + '⌦': 'Delete' + }; + for (var i = 0; i < code.length; i++) { if (code[i] in replacements) { - keys.push(replacements[code[i]]); + result += replacements[code[i]] + '+'; } else { - keys.push(code[i]); + result += code[i]; } } - return keys.join('+'); + return result; }; iD.ui.Commit = function(context) { - var event = d3.dispatch('cancel', 'save'); + var dispatch = d3.dispatch('cancel', 'save'); function commit(selection) { var changes = context.history().changes(), @@ -26153,18 +31923,13 @@ iD.ui.Commit = function(context) { var header = selection.append('div') .attr('class', 'header fillL'); - header.append('button') - .attr('class', 'fr') - .on('click', event.cancel) - .append('span') - .attr('class', 'icon close'); - header.append('h3') .text(t('commit.title')); var body = selection.append('div') .attr('class', 'body'); + // Comment Section var commentSection = body.append('div') .attr('class', 'modal-section form-field commit-form'); @@ -26175,16 +31940,22 @@ iD.ui.Commit = function(context) { var commentField = commentSection.append('textarea') .attr('placeholder', t('commit.description_placeholder')) + .attr('maxlength', 255) .property('value', context.storage('comment') || '') - .on('blur.save', function () { + .on('input.save', function() { + d3.selectAll('.save-section .save-button') + .attr('disabled', (this.value.length ? null : true)); + }) + .on('blur.save', function() { context.storage('comment', this.value); }); commentField.node().select(); + // Warnings var warnings = body.selectAll('div.warning-section') - .data([iD.validate(changes, context.graph())]) + .data([context.history().validate(changes)]) .enter() .append('div') .attr('class', 'modal-section warning-section fillL2') @@ -26205,12 +31976,13 @@ iD.ui.Commit = function(context) { .on('mouseout', mouseout) .on('click', warningClick); - warningLi.append('span') - .attr('class', 'alert icon icon-pre-text'); + warningLi + .call(iD.svg.Icon('#icon-alert', 'pre-text')); - warningLi.append('strong').text(function(d) { - return d.message; - }); + warningLi + .append('strong').text(function(d) { + return d.message; + }); warningLi.filter(function(d) { return d.tooltip; }) .call(bootstrap.tooltip() @@ -26218,9 +31990,10 @@ iD.ui.Commit = function(context) { .placement('top') ); - // Save Section + + // Upload Explanation var saveSection = body.append('div') - .attr('class','modal-section fillL cf'); + .attr('class','modal-section save-section fillL cf'); var prose = saveSection.append('p') .attr('class', 'commit-info') @@ -26234,7 +32007,7 @@ iD.ui.Commit = function(context) { if (user.image_url) { userLink.append('img') .attr('src', user.image_url) - .attr('class', 'icon icon-pre-text user-icon'); + .attr('class', 'icon pre-text user-icon'); } userLink.append('a') @@ -26247,11 +32020,19 @@ iD.ui.Commit = function(context) { prose.html(t('commit.upload_explanation_with_user', {user: userLink.html()})); }); - // Confirm Button - var saveButton = saveSection.append('button') - .attr('class', 'action col4 button') + + // Buttons + var buttonSection = saveSection.append('div') + .attr('class','buttons fillL cf'); + + var saveButton = buttonSection.append('button') + .attr('class', 'action col5 button save-button') + .attr('disabled', function() { + var n = d3.select('.commit-form textarea').node(); + return (n && n.value.length) ? null : true; + }) .on('click.save', function() { - event.save({ + dispatch.save({ comment: commentField.node().value }); }); @@ -26260,6 +32041,16 @@ iD.ui.Commit = function(context) { .attr('class', 'label') .text(t('commit.save')); + var cancelButton = buttonSection.append('button') + .attr('class', 'action col5 button cancel-button') + .on('click.cancel', function() { dispatch.cancel(); }); + + cancelButton.append('span') + .attr('class', 'label') + .text(t('commit.cancel')); + + + // Changes var changeSection = body.selectAll('div.commit-section') .data([0]) .enter() @@ -26267,7 +32058,7 @@ iD.ui.Commit = function(context) { .attr('class', 'commit-section modal-section fillL2'); changeSection.append('h3') - .text(summary.length + ' Changes'); + .text(t('commit.changes', {count: summary.length})); var li = changeSection.append('ul') .attr('class', 'changeset-list') @@ -26279,15 +32070,15 @@ iD.ui.Commit = function(context) { .on('mouseout', mouseout) .on('click', zoomToEntity); - li.append('span') - .attr('class', function(d) { - return d.entity.geometry(d.graph) + ' ' + d.changeType + ' icon icon-pre-text'; - }); + li.each(function(d) { + d3.select(this) + .call(iD.svg.Icon('#icon-' + d.entity.geometry(d.graph), 'pre-text ' + d.changeType)); + }); li.append('span') .attr('class', 'change-type') .text(function(d) { - return d.changeType + ' '; + return t('commit.' + d.changeType) + ' '; }); li.append('strong') @@ -26336,7 +32127,7 @@ iD.ui.Commit = function(context) { } } - return d3.rebind(commit, event, 'on'); + return d3.rebind(commit, dispatch, 'on'); }; iD.ui.confirm = function(selection) { var modal = iD.ui.modal(selection); @@ -26352,18 +32143,273 @@ iD.ui.confirm = function(selection) { section.append('div') .attr('class', 'modal-section message-text'); - var buttonwrap = section.append('div') + var buttons = section.append('div') .attr('class', 'modal-section buttons cf'); - buttonwrap.append('button') - .attr('class', 'col2 action') - .on('click.confirm', function() { - modal.remove(); - }) - .text(t('confirm.okay')); + modal.okButton = function() { + buttons + .append('button') + .attr('class', 'action col4') + .on('click.confirm', function() { + modal.remove(); + }) + .text(t('confirm.okay')); + + return modal; + }; return modal; }; +iD.ui.Conflicts = function(context) { + var dispatch = d3.dispatch('download', 'cancel', 'save'), + list; + + function conflicts(selection) { + var header = selection + .append('div') + .attr('class', 'header fillL'); + + header + .append('button') + .attr('class', 'fr') + .on('click', function() { dispatch.cancel(); }) + .call(iD.svg.Icon('#icon-close')); + + header + .append('h3') + .text(t('save.conflict.header')); + + var body = selection + .append('div') + .attr('class', 'body fillL'); + + body + .append('div') + .attr('class', 'conflicts-help') + .text(t('save.conflict.help')) + .append('a') + .attr('class', 'conflicts-download') + .text(t('save.conflict.download_changes')) + .on('click.download', function() { dispatch.download(); }); + + body + .append('div') + .attr('class', 'conflict-container fillL3') + .call(showConflict, 0); + + body + .append('div') + .attr('class', 'conflicts-done') + .attr('opacity', 0) + .style('display', 'none') + .text(t('save.conflict.done')); + + var buttons = body + .append('div') + .attr('class','buttons col12 joined conflicts-buttons'); + + buttons + .append('button') + .attr('disabled', list.length > 1) + .attr('class', 'action conflicts-button col6') + .text(t('save.title')) + .on('click.try_again', function() { dispatch.save(); }); + + buttons + .append('button') + .attr('class', 'secondary-action conflicts-button col6') + .text(t('confirm.cancel')) + .on('click.cancel', function() { dispatch.cancel(); }); + } + + + function showConflict(selection, index) { + if (index < 0 || index >= list.length) return; + + var parent = d3.select(selection.node().parentElement); + + // enable save button if this is the last conflict being reviewed.. + if (index === list.length - 1) { + window.setTimeout(function() { + parent.select('.conflicts-button') + .attr('disabled', null); + + parent.select('.conflicts-done') + .transition() + .attr('opacity', 1) + .style('display', 'block'); + }, 250); + } + + var item = selection + .selectAll('.conflict') + .data([list[index]]); + + var enter = item.enter() + .append('div') + .attr('class', 'conflict'); + + enter + .append('h4') + .attr('class', 'conflict-count') + .text(t('save.conflict.count', { num: index + 1, total: list.length })); + + enter + .append('a') + .attr('class', 'conflict-description') + .attr('href', '#') + .text(function(d) { return d.name; }) + .on('click', function(d) { + zoomToEntity(d.id); + d3.event.preventDefault(); + }); + + var details = enter + .append('div') + .attr('class', 'conflict-detail-container'); + + details + .append('ul') + .attr('class', 'conflict-detail-list') + .selectAll('li') + .data(function(d) { return d.details || []; }) + .enter() + .append('li') + .attr('class', 'conflict-detail-item') + .html(function(d) { return d; }); + + details + .append('div') + .attr('class', 'conflict-choices') + .call(addChoices); + + details + .append('div') + .attr('class', 'conflict-nav-buttons joined cf') + .selectAll('button') + .data(['previous', 'next']) + .enter() + .append('button') + .text(function(d) { return t('save.conflict.' + d); }) + .attr('class', 'conflict-nav-button action col6') + .attr('disabled', function(d, i) { + return (i === 0 && index === 0) || + (i === 1 && index === list.length - 1) || null; + }) + .on('click', function(d, i) { + var container = parent.select('.conflict-container'), + sign = (i === 0 ? -1 : 1); + + container + .selectAll('.conflict') + .remove(); + + container + .call(showConflict, index + sign); + + d3.event.preventDefault(); + }); + + item.exit() + .remove(); + + } + + function addChoices(selection) { + var choices = selection + .append('ul') + .attr('class', 'layer-list') + .selectAll('li') + .data(function(d) { return d.choices || []; }); + + var enter = choices.enter() + .append('li') + .attr('class', 'layer'); + + var label = enter + .append('label'); + + label + .append('input') + .attr('type', 'radio') + .attr('name', function(d) { return d.id; }) + .on('change', function(d, i) { + var ul = this.parentElement.parentElement.parentElement; + ul.__data__.chosen = i; + choose(ul, d); + }); + + label + .append('span') + .text(function(d) { return d.text; }); + + choices + .each(function(d, i) { + var ul = this.parentElement; + if (ul.__data__.chosen === i) choose(ul, d); + }); + } + + function choose(ul, datum) { + if (d3.event) d3.event.preventDefault(); + + d3.select(ul) + .selectAll('li') + .classed('active', function(d) { return d === datum; }) + .selectAll('input') + .property('checked', function(d) { return d === datum; }); + + var extent = iD.geo.Extent(), + entity; + + entity = context.graph().hasEntity(datum.id); + if (entity) extent._extend(entity.extent(context.graph())); + + datum.action(); + + entity = context.graph().hasEntity(datum.id); + if (entity) extent._extend(entity.extent(context.graph())); + + zoomToEntity(datum.id, extent); + } + + function zoomToEntity(id, extent) { + context.surface().selectAll('.hover') + .classed('hover', false); + + var entity = context.graph().hasEntity(id); + if (entity) { + if (extent) { + context.map().trimmedExtent(extent); + } else { + context.map().zoomTo(entity); + } + context.surface().selectAll( + iD.util.entityOrMemberSelector([entity.id], context.graph())) + .classed('hover', true); + } + } + + + // The conflict list should be an array of objects like: + // { + // id: id, + // name: entityName(local), + // details: merge.conflicts(), + // chosen: 1, + // choices: [ + // choice(id, keepMine, forceLocal), + // choice(id, keepTheirs, forceRemote) + // ] + // } + conflicts.list = function(_) { + if (!arguments.length) return list; + list = _; + return conflicts; + }; + + return d3.rebind(conflicts, dispatch, 'on'); +}; iD.ui.Contributors = function(context) { function update(selection) { var users = {}, @@ -26378,8 +32424,7 @@ iD.ui.Contributors = function(context) { subset = u.slice(0, u.length > limit ? limit - 1 : limit); selection.html('') - .append('span') - .attr('class', 'icon nearby light icon-pre-text'); + .call(iD.svg.Icon('#icon-nearby', 'pre-text light')); var userList = d3.select(document.createElement('span')); @@ -26421,7 +32466,7 @@ iD.ui.Contributors = function(context) { return function(selection) { update(selection); - context.connection().on('load.contributors', function() { + context.connection().on('loaded.contributors', function() { update(selection); }); @@ -26491,6 +32536,8 @@ iD.ui.EntityEditor = function(context) { preset, reference; + var presetEditor = iD.ui.preset(context) + .on('change', changeTags); var rawTagEditor = iD.ui.RawTagEditor(context) .on('change', changeTags); @@ -26508,8 +32555,7 @@ iD.ui.EntityEditor = function(context) { $enter.append('button') .attr('class', 'fr preset-close') - .append('span') - .attr('class', 'icon close'); + .call(iD.svg.Icon('#icon-close')); $enter.append('h3'); @@ -26577,12 +32623,11 @@ iD.ui.EntityEditor = function(context) { .text(preset.name()); $body.select('.inspector-preset') - .call(iD.ui.preset(context) + .call(presetEditor .preset(preset) .entityID(id) .tags(tags) - .state(state) - .on('change', changeTags)); + .state(state)); $body.select('.raw-tag-editor') .call(rawTagEditor @@ -26618,10 +32663,44 @@ iD.ui.EntityEditor = function(context) { } function clean(o) { + + function cleanVal(k, v) { + function keepSpaces(k) { + var whitelist = ['opening_hours', 'service_times', 'collection_times', + 'operating_times', 'smoking_hours', 'happy_hours']; + return _.any(whitelist, function(s) { return k.indexOf(s) !== -1; }); + } + + var blacklist = ['description', 'note', 'fixme']; + if (_.any(blacklist, function(s) { return k.indexOf(s) !== -1; })) return v; + + var cleaned = v.split(';') + .map(function(s) { return s.trim(); }) + .join(keepSpaces(k) ? '; ' : ';'); + + // The code below is not intended to validate websites and emails. + // It is only intended to prevent obvious copy-paste errors. (#2323) + + // clean website-like tags + if (k.indexOf('website') !== -1 || cleaned.indexOf('http') === 0) { + cleaned = cleaned + .replace(/[\u200B-\u200F\uFEFF]/g, '') // strip LRM and other zero width chars + .replace(/[^\w\+\-\.\/\?\[\]\(\)~!@#$%&*',:;=]/g, encodeURIComponent); + + // clean email-like tags + } else if (k.indexOf('email') !== -1) { + cleaned = cleaned + .replace(/[\u200B-\u200F\uFEFF]/g, '') // strip LRM and other zero width chars + .replace(/[^\w\+\-\.\/\?\|~!@#$%^&*'`{};=]/g, ''); // note: ';' allowed as OSM delimiter + } + + return cleaned; + } + var out = {}, k, v; for (k in o) { if (k && (v = o[k]) !== undefined) { - out[k] = v.trim(); + out[k] = cleanVal(k, v); } } return out; @@ -26655,7 +32734,7 @@ iD.ui.EntityEditor = function(context) { if (!arguments.length) return preset; if (_ !== preset) { preset = _; - reference = iD.ui.TagReference(preset.reference(context.geometry(id))) + reference = iD.ui.TagReference(preset.reference(context.geometry(id)), context) .showing(false); } return entityEditor; @@ -26663,6 +32742,52 @@ iD.ui.EntityEditor = function(context) { return d3.rebind(entityEditor, event, 'on'); }; +iD.ui.FeatureInfo = function(context) { + function update(selection) { + var features = context.features(), + stats = features.stats(), + count = 0, + hiddenList = _.compact(_.map(features.hidden(), function(k) { + if (stats[k]) { + count += stats[k]; + return String(stats[k]) + ' ' + t('feature.' + k + '.description'); + } + })); + + selection.html(''); + + if (hiddenList.length) { + var tooltip = bootstrap.tooltip() + .placement('top') + .html(true) + .title(function() { + return iD.ui.tooltipHtml(hiddenList.join('
')); + }); + + var warning = selection.append('a') + .attr('href', '#') + .attr('tabindex', -1) + .html(t('feature_info.hidden_warning', { count: count })) + .call(tooltip) + .on('click', function() { + tooltip.hide(warning); + // open map data panel? + d3.event.preventDefault(); + }); + } + + selection + .classed('hide', !hiddenList.length); + } + + return function(selection) { + update(selection); + + context.features().on('change.feature_info', function() { + update(selection); + }); + }; +}; iD.ui.FeatureList = function(context) { var geocodeResults; @@ -26695,8 +32820,8 @@ iD.ui.FeatureList = function(context) { .on('keypress', keypress) .on('input', inputevent); - searchWrap.append('span') - .attr('class', 'icon search'); + searchWrap + .call(iD.svg.Icon('#icon-search', 'pre-text')); var listWrap = selection.append('div') .attr('class', 'inspector-body'); @@ -26732,15 +32857,16 @@ iD.ui.FeatureList = function(context) { }); } - var locationMatch = q.match(/^(-?\d+\.?\d*)\s+(-?\d+\.?\d*)$/); + var locationMatch = sexagesimal.pair(q.toUpperCase()) || q.match(/^(-?\d+\.?\d*)\s+(-?\d+\.?\d*)$/); if (locationMatch) { + var loc = [parseFloat(locationMatch[0]), parseFloat(locationMatch[1])]; result.push({ id: -1, geometry: 'point', type: t('inspector.location'), - name: locationMatch[0], - location: [parseFloat(locationMatch[1]), parseFloat(locationMatch[2])] + name: loc[0].toFixed(6) + ', ' + loc[1].toFixed(6), + location: loc }); } @@ -26802,10 +32928,8 @@ iD.ui.FeatureList = function(context) { .data([0]) .enter().append('button') .property('disabled', true) - .attr('class', 'no-results-item'); - - resultsIndicator.append('span') - .attr('class', 'icon alert'); + .attr('class', 'no-results-item') + .call(iD.svg.Icon('#icon-alert', 'pre-text')); resultsIndicator.append('span') .attr('class', 'entity-name'); @@ -26837,17 +32961,21 @@ iD.ui.FeatureList = function(context) { var items = list.selectAll('.feature-list-item') .data(results, function(d) { return d.id; }); - var enter = items.enter().insert('button', '.geocode-item') + var enter = items.enter() + .insert('button', '.geocode-item') .attr('class', 'feature-list-item') .on('mouseover', mouseover) .on('mouseout', mouseout) .on('click', click); - var label = enter.append('div') + var label = enter + .append('div') .attr('class', 'label'); - label.append('span') - .attr('class', function(d) { return d.geometry + ' icon icon-pre-text'; }); + label.each(function(d) { + d3.select(this) + .call(iD.svg.Icon('#icon-' + d.geometry, 'pre-text')); + }); label.append('span') .attr('class', 'entity-type') @@ -26887,7 +33015,7 @@ iD.ui.FeatureList = function(context) { else if (d.entity) { context.enter(iD.modes.Select(context, [d.entity.id])); } else { - context.loadEntity(d.id); + context.zoomToEntity(d.id); } } @@ -26921,6 +33049,79 @@ iD.ui.flash = function(selection) { return modal; }; +iD.ui.FullScreen = function(context) { + var element = context.container().node(), + keybinding = d3.keybinding('full-screen'); + // button; + + function getFullScreenFn() { + if (element.requestFullscreen) { + return element.requestFullscreen; + } else if (element.msRequestFullscreen) { + return element.msRequestFullscreen; + } else if (element.mozRequestFullScreen) { + return element.mozRequestFullScreen; + } else if (element.webkitRequestFullscreen) { + return element.webkitRequestFullscreen; + } + } + + function getExitFullScreenFn() { + if (document.exitFullscreen) { + return document.exitFullscreen; + } else if (document.msExitFullscreen) { + return document.msExitFullscreen; + } else if (document.mozCancelFullScreen) { + return document.mozCancelFullScreen; + } else if (document.webkitExitFullscreen) { + return document.webkitExitFullscreen; + } + } + + function isFullScreen() { + return document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || + document.msFullscreenElement; + } + + function isSupported() { + return !!getFullScreenFn(); + } + + function fullScreen() { + d3.event.preventDefault(); + if (!isFullScreen()) { + // button.classed('active', true); + getFullScreenFn().apply(element); + } else { + // button.classed('active', false); + getExitFullScreenFn().apply(document); + } + } + + return function() { // selection) { + if (!isSupported()) + return; + + // var tooltip = bootstrap.tooltip() + // .placement('left'); + + // button = selection.append('button') + // .attr('title', t('full_screen')) + // .attr('tabindex', -1) + // .on('click', fullScreen) + // .call(tooltip); + + // button.append('span') + // .attr('class', 'icon full-screen'); + + keybinding + .on('f11', fullScreen) + .on(iD.ui.cmd('⌘⇧F'), fullScreen); + + d3.select(document) + .call(keybinding); + }; +}; iD.ui.Geolocate = function(map) { function click() { navigator.geolocation.getCurrentPosition( @@ -26939,19 +33140,17 @@ iD.ui.Geolocate = function(map) { return function(selection) { if (!navigator.geolocation) return; - var button = selection.append('button') + selection.append('button') .attr('tabindex', -1) .attr('title', t('geolocate.title')) .on('click', click) + .call(iD.svg.Icon('#icon-geolocate', 'light')) .call(bootstrap.tooltip() .placement('left')); - - button.append('span') - .attr('class', 'icon geolocate light'); }; }; iD.ui.Help = function(context) { - var key = 'h'; + var key = 'H'; var docKeys = [ 'help.help', @@ -26973,7 +33172,6 @@ iD.ui.Help = function(context) { }); function help(selection) { - var shown = false; function hide() { setVisible(false); @@ -26989,7 +33187,11 @@ iD.ui.Help = function(context) { if (show !== shown) { button.classed('active', show); shown = show; + if (show) { + selection.on('mousedown.help-inside', function() { + return d3.event.stopPropagation(); + }); pane.style('display', 'block') .style('right', '-500px') .transition() @@ -27003,13 +33205,14 @@ iD.ui.Help = function(context) { .each('end', function() { d3.select(this).style('display', 'none'); }); + selection.on('mousedown.help-inside', null); } } } function clickHelp(d, i) { pane.property('scrollTop', 0); - doctitle.text(d.title); + doctitle.html(d.title); body.html(d.html); body.selectAll('a') .attr('target', '_blank'); @@ -27025,8 +33228,7 @@ iD.ui.Help = function(context) { .on('click', function() { clickHelp(docs[i - 1], i - 1); }); - prevLink.append('span').attr('class', 'icon back blue'); - prevLink.append('span').text(docs[i - 1].title); + prevLink.append('span').html('◄ ' + docs[i - 1].title); } if (i < docs.length - 1) { var nextLink = nav.append('a') @@ -27034,8 +33236,7 @@ iD.ui.Help = function(context) { .on('click', function() { clickHelp(docs[i + 1], i + 1); }); - nextLink.append('span').text(docs[i + 1].title); - nextLink.append('span').attr('class', 'icon forward blue'); + nextLink.append('span').html(docs[i + 1].title + ' ►'); } } @@ -27044,21 +33245,20 @@ iD.ui.Help = function(context) { setVisible(false); } - var tooltip = bootstrap.tooltip() - .placement('left') - .html(true) - .title(iD.ui.tooltipHtml(t('help.title'), key)); - - var button = selection.append('button') - .attr('tabindex', -1) - .on('click', toggle) - .call(tooltip); - button.append('span') - .attr('class', 'icon help light'); + var pane = selection.append('div') + .attr('class', 'help-wrap map-overlay fillL col5 content hide'), + tooltip = bootstrap.tooltip() + .placement('left') + .html(true) + .title(iD.ui.tooltipHtml(t('help.title'), key)), + button = selection.append('button') + .attr('tabindex', -1) + .on('click', toggle) + .call(iD.svg.Icon('#icon-help', 'light')) + .call(tooltip), + shown = false; - var pane = context.container() - .select('.help-wrap'); var toc = pane.append('ul') .attr('class', 'toc'); @@ -27068,7 +33268,7 @@ iD.ui.Help = function(context) { .enter() .append('li') .append('a') - .text(function(d) { return d.title; }) + .html(function(d) { return d.title; }) .on('click', clickHelp); toc.append('li') @@ -27092,21 +33292,243 @@ iD.ui.Help = function(context) { clickHelp(docs[0], 0); var keybinding = d3.keybinding('help') - .on(key, toggle); + .on(key, toggle) + .on('B', hide) + .on('F', hide); d3.select(document) .call(keybinding); context.surface().on('mousedown.help-outside', hide); - context.container().on('mousedown.b.help-outside', hide); + context.container().on('mousedown.help-outside', hide); + } - pane.on('mousedown.help-inside', function() { - return d3.event.stopPropagation(); - }); + return help; +}; +iD.ui.Info = function(context) { + var key = iD.ui.cmd('⌘I'), + imperial = (iD.detect().locale.toLowerCase() === 'en-us'); + + function info(selection) { + function radiansToMeters(r) { + // using WGS84 authalic radius (6371007.1809 m) + return r * 6371007.1809; + } + + function steradiansToSqmeters(r) { + // http://gis.stackexchange.com/a/124857/40446 + return r / 12.56637 * 510065621724000; + } + + function toLineString(feature) { + if (feature.type === 'LineString') return feature; + + var result = { type: 'LineString', coordinates: [] }; + if (feature.type === 'Polygon') { + result.coordinates = feature.coordinates[0]; + } else if (feature.type === 'MultiPolygon') { + result.coordinates = feature.coordinates[0][0]; + } + + return result; + } + + function displayLength(m) { + var d = m * (imperial ? 3.28084 : 1), + p, unit; + + if (imperial) { + if (d >= 5280) { + d /= 5280; + unit = 'mi'; + } else { + unit = 'ft'; + } + } else { + if (d >= 1000) { + d /= 1000; + unit = 'km'; + } else { + unit = 'm'; + } + } + + // drop unnecessary precision + p = d > 1000 ? 0 : d > 100 ? 1 : 2; + + return String(d.toFixed(p)) + ' ' + unit; + } + + function displayArea(m2) { + var d = m2 * (imperial ? 10.7639111056 : 1), + d1, d2, p1, p2, unit1, unit2; + + if (imperial) { + if (d >= 6969600) { // > 0.25mi² show mi² + d1 = d / 27878400; + unit1 = 'mi²'; + } else { + d1 = d; + unit1 = 'ft²'; + } + + if (d > 4356 && d < 43560000) { // 0.1 - 1000 acres + d2 = d / 43560; + unit2 = 'ac'; + } + + } else { + if (d >= 250000) { // > 0.25km² show km² + d1 = d / 1000000; + unit1 = 'km²'; + } else { + d1 = d; + unit1 = 'm²'; + } + + if (d > 1000 && d < 10000000) { // 0.1 - 1000 hectares + d2 = d / 10000; + unit2 = 'ha'; + } + } + + // drop unnecessary precision + p1 = d1 > 1000 ? 0 : d1 > 100 ? 1 : 2; + p2 = d2 > 1000 ? 0 : d2 > 100 ? 1 : 2; + + return String(d1.toFixed(p1)) + ' ' + unit1 + + (d2 ? ' (' + String(d2.toFixed(p2)) + ' ' + unit2 + ')' : ''); + } + + + function redraw() { + if (hidden()) return; + + var resolver = context.graph(), + selected = _.filter(context.selectedIDs(), function(e) { return context.hasEntity(e); }), + singular = selected.length === 1 ? selected[0] : null, + extent = iD.geo.Extent(), + entity; + + selection.html(''); + selection.append('h4') + .attr('class', 'selection-heading fillD') + .text(singular || t('infobox.selected', { n: selected.length })); + + if (!selected.length) return; + + var center; + for (var i = 0; i < selected.length; i++) { + entity = context.entity(selected[i]); + extent._extend(entity.extent(resolver)); + } + center = extent.center(); + + + var list = selection.append('ul'); + + // multiple selection, just display extent center.. + if (!singular) { + list.append('li') + .text(t('infobox.center') + ': ' + center[0].toFixed(5) + ', ' + center[1].toFixed(5)); + return; + } + + // single selection, display details.. + if (!entity) return; + var geometry = entity.geometry(resolver); + + if (geometry === 'line' || geometry === 'area') { + var closed = (entity.type === 'relation') || (entity.isClosed() && !entity.isDegenerate()), + feature = entity.asGeoJSON(resolver), + length = radiansToMeters(d3.geo.length(toLineString(feature))), + lengthLabel = t('infobox.' + (closed ? 'perimeter' : 'length')), + centroid = d3.geo.centroid(feature); + + list.append('li') + .text(t('infobox.geometry') + ': ' + + (closed ? t('infobox.closed') + ' ' : '') + t('geometry.' + geometry) ); + + if (closed) { + var area = steradiansToSqmeters(entity.area(resolver)); + list.append('li') + .text(t('infobox.area') + ': ' + displayArea(area)); + } + + list.append('li') + .text(lengthLabel + ': ' + displayLength(length)); + + list.append('li') + .text(t('infobox.centroid') + ': ' + centroid[0].toFixed(5) + ', ' + centroid[1].toFixed(5)); + + + var toggle = imperial ? 'imperial' : 'metric'; + selection.append('a') + .text(t('infobox.' + toggle)) + .attr('href', '#') + .attr('class', 'button') + .on('click', function() { + d3.event.preventDefault(); + imperial = !imperial; + redraw(); + }); + + } else { + var centerLabel = t('infobox.' + (entity.type === 'node' ? 'location' : 'center')); + list.append('li') + .text(t('infobox.geometry') + ': ' + t('geometry.' + geometry)); + + list.append('li') + .text(centerLabel + ': ' + center[0].toFixed(5) + ', ' + center[1].toFixed(5)); + } + } + + + function hidden() { + return selection.style('display') === 'none'; + } + + + function toggle() { + if (d3.event) d3.event.preventDefault(); + + if (hidden()) { + selection + .style('display', 'block') + .style('opacity', 0) + .transition() + .duration(200) + .style('opacity', 1); + + redraw(); + + } else { + selection + .style('display', 'block') + .style('opacity', 1) + .transition() + .duration(200) + .style('opacity', 0) + .each('end', function() { + d3.select(this).style('display', 'none'); + }); + } + } + + context.map() + .on('drawn.info', redraw); + + redraw(); + + var keybinding = d3.keybinding('info') + .on(key, toggle); + + d3.select(document) + .call(keybinding); } - return help; + return info; }; iD.ui.Inspector = function(context) { var presetList = iD.ui.PresetList(context), @@ -27141,7 +33563,12 @@ iD.ui.Inspector = function(context) { var $presetPane = $wrap.select('.preset-list-pane'); var $editorPane = $wrap.select('.entity-editor-pane'); - var showEditor = state === 'hover' || context.entity(entityID).isUsed(context.graph()); + var graph = context.graph(), + entity = context.entity(entityID), + showEditor = state === 'hover' || + entity.isUsed(graph) || + entity.isHighwayIntersection(graph); + if (showEditor) { $wrap.style('right', '0%'); $editorPane.call(entityEditor); @@ -27210,6 +33637,8 @@ iD.ui.intro = function(context) { // Save current map state var history = context.history().toJSON(), hash = window.location.hash, + center = context.map().center(), + zoom = context.map().zoom(), background = context.background().baseLayerSource(), opacity = d3.select('.background-layer').style('opacity'), loadedTiles = context.connection().loadedTiles(), @@ -27219,7 +33648,7 @@ iD.ui.intro = function(context) { // Load semi-real data used in intro context.connection().toggle(false).flush(); context.history().reset(); - + introGraph = JSON.parse(iD.introGraph); for (var key in introGraph) { introGraph[key] = iD.Entity(introGraph[key]); @@ -27262,7 +33691,8 @@ iD.ui.intro = function(context) { context.connection().toggle(true).flush().loadedTiles(loadedTiles); context.history().reset().merge(d3.values(baseEntities)); context.background().baseLayerSource(background); - if (history) context.history().fromJSON(history); + if (history) context.history().fromJSON(history, false); + context.map().centerZoom(center, zoom); window.location.replace(hash); context.inIntro(false); d3.select('#bar button.save').on('click', save); @@ -27274,20 +33704,24 @@ iD.ui.intro = function(context) { .attr('class', 'joined') .selectAll('button.step'); - var entered = buttonwrap.data(steps) - .enter().append('button') - .attr('class', 'step') - .on('click', enter); + var entered = buttonwrap + .data(steps) + .enter() + .append('button') + .attr('class', 'step') + .on('click', enter); + + entered + .call(iD.svg.Icon('#icon-apply', 'pre-text')); + + entered + .append('label') + .text(function(d) { return t(d.title); }); - entered.append('div').attr('class','icon icon-pre-text apply'); - entered.append('label').text(function(d) { return t(d.title); }); enter(steps[0]); function enter (newStep) { - - if (step) { - step.exit(); - } + if (step) { step.exit(); } context.enter(iD.modes.Browse(context)); @@ -27436,239 +33870,865 @@ iD.ui.Loading = function(context) { return loading; }; -iD.ui.modal = function(selection, blocking) { +iD.ui.MapData = function(context) { + var key = 'F', + features = context.features().keys(), + fills = ['wireframe', 'partial', 'full'], + fillDefault = context.storage('area-fill') || 'partial', + fillSelected = fillDefault; - var previous = selection.select('div.modal'); - var animate = previous.empty(); + function map_data(selection) { - previous.transition() - .duration(200) - .style('opacity', 0) - .remove(); + function showsFeature(d) { + return context.features().enabled(d); + } - var shaded = selection - .append('div') - .attr('class', 'shaded') - .style('opacity', 0); + function autoHiddenFeature(d) { + return context.features().autoHidden(d); + } - shaded.close = function() { - shaded - .transition() - .duration(200) - .style('opacity',0) - .remove(); - modal - .transition() - .duration(200) - .style('top','0px'); - keybinding.off(); - }; + function clickFeature(d) { + context.features().toggle(d); + update(); + } - var keybinding = d3.keybinding('modal') - .on('⌫', shaded.close) - .on('⎋', shaded.close); + function showsFill(d) { + return fillSelected === d; + } - d3.select(document).call(keybinding); + function setFill(d) { + _.each(fills, function(opt) { + context.surface().classed('fill-' + opt, Boolean(opt === d)); + }); - var modal = shaded.append('div') - .attr('class', 'modal fillL col6'); + fillSelected = d; + if (d !== 'wireframe') { + fillDefault = d; + context.storage('area-fill', d); + } + update(); + } - shaded.on('click.remove-modal', function() { - if (d3.event.target === this && !blocking) shaded.close(); - }); + function clickGpx() { + context.background().toggleGpxLayer(); + update(); + } - modal.append('button') - .attr('class', 'close') - .on('click', function() { - if (!blocking) shaded.close(); - }) - .append('div') - .attr('class','icon close'); + function clickMapillary() { + context.background().toggleMapillaryLayer(); + update(); + } - modal.append('div') - .attr('class', 'content'); + function drawList(selection, data, type, name, change, active) { + var items = selection.selectAll('li') + .data(data); - if (animate) { - shaded.transition().style('opacity', 1); - modal - .style('top','0px') - .transition() - .duration(200) - .style('top','40px'); - } else { - shaded.style('opacity', 1); - } + //enter + var enter = items.enter() + .append('li') + .attr('class', 'layer') + .call(bootstrap.tooltip() + .html(true) + .title(function(d) { + var tip = t(name + '.' + d + '.tooltip'), + key = (d === 'wireframe' ? 'W' : null); + if (name === 'feature' && autoHiddenFeature(d)) { + tip += '
' + t('map_data.autohidden') + '
'; + } + return iD.ui.tooltipHtml(tip, key); + }) + .placement('top') + ); - return shaded; -}; -iD.ui.Modes = function(context) { - var modes = [ - iD.modes.AddPoint(context), - iD.modes.AddLine(context), - iD.modes.AddArea(context)]; + var label = enter.append('label'); - return function(selection) { - var buttons = selection.selectAll('button.add-button') - .data(modes); + label.append('input') + .attr('type', type) + .attr('name', name) + .on('change', change); - buttons.enter().append('button') - .attr('tabindex', -1) - .attr('class', function(mode) { return mode.id + ' add-button col4'; }) - .on('click.mode-buttons', function(mode) { - if (mode.id === context.mode().id) { - context.enter(iD.modes.Browse(context)); - } else { - context.enter(mode); - } - }) - .call(bootstrap.tooltip() - .placement('bottom') - .html(true) - .title(function(mode) { - return iD.ui.tooltipHtml(mode.description, mode.key); - })); + label.append('span') + .text(function(d) { return t(name + '.' + d + '.description'); }); - context.map() - .on('move.modes', _.debounce(update, 500)); + //update + items + .classed('active', active) + .selectAll('input') + .property('checked', active) + .property('indeterminate', function(d) { + return (name === 'feature' && autoHiddenFeature(d)); + }); - context - .on('enter.modes', update); + //exit + items.exit() + .remove(); + } - update(); + function update() { + featureList.call(drawList, features, 'checkbox', 'feature', clickFeature, showsFeature); + fillList.call(drawList, fills, 'radio', 'area_fill', setFill, showsFill); - buttons.append('span') - .attr('class', function(mode) { return mode.id + ' icon icon-pre-text'; }); + var hasGpx = context.background().hasGpxLayer(), + showsGpx = context.background().showsGpxLayer(), + showsMapillary = context.background().showsMapillaryLayer(); - buttons.append('span') - .attr('class', 'label') - .text(function(mode) { return mode.title; }); + gpxLayerItem + .classed('active', showsGpx) + .selectAll('input') + .property('disabled', !hasGpx) + .property('checked', showsGpx); - context.on('enter.editor', function(entered) { - buttons.classed('active', function(mode) { return entered.button === mode.button; }); - context.container() - .classed('mode-' + entered.id, true); - }); + mapillaryLayerItem + .classed('active', showsMapillary) + .selectAll('input') + .property('checked', showsMapillary); + } - context.on('exit.editor', function(exited) { - context.container() - .classed('mode-' + exited.id, false); - }); + function hidePanel() { setVisible(false); } - var keybinding = d3.keybinding('mode-buttons'); + function togglePanel() { + if (d3.event) d3.event.preventDefault(); + tooltip.hide(button); + setVisible(!button.classed('active')); + } - modes.forEach(function(m) { - keybinding.on(m.key, function() { if (context.editable()) context.enter(m); }); - }); + function toggleWireframe() { + if (d3.event) { + d3.event.preventDefault(); + d3.event.stopPropagation(); + } + setFill((fillSelected === 'wireframe' ? fillDefault : 'wireframe')); + context.map().pan([0,0]); // trigger a redraw + } - d3.select(document) - .call(keybinding); + function setVisible(show) { + if (show !== shown) { + button.classed('active', show); + shown = show; - function update() { - buttons.property('disabled', !context.editable()); + if (show) { + selection.on('mousedown.map_data-inside', function() { + return d3.event.stopPropagation(); + }); + content.style('display', 'block') + .style('right', '-300px') + .transition() + .duration(200) + .style('right', '0px'); + } else { + content.style('display', 'block') + .style('right', '0px') + .transition() + .duration(200) + .style('right', '-300px') + .each('end', function() { + d3.select(this).style('display', 'none'); + }); + selection.on('mousedown.map_data-inside', null); + } + } } - }; -}; -iD.ui.Notice = function(context) { - return function(selection) { - var div = selection.append('div') - .attr('class', 'notice'); - var button = div.append('button') - .attr('class', 'zoom-to notice') - .on('click', function() { context.map().zoom(16); }); - button.append('span') - .attr('class', 'icon zoom-in-invert'); + var content = selection.append('div') + .attr('class', 'fillL map-overlay col3 content hide'), + tooltip = bootstrap.tooltip() + .placement('left') + .html(true) + .title(iD.ui.tooltipHtml(t('map_data.description'), key)), + button = selection.append('button') + .attr('tabindex', -1) + .on('click', togglePanel) + .call(iD.svg.Icon('#icon-data', 'light')) + .call(tooltip), + shown = false; - button.append('span') - .attr('class', 'label') - .text(t('zoom_in_edit')); + content.append('h4') + .text(t('map_data.title')); - function disableTooHigh() { - div.style('display', context.map().editable() ? 'none' : 'block'); - } - context.map() - .on('move.notice', _.debounce(disableTooHigh, 500)); + // data layers + content.append('a') + .text(t('map_data.data_layers')) + .attr('href', '#') + .classed('hide-toggle', true) + .classed('expanded', true) + .on('click', function() { + var exp = d3.select(this).classed('expanded'); + layerContainer.style('display', exp ? 'none' : 'block'); + d3.select(this).classed('expanded', !exp); + d3.event.preventDefault(); + }); - disableTooHigh(); - }; -}; -iD.ui.preset = function(context) { - var event = d3.dispatch('change'), - state, - fields, - preset, - tags, - id; + var layerContainer = content.append('div') + .attr('class', 'filters') + .style('display', 'block'); - function UIField(field, entity, show) { - field = _.clone(field); + // mapillary + var mapillaryLayerItem = layerContainer.append('ul') + .attr('class', 'layer-list') + .append('li'); - field.input = iD.ui.preset[field.type](field, context) - .on('change', event.change); + var label = mapillaryLayerItem.append('label') + .call(bootstrap.tooltip() + .title(t('mapillary.tooltip')) + .placement('top')); - if (field.input.entity) field.input.entity(entity); + label.append('input') + .attr('type', 'checkbox') + .on('change', clickMapillary); - field.keys = field.keys || [field.key]; + label.append('span') + .text(t('mapillary.title')); - field.show = show; + // gpx + var gpxLayerItem = layerContainer.append('ul') + .style('display', iD.detect().filedrop ? 'block' : 'none') + .attr('class', 'layer-list') + .append('li') + .classed('layer-toggle-gpx', true); - field.shown = function() { - return field.id === 'name' || field.show || _.any(field.keys, function(key) { return !!tags[key]; }); - }; + gpxLayerItem.append('button') + .attr('class', 'layer-extent') + .call(bootstrap.tooltip() + .title(t('gpx.zoom')) + .placement('left')) + .on('click', function() { + d3.event.preventDefault(); + d3.event.stopPropagation(); + context.background().zoomToGpxLayer(); + }) + .call(iD.svg.Icon('#icon-search')); - field.modified = function() { - var original = context.graph().base().entities[entity.id]; - return _.any(field.keys, function(key) { - return original ? tags[key] !== original.tags[key] : tags[key]; - }); - }; + gpxLayerItem.append('button') + .attr('class', 'layer-browse') + .call(bootstrap.tooltip() + .title(t('gpx.browse')) + .placement('left')) + .on('click', function() { + d3.select(document.createElement('input')) + .attr('type', 'file') + .on('change', function() { + context.background().gpxLayerFiles(d3.event.target.files); + }) + .node().click(); + }) + .call(iD.svg.Icon('#icon-geolocate')); - field.revert = function() { - var original = context.graph().base().entities[entity.id], - t = {}; - field.keys.forEach(function(key) { - t[key] = original ? original.tags[key] : undefined; - }); - return t; - }; + label = gpxLayerItem.append('label') + .call(bootstrap.tooltip() + .title(t('gpx.drag_drop')) + .placement('top')); - field.present = function() { - return _.any(field.keys, function(key) { - return tags[key]; - }); - }; + label.append('input') + .attr('type', 'checkbox') + .property('disabled', true) + .on('change', clickGpx); - field.remove = function() { - var t = {}; - field.keys.forEach(function(key) { - t[key] = undefined; - }); - return t; - }; + label.append('span') + .text(t('gpx.local_layer')); - return field; - } - function fieldKey(field) { - return field.id; - } + // area fills + content.append('a') + .text(t('map_data.fill_area')) + .attr('href', '#') + .classed('hide-toggle', true) + .classed('expanded', false) + .on('click', function() { + var exp = d3.select(this).classed('expanded'); + fillContainer.style('display', exp ? 'none' : 'block'); + d3.select(this).classed('expanded', !exp); + d3.event.preventDefault(); + }); - function presets(selection) { - if (!fields) { - var entity = context.entity(id), - geometry = context.geometry(id); + var fillContainer = content.append('div') + .attr('class', 'filters') + .style('display', 'none'); - fields = [UIField(context.presets().field('name'), entity)]; + var fillList = fillContainer.append('ul') + .attr('class', 'layer-list'); - preset.fields.forEach(function(field) { - if (field.matchGeometry(geometry)) { + + // feature filters + content.append('a') + .text(t('map_data.map_features')) + .attr('href', '#') + .classed('hide-toggle', true) + .classed('expanded', false) + .on('click', function() { + var exp = d3.select(this).classed('expanded'); + featureContainer.style('display', exp ? 'none' : 'block'); + d3.select(this).classed('expanded', !exp); + d3.event.preventDefault(); + }); + + var featureContainer = content.append('div') + .attr('class', 'filters') + .style('display', 'none'); + + var featureList = featureContainer.append('ul') + .attr('class', 'layer-list'); + + + context.features() + .on('change.map_data-update', update); + + setFill(fillDefault); + + var keybinding = d3.keybinding('features') + .on(key, togglePanel) + .on('W', toggleWireframe) + .on('B', hidePanel) + .on('H', hidePanel); + + d3.select(document) + .call(keybinding); + + context.surface().on('mousedown.map_data-outside', hidePanel); + context.container().on('mousedown.map_data-outside', hidePanel); + } + + return map_data; +}; +iD.ui.MapInMap = function(context) { + var key = '/'; + + function map_in_map(selection) { + + var backgroundLayer = iD.TileLayer(), + overlayLayers = {}, + dispatch = d3.dispatch('change'), + gpxLayer = iD.GpxLayer(context, dispatch), + projection = iD.geo.RawMercator(), + zoom = d3.behavior.zoom() + .scaleExtent([ztok(0.5), ztok(24)]) + .on('zoom', zoomPan), + transformed = false, + panning = false, + zDiff = 6, // by default, minimap renders at (main zoom - 6) + tStart, tLast, tCurr, kLast, kCurr, tiles, svg, gpx, timeoutId; + + iD.ui.MapInMap.gpxLayer = gpxLayer; + + function ztok(z) { return 256 * Math.pow(2, z); } + function ktoz(k) { return Math.log(k) / Math.LN2 - 8; } + + + function startMouse() { + context.surface().on('mouseup.map-in-map-outside', endMouse); + context.container().on('mouseup.map-in-map-outside', endMouse); + + tStart = tLast = tCurr = projection.translate(); + panning = true; + } + + + function zoomPan() { + var e = d3.event.sourceEvent, + t = d3.event.translate, + k = d3.event.scale, + zMain = ktoz(context.projection.scale() * 2 * Math.PI), + zMini = ktoz(k); + + // restrict minimap zoom to < (main zoom - 3) + if (zMini > zMain - 3) { + zMini = zMain - 3; + zoom.scale(kCurr).translate(tCurr); // restore last good values + return; + } + + tCurr = t; + kCurr = k; + zDiff = zMain - zMini; + + var scale = kCurr / kLast, + tX = (tCurr[0] / scale - tLast[0]) * scale, + tY = (tCurr[1] / scale - tLast[1]) * scale; + + iD.util.setTransform(tiles, tX, tY, scale); + iD.util.setTransform(svg, 0, 0, scale); + transformed = true; + + queueRedraw(); + + e.preventDefault(); + e.stopPropagation(); + } + + + function endMouse() { + context.surface().on('mouseup.map-in-map-outside', null); + context.container().on('mouseup.map-in-map-outside', null); + + updateProjection(); + panning = false; + + if (tCurr[0] !== tStart[0] && tCurr[1] !== tStart[1]) { + var dMini = selection.dimensions(), + cMini = [ dMini[0] / 2, dMini[1] / 2 ]; + + context.map().center(projection.invert(cMini)); + } + } + + + function updateProjection() { + var loc = context.map().center(), + dMini = selection.dimensions(), + cMini = [ dMini[0] / 2, dMini[1] / 2 ], + tMain = context.projection.translate(), + kMain = context.projection.scale(), + zMain = ktoz(kMain * 2 * Math.PI), + zMini = Math.max(zMain - zDiff, 0.5), + kMini = ztok(zMini); + + projection + .translate(tMain) + .scale(kMini / (2 * Math.PI)); + + var s = projection(loc), + mouse = panning ? [ tCurr[0] - tStart[0], tCurr[1] - tStart[1] ] : [0, 0], + tMini = [ + cMini[0] - s[0] + tMain[0] + mouse[0], + cMini[1] - s[1] + tMain[1] + mouse[1] + ]; + + projection + .translate(tMini) + .clipExtent([[0, 0], dMini]); + + zoom + .center(cMini) + .translate(tMini) + .scale(kMini); + + tLast = tCurr = tMini; + kLast = kCurr = kMini; + + if (transformed) { + iD.util.setTransform(tiles, 0, 0); + iD.util.setTransform(svg, 0, 0); + transformed = false; + } + } + + + function redraw() { + if (hidden()) return; + + updateProjection(); + + var dMini = selection.dimensions(), + zMini = ktoz(projection.scale() * 2 * Math.PI); + + // setup tile container + tiles = selection + .selectAll('.map-in-map-tiles') + .data([0]); + + tiles + .enter() + .append('div') + .attr('class', 'map-in-map-tiles'); + + // redraw background + backgroundLayer + .source(context.background().baseLayerSource()) + .projection(projection) + .dimensions(dMini); + + var background = tiles + .selectAll('.map-in-map-background') + .data([0]); + + background.enter() + .append('div') + .attr('class', 'map-in-map-background'); + + background + .call(backgroundLayer); + + // redraw overlay + var overlaySources = context.background().overlayLayerSources(); + var activeOverlayLayers = []; + for (var i = 0; i < overlaySources.length; i++) { + if (overlaySources[i].validZoom(zMini)) { + if (!overlayLayers[i]) overlayLayers[i] = iD.TileLayer(); + activeOverlayLayers.push(overlayLayers[i] + .source(overlaySources[i]) + .projection(projection) + .dimensions(dMini)); + } + } + + var overlay = tiles + .selectAll('.map-in-map-overlay') + .data([0]); + + overlay.enter() + .append('div') + .attr('class', 'map-in-map-overlay'); + + var overlays = overlay + .selectAll('div') + .data(activeOverlayLayers, function(d) { return d.source().name(); }); + + overlays.enter().append('div'); + overlays.each(function(layer) { + d3.select(this).call(layer); + }); + + overlays.exit() + .remove(); + + // redraw gpx overlay + gpxLayer + .projection(projection); + + gpx = tiles + .selectAll('.map-in-map-gpx') + .data([0]); + + gpx.enter() + .append('div') + .attr('class', 'map-in-map-gpx'); + + gpx.call(gpxLayer); + gpx.dimensions(dMini); + + // redraw bounding box + if (!panning) { + var getPath = d3.geo.path().projection(projection), + bbox = { type: 'Polygon', coordinates: [context.map().extent().polygon()] }; + + svg = selection.selectAll('.map-in-map-svg') + .data([0]); + + svg.enter() + .append('svg') + .attr('class', 'map-in-map-svg'); + + var path = svg.selectAll('.map-in-map-bbox') + .data([bbox]); + + path.enter() + .append('path') + .attr('class', 'map-in-map-bbox'); + + path + .attr('d', getPath) + .classed('thick', function(d) { return getPath.area(d) < 30; }); + } + } + + + function queueRedraw() { + clearTimeout(timeoutId); + timeoutId = setTimeout(function() { redraw(); }, 300); + } + + + function hidden() { + return selection.style('display') === 'none'; + } + + + function toggle() { + if (d3.event) d3.event.preventDefault(); + + var label = d3.select('.minimap-toggle'); + + if (hidden()) { + selection + .style('display', 'block') + .style('opacity', 0) + .transition() + .duration(200) + .style('opacity', 1); + + label.classed('active', true) + .select('input').property('checked', true); + + redraw(); + + } else { + selection + .style('display', 'block') + .style('opacity', 1) + .transition() + .duration(200) + .style('opacity', 0) + .each('end', function() { + d3.select(this).style('display', 'none'); + }); + + label.classed('active', false) + .select('input').property('checked', false); + } + } + + iD.ui.MapInMap.toggle = toggle; + + selection + .on('mousedown.map-in-map', startMouse) + .on('mouseup.map-in-map', endMouse); + + selection + .call(zoom) + .on('dblclick.zoom', null); + + context.map() + .on('drawn.map-in-map', function(drawn) { + if (drawn.full === true) redraw(); + }); + + redraw(); + + var keybinding = d3.keybinding('map-in-map') + .on(key, toggle); + + d3.select(document) + .call(keybinding); + } + + return map_in_map; +}; +iD.ui.modal = function(selection, blocking) { + + var previous = selection.select('div.modal'); + var animate = previous.empty(); + + previous.transition() + .duration(200) + .style('opacity', 0) + .remove(); + + var shaded = selection + .append('div') + .attr('class', 'shaded') + .style('opacity', 0); + + shaded.close = function() { + shaded + .transition() + .duration(200) + .style('opacity',0) + .remove(); + modal + .transition() + .duration(200) + .style('top','0px'); + keybinding.off(); + }; + + var keybinding = d3.keybinding('modal') + .on('⌫', shaded.close) + .on('⎋', shaded.close); + + d3.select(document).call(keybinding); + + var modal = shaded.append('div') + .attr('class', 'modal fillL col6'); + + shaded.on('click.remove-modal', function() { + if (d3.event.target === this && !blocking) shaded.close(); + }); + + modal.append('button') + .attr('class', 'close') + .on('click', function() { + if (!blocking) shaded.close(); + }) + .append('div') + .attr('class','icon close'); + + modal.append('div') + .attr('class', 'content'); + + if (animate) { + shaded.transition().style('opacity', 1); + } else { + shaded.style('opacity', 1); + } + + return shaded; +}; +iD.ui.Modes = function(context) { + var modes = [ + iD.modes.AddPoint(context), + iD.modes.AddLine(context), + iD.modes.AddArea(context)]; + + function editable() { + return context.editable() && context.mode().id !== 'save'; + } + + return function(selection) { + var buttons = selection.selectAll('button.add-button') + .data(modes); + + buttons.enter().append('button') + .attr('tabindex', -1) + .attr('class', function(mode) { return mode.id + ' add-button col4'; }) + .on('click.mode-buttons', function(mode) { + if (mode.id === context.mode().id) { + context.enter(iD.modes.Browse(context)); + } else { + context.enter(mode); + } + }) + .call(bootstrap.tooltip() + .placement('bottom') + .html(true) + .title(function(mode) { + return iD.ui.tooltipHtml(mode.description, mode.key); + })); + + context.map() + .on('move.modes', _.debounce(update, 500)); + + context + .on('enter.modes', update); + + buttons.each(function(d) { + d3.select(this) + .call(iD.svg.Icon('#icon-' + d.button, 'pre-text')); + }); + + buttons.append('span') + .attr('class', 'label') + .text(function(mode) { return mode.title; }); + + context.on('enter.editor', function(entered) { + buttons.classed('active', function(mode) { return entered.button === mode.button; }); + context.container() + .classed('mode-' + entered.id, true); + }); + + context.on('exit.editor', function(exited) { + context.container() + .classed('mode-' + exited.id, false); + }); + + var keybinding = d3.keybinding('mode-buttons'); + + modes.forEach(function(m) { + keybinding.on(m.key, function() { if (editable()) context.enter(m); }); + }); + + d3.select(document) + .call(keybinding); + + function update() { + buttons.property('disabled', !editable()); + } + }; +}; +iD.ui.Notice = function(context) { + return function(selection) { + var div = selection.append('div') + .attr('class', 'notice'); + + var button = div.append('button') + .attr('class', 'zoom-to notice') + .on('click', function() { context.map().zoom(context.minEditableZoom()); }); + + button + .call(iD.svg.Icon('#icon-plus', 'pre-text')) + .append('span') + .attr('class', 'label') + .text(t('zoom_in_edit')); + + function disableTooHigh() { + div.style('display', context.editable() ? 'none' : 'block'); + } + + context.map() + .on('move.notice', _.debounce(disableTooHigh, 500)); + + disableTooHigh(); + }; +}; +iD.ui.preset = function(context) { + var event = d3.dispatch('change'), + state, + fields, + preset, + tags, + id; + + function UIField(field, entity, show) { + field = _.clone(field); + + field.input = iD.ui.preset[field.type](field, context) + .on('change', event.change); + + if (field.input.entity) field.input.entity(entity); + + field.keys = field.keys || [field.key]; + + field.show = show; + + field.shown = function() { + return field.id === 'name' || field.show || _.any(field.keys, function(key) { return !!tags[key]; }); + }; + + field.modified = function() { + var original = context.graph().base().entities[entity.id]; + return _.any(field.keys, function(key) { + return original ? tags[key] !== original.tags[key] : tags[key]; + }); + }; + + field.revert = function() { + var original = context.graph().base().entities[entity.id], + t = {}; + field.keys.forEach(function(key) { + t[key] = original ? original.tags[key] : undefined; + }); + return t; + }; + + field.present = function() { + return _.any(field.keys, function(key) { + return tags[key]; + }); + }; + + field.remove = function() { + var t = {}; + field.keys.forEach(function(key) { + t[key] = undefined; + }); + return t; + }; + + return field; + } + + function fieldKey(field) { + return field.id; + } + + function presets(selection) { + if (!fields) { + var entity = context.entity(id), + geometry = context.geometry(id); + + fields = [UIField(context.presets().field('name'), entity)]; + + preset.fields.forEach(function(field) { + if (field.matchGeometry(geometry)) { fields.push(UIField(field, entity, true)); } }); + if (entity.isHighwayIntersection(context.graph())) { + fields.push(UIField(context.presets().field('restrictions'), entity, true)); + } + context.presets().universal().forEach(function(field) { if (preset.fields.indexOf(field) < 0) { fields.push(UIField(field, entity)); @@ -27691,7 +34751,7 @@ iD.ui.preset = function(context) { // Enter var $enter = $fields.enter() - .insert('div', '.more-buttons') + .append('div') .attr('class', function(field) { return 'form-field form-field-' + field.id; }); @@ -27706,13 +34766,12 @@ iD.ui.preset = function(context) { wrap.append('button') .attr('class', 'remove-icon') - .append('span').attr('class', 'icon delete'); + .call(iD.svg.Icon('#operation-delete')); wrap.append('button') .attr('class', 'modified-icon') .attr('tabindex', -1) - .append('div') - .attr('class', 'icon undo'); + .call(iD.svg.Icon('#icon-undo')); // Update @@ -27731,7 +34790,7 @@ iD.ui.preset = function(context) { return field.present(); }) .each(function(field) { - var reference = iD.ui.TagReference(field.reference || {key: field.key}); + var reference = iD.ui.TagReference(field.reference || {key: field.key}, context); if (state === 'hover') { reference.showing(false); @@ -27749,30 +34808,49 @@ iD.ui.preset = function(context) { $fields.exit() .remove(); - var $more = selection.selectAll('.more-buttons') - .data([0]); + notShown = notShown.map(function(field) { + return { + title: field.label(), + value: field.label(), + field: field + }; + }); + + var $more = selection.selectAll('.more-fields') + .data((notShown.length > 0) ? [0] : []); $more.enter().append('div') - .attr('class', 'more-buttons inspector-inner'); + .attr('class', 'more-fields') + .append('label') + .text(t('inspector.add_fields')); - var $buttons = $more.selectAll('.preset-add-field') - .data(notShown, fieldKey); + var $input = $more.selectAll('.value') + .data([0]); - $buttons.enter() - .append('button') - .attr('class', 'preset-add-field') - .call(bootstrap.tooltip() - .placement('top') - .title(function(d) { return d.label(); })) - .append('span') - .attr('class', function(d) { return 'icon ' + d.icon; }); + $input.enter().append('input') + .attr('class', 'value') + .attr('type', 'text'); + + $input.value('') + .attr('placeholder', function() { + var placeholder = []; + for (var field in notShown) { + placeholder.push(notShown[field].title); + } + return placeholder.slice(0,3).join(', ') + ((placeholder.length > 3) ? '…' : ''); + }) + .call(d3.combobox().data(notShown) + .minItems(1) + .on('accept', show)); - $buttons.on('click', show); + $more.exit() + .remove(); - $buttons.exit() + $input.exit() .remove(); function show(field) { + field = field.field; field.show = true; presets(selection); field.input.focus(); @@ -27793,6 +34871,7 @@ iD.ui.preset = function(context) { presets.preset = function(_) { if (!arguments.length) return preset; + if (preset && preset.id === _.id) return presets; preset = _; fields = null; return presets; @@ -27813,6 +34892,7 @@ iD.ui.preset = function(context) { presets.entityID = function(_) { if (!arguments.length) return id; + if (id === _) return presets; id = _; fields = null; return presets; @@ -27824,13 +34904,28 @@ iD.ui.PresetIcon = function() { var preset, geometry; function presetIcon(selection) { - selection.each(setup); + selection.each(render); } - function setup() { + function render() { var selection = d3.select(this), p = preset.apply(this, arguments), - geom = geometry.apply(this, arguments); + geom = geometry.apply(this, arguments), + icon = p.icon || (geom === 'line' ? 'other-line' : 'marker-stroked'), + maki = iD.data.featureIcons.hasOwnProperty(icon + '-24'); + + if (icon === 'dentist') maki = true; // workaround for dentist icon missing in `maki-sprite.json` + + function tag_classes(p) { + var s = ''; + for (var i in p.tags) { + s += ' tag-' + i; + if (p.tags[i] !== '*') { + s += ' tag-' + i + '-' + p.tags[i]; + } + } + return s; + } var $fill = selection.selectAll('.preset-icon-fill') .data([0]); @@ -27838,32 +34933,39 @@ iD.ui.PresetIcon = function() { $fill.enter().append('div'); $fill.attr('class', function() { - var s = 'preset-icon-fill preset-icon-fill-' + geom; - for (var i in p.tags) { - s += ' tag-' + i + ' tag-' + i + '-' + p.tags[i]; - } - return s; + return 'preset-icon-fill preset-icon-fill-' + geom + tag_classes(p); }); + var $frame = selection.selectAll('.preset-icon-frame') + .data([0]); + + $frame.enter() + .append('div') + .call(iD.svg.Icon('#preset-icon-frame')); + + $frame.attr('class', function() { + return 'preset-icon-frame ' + (geom === 'area' ? '' : 'hide'); + }); + + var $icon = selection.selectAll('.preset-icon') .data([0]); - $icon.enter().append('div'); + $icon.enter() + .append('div') + .attr('class', 'preset-icon') + .call(iD.svg.Icon('')); - $icon.attr('class', function() { - var icon = p.icon || (geom === 'line' ? 'other-line' : 'marker-stroked'), - klass = 'feature-' + icon + ' preset-icon'; + $icon + .attr('class', 'preset-icon preset-icon-' + (maki ? '32' : '60')); - var featureicon = iD.data.featureIcons[icon]; - if (featureicon && featureicon[geom]) { - klass += ' preset-icon-' + geom; - } else if (icon === 'multipolygon') { - // Special case (geometry === 'area') - klass += ' preset-icon-relation'; - } + $icon.selectAll('svg') + .attr('class', function() { + return 'icon ' + icon + tag_classes(p); + }); - return klass; - }); + $icon.selectAll('use') // workaround: maki parking-24 broken? + .attr('href', '#' + icon + (maki ? ( icon === 'parking' ? '-18' : '-24') : '')); } presetIcon.preset = function(_) { @@ -27903,15 +35005,14 @@ iD.ui.PresetList = function(context) { .attr('class', 'preset-choose') .on('click', function() { event.choose(currentPreset); }) .append('span') - .attr('class', 'icon forward'); + .html('►'); } else { messagewrap.append('button') .attr('class', 'close') .on('click', function() { context.enter(iD.modes.Browse(context)); }) - .append('span') - .attr('class', 'icon close'); + .call(iD.svg.Icon('#icon-close')); } function keydown() { @@ -27968,8 +35069,8 @@ iD.ui.PresetList = function(context) { .on('keypress', keypress) .on('input', inputevent); - searchWrap.append('span') - .attr('class', 'icon search'); + searchWrap + .call(iD.svg.Icon('#icon-search', 'pre-text')); if (autofocus) { search.node().focus(); @@ -28095,7 +35196,7 @@ iD.ui.PresetList = function(context) { }; item.preset = preset; - item.reference = iD.ui.TagReference(preset.reference(context.geometry(id))); + item.reference = iD.ui.TagReference(preset.reference(context.geometry(id)), context); return item; } @@ -28165,25 +35266,28 @@ iD.ui.RadialMenu = function(context, operations) { var button = menu.selectAll() .data(operations) - .enter().append('g') + .enter() + .append('g') + .attr('class', function(d) { return 'radial-menu-item radial-menu-item-' + d.id; }) + .classed('disabled', function(d) { return d.disabled(); }) .attr('transform', function(d, i) { - return 'translate(' + r * Math.sin(a0 + i * a) + ',' + - r * Math.cos(a0 + i * a) + ')'; + return 'translate(' + iD.geo.roundCoords([ + r * Math.sin(a0 + i * a), + r * Math.cos(a0 + i * a)]).join(',') + ')'; }); button.append('circle') - .attr('class', function(d) { return 'radial-menu-item radial-menu-item-' + d.id; }) .attr('r', 15) - .classed('disabled', function(d) { return d.disabled(); }) .on('click', click) .on('mousedown', mousedown) .on('mouseover', mouseover) .on('mouseout', mouseout); button.append('use') - .attr('transform', 'translate(-10, -10)') - .attr('clip-path', 'url(#clip-square-20)') - .attr('xlink:href', function(d) { return '#icon-operation-' + (d.disabled() ? 'disabled-' : '') + d.id; }); + .attr('transform', 'translate(-10,-10)') + .attr('width', '20') + .attr('height', '20') + .attr('xlink:href', function(d) { return '#operation-' + d.id; }); tooltip = d3.select(document.body) .append('div') @@ -28270,6 +35374,10 @@ iD.ui.RawMemberEditor = function(context) { context.perform( iD.actions.DeleteMember(d.relation.id, d.index), t('operations.delete_member.annotation')); + + if (!context.hasEntity(d.relation.id)) { + context.enter(iD.modes.Browse(context)); + } } function rawMemberEditor(selection) { @@ -28350,8 +35458,7 @@ iD.ui.RawMemberEditor = function(context) { .attr('tabindex', -1) .attr('class', 'remove button-input-action member-delete minor') .on('click', deleteMember) - .append('span') - .attr('class', 'icon delete'); + .call(iD.svg.Icon('#operation-delete')); $items.exit() .remove(); @@ -28503,8 +35610,7 @@ iD.ui.RawMembershipEditor = function(context) { .attr('tabindex', -1) .attr('class', 'remove button-input-action member-delete minor') .on('click', deleteMembership) - .append('span') - .attr('class', 'icon delete'); + .call(iD.svg.Icon('#operation-delete')); $items.exit() .remove(); @@ -28539,8 +35645,7 @@ iD.ui.RawMembershipEditor = function(context) { .attr('tabindex', -1) .attr('class', 'remove button-input-action member-delete minor') .on('click', deleteMembership) - .append('span') - .attr('class', 'icon delete'); + .call(iD.svg.Icon('#operation-delete')); } else { $list.selectAll('.member-row-new') @@ -28550,10 +35655,10 @@ iD.ui.RawMembershipEditor = function(context) { var $add = $wrap.selectAll('.add-relation') .data([0]); - $add.enter().append('button') + $add.enter() + .append('button') .attr('class', 'add-relation') - .append('span') - .attr('class', 'icon plus light'); + .call(iD.svg.Icon('#icon-plus', 'light')); $wrap.selectAll('.add-relation') .on('click', function() { @@ -28574,7 +35679,6 @@ iD.ui.RawMembershipEditor = function(context) { }; iD.ui.RawTagEditor = function(context) { var event = d3.dispatch('change'), - taginfo = iD.taginfo(), showBlank = false, state, preset, @@ -28586,12 +35690,12 @@ iD.ui.RawTagEditor = function(context) { selection.call(iD.ui.Disclosure() .title(t('inspector.all_tags') + ' (' + count + ')') - .expanded(iD.ui.RawTagEditor.expanded || preset.isFallback()) + .expanded(context.storage('raw_tag_editor.expanded') === 'true' || preset.isFallback()) .on('toggled', toggled) .content(content)); function toggled(expanded) { - iD.ui.RawTagEditor.expanded = expanded; + context.storage('raw_tag_editor.expanded', expanded); if (expanded) { selection.node().parentNode.scrollTop += 200; } @@ -28615,11 +35719,10 @@ iD.ui.RawTagEditor = function(context) { var $newTag = $wrap.selectAll('.add-tag') .data([0]); - var $enter = $newTag.enter().append('button') - .attr('class', 'add-tag'); - - $enter.append('span') - .attr('class', 'icon plus light'); + $newTag.enter() + .append('button') + .attr('class', 'add-tag') + .call(iD.svg.Icon('#icon-plus', 'light')); $newTag.on('click', addTag); @@ -28628,7 +35731,7 @@ iD.ui.RawTagEditor = function(context) { // Enter - $enter = $items.enter().append('li') + var $enter = $items.enter().append('li') .attr('class', 'tag-row cf'); $enter.append('div') @@ -28648,17 +35751,23 @@ iD.ui.RawTagEditor = function(context) { $enter.append('button') .attr('tabindex', -1) .attr('class', 'remove minor') - .append('span') - .attr('class', 'icon delete'); + .call(iD.svg.Icon('#operation-delete')); - $enter.each(bindTypeahead); + if (context.taginfo()) { + $enter.each(bindTypeahead); + } // Update $items.order(); $items.each(function(tag) { - var reference = iD.ui.TagReference({key: tag.key}); + var isRelation = (context.entity(id).type === 'relation'), + reference; + if (isRelation && tag.key === 'type') + reference = iD.ui.TagReference({rtype: tag.value}, context); + else + reference = iD.ui.TagReference({key: tag.key, value: tag.value}, context); if (state === 'hover') { reference.showing(false); @@ -28713,7 +35822,7 @@ iD.ui.RawTagEditor = function(context) { key.call(d3.combobox() .fetcher(function(value, callback) { - taginfo.keys({ + context.taginfo().keys({ debounce: true, geometry: context.geometry(id), query: value @@ -28724,7 +35833,7 @@ iD.ui.RawTagEditor = function(context) { value.call(d3.combobox() .fetcher(function(value, callback) { - taginfo.values({ + context.taginfo().values({ debounce: true, key: key.value(), geometry: context.geometry(id), @@ -28765,6 +35874,7 @@ iD.ui.RawTagEditor = function(context) { var tag = {}; tag[d.key] = undefined; event.change(tag); + d3.select(this.parentNode).remove(); } function addTag() { @@ -28887,7 +35997,7 @@ iD.ui.Save = function(context) { .text('0'); var keybinding = d3.keybinding('undo-redo') - .on(key, save); + .on(key, save, true); d3.select(document) .call(keybinding); @@ -28917,8 +36027,95 @@ iD.ui.Save = function(context) { }); }; }; +iD.ui.Scale = function(context) { + var projection = context.projection, + maxLength = 180, + tickHeight = 8; + + function scaleDefs(loc1, loc2) { + var lat = (loc2[1] + loc1[1]) / 2, + imperial = (iD.detect().locale.toLowerCase() === 'en-us'), + conversion = (imperial ? 3.28084 : 1), + dist = iD.geo.lonToMeters(loc2[0] - loc1[0], lat) * conversion, + scale = { dist: 0, px: 0, text: '' }, + buckets, i, val, dLon; + + if (imperial) { + buckets = [5280000, 528000, 52800, 5280, 500, 50, 5, 1]; + } else { + buckets = [5000000, 500000, 50000, 5000, 500, 50, 5, 1]; + } + + // determine a user-friendly endpoint for the scale + for (i = 0; i < buckets.length; i++) { + val = buckets[i]; + if (dist >= val) { + scale.dist = Math.floor(dist / val) * val; + break; + } + } + + dLon = iD.geo.metersToLon(scale.dist / conversion, lat); + scale.px = Math.round(projection([loc1[0] + dLon, loc1[1]])[0]); + + if (imperial) { + if (scale.dist >= 5280) { + scale.dist /= 5280; + scale.text = String(scale.dist) + ' mi'; + } else { + scale.text = String(scale.dist) + ' ft'; + } + } else { + if (scale.dist >= 1000) { + scale.dist /= 1000; + scale.text = String(scale.dist) + ' km'; + } else { + scale.text = String(scale.dist) + ' m'; + } + } + + return scale; + } + + function update(selection) { + // choose loc1, loc2 along bottom of viewport (near where the scale will be drawn) + var dims = context.map().dimensions(), + loc1 = projection.invert([0, dims[1]]), + loc2 = projection.invert([maxLength, dims[1]]), + scale = scaleDefs(loc1, loc2); + + selection.select('#scalepath') + .attr('d', 'M0.5,0.5v' + tickHeight + 'h' + scale.px + 'v-' + tickHeight); + + selection.select('#scaletext') + .attr('x', scale.px + 8) + .attr('y', tickHeight) + .text(scale.text); + } + + return function(selection) { + var g = selection.append('svg') + .attr('id', 'scale') + .append('g') + .attr('transform', 'translate(10,11)'); + + g.append('path').attr('id', 'scalepath'); + g.append('text').attr('id', 'scaletext'); + + update(selection); + + context.map().on('move.scale', function() { + update(selection); + }); + }; +}; iD.ui.SelectionList = function(context, selectedIDs) { + function selectEntity(entity) { + context.enter(iD.modes.Select(context, [entity.id]).suppressMenu(true)); + } + + function selectionList(selection) { selection.classed('selection-list-pane', true); @@ -28947,17 +36144,12 @@ iD.ui.SelectionList = function(context, selectedIDs) { var enter = items.enter().append('button') .attr('class', 'feature-list-item') - .on('click', function(entity) { - context.enter(iD.modes.Select(context, [entity.id])); - }); + .on('click', selectEntity); // Enter - var label = enter.append('div') - .attr('class', 'label'); - - label.append('span') - .attr('class', 'icon icon-pre-text'); + .attr('class', 'label') + .call(iD.svg.Icon('', 'pre-text')); label.append('span') .attr('class', 'entity-type'); @@ -28966,9 +36158,11 @@ iD.ui.SelectionList = function(context, selectedIDs) { .attr('class', 'entity-name'); // Update - - items.selectAll('.icon') - .attr('class', function(entity) { return context.geometry(entity.id) + ' icon icon-pre-text'; }); + items.selectAll('use') + .attr('href', function() { + var entity = this.parentElement.parentElement.__data__; + return '#icon-' + context.geometry(entity.id); + }); items.selectAll('.entity-type') .text(function(entity) { return context.presets().match(entity, context.graph()).name(); }); @@ -28977,7 +36171,6 @@ iD.ui.SelectionList = function(context, selectedIDs) { .text(function(entity) { return iD.util.displayName(entity); }); // Exit - items.exit() .remove(); } @@ -29054,6 +36247,7 @@ iD.ui.Sidebar = function(context) { sidebar.hide = function() { featureListWrap.classed('inspector-hidden', false); + inspectorWrap.classed('inspector-hidden', true); if (current) current.remove(); current = null; }; @@ -29081,6 +36275,7 @@ iD.ui.SourceSwitch = function(context) { context.connection() .switch(live ? keys[1] : keys[0]); + context.enter(iD.modes.Browse(context)); context.flush(); d3.select(this) @@ -29208,7 +36403,7 @@ iD.ui.Status = function(context) { }; }; iD.ui.Success = function(context) { - var event = d3.dispatch('cancel'), + var dispatch = d3.dispatch('cancel'), changeset; function success(selection) { @@ -29220,9 +36415,8 @@ iD.ui.Success = function(context) { header.append('button') .attr('class', 'fr') - .append('span') - .attr('class', 'icon close') - .on('click', function() { event.cancel(success); }); + .on('click', function() { dispatch.cancel(); }) + .call(iD.svg.Icon('#icon-close')); header.append('h3') .text(t('success.just_edited')); @@ -29249,13 +36443,15 @@ iD.ui.Success = function(context) { body.selectAll('.button.social') .data(d3.entries(sharing)) - .enter().append('a') - .attr('class', function(d) { return 'button social col4 ' + d.key; }) + .enter() + .append('a') + .attr('class', 'button social col4') .attr('target', '_blank') .attr('href', function(d) { return d.value; }) .call(bootstrap.tooltip() .title(function(d) { return t('success.' + d.key); }) - .placement('bottom')); + .placement('bottom')) + .each(function(d) { d3.select(this).call(iD.svg.Icon('#logo-' + d.key, 'social')); }); } success.changeset = function(_) { @@ -29264,21 +36460,20 @@ iD.ui.Success = function(context) { return success; }; - return d3.rebind(success, event, 'on'); + return d3.rebind(success, dispatch, 'on'); }; -iD.ui.TagReference = function(tag) { +iD.ui.TagReference = function(tag, context) { var tagReference = {}, - taginfo = iD.taginfo(), button, body, loaded, showing; - function findLocal(docs) { + function findLocal(data) { var locale = iD.detect().locale.toLowerCase(), localized; - localized = _.find(docs, function(d) { + localized = _.find(data, function(d) { return d.lang.toLowerCase() === locale; }); if (localized) return localized; @@ -29287,31 +36482,36 @@ iD.ui.TagReference = function(tag) { // 'en' if the language is 'en-US' if (locale.indexOf('-') !== -1) { var first = locale.split('-')[0]; - localized = _.find(docs, function(d) { + localized = _.find(data, function(d) { return d.lang.toLowerCase() === first; }); if (localized) return localized; } // finally fall back to english - return _.find(docs, function(d) { + return _.find(data, function(d) { return d.lang.toLowerCase() === 'en'; }); } - function load() { + function load(param) { button.classed('tag-reference-loading', true); - taginfo.docs(tag, function(err, docs) { - if (!err && docs) { - docs = findLocal(docs); + context.taginfo().docs(param, function show(err, data) { + var docs; + if (!err && data) { + docs = findLocal(data); } body.html(''); if (!docs || !docs.description) { - body.append('p').text(t('inspector.no_documentation_key')); - show(); + if (param.hasOwnProperty('value')) { + load(_.omit(param, 'value')); // retry with key only + } else { + body.append('p').text(t('inspector.no_documentation_key')); + done(); + } return; } @@ -29320,30 +36520,27 @@ iD.ui.TagReference = function(tag) { .append('img') .attr('class', 'wiki-image') .attr('src', docs.image.thumb_url_prefix + '100' + docs.image.thumb_url_suffix) - .on('load', function() { show(); }) - .on('error', function() { d3.select(this).remove(); show(); }); + .on('load', function() { done(); }) + .on('error', function() { d3.select(this).remove(); done(); }); } else { - show(); + done(); } body .append('p') .text(docs.description); - var wikiLink = body + body .append('a') .attr('target', '_blank') - .attr('href', 'http://wiki.openstreetmap.org/wiki/' + docs.title); - - wikiLink.append('span') - .attr('class','icon icon-pre-text out-link'); - - wikiLink.append('span') + .attr('href', 'http://wiki.openstreetmap.org/wiki/' + docs.title) + .call(iD.svg.Icon('#icon-out-link', 'inline')) + .append('span') .text(t('inspector.reference')); }); } - function show() { + function done() { loaded = true; button.classed('tag-reference-loading', false); @@ -29370,12 +36567,11 @@ iD.ui.TagReference = function(tag) { button = selection.selectAll('.tag-reference-button') .data([0]); - var enter = button.enter().append('button') + button.enter() + .append('button') + .attr('class', 'tag-reference-button') .attr('tabindex', -1) - .attr('class', 'tag-reference-button'); - - enter.append('span') - .attr('class', 'icon inspect'); + .call(iD.svg.Icon('#icon-inspect')); button.on('click', function () { d3.event.stopPropagation(); @@ -29383,9 +36579,11 @@ iD.ui.TagReference = function(tag) { if (showing) { hide(); } else if (loaded) { - show(); + done(); } else { - load(); + if (context.taginfo()) { + load(tag); + } } }); }; @@ -29411,7 +36609,8 @@ iD.ui.TagReference = function(tag) { }; return tagReference; -};// toggles the visibility of ui elements, using a combination of the +}; +// toggles the visibility of ui elements, using a combination of the // hide class, which sets display=none, and a d3 transition for opacity. // this will cause blinking when called repeatedly, so check that the // value actually changes between calls. @@ -29462,8 +36661,10 @@ iD.ui.UndoRedo = function(context) { .on('click', function(d) { return d.action(); }) .call(tooltip); - buttons.append('span') - .attr('class', function(d) { return 'icon ' + d.id; }); + buttons.each(function(d) { + d3.select(this) + .call(iD.svg.Icon('#icon-' + d.id)); + }); var keybinding = d3.keybinding('undo') .on(commands[0].cmd, function() { d3.event.preventDefault(); commands[0].action(); }) @@ -29502,17 +36703,16 @@ iD.ui.ViewOnOSM = function(context) { var $link = selection.selectAll('.view-on-osm') .data([0]); - var $enter = $link.enter().append('a') + $link.enter() + .append('a') .attr('class', 'view-on-osm') - .attr('target', '_blank'); - - $enter.append('span') - .attr('class', 'icon icon-pre-text out-link'); - - $enter.append('span') + .attr('target', '_blank') + .call(iD.svg.Icon('#icon-out-link', 'inline')) + .append('span') .text(t('inspector.view_on_osm')); - $link.attr('href', context.connection().entityURL(entity)); + $link + .attr('href', context.connection().entityURL(entity)); } viewOnOSM.entityID = function(_) { @@ -29526,16 +36726,39 @@ iD.ui.ViewOnOSM = function(context) { iD.ui.Zoom = function(context) { var zooms = [{ id: 'zoom-in', + icon: 'plus', title: t('zoom.in'), action: context.zoomIn, key: '+' }, { id: 'zoom-out', + icon: 'minus', title: t('zoom.out'), action: context.zoomOut, key: '-' }]; + function zoomIn() { + d3.event.preventDefault(); + context.zoomIn(); + } + + function zoomOut() { + d3.event.preventDefault(); + context.zoomOut(); + } + + function zoomInFurther() { + d3.event.preventDefault(); + context.zoomInFurther(); + } + + function zoomOutFurther() { + d3.event.preventDefault(); + context.zoomOutFurther(); + } + + return function(selection) { var button = selection.selectAll('button') .data(zooms) @@ -29550,14 +36773,25 @@ iD.ui.Zoom = function(context) { return iD.ui.tooltipHtml(d.title, d.key); })); - button.append('span') - .attr('class', function(d) { return d.id + ' icon'; }); + button.each(function(d) { + d3.select(this) + .call(iD.svg.Icon('#icon-' + d.icon, 'light')); + }); - var keybinding = d3.keybinding('zoom') - .on('+', function() { context.zoomIn(); }) - .on('-', function() { context.zoomOut(); }) - .on('⇧=', function() { context.zoomIn(); }) - .on('dash', function() { context.zoomOut(); }); + var keybinding = d3.keybinding('zoom'); + + _.each(['=','ffequals','plus','ffplus'], function(key) { + keybinding.on(key, zoomIn); + keybinding.on('⇧' + key, zoomIn); + keybinding.on(iD.ui.cmd('⌘' + key), zoomInFurther); + keybinding.on(iD.ui.cmd('⌘⇧' + key), zoomInFurther); + }); + _.each(['-','ffminus','_','dash'], function(key) { + keybinding.on(key, zoomOut); + keybinding.on('⇧' + key, zoomOut); + keybinding.on(iD.ui.cmd('⌘' + key), zoomOutFurther); + keybinding.on(iD.ui.cmd('⌘⇧' + key), zoomOutFurther); + }); d3.select(document) .call(keybinding); @@ -29619,6 +36853,10 @@ iD.ui.preset.access = function(field) { if (type !== 'access') { options.unshift('yes'); options.push('designated'); + + if (type === 'bicycle') { + options.push('dismount'); + } } return options.map(function(option) { @@ -29739,14 +36977,12 @@ iD.ui.preset.access = function(field) { return tags.access ? tags.access : field.placeholder(); }); - items.selectAll('#preset-input-access-access') - .attr('placeholder', 'yes'); + // items.selectAll('#preset-input-access-access') + // .attr('placeholder', 'yes'); - _.forEach(placeholders[tags.highway], function(value, key) { - items.selectAll('#preset-input-access-' + key) - .attr('placeholder', function() { - return (tags.access && (value === 'yes' || value === 'designated')) ? tags.access : value; - }); + _.forEach(placeholders[tags.highway], function(v, k) { + items.selectAll('#preset-input-access-' + k) + .attr('placeholder', function() { return (tags.access || v); }); }); }; @@ -29758,12 +36994,18 @@ iD.ui.preset.access = function(field) { return d3.rebind(access, event, 'on'); }; iD.ui.preset.address = function(field, context) { - var event = d3.dispatch('change'), - housenumber, - street, - city, - postcode, - entity; + var event = d3.dispatch('init', 'change'), + wrap, + entity, + isInitialized; + + var widths = { + housenumber: 1/3, + street: 2/3, + city: 2/3, + state: 1/4, + postcode: 1/3 + }; function getStreets() { var extent = entity.extent(context.graph()), @@ -29848,71 +37090,97 @@ iD.ui.preset.address = function(field, context) { } function address(selection) { - var wrap = selection.selectAll('.preset-input-wrap') - .data([0]); + isInitialized = false; + + selection.selectAll('.preset-input-wrap') + .remove(); + + var center = entity.extent(context.graph()).center(), + addressFormat; // Enter - var enter = wrap.enter().append('div') + wrap = selection.append('div') .attr('class', 'preset-input-wrap'); - enter.append('input') - .property('type', 'text') - .attr('placeholder', field.t('placeholders.number')) - .attr('class', 'addr-number'); + iD.countryCode().search(center, function (err, countryCode) { + addressFormat = _.find(iD.data.addressFormats, function (a) { + return a && a.countryCodes && _.contains(a.countryCodes, countryCode); + }) || _.first(iD.data.addressFormats); - enter.append('input') - .property('type', 'text') - .attr('placeholder', field.t('placeholders.street')) - .attr('class', 'addr-street'); + function row(r) { + // Normalize widths. + var total = _.reduce(r, function(sum, field) { + return sum + (widths[field] || 0.5); + }, 0); - enter.append('input') - .property('type', 'text') - .attr('placeholder', field.t('placeholders.city')) - .attr('class', 'addr-city'); + return r.map(function (field) { + return { + id: field, + width: (widths[field] || 0.5) / total + }; + }); + } - enter.append('input') - .property('type', 'text') - .attr('placeholder', field.t('placeholders.postcode')) - .attr('class', 'addr-postcode'); + wrap.selectAll('div') + .data(addressFormat.format) + .enter() + .append('div') + .attr('class', 'addr-row') + .selectAll('input') + .data(row) + .enter() + .append('input') + .property('type', 'text') + .attr('placeholder', function (d) { return field.t('placeholders.' + d.id); }) + .attr('class', function (d) { return 'addr-' + d.id; }) + .style('width', function (d) { return d.width * 100 + '%'; }); - // Update + // Update - housenumber = wrap.select('.addr-number'); - street = wrap.select('.addr-street'); - city = wrap.select('.addr-city'); - postcode = wrap.select('.addr-postcode'); + wrap.selectAll('.addr-street') + .call(d3.combobox() + .fetcher(function(value, callback) { + callback(getStreets()); + })); - wrap.selectAll('input') - .on('blur', change) - .on('change', change); + wrap.selectAll('.addr-city') + .call(d3.combobox() + .fetcher(function(value, callback) { + callback(getCities()); + })); - street - .call(d3.combobox() - .fetcher(function(value, callback) { - callback(getStreets()); - })); + wrap.selectAll('.addr-postcode') + .call(d3.combobox() + .fetcher(function(value, callback) { + callback(getPostCodes()); + })); - city - .call(d3.combobox() - .fetcher(function(value, callback) { - callback(getCities()); - })); + wrap.selectAll('input') + .on('blur', change) + .on('change', change); - postcode - .call(d3.combobox() - .fetcher(function(value, callback) { - callback(getPostCodes()); - })); + event.init(); + isInitialized = true; + }); } function change() { - event.change({ - 'addr:housenumber': housenumber.value() || undefined, - 'addr:street': street.value() || undefined, - 'addr:city': city.value() || undefined, - 'addr:postcode': postcode.value() || undefined - }); + var tags = {}; + + wrap.selectAll('input') + .each(function (field) { + tags['addr:' + field.id] = this.value || undefined; + }); + + event.change(tags); + } + + function updateTags(tags) { + wrap.selectAll('input') + .value(function (field) { + return tags['addr:' + field.id] || ''; + }); } address.entity = function(_) { @@ -29922,14 +37190,18 @@ iD.ui.preset.address = function(field, context) { }; address.tags = function(tags) { - housenumber.value(tags['addr:housenumber'] || ''); - street.value(tags['addr:street'] || ''); - city.value(tags['addr:city'] || ''); - postcode.value(tags['addr:postcode'] || ''); + if (isInitialized) { + updateTags(tags); + } else { + event.on('init', function () { + updateTags(tags); + }); + } }; address.focus = function() { - housenumber.node().focus(); + var node = wrap.selectAll('input').node(); + if (node) node.focus(); }; return d3.rebind(address, event, 'on'); @@ -29937,15 +37209,37 @@ iD.ui.preset.address = function(field, context) { iD.ui.preset.check = iD.ui.preset.defaultcheck = function(field) { var event = d3.dispatch('change'), - values = field.type === 'check' ? - [undefined, 'yes', 'no'] : - [undefined, 'yes'], - value, - box, - text, - label; + options = field.strings && field.strings.options, + values = [], + texts = [], + entity, value, box, text, label; + + if (options) { + for (var k in options) { + values.push(k === 'undefined' ? undefined : k); + texts.push(field.t('options.' + k, { 'default': options[k] })); + } + } else { + values = [undefined, 'yes']; + texts = [t('inspector.unknown'), t('inspector.check.yes')]; + if (field.type === 'check') { + values.push('no'); + texts.push(t('inspector.check.no')); + } + } var check = function(selection) { + // hack: pretend oneway field is a oneway_yes field + // where implied oneway tag exists (e.g. `junction=roundabout`) #2220, #1841 + if (field.id === 'oneway') { + for (var key in entity.tags) { + if (key in iD.oneWayTags && (entity.tags[key] in iD.oneWayTags[key])) { + texts[0] = t('presets.fields.oneway_yes.options.undefined'); + break; + } + } + } + selection.classed('checkselect', 'true'); label = selection.selectAll('.preset-input-wrap') @@ -29960,7 +37254,7 @@ iD.ui.preset.defaultcheck = function(field) { .attr('id', 'preset-input-' + field.id); enter.append('span') - .text(t('inspector.unknown')) + .text(texts[0]) .attr('class', 'value'); box = label.select('input') @@ -29974,12 +37268,17 @@ iD.ui.preset.defaultcheck = function(field) { text = label.select('span.value'); }; + check.entity = function(_) { + if (!arguments.length) return entity; + entity = _; + return check; + }; + check.tags = function(tags) { value = tags[field.key]; box.property('indeterminate', field.type === 'check' && !value); box.property('checked', value === 'yes'); - text.text(value ? t('inspector.check.' + value, {default: value}) : - field.type === 'check' ? t('inspector.unknown') : t('inspector.check.no')); + text.text(texts[values.indexOf(value)]); label.classed('set', !!value); }; @@ -29990,53 +37289,102 @@ iD.ui.preset.defaultcheck = function(field) { return d3.rebind(check, event, 'on'); }; iD.ui.preset.combo = -iD.ui.preset.typeCombo = function(field) { +iD.ui.preset.typeCombo = function(field, context) { var event = d3.dispatch('change'), + optstrings = field.strings && field.strings.options, + optarray = field.options, + snake_case = (field.snake_case || (field.snake_case === undefined)), + strings = {}, input; + function snake(s) { + return s.replace(/\s+/g, '_'); + } + + function unsnake(s) { + return s.replace(/_+/g, ' '); + } + + function clean(s) { + return s.split(';') + .map(function(s) { return s.trim(); }) + .join(';'); + } + + function optString() { + return _.find(_.keys(strings), function(k) { + return strings[k] === input.value(); + }); + } + function combo(selection) { var combobox = d3.combobox(); input = selection.selectAll('input') .data([0]); - input.enter().append('input') + var enter = input.enter() + .append('input') .attr('type', 'text') .attr('id', 'preset-input-' + field.id); + if (optstrings) { enter.attr('readonly', 'readonly'); } + input + .call(combobox) .on('change', change) .on('blur', change) .each(function() { - if (field.options) { - options(field.options); - } else { - iD.taginfo().values({ - key: field.key - }, function(err, data) { - if (!err) options(_.pluck(data, 'value')); + if (optstrings) { + _.each(optstrings, function(v, k) { + strings[k] = field.t('options.' + k, { 'default': v }); + }); + stringsLoaded(); + } else if (optarray) { + _.each(optarray, function(k) { + strings[k] = (snake_case ? unsnake(k) : k); + }); + stringsLoaded(); + } else if (context.taginfo()) { + context.taginfo().values({key: field.key}, function(err, data) { + if (!err) { + _.each(_.pluck(data, 'value'), function(k) { + strings[k] = (snake_case ? unsnake(k) : k); + }); + stringsLoaded(); + } }); } - }) - .call(combobox); + }); + + function stringsLoaded() { + var keys = _.keys(strings), + strs = [], + placeholders; - function options(opts) { - combobox.data(opts.map(function(d) { - var o = {}; - o.title = o.value = d.replace('_', ' '); + combobox.data(keys.map(function(k) { + var s = strings[k], + o = {}; + o.title = o.value = s; + if (s.length < 20) { strs.push(s); } return o; })); - input.attr('placeholder', function() { - if (opts.length < 3) return ''; - return opts.slice(0, 3).join(', ') + '...'; - }); + placeholders = strs.length > 1 ? strs : keys; + input.attr('placeholder', field.placeholder() || + (placeholders.slice(0, 3).join(', ') + '...')); } } function change() { - var value = input.value().replace(' ', '_'); - if (field.type === 'typeCombo' && !value) value = 'yes'; + var value = optString() || clean(input.value()); + + if (snake_case) { + value = snake(value); + } + if (field.type === 'typeCombo' && !value) { + value = 'yes'; + } var t = {}; t[field.key] = value || undefined; @@ -30044,8 +37392,16 @@ iD.ui.preset.typeCombo = function(field) { } combo.tags = function(tags) { - var value = tags[field.key] || ''; - if (field.type === 'typeCombo' && value === 'yes') value = ''; + var key = tags[field.key], + optstring = optString(), + value = strings[key] || key || ''; + + if (field.type === 'typeCombo' && value.toLowerCase() === 'yes') { + value = ''; + } + if (!optstring && snake_case) { + value = unsnake(value); + } input.value(value); }; @@ -30055,6 +37411,106 @@ iD.ui.preset.typeCombo = function(field) { return d3.rebind(combo, event, 'on'); }; +iD.ui.preset.cycleway = function(field) { + var event = d3.dispatch('change'), + items; + + function cycleway(selection) { + var wrap = selection.selectAll('.preset-input-wrap') + .data([0]); + + wrap.enter().append('div') + .attr('class', 'cf preset-input-wrap') + .append('ul'); + + items = wrap.select('ul').selectAll('li') + .data(field.keys); + + // Enter + + var enter = items.enter().append('li') + .attr('class', function(d) { return 'cf preset-cycleway-' + d; }); + + enter.append('span') + .attr('class', 'col6 label preset-label-cycleway') + .attr('for', function(d) { return 'preset-input-cycleway-' + d; }) + .text(function(d) { return field.t('types.' + d); }); + + enter.append('div') + .attr('class', 'col6 preset-input-cycleway-wrap') + .append('input') + .attr('type', 'text') + .attr('class', 'preset-input-cycleway') + .attr('id', function(d) { return 'preset-input-cycleway-' + d; }) + .each(function(d) { + d3.select(this) + .call(d3.combobox() + .data(cycleway.options(d))); + }); + + // Update + + wrap.selectAll('.preset-input-cycleway') + .on('change', change) + .on('blur', change); + } + + function change() { + var inputs = d3.selectAll('.preset-input-cycleway')[0], + left = d3.select(inputs[0]).value(), + right = d3.select(inputs[1]).value(), + tag = {}; + if (left === 'none' || left === '') { left = undefined; } + if (right === 'none' || right === '') { right = undefined; } + + // Always set both left and right as changing one can affect the other + tag = { + cycleway: undefined, + 'cycleway:left': left, + 'cycleway:right': right + }; + + // If the left and right tags match, use the cycleway tag to tag both + // sides the same way + if (left === right) { + tag = { + cycleway: left, + 'cycleway:left': undefined, + 'cycleway:right': undefined + }; + } + + event.change(tag); + } + + cycleway.options = function() { + return d3.keys(field.strings.options).map(function(option) { + return { + title: field.t('options.' + option + '.description'), + value: option + }; + }); + }; + + cycleway.tags = function(tags) { + items.selectAll('.preset-input-cycleway') + .value(function(d) { + // If cycleway is set, always return that + if (tags.cycleway) { + return tags.cycleway; + } + return tags[d] || ''; + }) + .attr('placeholder', field.placeholder()); + }; + + cycleway.focus = function() { + items.selectAll('.preset-input-cycleway') + .node().focus(); + }; + + return d3.rebind(cycleway, event, 'on'); +}; iD.ui.preset.text = iD.ui.preset.number = iD.ui.preset.tel = @@ -30137,10 +37593,6 @@ iD.ui.preset.localized = function(field, context) { .attr('class', 'localized-main') .attr('placeholder', field.placeholder()); - input - .on('blur', change) - .on('change', change); - if (field.id === 'name') { var preset = context.presets().match(entity, context.graph()); input.call(d3.combobox().fetcher( @@ -30148,16 +37600,20 @@ iD.ui.preset.localized = function(field, context) { )); } + input + .on('blur', change) + .on('change', change); + var translateButton = selection.selectAll('.localized-add') .data([0]); - translateButton.enter().append('button') + translateButton.enter() + .append('button') .attr('class', 'button-input-action localized-add minor') + .call(iD.svg.Icon('#icon-plus')) .call(bootstrap.tooltip() .title(t('translate.translate')) - .placement('left')) - .append('span') - .attr('class', 'icon plus'); + .placement('left')); translateButton .on('click', addBlank); @@ -30263,7 +37719,7 @@ iD.ui.preset.localized = function(field, context) { .style('max-height','0px') .remove(); }) - .append('span').attr('class', 'icon delete'); + .call(iD.svg.Icon('#operation-delete')); wrap.append('input') .attr('class', 'localized-lang') @@ -30331,11 +37787,11 @@ iD.ui.preset.localized = function(field, context) { input.value(tags[field.key] || ''); - var postfixed = []; - for (var i in tags) { - var m = i.match(new RegExp(field.key + ':([a-zA-Z_-]+)$')); - if (m && m[1]) { - postfixed.push({ lang: m[1], value: tags[i]}); + var postfixed = [], k, m; + for (k in tags) { + m = k.match(/^(.*):([a-zA-Z_-]+)$/); + if (m && m[1] === field.key && m[2]) { + postfixed.push({ lang: m[2], value: tags[k] }); } } @@ -30377,9 +37833,9 @@ iD.ui.preset.maxspeed = function(field, context) { .attr('placeholder', field.placeholder()); input + .call(combobox) .on('change', change) - .on('blur', change) - .call(combobox); + .on('blur', change); var childNodes = context.graph().childNodes(context.entity(entity.id)), loc = childNodes[~~(childNodes.length/2)].loc; @@ -30539,6 +37995,146 @@ iD.ui.preset.radio = function(field) { return d3.rebind(radio, event, 'on'); }; +iD.ui.preset.restrictions = function(field, context) { + var event = d3.dispatch('change'), + vertexID, + fromNodeID; + + function restrictions(selection) { + var wrap = selection.selectAll('.preset-input-wrap') + .data([0]); + + var enter = wrap.enter().append('div') + .attr('class', 'preset-input-wrap'); + + enter.append('div') + .attr('class', 'restriction-help'); + + enter.append('svg') + .call(iD.svg.Surface(context)) + .call(iD.behavior.Hover(context)); + + var intersection = iD.geo.Intersection(context.graph(), vertexID), + graph = intersection.graph, + vertex = graph.entity(vertexID), + surface = wrap.selectAll('svg'), + filter = function () { return true; }, + extent = iD.geo.Extent(), + projection = iD.geo.RawMercator(), + lines = iD.svg.Lines(projection, context), + vertices = iD.svg.Vertices(projection, context), + turns = iD.svg.Turns(projection, context); + + var d = wrap.dimensions(), + c = [d[0] / 2, d[1] / 2], + z = 21; + + projection + .scale(256 * Math.pow(2, z) / (2 * Math.PI)); + + var s = projection(vertex.loc); + + projection + .translate([c[0] - s[0], c[1] - s[1]]) + .clipExtent([[0, 0], d]); + + surface + .call(vertices, graph, [vertex], filter, extent, z) + .call(lines, graph, intersection.ways, filter) + .call(turns, graph, intersection.turns(fromNodeID)); + + surface + .on('click.restrictions', click) + .on('mouseover.restrictions', mouseover) + .on('mouseout.restrictions', mouseout); + + surface + .selectAll('.selected') + .classed('selected', false); + + if (fromNodeID) { + surface + .selectAll('.' + intersection.highways[fromNodeID].id) + .classed('selected', true); + } + + mouseout(); + + context.history() + .on('change.restrictions', render); + + d3.select(window) + .on('resize.restrictions', render); + + function click() { + var datum = d3.event.target.__data__; + if (datum instanceof iD.Entity) { + fromNodeID = intersection.adjacentNodeId(datum.id); + render(); + } else if (datum instanceof iD.geo.Turn) { + if (datum.restriction) { + context.perform( + iD.actions.UnrestrictTurn(datum, projection), + t('operations.restriction.annotation.delete')); + } else { + context.perform( + iD.actions.RestrictTurn(datum, projection), + t('operations.restriction.annotation.create')); + } + } + } + + function mouseover() { + var datum = d3.event.target.__data__; + if (datum instanceof iD.geo.Turn) { + var graph = context.graph(), + presets = context.presets(), + preset; + + if (datum.restriction) { + preset = presets.match(graph.entity(datum.restriction), graph); + } else { + preset = presets.item('type/restriction/' + + iD.geo.inferRestriction( + graph, + datum.from, + datum.via, + datum.to, + projection)); + } + + wrap.selectAll('.restriction-help') + .text(t('operations.restriction.help.' + + (datum.restriction ? 'toggle_off' : 'toggle_on'), + {restriction: preset.name()})); + } + } + + function mouseout() { + wrap.selectAll('.restriction-help') + .text(t('operations.restriction.help.' + + (fromNodeID ? 'toggle' : 'select'))); + } + + function render() { + if (context.hasEntity(vertexID)) { + restrictions(selection); + } + } + } + + restrictions.entity = function(_) { + if (!vertexID || vertexID !== _.id) { + fromNodeID = null; + vertexID = _.id; + } + }; + + restrictions.tags = function() {}; + restrictions.focus = function() {}; + + return d3.rebind(restrictions, event, 'on'); +}; iD.ui.preset.textarea = function(field) { var event = d3.dispatch('change'), @@ -30617,9 +38213,9 @@ iD.ui.preset.wikipedia = function(field, context) { .value('English'); lang + .call(langcombo) .on('blur', changeLang) - .on('change', changeLang) - .call(langcombo); + .on('change', changeLang); title = selection.selectAll('input.wiki-title') .data([0]); @@ -30630,9 +38226,9 @@ iD.ui.preset.wikipedia = function(field, context) { .attr('id', 'preset-input-' + field.id); title + .call(titlecombo) .on('blur', change) - .on('change', change) - .call(titlecombo); + .on('change', change); link = selection.selectAll('a.wiki-link') .data([0]); @@ -30640,17 +38236,19 @@ iD.ui.preset.wikipedia = function(field, context) { link.enter().append('a') .attr('class', 'wiki-link button-input-action minor') .attr('target', '_blank') - .append('span') - .attr('class', 'icon out-link'); + .call(iD.svg.Icon('#icon-out-link', 'inline')); } function language() { var value = lang.value().toLowerCase(); + var locale = iD.detect().locale.toLowerCase(); + var localeLanguage; return _.find(iD.data.wikipedia, function(d) { + if (d[2] === locale) localeLanguage = d; return d[0].toLowerCase() === value || d[1].toLowerCase() === value || - d[2].toLowerCase() === value; - }) || iD.data.wikipedia[0]; + d[2] === value; + }) || localeLanguage || ['English', 'English', 'en']; } function changeLang() { @@ -30660,12 +38258,22 @@ iD.ui.preset.wikipedia = function(field, context) { function change() { var value = title.value(), - m = value.match(/https?:\/\/([a-z]+)\.wikipedia\.org\/wiki\/(.+)/), - l = m && _.find(iD.data.wikipedia, function(d) { return m[1] === d[2]; }); + m = value.match(/https?:\/\/([-a-z]+)\.wikipedia\.org\/(?:wiki|\1-[-a-z]+)\/([^#]+)(?:#(.+))?/), + l = m && _.find(iD.data.wikipedia, function(d) { return m[1] === d[2]; }), + anchor; if (l) { // Normalize title http://www.mediawiki.org/wiki/API:Query#Title_normalization - value = m[2].replace(/_/g, ' '); + value = decodeURIComponent(m[2]).replace(/_/g, ' '); + if (m[3]) { + try { + // Best-effort `anchordecode:` implementation + anchor = decodeURIComponent(m[3].replace(/\.([0-9A-F]{2})/g, '%$1')); + } catch (e) { + anchor = decodeURIComponent(m[3]); + } + value += '#' + anchor.replace(/_/g, ' '); + } value = value.slice(0, 1).toUpperCase() + value.slice(1); lang.value(l[1]); title.value(value); @@ -30678,14 +38286,24 @@ iD.ui.preset.wikipedia = function(field, context) { i.tags = function(tags) { var value = tags[field.key] || '', - m = value.match(/([^:]+):(.+)/), - l = m && _.find(iD.data.wikipedia, function(d) { return m[1] === d[2]; }); + m = value.match(/([^:]+):([^#]+)(?:#(.+))?/), + l = m && _.find(iD.data.wikipedia, function(d) { return m[1] === d[2]; }), + anchor = m && m[3]; // value in correct format if (l) { lang.value(l[1]); - title.value(m[2]); - link.attr('href', 'http://' + m[1] + '.wikipedia.org/wiki/' + m[2]); + title.value(m[2] + (anchor ? ('#' + anchor) : '')); + if (anchor) { + try { + // Best-effort `anchorencode:` implementation + anchor = encodeURIComponent(anchor.replace(/ /g, '_')).replace(/%/g, '.'); + } catch (e) { + anchor = anchor.replace(/ /g, '_'); + } + } + link.attr('href', 'http://' + m[1] + '.wikipedia.org/wiki/' + + m[2].replace(/ /g, '_') + (anchor ? ('#' + anchor) : '')); // unrecognized value format } else { @@ -31260,6 +38878,48 @@ iD.presets = function() { return match || all.item(geometry); }; + // Because of the open nature of tagging, iD will never have a complete + // list of tags used in OSM, so we want it to have logic like "assume + // that a closed way with an amenity tag is an area, unless the amenity + // is one of these specific types". This function computes a structure + // that allows testing of such conditions, based on the presets designated + // as as supporting (or not supporting) the area geometry. + // + // The returned object L is a whitelist/blacklist of tags. A closed way + // with a tag (k, v) is considered to be an area if `k in L && !(v in L[k])` + // (see `iD.Way#isArea()`). In other words, the keys of L form the whitelist, + // and the subkeys form the blacklist. + all.areaKeys = function() { + var areaKeys = {}, + ignore = ['barrier', 'highway', 'footway', 'railway', 'type'], + presets = _.reject(all.collection, 'suggestion'); + + // whitelist + presets.forEach(function(d) { + for (var key in d.tags) break; + if (!key) return; + if (ignore.indexOf(key) !== -1) return; + + if (d.geometry.indexOf('area') !== -1) { + areaKeys[key] = areaKeys[key] || {}; + } + }); + + // blacklist + presets.forEach(function(d) { + for (var key in d.tags) break; + if (!key) return; + if (ignore.indexOf(key) !== -1) return; + + var value = d.tags[key]; + if (d.geometry.indexOf('area') === -1 && key in areaKeys && value !== '*') { + areaKeys[key][value] = true; + } + }); + + return areaKeys; + }; + all.load = function(d) { if (d.fields) { @@ -31382,11 +39042,16 @@ iD.presets.Collection = function(collection) { value = value.toLowerCase(); var searchable = _.filter(collection, function(a) { - return a.searchable !== false && a.suggestion !== true; - }), - suggestions = _.filter(collection, function(a) { - return a.suggestion === true; - }); + return a.searchable !== false && a.suggestion !== true; + }), + suggestions = _.filter(collection, function(a) { + return a.suggestion === true; + }); + + function leading(a) { + var index = a.indexOf(value); + return index === 0 || a[index - 1] === ' '; + } // matches value to preset.name var leading_name = _.filter(searchable, function(a) { @@ -31399,13 +39064,14 @@ iD.presets.Collection = function(collection) { // matches value to preset.terms values var leading_terms = _.filter(searchable, function(a) { - return _.any(a.terms() || [], leading); - }); + return _.any(a.terms() || [], leading); + }); + + // matches value to preset.tags values + var leading_tag_values = _.filter(searchable, function(a) { + return _.any(_.without(_.values(a.tags || {}), '*'), leading); + }); - function leading(a) { - var index = a.indexOf(value); - return index === 0 || a[index - 1] === ' '; - } // finds close matches to value in preset.name var levenstein_name = searchable.map(function(a) { @@ -31463,6 +39129,7 @@ iD.presets.Collection = function(collection) { var results = leading_name.concat( leading_terms, + leading_tag_values, leading_suggestions.slice(0, maxSuggestionResults+5), levenstein_name, leventstein_terms, @@ -31483,7 +39150,7 @@ iD.presets.Field = function(id, field) { field.id = id; field.matchGeometry = function(geometry) { - return !field.geometry || field.geometry.indexOf(geometry) >= 0; + return !field.geometry || field.geometry === geometry; }; field.t = function(scope, options) { @@ -31506,6 +39173,7 @@ iD.presets.Preset = function(id, preset, fields) { preset.id = id; preset.fields = (preset.fields || []).map(getFields); + preset.geometry = (preset.geometry || []); function getFields(f) { return fields[f]; @@ -31548,7 +39216,7 @@ iD.presets.Preset = function(id, preset, fields) { }; preset.terms = function() { - return preset.t('terms', {'default': ''}).split(','); + return preset.t('terms', {'default': ''}).toLowerCase().trim().split(/\s*,+\s*/); }; preset.isFallback = function() { @@ -31574,11 +39242,12 @@ iD.presets.Preset = function(id, preset, fields) { for (var f in preset.fields) { var field = preset.fields[f]; - if (field.matchGeometry(geometry) && field['default'] === tags[field.key]) { + if (field.matchGeometry(geometry) && field.default === tags[field.key]) { delete tags[field.key]; } } + delete tags.area; return tags; }; @@ -31596,17 +39265,29 @@ iD.presets.Preset = function(id, preset, fields) { } } - // Add area=yes if necessary - for (k in applyTags) { - if (geometry === 'area' && !(k in iD.areaKeys)) + // Add area=yes if necessary. + // This is necessary if the geometry is already an area (e.g. user drew an area) AND any of: + // 1. chosen preset could be either an area or a line (`barrier=city_wall`) + // 2. chosen preset doesn't have a key in areaKeys (`railway=station`) + if (geometry === 'area') { + var needsAreaTag = true; + if (preset.geometry.indexOf('line') === -1) { + for (k in applyTags) { + if (k in iD.areaKeys) { + needsAreaTag = false; + break; + } + } + } + if (needsAreaTag) { tags.area = 'yes'; - break; + } } for (var f in preset.fields) { var field = preset.fields[f]; - if (field.matchGeometry(geometry) && field.key && !tags[field.key] && field['default']) { - tags[field.key] = field['default']; + if (field.matchGeometry(geometry) && field.key && !tags[field.key] && field.default) { + tags[field.key] = field.default; } } @@ -31615,60 +39296,104 @@ iD.presets.Preset = function(id, preset, fields) { return preset; }; -iD.validate = function(changes, graph) { - var warnings = []; +iD.validations = {}; +iD.validations.DeprecatedTag = function() { + + var validation = function(changes) { + var warnings = []; + for (var i = 0; i < changes.created.length; i++) { + var change = changes.created[i], + deprecatedTags = change.deprecatedTags(); + + if (!_.isEmpty(deprecatedTags)) { + var tags = iD.util.tagText({ tags: deprecatedTags }); + warnings.push({ + id: 'deprecated_tags', + message: t('validations.deprecated_tags', { tags: tags }), + entity: change + }); + } + } + return warnings; + }; + + return validation; +}; +iD.validations.ManyDeletions = function() { + var threshold = 100; + + var validation = function(changes) { + var warnings = []; + if (changes.deleted.length > threshold) { + warnings.push({ + id: 'many_deletions', + message: t('validations.many_deletions', { n: changes.deleted.length }) + }); + } + return warnings; + }; + + return validation; +}; +iD.validations.MissingTag = function() { + + var validation = function(changes, graph) { + var warnings = []; + for (var i = 0; i < changes.created.length; i++) { + var change = changes.created[i], + geometry = change.geometry(graph); + + if ((geometry === 'point' || geometry === 'line' || geometry === 'area') && !change.isUsed(graph)) { + warnings.push({ + id: 'missing_tag', + message: t('validations.untagged_' + geometry), + tooltip: t('validations.untagged_' + geometry + '_tooltip'), + entity: change + }); + } + } + return warnings; + }; + + return validation; +}; +iD.validations.TagSuggestsArea = function() { // https://github.com/openstreetmap/josm/blob/mirror/src/org/ // openstreetmap/josm/data/validation/tests/UnclosedWays.java#L80 - function tagSuggestsArea(change) { - if (_.isEmpty(change.tags)) return false; - var tags = change.tags; + function tagSuggestsArea(tags) { + if (_.isEmpty(tags)) return false; + var presence = ['landuse', 'amenities', 'tourism', 'shop']; for (var i = 0; i < presence.length; i++) { if (tags[presence[i]] !== undefined) { return presence[i] + '=' + tags[presence[i]]; } } - if (tags.building && tags.building === 'yes') return 'building=yes'; - } - if (changes.deleted.length > 100) { - warnings.push({ - message: t('validations.many_deletions', { n: changes.deleted.length }) - }); + if (tags.building && tags.building === 'yes') return 'building=yes'; } - for (var i = 0; i < changes.created.length; i++) { - var change = changes.created[i], - geometry = change.geometry(graph); + var validation = function(changes, graph) { + var warnings = []; + for (var i = 0; i < changes.created.length; i++) { + var change = changes.created[i], + geometry = change.geometry(graph), + suggestion = (geometry === 'line' ? tagSuggestsArea(change.tags) : undefined); - if ((geometry === 'point' || geometry === 'line' || geometry === 'area') && !change.isUsed(graph)) { - warnings.push({ - message: t('validations.untagged_' + geometry), - tooltip: t('validations.untagged_tooltip', {geometry: geometry}), - entity: change - }); - } - - var deprecatedTags = change.deprecatedTags(); - if (!_.isEmpty(deprecatedTags)) { - warnings.push({ - message: t('validations.deprecated_tags', { - tags: iD.util.tagText({ tags: deprecatedTags }) - }), entity: change }); - } - - if (geometry === 'line' && tagSuggestsArea(change)) { - warnings.push({ - message: t('validations.tag_suggests_area', {tag: tagSuggestsArea(change)}), - entity: change - }); + if (suggestion) { + warnings.push({ + id: 'tag_suggests_area', + message: t('validations.tag_suggests_area', { tag: suggestion }), + entity: change + }); + } } - } + return warnings; + }; - return warnings; + return validation; }; -/* jshint ignore:start */ })(); window.locale = { _current: 'en' }; @@ -31860,81040 +39585,13373 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "yh:STRUCTURE", "yh:TOTYUMONO", "yh:TYPE", + "yh:WIDTH", "yh:WIDTH_RANK", "SK53_bulk:load" ], - "imagery": [ - { - "name": "7th Series (OS7)", - "type": "tms", - "template": "http://ooc.openstreetmap.org/os7/{zoom}/{x}/{y}.jpg", - "polygon": [ - [ - [ - -9, - 49.8 - ], - [ - -9, - 61.1 - ], - [ - 1.9, - 61.1 - ], - [ - 1.9, - 49.8 - ], - [ - -9, - 49.8 - ] - ] - ] - }, - { - "name": "AGRI black-and-white 2.5m", - "type": "tms", - "template": "http://agri.openstreetmap.org/{zoom}/{x}/{y}.png", - "polygon": [ - [ - [ - 112.28778, - -28.784589 - ], - [ - 112.71488, - -31.13894 - ], - [ - 114.11263, - -34.178287 - ], - [ - 113.60788, - -37.39012 - ], - [ - 117.17992, - -37.451794 - ], - [ - 119.31538, - -37.42096 - ], - [ - 121.72262, - -36.708394 - ], - [ - 123.81925, - -35.76893 - ], - [ - 125.9547, - -34.3066 - ], - [ - 127.97368, - -33.727398 - ], - [ - 130.07031, - -33.24166 - ], - [ - 130.10913, - -33.888704 - ], - [ - 131.00214, - -34.049705 - ], - [ - 131.0798, - -34.72257 - ], - [ - 132.28342, - -35.39 - ], - [ - 134.18591, - -35.61126 - ], - [ - 133.8753, - -37.1119 - ], - [ - 134.8459, - -37.6365 - ], - [ - 139.7769, - -37.82075 - ], - [ - 139.93223, - -39.4283 - ], - [ - 141.6017, - -39.8767 - ], - [ - 142.3783, - -39.368294 - ], - [ - 142.3783, - -40.64702 - ], - [ - 142.49478, - -42.074874 - ], - [ - 144.009, - -44.060127 - ], - [ - 147.23161, - -44.03222 - ], - [ - 149.05645, - -42.534313 - ], - [ - 149.52237, - -40.99959 - ], - [ - 149.9494, - -40.852921 - ], - [ - 150.8036, - -38.09627 - ], - [ - 151.81313, - -38.12682 - ], - [ - 156.20052, - -22.667706 - ], - [ - 156.20052, - -20.10109 - ], - [ - 156.62761, - -17.417627 - ], - [ - 155.26869, - -17.19521 - ], - [ - 154.14272, - -19.51662 - ], - [ - 153.5215, - -18.34139 - ], - [ - 153.05558, - -16.5636 - ], - [ - 152.78379, - -15.256768 - ], - [ - 152.27905, - -13.4135 - ], - [ - 151.3472, - -12.391767 - ], - [ - 149.48354, - -12.05024 - ], - [ - 146.9598, - -9.992408 - ], - [ - 135.9719, - -9.992408 - ], - [ - 130.3032, - -10.33636 - ], - [ - 128.09016, - -12.164136 - ], - [ - 125.91588, - -12.315912 - ], - [ - 124.3239, - -11.860326 - ], - [ - 122.03323, - -11.974295 - ], - [ - 118.26706, - -16.9353 - ], - [ - 115.93747, - -19.11357 - ], - [ - 114.0738, - -21.11863 - ], - [ - 113.49141, - -22.596033 - ], - [ - 112.28778, - -28.784589 - ] - ] - ], - "terms_text": "AGRI" - }, - { - "name": "Bing aerial imagery", - "type": "bing", - "description": "Satellite and aerial imagery.", - "template": "http://www.bing.com/maps/", - "scaleExtent": [ - 0, - 22 - ], - "id": "Bing", - "default": true - }, - { - "name": "British Columbia Mosaic", - "type": "tms", - "template": "http://{switch:a,b,c,d}.imagery.paulnorman.ca/tiles/bc_mosaic/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 9, - 20 - ], - "polygon": [ - [ - [ - -123.3176032, - 49.3272567 - ], - [ - -123.4405258, - 49.3268222 - ], - [ - -123.440717, - 49.3384429 - ], - [ - -123.4398375, - 49.3430357 - ], - [ - -123.4401258, - 49.3435398 - ], - [ - -123.4401106, - 49.3439946 - ], - [ - -123.4406265, - 49.3444493 - ], - [ - -123.4404747, - 49.3455762 - ], - [ - -123.4397768, - 49.3460606 - ], - [ - -123.4389726, - 49.3461298 - ], - [ - -123.4372904, - 49.3567236 - ], - [ - -123.4374774, - 49.3710843 - ], - [ - -123.4335292, - 49.3709446 - ], - [ - -123.4330357, - 49.373725 - ], - [ - -123.4332717, - 49.3751221 - ], - [ - -123.4322847, - 49.3761001 - ], - [ - -123.4317482, - 49.3791736 - ], - [ - -123.4314264, - 49.3795927 - ], - [ - -123.4307826, - 49.3823866 - ], - [ - -123.4313405, - 49.3827358 - ], - [ - -123.4312118, - 49.3838533 - ], - [ - -123.4300415, - 49.3845883 - ], - [ - -123.4189858, - 49.3847087 - ], - [ - -123.4192235, - 49.4135198 - ], - [ - -123.3972532, - 49.4135691 - ], - [ - -123.3972758, - 49.4243473 - ], - [ - -123.4006929, - 49.4243314 - ], - [ - -123.4007741, - 49.5703491 - ], - [ - -123.4000812, - 49.570345 - ], - [ - -123.4010761, - 49.5933838 - ], - [ - -123.3760399, - 49.5932848 - ], - [ - -123.3769811, - 49.6756063 - ], - [ - -123.3507288, - 49.6756396 - ], - [ - -123.3507969, - 49.7086751 - ], - [ - -123.332887, - 49.708722 - ], - [ - -123.3327888, - 49.7256288 - ], - [ - -123.3007111, - 49.7255625 - ], - [ - -123.3009164, - 49.7375384 - ], - [ - -123.2885986, - 49.737638 - ], - [ - -123.2887823, - 49.8249207 - ], - [ - -123.2997955, - 49.8249207 - ], - [ - -123.3011721, - 49.8497814 - ], - [ - -123.3218218, - 49.850669 - ], - [ - -123.3273284, - 49.8577696 - ], - [ - -123.3276726, - 49.9758852 - ], - [ - -123.3008279, - 49.9752212 - ], - [ - -123.3007204, - 50.0997002 - ], - [ - -123.2501716, - 50.100735 - ], - [ - -123.25091, - 50.2754901 - ], - [ - -123.0224338, - 50.2755598 - ], - [ - -123.0224879, - 50.3254853 - ], - [ - -123.0009318, - 50.3254689 - ], - [ - -123.0007778, - 50.3423899 - ], - [ - -122.9775023, - 50.3423408 - ], - [ - -122.9774766, - 50.3504306 - ], - [ - -122.9508137, - 50.3504961 - ], - [ - -122.950795, - 50.3711984 - ], - [ - -122.9325221, - 50.3711521 - ], - [ - -122.9321048, - 50.399793 - ], - [ - -122.8874234, - 50.3999748 - ], - [ - -122.8873385, - 50.4256108 - ], - [ - -122.6620152, - 50.4256959 - ], - [ - -122.6623083, - 50.3994506 - ], - [ - -122.5990316, - 50.3992413 - ], - [ - -122.5988274, - 50.3755206 - ], - [ - -122.5724832, - 50.3753706 - ], - [ - -122.5735621, - 50.2493891 - ], - [ - -122.5990415, - 50.2494643 - ], - [ - -122.5991504, - 50.2265663 - ], - [ - -122.6185016, - 50.2266359 - ], - [ - -122.6185741, - 50.2244081 - ], - [ - -122.6490609, - 50.2245126 - ], - [ - -122.6492181, - 50.1993528 - ], - [ - -122.7308575, - 50.1993758 - ], - [ - -122.7311583, - 50.1244287 - ], - [ - -122.7490352, - 50.1245109 - ], - [ - -122.7490541, - 50.0903032 - ], - [ - -122.7687806, - 50.0903435 - ], - [ - -122.7689801, - 49.9494546 - ], - [ - -122.999047, - 49.9494706 - ], - [ - -122.9991199, - 49.8754553 - ], - [ - -122.9775894, - 49.8754553 - ], - [ - -122.9778145, - 49.6995098 - ], - [ - -122.9992362, - 49.6994781 - ], - [ - -122.9992524, - 49.6516526 - ], - [ - -123.0221525, - 49.6516526 - ], - [ - -123.0221162, - 49.5995096 - ], - [ - -123.0491898, - 49.5994625 - ], - [ - -123.0491898, - 49.5940523 - ], - [ - -123.0664647, - 49.5940405 - ], - [ - -123.0663594, - 49.5451868 - ], - [ - -123.0699906, - 49.5451202 - ], - [ - -123.0699008, - 49.5413153 - ], - [ - -123.0706835, - 49.5392837 - ], - [ - -123.0708888, - 49.5379931 - ], - [ - -123.0711454, - 49.5368773 - ], - [ - -123.0711069, - 49.5358115 - ], - [ - -123.0713764, - 49.532822 - ], - [ - -123.0716458, - 49.5321141 - ], - [ - -123.07171, - 49.5313896 - ], - [ - -123.0720308, - 49.5304153 - ], - [ - -123.0739554, - 49.5303486 - ], - [ - -123.0748023, - 49.5294992 - ], - [ - -123.0748151, - 49.5288079 - ], - [ - -123.0743403, - 49.5280584 - ], - [ - -123.073532, - 49.5274588 - ], - [ - -123.0733652, - 49.5270423 - ], - [ - -123.0732882, - 49.5255932 - ], - [ - -123.0737116, - 49.5249602 - ], - [ - -123.0736218, - 49.5244938 - ], - [ - -123.0992583, - 49.5244854 - ], - [ - -123.0991649, - 49.4754502 - ], - [ - -123.071052, - 49.4755252 - ], - [ - -123.071088, - 49.4663034 - ], - [ - -123.0739204, - 49.4663054 - ], - [ - -123.07422, - 49.4505028 - ], - [ - -123.0746319, - 49.4500858 - ], - [ - -123.074651, - 49.449329 - ], - [ - -123.0745999, - 49.449018 - ], - [ - -123.0744619, - 49.4486927 - ], - [ - -123.0743336, - 49.4479899 - ], - [ - -123.0742427, - 49.4477688 - ], - [ - -123.0743061, - 49.4447473 - ], - [ - -123.0747103, - 49.4447556 - ], - [ - -123.0746384, - 49.4377306 - ], - [ - -122.9996506, - 49.4377363 - ], - [ - -122.9996506, - 49.4369214 - ], - [ - -122.8606163, - 49.4415314 - ], - [ - -122.8102616, - 49.4423972 - ], - [ - -122.8098984, - 49.3766739 - ], - [ - -122.4036093, - 49.3766617 - ], - [ - -122.4036341, - 49.3771944 - ], - [ - -122.264739, - 49.3773028 - ], - [ - -122.263542, - 49.2360088 - ], - [ - -122.2155742, - 49.236139 - ], - [ - -122.0580956, - 49.235878 - ], - [ - -121.9538274, - 49.2966525 - ], - [ - -121.9400911, - 49.3045389 - ], - [ - -121.9235761, - 49.3142257 - ], - [ - -121.8990871, - 49.3225436 - ], - [ - -121.8883447, - 49.3259752 - ], - [ - -121.8552982, - 49.3363575 - ], - [ - -121.832697, - 49.3441519 - ], - [ - -121.7671336, - 49.3654361 - ], - [ - -121.6736683, - 49.3654589 - ], - [ - -121.6404153, - 49.3743775 - ], - [ - -121.5961976, - 49.3860493 - ], - [ - -121.5861178, - 49.3879193 - ], - [ - -121.5213684, - 49.3994649 - ], - [ - -121.5117375, - 49.4038378 - ], - [ - -121.4679302, - 49.4229024 - ], - [ - -121.4416803, - 49.4345607 - ], - [ - -121.422429, - 49.4345788 - ], - [ - -121.3462885, - 49.3932312 - ], - [ - -121.3480144, - 49.3412388 - ], - [ - -121.5135035, - 49.320577 - ], - [ - -121.6031683, - 49.2771727 - ], - [ - -121.6584065, - 49.1856125 - ], - [ - -121.679953, - 49.1654109 - ], - [ - -121.7815793, - 49.0702559 - ], - [ - -121.8076228, - 49.0622471 - ], - [ - -121.9393997, - 49.0636219 - ], - [ - -121.9725524, - 49.0424179 - ], - [ - -121.9921394, - 49.0332869 - ], - [ - -122.0035289, - 49.0273413 - ], - [ - -122.0178564, - 49.0241067 - ], - [ - -122.1108634, - 48.9992786 - ], - [ - -122.1493067, - 48.9995305 - ], - [ - -122.1492705, - 48.9991498 - ], - [ - -122.1991447, - 48.9996019 - ], - [ - -122.199181, - 48.9991974 - ], - [ - -122.234365, - 48.9994829 - ], - [ - -122.234365, - 49.000173 - ], - [ - -122.3994722, - 49.0012385 - ], - [ - -122.4521338, - 49.0016326 - ], - [ - -122.4521338, - 49.000883 - ], - [ - -122.4584089, - 49.0009306 - ], - [ - -122.4584814, - 48.9993124 - ], - [ - -122.4992458, - 48.9995022 - ], - [ - -122.4992458, - 48.9992906 - ], - [ - -122.5492618, - 48.9995107 - ], - [ - -122.5492564, - 48.9993206 - ], - [ - -122.6580785, - 48.9994212 - ], - [ - -122.6581061, - 48.9954007 - ], - [ - -122.7067604, - 48.9955344 - ], - [ - -122.7519761, - 48.9956392 - ], - [ - -122.7922063, - 48.9957204 - ], - [ - -122.7921907, - 48.9994331 - ], - [ - -123.0350417, - 48.9995724 - ], - [ - -123.0350437, - 49.0000958 - ], - [ - -123.0397091, - 49.0000536 - ], - [ - -123.0397444, - 49.0001812 - ], - [ - -123.0485506, - 49.0001348 - ], - [ - -123.0485329, - 49.0004712 - ], - [ - -123.0557122, - 49.000448 - ], - [ - -123.0556324, - 49.0002284 - ], - [ - -123.0641365, - 49.0001293 - ], - [ - -123.064158, - 48.9999421 - ], - [ - -123.074899, - 48.9996928 - ], - [ - -123.0750717, - 49.0006218 - ], - [ - -123.0899573, - 49.0003726 - ], - [ - -123.109229, - 48.9999421 - ], - [ - -123.1271193, - 49.0003046 - ], - [ - -123.1359953, - 48.9998741 - ], - [ - -123.1362716, - 49.0005765 - ], - [ - -123.153851, - 48.9998061 - ], - [ - -123.1540533, - 49.0006806 - ], - [ - -123.1710015, - 49.0001274 - ], - [ - -123.2000916, - 48.9996849 - ], - [ - -123.2003446, - 49.0497785 - ], - [ - -123.2108845, - 49.0497232 - ], - [ - -123.2112218, - 49.051989 - ], - [ - -123.2070479, - 49.0520857 - ], - [ - -123.2078911, - 49.0607884 - ], - [ - -123.2191688, - 49.0600978 - ], - [ - -123.218958, - 49.0612719 - ], - [ - -123.2251766, - 49.0612719 - ], - [ - -123.2253874, - 49.0622388 - ], - [ - -123.2297088, - 49.0620316 - ], - [ - -123.2298142, - 49.068592 - ], - [ - -123.2331869, - 49.0687301 - ], - [ - -123.2335031, - 49.0705945 - ], - [ - -123.249313, - 49.0702493 - ], - [ - -123.2497346, - 49.0802606 - ], - [ - -123.2751358, - 49.0803986 - ], - [ - -123.2751358, - 49.0870947 - ], - [ - -123.299483, - 49.0873018 - ], - [ - -123.29944, - 49.080253 - ], - [ - -123.3254508, - 49.0803944 - ], - [ - -123.3254353, - 49.1154662 - ], - [ - -123.2750966, - 49.1503341 - ], - [ - -123.275181, - 49.1873267 - ], - [ - -123.2788067, - 49.1871063 - ], - [ - -123.278891, - 49.1910741 - ], - [ - -123.3004767, - 49.1910741 - ], - [ - -123.3004186, - 49.2622933 - ], - [ - -123.3126185, - 49.2622416 - ], - [ - -123.3125958, - 49.2714948 - ], - [ - -123.3154251, - 49.2714727 - ], - [ - -123.3156628, - 49.2818906 - ], - [ - -123.3174735, - 49.2818832 - ], - [ - -123.3174961, - 49.2918488 - ], - [ - -123.3190353, - 49.2918488 - ], - [ - -123.3190692, - 49.298602 - ], - [ - -123.3202349, - 49.2985651 - ], - [ - -123.3202786, - 49.3019749 - ], - [ - -123.3222679, - 49.3019605 - ], - [ - -123.3223943, - 49.3118263 - ], - [ - -123.3254002, - 49.3118086 - ], - [ - -123.3253898, - 49.3201721 - ], - [ - -123.3192695, - 49.3201957 - ], - [ - -123.3192242, - 49.3246748 - ], - [ - -123.3179437, - 49.3246596 - ], - [ - -123.3179861, - 49.3254065 - ] - ] - ], - "terms_url": "http://imagery.paulnorman.ca/tiles/about.html", - "terms_text": "Copyright Province of British Columbia, City of Surrey" - }, - { - "name": "Cambodia, Laos, Thailand, Vietnam bilingual", - "type": "tms", - "template": "http://{switch:a,b,c,d}.tile.osm-tools.org/osm_then/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 0, - 19 - ], - "polygon": [ - [ - [ - 97.3, - 5.6 - ], - [ - 97.3, - 23.4 - ], - [ - 109.6, - 23.4 - ], - [ - 109.6, - 5.6 - ], - [ - 97.3, - 5.6 - ] - ] - ], - "terms_url": "http://www.osm-tools.org/", - "terms_text": "© osm-tools.org & OpenStreetMap contributors, CC-BY-SA" - }, - { - "name": "Freemap.sk Car", - "type": "tms", - "template": "http://t{switch:1,2,3,4}.freemap.sk/A/{zoom}/{x}/{y}.jpeg", - "scaleExtent": [ - 8, - 16 - ], - "polygon": [ - [ - [ - 19.83682, - 49.25529 - ], - [ - 19.80075, - 49.42385 - ], - [ - 19.60437, - 49.48058 - ], - [ - 19.49179, - 49.63961 - ], - [ - 19.21831, - 49.52604 - ], - [ - 19.16778, - 49.42521 - ], - [ - 19.00308, - 49.42236 - ], - [ - 18.97611, - 49.5308 - ], - [ - 18.54685, - 49.51425 - ], - [ - 18.31432, - 49.33818 - ], - [ - 18.15913, - 49.2961 - ], - [ - 18.05564, - 49.11134 - ], - [ - 17.56396, - 48.84938 - ], - [ - 17.17929, - 48.88816 - ], - [ - 17.058, - 48.81105 - ], - [ - 16.90426, - 48.61947 - ], - [ - 16.79685, - 48.38561 - ], - [ - 17.06762, - 48.01116 - ], - [ - 17.32787, - 47.97749 - ], - [ - 17.51699, - 47.82535 - ], - [ - 17.74776, - 47.73093 - ], - [ - 18.29515, - 47.72075 - ], - [ - 18.67959, - 47.75541 - ], - [ - 18.89755, - 47.81203 - ], - [ - 18.79463, - 47.88245 - ], - [ - 18.84318, - 48.04046 - ], - [ - 19.46212, - 48.05333 - ], - [ - 19.62064, - 48.22938 - ], - [ - 19.89585, - 48.09387 - ], - [ - 20.33766, - 48.2643 - ], - [ - 20.55395, - 48.52358 - ], - [ - 20.82335, - 48.55714 - ], - [ - 21.10271, - 48.47096 - ], - [ - 21.45863, - 48.55513 - ], - [ - 21.74536, - 48.31435 - ], - [ - 22.15293, - 48.37179 - ], - [ - 22.61255, - 49.08914 - ], - [ - 22.09997, - 49.23814 - ], - [ - 21.9686, - 49.36363 - ], - [ - 21.6244, - 49.46989 - ], - [ - 21.06873, - 49.46402 - ], - [ - 20.94336, - 49.31088 - ], - [ - 20.73052, - 49.44006 - ], - [ - 20.22804, - 49.41714 - ], - [ - 20.05234, - 49.23052 - ], - [ - 19.83682, - 49.25529 - ] - ] - ], - "terms_text": "Copyright ©2007-2012 Freemap Slovakia (www.freemap.sk). Some rights reserved." - }, - { - "name": "Freemap.sk Cyclo", - "type": "tms", - "template": "http://t{switch:1,2,3,4}.freemap.sk/C/{zoom}/{x}/{y}.jpeg", - "scaleExtent": [ - 8, - 16 - ], - "polygon": [ - [ - [ - 19.83682, - 49.25529 - ], - [ - 19.80075, - 49.42385 - ], - [ - 19.60437, - 49.48058 - ], - [ - 19.49179, - 49.63961 - ], - [ - 19.21831, - 49.52604 - ], - [ - 19.16778, - 49.42521 - ], - [ - 19.00308, - 49.42236 - ], - [ - 18.97611, - 49.5308 - ], - [ - 18.54685, - 49.51425 - ], - [ - 18.31432, - 49.33818 - ], - [ - 18.15913, - 49.2961 - ], - [ - 18.05564, - 49.11134 - ], - [ - 17.56396, - 48.84938 - ], - [ - 17.17929, - 48.88816 - ], - [ - 17.058, - 48.81105 - ], - [ - 16.90426, - 48.61947 - ], - [ - 16.79685, - 48.38561 - ], - [ - 17.06762, - 48.01116 - ], - [ - 17.32787, - 47.97749 - ], - [ - 17.51699, - 47.82535 - ], - [ - 17.74776, - 47.73093 - ], - [ - 18.29515, - 47.72075 - ], - [ - 18.67959, - 47.75541 - ], - [ - 18.89755, - 47.81203 - ], - [ - 18.79463, - 47.88245 - ], - [ - 18.84318, - 48.04046 - ], - [ - 19.46212, - 48.05333 - ], - [ - 19.62064, - 48.22938 - ], - [ - 19.89585, - 48.09387 - ], - [ - 20.33766, - 48.2643 - ], - [ - 20.55395, - 48.52358 - ], - [ - 20.82335, - 48.55714 - ], - [ - 21.10271, - 48.47096 - ], - [ - 21.45863, - 48.55513 - ], - [ - 21.74536, - 48.31435 - ], - [ - 22.15293, - 48.37179 - ], - [ - 22.61255, - 49.08914 - ], - [ - 22.09997, - 49.23814 - ], - [ - 21.9686, - 49.36363 - ], - [ - 21.6244, - 49.46989 - ], - [ - 21.06873, - 49.46402 - ], - [ - 20.94336, - 49.31088 - ], - [ - 20.73052, - 49.44006 - ], - [ - 20.22804, - 49.41714 - ], - [ - 20.05234, - 49.23052 - ], - [ - 19.83682, - 49.25529 - ] - ] - ], - "terms_text": "Copyright ©2007-2012 Freemap Slovakia (www.freemap.sk). Some rights reserved." - }, - { - "name": "Freemap.sk Hiking", - "type": "tms", - "template": "http://t{switch:1,2,3,4}.freemap.sk/T/{zoom}/{x}/{y}.jpeg", - "scaleExtent": [ - 8, - 16 - ], - "polygon": [ - [ - [ - 19.83682, - 49.25529 - ], - [ - 19.80075, - 49.42385 - ], - [ - 19.60437, - 49.48058 - ], - [ - 19.49179, - 49.63961 - ], - [ - 19.21831, - 49.52604 - ], - [ - 19.16778, - 49.42521 - ], - [ - 19.00308, - 49.42236 - ], - [ - 18.97611, - 49.5308 - ], - [ - 18.54685, - 49.51425 - ], - [ - 18.31432, - 49.33818 - ], - [ - 18.15913, - 49.2961 - ], - [ - 18.05564, - 49.11134 - ], - [ - 17.56396, - 48.84938 - ], - [ - 17.17929, - 48.88816 - ], - [ - 17.058, - 48.81105 - ], - [ - 16.90426, - 48.61947 - ], - [ - 16.79685, - 48.38561 - ], - [ - 17.06762, - 48.01116 - ], - [ - 17.32787, - 47.97749 - ], - [ - 17.51699, - 47.82535 - ], - [ - 17.74776, - 47.73093 - ], - [ - 18.29515, - 47.72075 - ], - [ - 18.67959, - 47.75541 - ], - [ - 18.89755, - 47.81203 - ], - [ - 18.79463, - 47.88245 - ], - [ - 18.84318, - 48.04046 - ], - [ - 19.46212, - 48.05333 - ], - [ - 19.62064, - 48.22938 - ], - [ - 19.89585, - 48.09387 - ], - [ - 20.33766, - 48.2643 - ], - [ - 20.55395, - 48.52358 - ], - [ - 20.82335, - 48.55714 - ], - [ - 21.10271, - 48.47096 - ], - [ - 21.45863, - 48.55513 - ], - [ - 21.74536, - 48.31435 - ], - [ - 22.15293, - 48.37179 - ], - [ - 22.61255, - 49.08914 - ], - [ - 22.09997, - 49.23814 - ], - [ - 21.9686, - 49.36363 - ], - [ - 21.6244, - 49.46989 - ], - [ - 21.06873, - 49.46402 - ], - [ - 20.94336, - 49.31088 - ], - [ - 20.73052, - 49.44006 - ], - [ - 20.22804, - 49.41714 - ], - [ - 20.05234, - 49.23052 - ], - [ - 19.83682, - 49.25529 - ] - ] - ], - "terms_text": "Copyright ©2007-2012 Freemap Slovakia (www.freemap.sk). Some rights reserved." - }, - { - "name": "Freemap.sk Ski", - "type": "tms", - "template": "http://t{switch:1,2,3,4}.freemap.sk/K/{zoom}/{x}/{y}.jpeg", - "scaleExtent": [ - 8, - 16 - ], - "polygon": [ - [ - [ - 19.83682, - 49.25529 - ], - [ - 19.80075, - 49.42385 - ], - [ - 19.60437, - 49.48058 - ], - [ - 19.49179, - 49.63961 - ], - [ - 19.21831, - 49.52604 - ], - [ - 19.16778, - 49.42521 - ], - [ - 19.00308, - 49.42236 - ], - [ - 18.97611, - 49.5308 - ], - [ - 18.54685, - 49.51425 - ], - [ - 18.31432, - 49.33818 - ], - [ - 18.15913, - 49.2961 - ], - [ - 18.05564, - 49.11134 - ], - [ - 17.56396, - 48.84938 - ], - [ - 17.17929, - 48.88816 - ], - [ - 17.058, - 48.81105 - ], - [ - 16.90426, - 48.61947 - ], - [ - 16.79685, - 48.38561 - ], - [ - 17.06762, - 48.01116 - ], - [ - 17.32787, - 47.97749 - ], - [ - 17.51699, - 47.82535 - ], - [ - 17.74776, - 47.73093 - ], - [ - 18.29515, - 47.72075 - ], - [ - 18.67959, - 47.75541 - ], - [ - 18.89755, - 47.81203 - ], - [ - 18.79463, - 47.88245 - ], - [ - 18.84318, - 48.04046 - ], - [ - 19.46212, - 48.05333 - ], - [ - 19.62064, - 48.22938 - ], - [ - 19.89585, - 48.09387 - ], - [ - 20.33766, - 48.2643 - ], - [ - 20.55395, - 48.52358 - ], - [ - 20.82335, - 48.55714 - ], - [ - 21.10271, - 48.47096 - ], - [ - 21.45863, - 48.55513 - ], - [ - 21.74536, - 48.31435 - ], - [ - 22.15293, - 48.37179 - ], - [ - 22.61255, - 49.08914 - ], - [ - 22.09997, - 49.23814 - ], - [ - 21.9686, - 49.36363 - ], - [ - 21.6244, - 49.46989 - ], - [ - 21.06873, - 49.46402 - ], - [ - 20.94336, - 49.31088 - ], - [ - 20.73052, - 49.44006 - ], - [ - 20.22804, - 49.41714 - ], - [ - 20.05234, - 49.23052 - ], - [ - 19.83682, - 49.25529 - ] - ] - ], - "terms_text": "Copyright ©2007-2012 Freemap Slovakia (www.freemap.sk). Some rights reserved." - }, - { - "name": "Fugro (Denmark)", - "type": "tms", - "template": "http://{switch:a,b,c}.tile.openstreetmap.dk/fugro2005/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 0, - 19 - ], - "polygon": [ - [ - [ - 8.3743941, - 54.9551655 - ], - [ - 8.3683809, - 55.4042149 - ], - [ - 8.2103997, - 55.4039795 - ], - [ - 8.2087314, - 55.4937345 - ], - [ - 8.0502655, - 55.4924731 - ], - [ - 8.0185123, - 56.7501399 - ], - [ - 8.1819161, - 56.7509948 - ], - [ - 8.1763274, - 57.0208898 - ], - [ - 8.3413329, - 57.0219872 - ], - [ - 8.3392467, - 57.1119574 - ], - [ - 8.5054433, - 57.1123212 - ], - [ - 8.5033923, - 57.2020499 - ], - [ - 9.3316304, - 57.2027636 - ], - [ - 9.3319079, - 57.2924835 - ], - [ - 9.4978864, - 57.2919578 - ], - [ - 9.4988593, - 57.3820608 - ], - [ - 9.6649749, - 57.3811615 - ], - [ - 9.6687295, - 57.5605591 - ], - [ - 9.8351961, - 57.5596265 - ], - [ - 9.8374896, - 57.6493322 - ], - [ - 10.1725726, - 57.6462818 - ], - [ - 10.1754245, - 57.7367768 - ], - [ - 10.5118282, - 57.7330269 - ], - [ - 10.5152095, - 57.8228945 - ], - [ - 10.6834853, - 57.8207722 - ], - [ - 10.6751613, - 57.6412021 - ], - [ - 10.5077045, - 57.6433097 - ], - [ - 10.5039992, - 57.5535088 - ], - [ - 10.671038, - 57.5514113 - ], - [ - 10.6507805, - 57.1024538 - ], - [ - 10.4857673, - 57.1045138 - ], - [ - 10.4786236, - 56.9249051 - ], - [ - 10.3143981, - 56.9267573 - ], - [ - 10.3112341, - 56.8369269 - ], - [ - 10.4750295, - 56.83509 - ], - [ - 10.4649016, - 56.5656681 - ], - [ - 10.9524239, - 56.5589761 - ], - [ - 10.9479249, - 56.4692243 - ], - [ - 11.1099335, - 56.4664675 - ], - [ - 11.1052639, - 56.376833 - ], - [ - 10.9429901, - 56.3795284 - ], - [ - 10.9341235, - 56.1994768 - ], - [ - 10.7719685, - 56.2020244 - ], - [ - 10.7694751, - 56.1120103 - ], - [ - 10.6079695, - 56.1150259 - ], - [ - 10.4466742, - 56.116717 - ], - [ - 10.2865948, - 56.118675 - ], - [ - 10.2831527, - 56.0281851 - ], - [ - 10.4439274, - 56.0270388 - ], - [ - 10.4417713, - 55.7579243 - ], - [ - 10.4334961, - 55.6693533 - ], - [ - 10.743814, - 55.6646861 - ], - [ - 10.743814, - 55.5712253 - ], - [ - 10.8969041, - 55.5712253 - ], - [ - 10.9051793, - 55.3953852 - ], - [ - 11.0613726, - 55.3812841 - ], - [ - 11.0593038, - 55.1124061 - ], - [ - 11.0458567, - 55.0318621 - ], - [ - 11.2030844, - 55.0247474 - ], - [ - 11.2030844, - 55.117139 - ], - [ - 11.0593038, - 55.1124061 - ], - [ - 11.0613726, - 55.3812841 - ], - [ - 11.0789572, - 55.5712253 - ], - [ - 10.8969041, - 55.5712253 - ], - [ - 10.9258671, - 55.6670198 - ], - [ - 10.743814, - 55.6646861 - ], - [ - 10.7562267, - 55.7579243 - ], - [ - 10.4417713, - 55.7579243 - ], - [ - 10.4439274, - 56.0270388 - ], - [ - 10.4466742, - 56.116717 - ], - [ - 10.6079695, - 56.1150259 - ], - [ - 10.6052053, - 56.0247462 - ], - [ - 10.9258671, - 56.0201215 - ], - [ - 10.9197132, - 55.9309388 - ], - [ - 11.0802782, - 55.92792 - ], - [ - 11.0858066, - 56.0178284 - ], - [ - 11.7265047, - 56.005058 - ], - [ - 11.7319981, - 56.0952142 - ], - [ - 12.0540333, - 56.0871256 - ], - [ - 12.0608477, - 56.1762576 - ], - [ - 12.7023469, - 56.1594405 - ], - [ - 12.6611131, - 55.7114318 - ], - [ - 12.9792318, - 55.7014026 - ], - [ - 12.9612912, - 55.5217294 - ], - [ - 12.3268659, - 55.5412096 - ], - [ - 12.3206071, - 55.4513655 - ], - [ - 12.4778226, - 55.447067 - ], - [ - 12.4702432, - 55.3570479 - ], - [ - 12.6269738, - 55.3523837 - ], - [ - 12.6200898, - 55.2632576 - ], - [ - 12.4627339, - 55.26722 - ], - [ - 12.4552949, - 55.1778223 - ], - [ - 12.2987046, - 55.1822303 - ], - [ - 12.2897344, - 55.0923641 - ], - [ - 12.6048608, - 55.0832904 - ], - [ - 12.5872011, - 54.9036285 - ], - [ - 12.2766618, - 54.9119031 - ], - [ - 12.2610181, - 54.7331602 - ], - [ - 12.1070691, - 54.7378161 - ], - [ - 12.0858621, - 54.4681655 - ], - [ - 11.7794953, - 54.4753579 - ], - [ - 11.7837381, - 54.5654783 - ], - [ - 11.1658525, - 54.5782155 - ], - [ - 11.1706443, - 54.6686508 - ], - [ - 10.8617173, - 54.6733956 - ], - [ - 10.8651245, - 54.7634667 - ], - [ - 10.7713646, - 54.7643888 - ], - [ - 10.7707276, - 54.7372807 - ], - [ - 10.7551428, - 54.7375776 - ], - [ - 10.7544039, - 54.7195666 - ], - [ - 10.7389074, - 54.7197588 - ], - [ - 10.7384368, - 54.7108482 - ], - [ - 10.7074486, - 54.7113045 - ], - [ - 10.7041094, - 54.6756741 - ], - [ - 10.5510973, - 54.6781698 - ], - [ - 10.5547184, - 54.7670245 - ], - [ - 10.2423994, - 54.7705935 - ], - [ - 10.2459845, - 54.8604673 - ], - [ - 10.0902268, - 54.8622134 - ], - [ - 10.0873731, - 54.7723851 - ], - [ - 9.1555798, - 54.7769557 - ], - [ - 9.1562752, - 54.8675369 - ], - [ - 8.5321973, - 54.8663765 - ], - [ - 8.531432, - 54.95516 - ] - ], - [ - [ - 11.4577738, - 56.819554 - ], - [ - 11.7849181, - 56.8127385 - ], - [ - 11.7716715, - 56.6332796 - ], - [ - 11.4459621, - 56.6401087 - ] - ], - [ - [ - 11.3274736, - 57.3612962 - ], - [ - 11.3161808, - 57.1818004 - ], - [ - 11.1508692, - 57.1847276 - ], - [ - 11.1456628, - 57.094962 - ], - [ - 10.8157703, - 57.1001693 - ], - [ - 10.8290599, - 57.3695272 - ] - ], - [ - [ - 11.5843266, - 56.2777928 - ], - [ - 11.5782882, - 56.1880397 - ], - [ - 11.7392309, - 56.1845765 - ], - [ - 11.7456428, - 56.2743186 - ] - ], - [ - [ - 14.6825922, - 55.3639405 - ], - [ - 14.8395247, - 55.3565231 - ], - [ - 14.8263755, - 55.2671261 - ], - [ - 15.1393406, - 55.2517359 - ], - [ - 15.1532015, - 55.3410836 - ], - [ - 15.309925, - 55.3330556 - ], - [ - 15.295719, - 55.2437356 - ], - [ - 15.1393406, - 55.2517359 - ], - [ - 15.1255631, - 55.1623802 - ], - [ - 15.2815819, - 55.1544167 - ], - [ - 15.2535578, - 54.9757646 - ], - [ - 14.6317464, - 55.0062496 - ] - ] - ], - "terms_url": "http://wiki.openstreetmap.org/wiki/Fugro", - "terms_text": "Fugro Aerial Mapping" - }, - { - "name": "Geodatastyrelsen (Denmark)", - "type": "tms", - "template": "http://mapproxy.gpweb.dk/tiles/1.0.0/kortforsyningen_ortoforaar/EPSG3857/{zoom}/{x}/{y}.jpeg", - "scaleExtent": [ - 0, - 21 - ], - "polygon": [ - [ - [ - 8.3743941, - 54.9551655 - ], - [ - 8.3683809, - 55.4042149 - ], - [ - 8.2103997, - 55.4039795 - ], - [ - 8.2087314, - 55.4937345 - ], - [ - 8.0502655, - 55.4924731 - ], - [ - 8.0185123, - 56.7501399 - ], - [ - 8.1819161, - 56.7509948 - ], - [ - 8.1763274, - 57.0208898 - ], - [ - 8.3413329, - 57.0219872 - ], - [ - 8.3392467, - 57.1119574 - ], - [ - 8.5054433, - 57.1123212 - ], - [ - 8.5033923, - 57.2020499 - ], - [ - 9.3316304, - 57.2027636 - ], - [ - 9.3319079, - 57.2924835 - ], - [ - 9.4978864, - 57.2919578 - ], - [ - 9.4988593, - 57.3820608 - ], - [ - 9.6649749, - 57.3811615 - ], - [ - 9.6687295, - 57.5605591 - ], - [ - 9.8351961, - 57.5596265 - ], - [ - 9.8374896, - 57.6493322 - ], - [ - 10.1725726, - 57.6462818 - ], - [ - 10.1754245, - 57.7367768 - ], - [ - 10.5118282, - 57.7330269 - ], - [ - 10.5152095, - 57.8228945 - ], - [ - 10.6834853, - 57.8207722 - ], - [ - 10.6751613, - 57.6412021 - ], - [ - 10.5077045, - 57.6433097 - ], - [ - 10.5039992, - 57.5535088 - ], - [ - 10.671038, - 57.5514113 - ], - [ - 10.6507805, - 57.1024538 - ], - [ - 10.4857673, - 57.1045138 - ], - [ - 10.4786236, - 56.9249051 - ], - [ - 10.3143981, - 56.9267573 - ], - [ - 10.3112341, - 56.8369269 - ], - [ - 10.4750295, - 56.83509 - ], - [ - 10.4649016, - 56.5656681 - ], - [ - 10.9524239, - 56.5589761 - ], - [ - 10.9479249, - 56.4692243 - ], - [ - 11.1099335, - 56.4664675 - ], - [ - 11.1052639, - 56.376833 - ], - [ - 10.9429901, - 56.3795284 - ], - [ - 10.9341235, - 56.1994768 - ], - [ - 10.7719685, - 56.2020244 - ], - [ - 10.7694751, - 56.1120103 - ], - [ - 10.6079695, - 56.1150259 - ], - [ - 10.4466742, - 56.116717 - ], - [ - 10.2865948, - 56.118675 - ], - [ - 10.2831527, - 56.0281851 - ], - [ - 10.4439274, - 56.0270388 - ], - [ - 10.4417713, - 55.7579243 - ], - [ - 10.4334961, - 55.6693533 - ], - [ - 10.743814, - 55.6646861 - ], - [ - 10.743814, - 55.5712253 - ], - [ - 10.8969041, - 55.5712253 - ], - [ - 10.9051793, - 55.3953852 - ], - [ - 11.0613726, - 55.3812841 - ], - [ - 11.0593038, - 55.1124061 - ], - [ - 11.0458567, - 55.0318621 - ], - [ - 11.2030844, - 55.0247474 - ], - [ - 11.2030844, - 55.117139 - ], - [ - 11.0593038, - 55.1124061 - ], - [ - 11.0613726, - 55.3812841 - ], - [ - 11.0789572, - 55.5712253 - ], - [ - 10.8969041, - 55.5712253 - ], - [ - 10.9258671, - 55.6670198 - ], - [ - 10.743814, - 55.6646861 - ], - [ - 10.7562267, - 55.7579243 - ], - [ - 10.4417713, - 55.7579243 - ], - [ - 10.4439274, - 56.0270388 - ], - [ - 10.4466742, - 56.116717 - ], - [ - 10.6079695, - 56.1150259 - ], - [ - 10.6052053, - 56.0247462 - ], - [ - 10.9258671, - 56.0201215 - ], - [ - 10.9197132, - 55.9309388 - ], - [ - 11.0802782, - 55.92792 - ], - [ - 11.0858066, - 56.0178284 - ], - [ - 11.7265047, - 56.005058 - ], - [ - 11.7319981, - 56.0952142 - ], - [ - 12.0540333, - 56.0871256 - ], - [ - 12.0608477, - 56.1762576 - ], - [ - 12.7023469, - 56.1594405 - ], - [ - 12.6611131, - 55.7114318 - ], - [ - 12.9792318, - 55.7014026 - ], - [ - 12.9612912, - 55.5217294 - ], - [ - 12.3268659, - 55.5412096 - ], - [ - 12.3206071, - 55.4513655 - ], - [ - 12.4778226, - 55.447067 - ], - [ - 12.4702432, - 55.3570479 - ], - [ - 12.6269738, - 55.3523837 - ], - [ - 12.6200898, - 55.2632576 - ], - [ - 12.4627339, - 55.26722 - ], - [ - 12.4552949, - 55.1778223 - ], - [ - 12.2987046, - 55.1822303 - ], - [ - 12.2897344, - 55.0923641 - ], - [ - 12.6048608, - 55.0832904 - ], - [ - 12.5872011, - 54.9036285 - ], - [ - 12.2766618, - 54.9119031 - ], - [ - 12.2610181, - 54.7331602 - ], - [ - 12.1070691, - 54.7378161 - ], - [ - 12.0858621, - 54.4681655 - ], - [ - 11.7794953, - 54.4753579 - ], - [ - 11.7837381, - 54.5654783 - ], - [ - 11.1658525, - 54.5782155 - ], - [ - 11.1706443, - 54.6686508 - ], - [ - 10.8617173, - 54.6733956 - ], - [ - 10.8651245, - 54.7634667 - ], - [ - 10.7713646, - 54.7643888 - ], - [ - 10.7707276, - 54.7372807 - ], - [ - 10.7551428, - 54.7375776 - ], - [ - 10.7544039, - 54.7195666 - ], - [ - 10.7389074, - 54.7197588 - ], - [ - 10.7384368, - 54.7108482 - ], - [ - 10.7074486, - 54.7113045 - ], - [ - 10.7041094, - 54.6756741 - ], - [ - 10.5510973, - 54.6781698 - ], - [ - 10.5547184, - 54.7670245 - ], - [ - 10.2423994, - 54.7705935 - ], - [ - 10.2459845, - 54.8604673 - ], - [ - 10.0902268, - 54.8622134 - ], - [ - 10.0873731, - 54.7723851 - ], - [ - 9.1555798, - 54.7769557 - ], - [ - 9.1562752, - 54.8675369 - ], - [ - 8.5321973, - 54.8663765 - ], - [ - 8.531432, - 54.95516 - ] - ], - [ - [ - 11.4577738, - 56.819554 - ], - [ - 11.7849181, - 56.8127385 - ], - [ - 11.7716715, - 56.6332796 - ], - [ - 11.4459621, - 56.6401087 - ] - ], - [ - [ - 11.3274736, - 57.3612962 - ], - [ - 11.3161808, - 57.1818004 - ], - [ - 11.1508692, - 57.1847276 - ], - [ - 11.1456628, - 57.094962 - ], - [ - 10.8157703, - 57.1001693 - ], - [ - 10.8290599, - 57.3695272 - ] - ], - [ - [ - 11.5843266, - 56.2777928 - ], - [ - 11.5782882, - 56.1880397 - ], - [ - 11.7392309, - 56.1845765 - ], - [ - 11.7456428, - 56.2743186 - ] - ], - [ - [ - 14.6825922, - 55.3639405 - ], - [ - 14.8395247, - 55.3565231 - ], - [ - 14.8263755, - 55.2671261 - ], - [ - 15.1393406, - 55.2517359 - ], - [ - 15.1532015, - 55.3410836 - ], - [ - 15.309925, - 55.3330556 - ], - [ - 15.295719, - 55.2437356 - ], - [ - 15.1393406, - 55.2517359 - ], - [ - 15.1255631, - 55.1623802 - ], - [ - 15.2815819, - 55.1544167 - ], - [ - 15.2535578, - 54.9757646 - ], - [ - 14.6317464, - 55.0062496 - ] - ] - ], - "terms_url": "http://download.kortforsyningen.dk/content/vilkaar-og-betingelser", - "terms_text": "Geodatastyrelsen og Danske Kommuner" - }, - { - "name": "Geoimage.at MaxRes", - "type": "tms", - "template": "http://geoimage.openstreetmap.at/4d80de696cd562a63ce463a58a61488d/{zoom}/{x}/{y}.jpg", - "polygon": [ - [ - [ - 16.5073284, - 46.9929304 - ], - [ - 16.283417, - 46.9929304 - ], - [ - 16.135839, - 46.8713046 - ], - [ - 15.9831722, - 46.8190947 - ], - [ - 16.0493278, - 46.655175 - ], - [ - 15.8610387, - 46.7180116 - ], - [ - 15.7592608, - 46.6900933 - ], - [ - 15.5607938, - 46.6796202 - ], - [ - 15.5760605, - 46.6342132 - ], - [ - 15.4793715, - 46.6027553 - ], - [ - 15.4335715, - 46.6516819 - ], - [ - 15.2249267, - 46.6342132 - ], - [ - 15.0468154, - 46.6481886 - ], - [ - 14.9908376, - 46.5887681 - ], - [ - 14.9603042, - 46.6237293 - ], - [ - 14.8534374, - 46.6027553 - ], - [ - 14.8330818, - 46.5012666 - ], - [ - 14.7516595, - 46.4977636 - ], - [ - 14.6804149, - 46.4381781 - ], - [ - 14.6142593, - 46.4381781 - ], - [ - 14.578637, - 46.3785275 - ], - [ - 14.4412369, - 46.4311638 - ], - [ - 14.1613476, - 46.4276563 - ], - [ - 14.1257253, - 46.4767409 - ], - [ - 14.0188585, - 46.4767409 - ], - [ - 13.9119917, - 46.5257813 - ], - [ - 13.8254805, - 46.5047694 - ], - [ - 13.4438134, - 46.560783 - ], - [ - 13.3064132, - 46.5502848 - ], - [ - 13.1283019, - 46.5887681 - ], - [ - 12.8433237, - 46.6132433 - ], - [ - 12.7262791, - 46.6412014 - ], - [ - 12.5125455, - 46.6656529 - ], - [ - 12.3598787, - 46.7040543 - ], - [ - 12.3649676, - 46.7703197 - ], - [ - 12.2886341, - 46.7772902 - ], - [ - 12.2733674, - 46.8852187 - ], - [ - 12.2072118, - 46.8747835 - ], - [ - 12.1308784, - 46.9026062 - ], - [ - 12.1156117, - 46.9998721 - ], - [ - 12.2530119, - 47.0657733 - ], - [ - 12.2123007, - 47.0934969 - ], - [ - 11.9833004, - 47.0449712 - ], - [ - 11.7339445, - 46.9616816 - ], - [ - 11.6321666, - 47.010283 - ], - [ - 11.5405665, - 46.9755722 - ], - [ - 11.4998553, - 47.0068129 - ], - [ - 11.418433, - 46.9651546 - ], - [ - 11.2555884, - 46.9755722 - ], - [ - 11.1130993, - 46.913036 - ], - [ - 11.0418548, - 46.7633482 - ], - [ - 10.8891879, - 46.7598621 - ], - [ - 10.7416099, - 46.7842599 - ], - [ - 10.7059877, - 46.8643462 - ], - [ - 10.5787653, - 46.8399847 - ], - [ - 10.4566318, - 46.8504267 - ], - [ - 10.4769874, - 46.9269392 - ], - [ - 10.3853873, - 46.9894592 - ], - [ - 10.2327204, - 46.8643462 - ], - [ - 10.1207647, - 46.8330223 - ], - [ - 9.8663199, - 46.9408389 - ], - [ - 9.9019422, - 47.0033426 - ], - [ - 9.6831197, - 47.0588402 - ], - [ - 9.6118752, - 47.0380354 - ], - [ - 9.6322307, - 47.128131 - ], - [ - 9.5813418, - 47.1662025 - ], - [ - 9.5406306, - 47.2664422 - ], - [ - 9.6067863, - 47.3492559 - ], - [ - 9.6729419, - 47.369939 - ], - [ - 9.6424085, - 47.4457079 - ], - [ - 9.5660751, - 47.4801122 - ], - [ - 9.7136531, - 47.5282405 - ], - [ - 9.7848976, - 47.5969187 - ], - [ - 9.8357866, - 47.5454185 - ], - [ - 9.9477423, - 47.538548 - ], - [ - 10.0902313, - 47.4491493 - ], - [ - 10.1105869, - 47.3664924 - ], - [ - 10.2428982, - 47.3871688 - ], - [ - 10.1869203, - 47.2698953 - ], - [ - 10.3243205, - 47.2975125 - ], - [ - 10.4820763, - 47.4491493 - ], - [ - 10.4311873, - 47.4869904 - ], - [ - 10.4413651, - 47.5900549 - ], - [ - 10.4871652, - 47.5522881 - ], - [ - 10.5482319, - 47.5351124 - ], - [ - 10.5991209, - 47.5660246 - ], - [ - 10.7568766, - 47.5316766 - ], - [ - 10.8891879, - 47.5454185 - ], - [ - 10.9400769, - 47.4869904 - ], - [ - 10.9960547, - 47.3906141 - ], - [ - 11.2352328, - 47.4422662 - ], - [ - 11.2810328, - 47.3975039 - ], - [ - 11.4235219, - 47.5144941 - ], - [ - 11.5761888, - 47.5076195 - ], - [ - 11.6067221, - 47.5900549 - ], - [ - 11.8357224, - 47.5866227 - ], - [ - 12.003656, - 47.6243647 - ], - [ - 12.2072118, - 47.6037815 - ], - [ - 12.1614117, - 47.6963421 - ], - [ - 12.2581008, - 47.7442718 - ], - [ - 12.2530119, - 47.6792136 - ], - [ - 12.4311232, - 47.7100408 - ], - [ - 12.4921899, - 47.631224 - ], - [ - 12.5685234, - 47.6277944 - ], - [ - 12.6295901, - 47.6894913 - ], - [ - 12.7720792, - 47.6689338 - ], - [ - 12.8331459, - 47.5419833 - ], - [ - 12.975635, - 47.4732332 - ], - [ - 13.0417906, - 47.4938677 - ], - [ - 13.0367017, - 47.5557226 - ], - [ - 13.0977685, - 47.6415112 - ], - [ - 13.0316128, - 47.7100408 - ], - [ - 12.9043905, - 47.7203125 - ], - [ - 13.0061684, - 47.84683 - ], - [ - 12.9451016, - 47.9355501 - ], - [ - 12.8636793, - 47.9594103 - ], - [ - 12.8636793, - 48.0036929 - ], - [ - 12.7517236, - 48.0989418 - ], - [ - 12.8738571, - 48.2109733 - ], - [ - 12.9603683, - 48.2109733 - ], - [ - 13.0417906, - 48.2652035 - ], - [ - 13.1842797, - 48.2990682 - ], - [ - 13.2606131, - 48.2922971 - ], - [ - 13.3980133, - 48.3565867 - ], - [ - 13.4438134, - 48.417418 - ], - [ - 13.4387245, - 48.5523383 - ], - [ - 13.509969, - 48.5860123 - ], - [ - 13.6117469, - 48.5725454 - ], - [ - 13.7287915, - 48.5118999 - ], - [ - 13.7847694, - 48.5725454 - ], - [ - 13.8203916, - 48.6263915 - ], - [ - 13.7949471, - 48.7171267 - ], - [ - 13.850925, - 48.7741724 - ], - [ - 14.0595697, - 48.6633774 - ], - [ - 14.0137696, - 48.6331182 - ], - [ - 14.0748364, - 48.5927444 - ], - [ - 14.2173255, - 48.5961101 - ], - [ - 14.3649034, - 48.5489696 - ], - [ - 14.4666813, - 48.6499311 - ], - [ - 14.5582815, - 48.5961101 - ], - [ - 14.5989926, - 48.6263915 - ], - [ - 14.7211261, - 48.5759124 - ], - [ - 14.7211261, - 48.6868997 - ], - [ - 14.822904, - 48.7271983 - ], - [ - 14.8178151, - 48.777526 - ], - [ - 14.9647227, - 48.7851754 - ], - [ - 14.9893637, - 49.0126611 - ], - [ - 15.1485933, - 48.9950306 - ], - [ - 15.1943934, - 48.9315502 - ], - [ - 15.3063491, - 48.9850128 - ], - [ - 15.3928603, - 48.9850128 - ], - [ - 15.4844604, - 48.9282069 - ], - [ - 15.749083, - 48.8545973 - ], - [ - 15.8406831, - 48.8880697 - ], - [ - 16.0086166, - 48.7808794 - ], - [ - 16.2070835, - 48.7339115 - ], - [ - 16.3953727, - 48.7372678 - ], - [ - 16.4920617, - 48.8110498 - ], - [ - 16.6905286, - 48.7741724 - ], - [ - 16.7057953, - 48.7339115 - ], - [ - 16.8991733, - 48.713769 - ], - [ - 16.9755067, - 48.515271 - ], - [ - 16.8482844, - 48.4511817 - ], - [ - 16.8533733, - 48.3464411 - ], - [ - 16.9551512, - 48.2516513 - ], - [ - 16.9907734, - 48.1498955 - ], - [ - 17.0925513, - 48.1397088 - ], - [ - 17.0823736, - 48.0241182 - ], - [ - 17.1739737, - 48.0207146 - ], - [ - 17.0823736, - 47.8741447 - ], - [ - 16.9856845, - 47.8673174 - ], - [ - 17.0823736, - 47.8092489 - ], - [ - 17.0925513, - 47.7031919 - ], - [ - 16.7414176, - 47.6792136 - ], - [ - 16.7057953, - 47.7511153 - ], - [ - 16.5378617, - 47.7545368 - ], - [ - 16.5480395, - 47.7066164 - ], - [ - 16.4208172, - 47.6689338 - ], - [ - 16.573484, - 47.6175045 - ], - [ - 16.670173, - 47.631224 - ], - [ - 16.7108842, - 47.538548 - ], - [ - 16.6599952, - 47.4491493 - ], - [ - 16.5429506, - 47.3940591 - ], - [ - 16.4615283, - 47.3940591 - ], - [ - 16.4920617, - 47.276801 - ], - [ - 16.425906, - 47.1973317 - ], - [ - 16.4717061, - 47.1489007 - ], - [ - 16.5480395, - 47.1489007 - ], - [ - 16.476795, - 47.0796369 - ], - [ - 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.1547401, - 19.6878969 - ], - [ - -72.162234, - 19.689011 - ], - [ - -72.164995, - 19.6932445 - ], - [ - -72.1657838, - 19.6979977 - ], - [ - -72.161603, - 19.7035677 - ], - [ - -72.1487449, - 19.7028993 - ], - [ - -72.1477194, - 19.7026765 - ], - [ - -72.1485082, - 19.7001514 - ], - [ - -72.1436963, - 19.7011169 - ], - [ - -72.1410143, - 19.7000029 - ], - [ - -72.139476, - 19.6973664 - ], - [ - -72.1382533, - 19.6927617 - ], - [ - -72.1386872, - 19.6923161 - ], - [ - -72.1380561, - 19.6896423 - ], - [ - -72.1385294, - 19.6894938 - ], - [ - -72.1388055, - 19.6901251 - ], - [ - -72.1388844, - 19.6876741 - ], - [ - -72.1378195, - 19.6872656 - ], - [ - -72.13778, - 19.6850003 - ], - [ - -72.1369517, - 19.6855945 - ], - [ - -72.136794, - 19.6840719 - ], - [ - -72.135729, - 19.6835148 - ], - [ - -72.1355713, - 19.6740817 - ], - [ - -72.1366362, - 19.6708133 - ], - [ - -72.1487843, - 19.6710733 - ], - [ - -72.1534779, - 19.6763843 - ], - [ - -72.1530835, - 19.6769414 - ], - [ - -72.1533251, - 19.6769768 - ], - [ - -72.1532807, - 19.6796525 - ], - [ - -72.1523834, - 19.6797175 - ], - [ - -72.1522749, - 19.6803488 - ], - [ - -72.1519101, - 19.6803395 - ], - [ - -72.1518608, - 19.6805067 - ], - [ - -72.1528173, - 19.6806552 - ], - [ - -72.1522299, - 19.6833011 - ], - [ - -72.1507801, - 19.6831499 - ], - [ - -72.1504457, - 19.6847862 - ], - [ - -72.1508591, - 19.6843492 - ], - [ - -72.1530087, - 19.6849898 - ], - [ - -72.1546258, - 19.6854354 - ], - [ - -72.1543103, - 19.6870694 - ], - [ - -72.1547244, - 19.6868466 - ], - [ - -72.1548501, - 19.6877564 - ], - [ - -72.1545814, - 19.6877982 - ] - ], - [ - [ - -72.1310601, - 19.6718929 - ], - [ - -72.1259842, - 19.6772765 - ], - [ - -72.1255379, - 19.6776179 - ], - [ - -72.1216891, - 19.6776442 - ], - [ - -72.1149677, - 19.672602 - ], - [ - -72.1152745, - 19.6687152 - ], - [ - -72.1198205, - 19.6627535 - ], - [ - -72.1227768, - 19.6625696 - ], - [ - -72.1248965, - 19.662701 - ], - [ - -72.1285779, - 19.6645394 - ], - [ - -72.1308091, - 19.6661677 - ], - [ - -72.1316737, - 19.668794 - ], - [ - -72.1315621, - 19.671 - ] - ], - [ - [ - -71.845795, - 19.6709758 - ], - [ - -71.8429354, - 19.6759525 - ], - [ - -71.8410027, - 19.6759525 - ], - [ - -71.8380249, - 19.6755254 - ], - [ - -71.8378671, - 19.6745041 - ], - [ - -71.8390504, - 19.6743927 - ], - [ - -71.8390109, - 19.6741141 - ], - [ - -71.8398392, - 19.673947 - ], - [ - -71.8389123, - 19.6736127 - ], - [ - -71.8380249, - 19.67209 - ], - [ - -71.8380052, - 19.6726285 - ], - [ - -71.8376699, - 19.6727214 - ], - [ - -71.8376305, - 19.672545 - ], - [ - -71.8354414, - 19.6732135 - ], - [ - -71.835333, - 19.6729999 - ], - [ - -71.8331242, - 19.6734642 - ], - [ - -71.8326706, - 19.6716815 - ], - [ - -71.8321579, - 19.67209 - ], - [ - -71.8307183, - 19.6694902 - ], - [ - -71.8306009, - 19.6697594 - ], - [ - -71.8302174, - 19.6698907 - ], - [ - -71.8291833, - 19.6672095 - ], - [ - -71.8290749, - 19.6672095 - ], - [ - -71.8289122, - 19.6667916 - ], - [ - -71.8289516, - 19.6666199 - ], - [ - -71.8288333, - 19.6663506 - ], - [ - -71.8285572, - 19.6664759 - ], - [ - -71.8288678, - 19.6672466 - ], - [ - -71.8287593, - 19.6674138 - ], - [ - -71.8277979, - 19.6678177 - ], - [ - -71.8277112, - 19.6678586 - ], - [ - -71.8278263, - 19.6679637 - ], - [ - -71.8271831, - 19.6681212 - ], - [ - -71.8271761, - 19.6680917 - ], - [ - -71.8264405, - 19.6683921 - ], - [ - -71.8264074, - 19.6683231 - ], - [ - -71.8261954, - 19.6684253 - ], - [ - -71.8261806, - 19.6683556 - ], - [ - -71.8258946, - 19.6684206 - ], - [ - -71.8258897, - 19.6686574 - ], - [ - -71.8251551, - 19.6687549 - ], - [ - -71.8254509, - 19.6691588 - ], - [ - -71.8229332, - 19.6695739 - ], - [ - -71.822713, - 19.6696658 - ], - [ - -71.8227688, - 19.6697577 - ], - [ - -71.8201751, - 19.6709855 - ], - [ - -71.8198474, - 19.6704537 - ], - [ - -71.8197985, - 19.6706014 - ], - [ - -71.8194674, - 19.6707557 - ], - [ - -71.8182472, - 19.6713433 - ], - [ - -71.8181426, - 19.6711431 - ], - [ - -71.8175813, - 19.6714254 - ], - [ - -71.816959, - 19.6707672 - ], - [ - -71.8176388, - 19.6718965 - ], - [ - -71.8171403, - 19.6720376 - ], - [ - -71.8158225, - 19.6718045 - ], - [ - -71.8138354, - 19.6711874 - ], - [ - -71.8123259, - 19.6706982 - ], - [ - -71.8121759, - 19.6704258 - ], - [ - -71.8124304, - 19.6701467 - ], - [ - -71.8119184, - 19.6700141 - ], - [ - -71.8118765, - 19.6705828 - ], - [ - -71.811169, - 19.6703483 - ], - [ - -71.8095938, - 19.6698516 - ], - [ - -71.8077992, - 19.6692829 - ], - [ - -71.8056028, - 19.668612 - ], - [ - -71.8051443, - 19.6668942 - ], - [ - -71.8051196, - 19.6652322 - ], - [ - -71.8052315, - 19.661979 - ], - [ - -71.8065603, - 19.6523921 - ], - [ - -71.8073412, - 19.6482946 - ], - [ - -71.8099686, - 19.6468292 - ], - [ - -71.8147517, - 19.6454502 - ], - [ - -71.8147726, - 19.6455619 - ], - [ - -71.8150027, - 19.6455093 - ], - [ - -71.8149469, - 19.6453846 - ], - [ - -71.8159928, - 19.6450234 - ], - [ - -71.8158882, - 19.6448855 - ], - [ - -71.8165854, - 19.6446097 - ], - [ - -71.8190119, - 19.643802 - ], - [ - -71.8211524, - 19.643454 - ], - [ - -71.8221564, - 19.6433292 - ], - [ - -71.8269046, - 19.643211 - ], - [ - -71.8280481, - 19.6432241 - ], - [ - -71.8304466, - 19.6440778 - ], - [ - -71.8306419, - 19.6448592 - ], - [ - -71.8295263, - 19.6450365 - ], - [ - -71.8296064, - 19.6456111 - ], - [ - -71.8299411, - 19.6455651 - ], - [ - -71.8303699, - 19.6451744 - ], - [ - -71.830471, - 19.6453452 - ], - [ - -71.8308092, - 19.6451974 - ], - [ - -71.8310184, - 19.6451088 - ], - [ - -71.8312519, - 19.6458541 - ], - [ - -71.8311125, - 19.6458245 - ], - [ - -71.831367, - 19.6465862 - ], - [ - -71.8328939, - 19.646189 - ], - [ - -71.8344566, - 19.6457062 - ], - [ - -71.8344664, - 19.6463052 - ], - [ - -71.834215, - 19.6461938 - ], - [ - -71.8342002, - 19.6465513 - ], - [ - -71.8346702, - 19.6463 - ], - [ - -71.8349118, - 19.6463905 - ], - [ - -71.8347984, - 19.6462187 - ], - [ - -71.8354393, - 19.6458496 - ], - [ - -71.8355034, - 19.6458032 - ], - [ - -71.8364747, - 19.6461328 - ], - [ - -71.8376382, - 19.6472658 - ], - [ - -71.8379143, - 19.647888 - ], - [ - -71.8390483, - 19.6508039 - ], - [ - -71.8456942, - 19.6696203 - ] - ], - [ - [ - -72.098878, - 18.54843 - ], - [ - -72.096993, - 18.5501994 - ], - [ - -72.0972888, - 18.5503209 - ], - [ - -72.0968451, - 18.5503489 - ], - [ - -72.0955632, - 18.551854 - ], - [ - -72.0956428, - 18.5526742 - ], - [ - -72.0959914, - 18.5533748 - ], - [ - -72.0962145, - 18.553203 - ], - [ - -72.0962842, - 18.5535665 - ], - [ - -72.0964446, - 18.5535533 - ], - [ - -72.0965352, - 18.5539764 - ], - [ - -72.0965056, - 18.554173 - ], - [ - -72.0966085, - 18.5541747 - ], - [ - -72.0965178, - 18.5542127 - ], - [ - -72.0968769, - 18.5546588 - ], - [ - -72.0979018, - 18.5552141 - ], - [ - -72.1006211, - 18.5555875 - ], - [ - -72.1014926, - 18.5556206 - ], - [ - -72.1024339, - 18.5555016 - ], - [ - -72.103417, - 18.5543515 - ], - [ - -72.1034798, - 18.5516215 - ], - [ - -72.1030789, - 18.5516149 - ], - [ - -72.1033752, - 18.5515224 - ], - [ - -72.1035042, - 18.5515224 - ], - [ - -72.1035239, - 18.5502417 - ], - [ - -72.1028701, - 18.5503062 - ], - [ - -72.1029015, - 18.55025 - ], - [ - -72.1028457, - 18.5501773 - ], - [ - -72.1035081, - 18.5500252 - ], - [ - -72.103491, - 18.5497396 - ], - [ - -72.1035181, - 18.5497361 - ], - [ - -72.1035398, - 18.5489039 - ], - [ - -72.1034317, - 18.5487056 - ], - [ - -72.102717, - 18.5481437 - ], - [ - -72.1025601, - 18.5481536 - ], - [ - -72.10229, - 18.5482751 - ], - [ - -72.1022891, - 18.5482569 - ], - [ - -72.1025201, - 18.5481396 - ], - [ - -72.1023388, - 18.5481321 - ], - [ - -72.0999082, - 18.5480901 - ], - [ - -72.09907, - 18.5483799 - ] - ], - [ - [ - -72.2542503, - 18.568262 - ], - [ - -72.2560252, - 18.5717765 - ], - [ - -72.2557886, - 18.5748049 - ], - [ - -72.2535009, - 18.5755526 - ], - [ - -72.2522782, - 18.5755526 - ], - [ - -72.2499906, - 18.5740945 - ], - [ - -72.2473874, - 18.5698323 - ], - [ - -72.2460069, - 18.566729 - ], - [ - -72.2458492, - 18.5629527 - ], - [ - -72.2479396, - 18.5625414 - ], - [ - -72.2501483, - 18.5628031 - ], - [ - -72.2519232, - 18.5650839 - ] - ], - [ - [ - -72.303145, - 18.5332749 - ], - [ - -72.3031275, - 18.5331799 - ], - [ - -72.3048311, - 18.5311081 - ], - [ - -72.3097397, - 18.5311081 - ], - [ - -72.3164332, - 18.5324302 - ], - [ - -72.3234056, - 18.5366083 - ], - [ - -72.3261388, - 18.5387765 - ], - [ - -72.3261946, - 18.5426371 - ], - [ - -72.3170468, - 18.5540596 - ], - [ - -72.3130864, - 18.5540596 - ], - [ - -72.2987511, - 18.5453342 - ], - [ - -72.2988627, - 18.5407333 - ], - [ - -72.2962969, - 18.5404689 - ], - [ - -72.2954602, - 18.5395169 - ], - [ - -72.2961853, - 18.5338582 - ], - [ - -72.2971893, - 18.5332235 - ], - [ - -72.3007034, - 18.5332764 - ], - [ - -72.3022652, - 18.5342284 - ], - [ - -72.3028486, - 18.5335189 - ], - [ - -72.303104, - 18.5333361 - ], - [ - -72.303181, - 18.5334007 - ], - [ - -72.3035793, - 18.5335614 - ], - [ - -72.3030793, - 18.5346463 - ], - [ - -72.303715, - 18.5339873 - ], - [ - -72.3045286, - 18.5344052 - ], - [ - -72.3044015, - 18.5345097 - ], - [ - -72.3062747, - 18.5352571 - ], - [ - -72.3063107, - 18.5352741 - ], - [ - -72.3061219, - 18.5357628 - ], - [ - -72.3061219, - 18.5358196 - ], - [ - -72.30637, - 18.5358928 - ], - [ - -72.3062726, - 18.5354869 - ], - [ - -72.3066688, - 18.5350891 - ], - [ - -72.3061963, - 18.5349706 - ], - [ - -72.3058869, - 18.5349385 - ], - [ - -72.3055373, - 18.5346833 - ], - [ - -72.3054864, - 18.534613 - ], - [ - -72.3055585, - 18.5345065 - ], - [ - -72.3046749, - 18.5342293 - ], - [ - -72.3047617, - 18.5338817 - ], - [ - -72.3043252, - 18.5337511 - ], - [ - -72.3042595, - 18.5336346 - ] - ], - [ - [ - -72.2981405, - 18.477502 - ], - [ - -72.2935652, - 18.4948587 - ], - [ - -72.2922242, - 18.4964297 - ], - [ - -72.2931708, - 18.4972526 - ], - [ - -72.2892266, - 18.5057058 - ], - [ - -72.2878067, - 18.5080996 - ], - [ - -72.2850458, - 18.5119893 - ], - [ - -72.2840203, - 18.5113161 - ], - [ - -72.2808649, - 18.515879 - ], - [ - -72.2773151, - 18.5175994 - ], - [ - -72.2723454, - 18.5175246 - ], - [ - -72.2662714, - 18.5144578 - ], - [ - -72.2665869, - 18.5066783 - ], - [ - -72.2692643, - 18.5046154 - ], - [ - -72.2661965, - 18.5029756 - ], - [ - -72.2688181, - 18.4965222 - ], - [ - -72.2691528, - 18.4959403 - ], - [ - -72.2702684, - 18.4961519 - ], - [ - -72.2702684, - 18.4955964 - ], - [ - -72.2690691, - 18.49557 - ], - [ - -72.2692922, - 18.4937714 - ], - [ - -72.2736988, - 18.4859951 - ], - [ - -72.2746749, - 18.4850429 - ], - [ - -72.2751769, - 18.483403 - ], - [ - -72.2765435, - 18.4813398 - ], - [ - -72.2773523, - 18.4814985 - ], - [ - -72.2783006, - 18.4809694 - ], - [ - -72.2778544, - 18.4807049 - ], - [ - -72.2771013, - 18.480123 - ], - [ - -72.2789978, - 18.4775836 - ], - [ - -72.279723, - 18.4772927 - ], - [ - -72.2806433, - 18.4776365 - ], - [ - -72.2813685, - 18.4771604 - ], - [ - -72.2808386, - 18.4769752 - ], - [ - -72.2812848, - 18.4758378 - ], - [ - -72.2823167, - 18.4751765 - ], - [ - -72.2851615, - 18.4750971 - ], - [ - -72.2849941, - 18.4763668 - ], - [ - -72.2854404, - 18.4769752 - ], - [ - -72.286277, - 18.4756262 - ], - [ - -72.2869325, - 18.4754675 - ], - [ - -72.2865978, - 18.4751897 - ], - [ - -72.2865978, - 18.4750046 - ], - [ - -72.2909765, - 18.4747268 - ], - [ - -72.2946579, - 18.4749384 - ], - [ - -72.2973911, - 18.476843 - ] - ], - [ - [ - -72.3466657, - 18.5222375 - ], - [ - -72.346833, - 18.5244325 - ], - [ - -72.3475303, - 18.5277645 - ], - [ - -72.3455501, - 18.5291131 - ], - [ - -72.3403069, - 18.5292189 - ], - [ - -72.3383267, - 18.5280289 - ], - [ - -72.3369043, - 18.530118 - ], - [ - -72.3338086, - 18.5296684 - ], - [ - -72.3289279, - 18.5270769 - ], - [ - -72.328649, - 18.5253316 - ], - [ - -72.3292068, - 18.5232689 - ], - [ - -72.330406, - 18.5220524 - ], - [ - -72.3321631, - 18.5221847 - ], - [ - -72.3322467, - 18.5191963 - ], - [ - -72.3369183, - 18.5183633 - ], - [ - -72.3382012, - 18.5184691 - ], - [ - -72.3381454, - 18.5181782 - ], - [ - -72.3411993, - 18.5177947 - ], - [ - -72.3454943, - 18.5171997 - ], - [ - -72.3492595, - 18.517279 - ], - [ - -72.3504308, - 18.5188922 - ], - [ - -72.3503472, - 18.5206112 - ], - [ - -72.3496778, - 18.5220392 - ] - ], - [ - [ - -72.3303078, - 18.5486462 - ], - [ - -72.3429687, - 18.5508149 - ], - [ - -72.3433236, - 18.5530585 - ], - [ - -72.3413121, - 18.5614341 - ], - [ - -72.3390639, - 18.5613593 - ], - [ - -72.3384723, - 18.5638271 - ], - [ - -72.3375257, - 18.5654348 - ], - [ - -72.3348436, - 18.5650609 - ], - [ - -72.3311755, - 18.5638271 - ], - [ - -72.3312149, - 18.5616211 - ], - [ - -72.3232082, - 18.5606863 - ], - [ - -72.3212361, - 18.559602 - ], - [ - -72.3208023, - 18.5587046 - ], - [ - -72.3208811, - 18.557882 - ], - [ - -72.3259493, - 18.5580274 - ], - [ - -72.3266186, - 18.5581993 - ], - [ - -72.3259214, - 18.5577498 - ], - [ - -72.3250986, - 18.5573797 - ], - [ - -72.3233767, - 18.552263 - ], - [ - -72.3245994, - 18.5478507 - ], - [ - -72.3288986, - 18.5483742 - ], - [ - -72.329979, - 18.5489548 - ] - ], - [ - [ - -72.3231383, - 18.5269828 - ], - [ - -72.3223434, - 18.528067 - ], - [ - -72.3209629, - 18.5279745 - ], - [ - -72.3207816, - 18.5271282 - ], - [ - -72.3208513, - 18.5253697 - ], - [ - -72.3214649, - 18.5249598 - ], - [ - -72.3225666, - 18.5248937 - ], - [ - -72.3228454, - 18.52533 - ], - [ - -72.3232359, - 18.5264804 - ] - ], - [ - [ - -72.2160832, - 18.6457752 - ], - [ - -72.2159649, - 18.6553795 - ], - [ - -72.2030279, - 18.6558279 - ], - [ - -72.1947057, - 18.6553421 - ], - [ - -72.1922208, - 18.6545573 - ], - [ - -72.1920631, - 18.6521283 - ], - [ - -72.193483, - 18.6477559 - ], - [ - -72.201253, - 18.6385249 - ], - [ - -72.2069327, - 18.6388239 - ], - [ - -72.2120996, - 18.6424117 - ], - [ - -72.2118068, - 18.6430591 - ], - [ - -72.2121693, - 18.6426892 - ], - [ - -72.2127968, - 18.6427552 - ], - [ - -72.2134662, - 18.6431252 - ], - [ - -72.2135638, - 18.6437462 - ], - [ - -72.2154176, - 18.6443947 - ], - [ - -72.2158909, - 18.6450301 - ] - ], - [ - [ - -72.2867654, - 18.6482017 - ], - [ - -72.2900977, - 18.6527446 - ], - [ - -72.28981, - 18.6536532 - ], - [ - -72.2900738, - 18.6542664 - ], - [ - -72.290721, - 18.6537667 - ], - [ - -72.2910327, - 18.6544709 - ], - [ - -72.2912485, - 18.654221 - ], - [ - -72.29168, - 18.6558905 - ], - [ - -72.2912245, - 18.656606 - ], - [ - -72.2922673, - 18.65597 - ], - [ - -72.2926869, - 18.6567536 - ], - [ - -72.2930705, - 18.6567309 - ], - [ - -72.2941253, - 18.6581846 - ], - [ - -72.2960192, - 18.6608421 - ], - [ - -72.2959713, - 18.6619096 - ], - [ - -72.2932862, - 18.664567 - ], - [ - -72.2906731, - 18.6659979 - ], - [ - -72.2895943, - 18.6661342 - ], - [ - -72.2895943, - 18.6665657 - ], - [ - -72.2877004, - 18.6664749 - ], - [ - -72.2875805, - 18.6676559 - ], - [ - -72.2831214, - 18.6697227 - ], - [ - -72.2796453, - 18.6696546 - ], - [ - -72.2784311, - 18.6690787 - ], - [ - -72.2783972, - 18.6687736 - ], - [ - -72.277736, - 18.6691671 - ], - [ - -72.2774394, - 18.669143 - ], - [ - -72.2770071, - 18.6683159 - ], - [ - -72.2765575, - 18.6681125 - ], - [ - -72.2765385, - 18.6680583 - ], - [ - -72.2752319, - 18.6685239 - ], - [ - -72.2749292, - 18.6674649 - ], - [ - -72.2746416, - 18.6674309 - ], - [ - -72.2734668, - 18.6682145 - ], - [ - -72.2732271, - 18.6682712 - ], - [ - -72.2726757, - 18.6671583 - ], - [ - -72.2719147, - 18.6674288 - ], - [ - -72.2718808, - 18.6673405 - ], - [ - -72.2688149, - 18.6681868 - ], - [ - -72.2688269, - 18.6671761 - ], - [ - -72.2690786, - 18.6668241 - ], - [ - -72.2688149, - 18.66679 - ], - [ - -72.2681077, - 18.6670739 - ], - [ - -72.2676282, - 18.6673805 - ], - [ - -72.2675563, - 18.6666878 - ], - [ - -72.266861, - 18.666949 - ], - [ - -72.2655904, - 18.6673578 - ], - [ - -72.2654466, - 18.6670058 - ], - [ - -72.2647514, - 18.6674146 - ], - [ - -72.2629893, - 18.6681868 - ], - [ - -72.2628455, - 18.6681754 - ], - [ - -72.2626537, - 18.6676076 - ], - [ - -72.2623001, - 18.6677098 - ], - [ - -72.2624799, - 18.6679199 - ], - [ - -72.2624799, - 18.6682322 - ], - [ - -72.262306, - 18.6682606 - ], - [ - -72.2620963, - 18.6679654 - ], - [ - -72.2622761, - 18.6689193 - ], - [ - -72.2601484, - 18.6688966 - ], - [ - -72.2542749, - 18.6687944 - ], - [ - -72.2505388, - 18.6683476 - ], - [ - -72.2504371, - 18.669536 - ], - [ - -72.2477926, - 18.6698893 - ], - [ - -72.2415204, - 18.669793 - ], - [ - -72.2414187, - 18.6741933 - ], - [ - -72.2389167, - 18.6739759 - ], - [ - -72.2387249, - 18.6734649 - ], - [ - -72.2383653, - 18.6733059 - ], - [ - -72.2387009, - 18.6739532 - ], - [ - -72.2375502, - 18.6738964 - ], - [ - -72.2374183, - 18.6735103 - ], - [ - -72.237742, - 18.67334 - ], - [ - -72.2375142, - 18.6732605 - ], - [ - -72.236843, - 18.6734876 - ], - [ - -72.2364354, - 18.6724088 - ], - [ - -72.2355124, - 18.6726019 - ], - [ - -72.2354045, - 18.6724202 - ], - [ - -72.2353027, - 18.6729028 - ], - [ - -72.2345475, - 18.6726871 - ], - [ - -72.2343077, - 18.6724599 - ], - [ - -72.2342358, - 18.6734706 - ], - [ - -72.2334087, - 18.6734592 - ], - [ - -72.2332889, - 18.6733003 - ], - [ - -72.2327375, - 18.6732889 - ], - [ - -72.2327135, - 18.6735047 - ], - [ - -72.227703, - 18.6725281 - ], - [ - -72.2265283, - 18.6716537 - ], - [ - -72.226804, - 18.6715742 - ], - [ - -72.2274993, - 18.6715855 - ], - [ - -72.2274873, - 18.6714493 - ], - [ - -72.2272899, - 18.6714623 - ], - [ - -72.2272814, - 18.6712977 - ], - [ - -72.2272094, - 18.671358 - ], - [ - -72.2261785, - 18.6713693 - ], - [ - -72.2256032, - 18.670881 - ], - [ - -72.2255073, - 18.6694502 - ], - [ - -72.2261066, - 18.6696886 - ], - [ - -72.2261785, - 18.6695949 - ], - [ - -72.2259837, - 18.6695495 - ], - [ - -72.225777, - 18.6691379 - ], - [ - -72.2253335, - 18.6694643 - ], - [ - -72.2249739, - 18.66947 - ], - [ - -72.2245783, - 18.6678802 - ], - [ - -72.2235525, - 18.6677046 - ], - [ - -72.2235907, - 18.6675921 - ], - [ - -72.2224634, - 18.6676283 - ], - [ - -72.2223659, - 18.667022 - ], - [ - -72.2223277, - 18.6670943 - ], - [ - -72.2219209, - 18.667026 - ], - [ - -72.2208105, - 18.6669015 - ], - [ - -72.220809, - 18.6665325 - ], - [ - -72.2208705, - 18.6663593 - ], - [ - -72.2206023, - 18.6668107 - ], - [ - -72.2203895, - 18.6666361 - ], - [ - -72.2184341, - 18.6650535 - ], - [ - -72.21829, - 18.6640979 - ], - [ - -72.2183493, - 18.6608376 - ], - [ - -72.2187223, - 18.6606541 - ], - [ - -72.2186894, - 18.660603 - ], - [ - -72.2187253, - 18.6604525 - ], - [ - -72.2189771, - 18.6603247 - ], - [ - -72.2187823, - 18.6601998 - ], - [ - -72.2186984, - 18.6602367 - ], - [ - -72.2185815, - 18.6600352 - ], - [ - -72.2186085, - 18.6600039 - ], - [ - -72.2187823, - 18.6601345 - ], - [ - -72.218995, - 18.6600181 - ], - [ - -72.2189111, - 18.6599131 - ], - [ - -72.2189681, - 18.6597938 - ], - [ - -72.2183807, - 18.6595837 - ], - [ - -72.2184728, - 18.6539662 - ], - [ - -72.2201001, - 18.6511554 - ], - [ - -72.225796, - 18.6469472 - ], - [ - -72.2283048, - 18.6457265 - ], - [ - -72.2379335, - 18.645855 - ], - [ - -72.237764, - 18.6446985 - ], - [ - -72.2400355, - 18.6432529 - ], - [ - -72.2455958, - 18.6433493 - ], - [ - -72.2482742, - 18.6450358 - ], - [ - -72.2487488, - 18.6436705 - ], - [ - -72.2511067, - 18.6429775 - ], - [ - -72.2512385, - 18.6433409 - ], - [ - -72.2512625, - 18.6431592 - ], - [ - -72.2514843, - 18.6431365 - ], - [ - -72.2513284, - 18.6429718 - ], - [ - -72.2533602, - 18.6423471 - ], - [ - -72.253516, - 18.6426765 - ], - [ - -72.2539535, - 18.6425402 - ], - [ - -72.2541453, - 18.642932 - ], - [ - -72.2543851, - 18.6428696 - ], - [ - -72.2543791, - 18.6427503 - ], - [ - -72.2564168, - 18.6423244 - ], - [ - -72.2566925, - 18.6431365 - ], - [ - -72.2568783, - 18.6428582 - ], - [ - -72.2568184, - 18.6425288 - ], - [ - -72.258843, - 18.6420991 - ], - [ - -72.258885, - 18.6422467 - ], - [ - -72.2592626, - 18.6422297 - ], - [ - -72.2596461, - 18.6424057 - ], - [ - -72.2592206, - 18.6406907 - ], - [ - -72.2599545, - 18.6404815 - ], - [ - -72.2601156, - 18.6406341 - ], - [ - -72.2601156, - 18.6399393 - ], - [ - -72.2615268, - 18.6394669 - ], - [ - -72.2626056, - 18.6391034 - ], - [ - -72.2654465, - 18.6387286 - ], - [ - -72.2719433, - 18.6386832 - ], - [ - -72.272201, - 18.6388649 - ], - [ - -72.2730341, - 18.6394158 - ], - [ - -72.273166, - 18.6412558 - ], - [ - -72.2738732, - 18.6410286 - ], - [ - -72.2742208, - 18.6416079 - ], - [ - -72.2752187, - 18.6416987 - ], - [ - -72.2754524, - 18.6415738 - ], - [ - -72.2755513, - 18.6416874 - ], - [ - -72.2755394, - 18.6417527 - ], - [ - -72.2764713, - 18.6418634 - ], - [ - -72.276753, - 18.6418975 - ], - [ - -72.2762953, - 18.6426002 - ], - [ - -72.2774226, - 18.6429978 - ], - [ - -72.277982, - 18.6427247 - ], - [ - -72.2785796, - 18.6431303 - ], - [ - -72.2785669, - 18.6432307 - ], - [ - -72.2789017, - 18.6433471 - ], - [ - -72.279851, - 18.6439655 - ], - [ - -72.2858703, - 18.6469651 - ] - ], - [ - [ - -72.5557247, - 18.5305893 - ], - [ - -72.5555866, - 18.5367036 - ], - [ - -72.554995, - 18.537975 - ], - [ - -72.5488026, - 18.537919 - ], - [ - -72.5486646, - 18.5372832 - ], - [ - -72.548842, - 18.5306267 - ], - [ - -72.5493745, - 18.5301031 - ], - [ - -72.555133, - 18.5301218 - ] - ], - [ - [ - -72.6235278, - 18.5079877 - ], - [ - -72.6234441, - 18.5095217 - ], - [ - -72.6226074, - 18.5104341 - ], - [ - -72.6204878, - 18.511849 - ], - [ - -72.6183403, - 18.5107514 - ], - [ - -72.6162207, - 18.5083183 - ], - [ - -72.6162625, - 18.506467 - ], - [ - -72.618661, - 18.5044438 - ], - [ - -72.6204041, - 18.5044967 - ], - [ - -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 - ], - [ - -7.3221271, - 55.398605 - ], - [ - -7.2891331, - 55.4333162 - ], - [ - -7.2368042, - 55.4530757 - ], - [ - -7.18881, - 55.4497995 - ], - [ - -7.1528144, - 55.3968384 - ], - [ - -6.90561, - 55.394903 - ], - [ - -6.9047153, - 55.3842114 - ], - [ - -5.8485282, - 55.3922956 - ], - [ - -5.8378629, - 55.248676 - ], - [ - -5.3614762, - 55.2507024 - ], - [ - -5.3899172, - 53.8466464 - ], - [ - -5.8734141, - 53.8487436 - ], - [ - -5.8983, - 52.8256258 - ], - [ - -6.0191742, - 52.8256258 - ], - [ - -6.0262844, - 51.7712367 - ], - [ - -8.1131422, - 51.7712367 - ], - [ - -8.1273627, - 51.3268839 - ], - [ - -10.6052842, - 51.3091083 - ], - [ - -10.6271879, - 52.0328254 - ], - [ - -10.6469845, - 52.0322454 - ], - [ - -10.6469845, - 52.0440365 - ], - [ - -10.6271879, - 52.0448095 - ], - [ - -10.6290733, - 52.0745627 - ], - [ - -10.6699234, - 52.0743695 - ], - [ - -10.6702376, - 52.0876941 - ], - [ - -10.6312729, - 52.0898179 - ], - [ - -10.6393128, - 52.4147202 - ], - [ - -10.3137689, - 52.4185533 - ], - [ - -10.3166401, - 53.3341342 - ], - [ - -10.3699669, - 53.3330727 - ], - [ - -10.385965, - 54.3534472 - ], - [ - -8.8163777, - 54.3586265 - ], - [ - -8.8173427, - 54.6595721 - ], - [ - -8.8413398, - 54.6616284 - ], - [ - -8.8422286, - 54.6929749 - ], - [ - -8.8315632, - 54.7145436 - ], - [ - -8.8151208, - 54.7145436 - ] - ] - ], - "terms_url": "http://geo.nls.uk/maps/", - "terms_text": "National Library of Scotland Historic Maps" - }, - { - "name": "Ireland British War Office 1:25k GSGS 3906", - "type": "tms", - "template": "http://mapwarper.net/layers/tile/101/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 0, - 18 - ], - "polygon": [ - [ - [ - -10.71, - 51.32 - ], - [ - -10.71, - 55.46 - ], - [ - -5.37, - 55.46 - ], - [ - -5.37, - 51.32 - ], - [ - -10.71, - 51.32 - ] - ] - ], - "terms_url": "http://wiki.openstreetmap.org/wiki/WikiProject_Ireland#Trinity_College_Dublin", - "terms_text": "Glucksman Map Library, Trinity College Dublin", - "id": "GSGS3906" - }, - { - "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": [ - [ - [ - -10.0847426, - 51.4147902 - ], - [ - -10.0906535, - 51.5064103 - ], - [ - -10.4564222, - 51.5003961 - ], - [ - -10.5005905, - 52.3043019 - ], - [ - -10.0837522, - 52.312741 - ], - [ - -10.0840973, - 52.3404698 - ], - [ - -10.055802, - 52.3408915 - ], - [ - -10.0768509, - 52.7628238 - ], - [ - -9.7780248, - 52.7684611 - ], - [ - -9.7818205, - 52.8577261 - ], - [ - -9.6337877, - 52.8596012 - ], - [ - -9.6449626, - 53.1294502 - ], - [ - -10.0919663, - 53.1227152 - ], - [ - -10.1051422, - 53.3912913 - ], - [ - -10.4052593, - 53.3866349 - ], - [ - -10.4530828, - 54.193502 - ], - [ - -10.2998523, - 54.1974988 - ], - [ - -10.3149801, - 54.4669592 - ], - [ - -8.9276095, - 54.4853897 - ], - [ - -8.9339534, - 54.7546562 - ], - [ - -8.7773069, - 54.755501 - ], - [ - -8.7826749, - 55.0252208 - ], - [ - -8.9402974, - 55.0238221 - ], - [ - -8.9451773, - 55.2934155 - ], - [ - -7.528039, - 55.2970274 - ], - [ - -7.525599, - 55.3874955 - ], - [ - -7.0541955, - 55.3841691 - ], - [ - -7.0556595, - 55.2939712 - ], - [ - -6.3241545, - 55.2859128 - ], - [ - -6.3217146, - 55.3253556 - ], - [ - -6.1035807, - 55.3223016 - ], - [ - -6.1045566, - 55.2828557 - ], - [ - -5.7985836, - 55.2772968 - ], - [ - -5.8117595, - 55.0087135 - ], - [ - -5.656577, - 55.0056351 - ], - [ - -5.6721928, - 54.7355021 - ], - [ - -5.3618278, - 54.729585 - ], - [ - -5.3964755, - 54.1917889 - ], - [ - -5.855679, - 54.2017807 - ], - [ - -5.9220464, - 52.8524504 - ], - [ - -6.070885, - 52.8551025 - ], - [ - -6.1030927, - 52.1373337 - ], - [ - -6.8331336, - 52.1463183 - ], - [ - -6.8355736, - 52.0578908 - ], - [ - -7.5641506, - 52.0617913 - ], - [ - -7.5661026, - 51.7921593 - ], - [ - -8.147305, - 51.792763 - ], - [ - -8.146329, - 51.7033331 - ], - [ - -8.2912636, - 51.7027283 - ], - [ - -8.2897996, - 51.5227274 - ], - [ - -9.1174397, - 51.516958 - ], - [ - -9.1179277, - 51.4625685 - ], - [ - -9.3692452, - 51.4616564 - ], - [ - -9.3672933, - 51.4254613 - ] - ] - ], - "terms_url": "http://geo.nls.uk/maps/", - "terms_text": "National Library of Scotland Historic Maps", - "id": "GSGS4136" - }, - { - "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 - ], - [ - -5.8341575, - 53.7633541 - ], - [ - -5.6267647, - 53.5383692 - ], - [ - -5.9648778, - 52.1631197 - ], - [ - -6.0453211, - 52.0527275 - ], - [ - -6.1823261, - 51.9699475 - ], - [ - -6.3960035, - 51.9234618 - ], - [ - -6.5945978, - 51.883911 - ], - [ - -7.2481994, - 51.9056295 - ], - [ - -7.341212, - 51.8148076 - ], - [ - -8.1971787, - 51.5037019 - ], - [ - -8.3191005, - 51.4167737 - ], - [ - -9.4478202, - 51.1991221 - ], - [ - -9.9015706, - 51.2266802 - ], - [ - -10.472215, - 51.4050139 - ], - [ - -10.8857437, - 51.6770619 - ], - [ - -11.035318, - 52.0620016 - ], - [ - -10.9950963, - 52.1831616 - ], - [ - -10.8178697, - 52.3139827 - ], - [ - -9.8839736, - 52.9032208 - ], - [ - -10.1165049, - 52.9676141 - ], - [ - -10.5514014, - 53.3317027 - ], - [ - -10.6896633, - 53.5854022 - ], - [ - -10.6444139, - 54.0100436 - ], - [ - -10.5501445, - 54.257482 - ], - [ - -10.2824192, - 54.4742405 - ], - [ - -9.8073011, - 54.5705346 - ], - [ - -9.196435, - 54.5486695 - ], - [ - -9.2253443, - 54.7000264 - ], - [ - -8.8985435, - 55.1363582 - ], - [ - -8.0476045, - 55.4711977 - ], - [ - -7.4367384, - 55.6191092 - ], - [ - -7.2205471, - 55.6205288 - ], - [ - -6.8258723, - 55.5608644 - ], - [ - -6.0679458, - 55.3727567 - ], - [ - -5.5639184, - 55.0759594 - ], - [ - -5.0649187, - 54.4640142 - ], - [ - -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 - ], - [ - -9.215509, - 52.8276933 - ], - [ - -9.1086618, - 52.9128016 - ], - [ - -9.0196831, - 52.8837107 - ], - [ - -8.8760649, - 52.8978445 - ], - [ - -8.8001797, - 52.8833558 - ], - [ - -8.7665597, - 52.9065354 - ], - [ - -8.5938079, - 52.9238592 - ], - [ - -8.5241972, - 52.8869724 - ], - [ - -8.4956786, - 52.9105906 - ], - [ - -8.3506448, - 52.9238592 - ], - [ - -8.2718204, - 52.9492401 - ], - [ - -8.2249679, - 52.8991338 - ], - [ - -8.1564001, - 52.9149986 - ], - [ - -8.0881237, - 52.7630417 - ], - [ - -8.1360092, - 52.7239783 - ], - [ - -8.1570652, - 52.6766443 - ], - [ - -8.2059695, - 52.6185385 - ], - [ - -8.2025734, - 52.5954396 - ], - [ - -8.2231242, - 52.5599691 - ], - [ - -8.2236294, - 52.5095371 - ], - [ - -8.2976651, - 52.5025088 - ], - [ - -8.3295888, - 52.4721087 - ], - [ - -8.3589695, - 52.4986072 - ], - [ - -8.3737385, - 52.4764529 - ], - [ - -8.432326, - 52.4342609 - ], - [ - -8.4754569, - 52.4216289 - ], - [ - -8.5017727, - 52.3870011 - ], - [ - -8.5476205, - 52.3681351 - ], - [ - -8.6444103, - 52.3376422 - ], - [ - -8.6841451, - 52.3660614 - ], - [ - -8.8154099, - 52.3721014 - ], - [ - -8.8614233, - 52.3521652 - ], - [ - -8.9074451, - 52.3824674 - ], - [ - -8.9388551, - 52.3789166 - ], - [ - -8.9782502, - 52.4093811 - ], - [ - -9.0298715, - 52.4104169 - ], - [ - -9.1059449, - 52.420981 - ], - [ - -9.1084962, - 52.4415071 - ], - [ - -9.140702, - 52.4650891 - ], - [ - -9.1315765, - 52.5136207 - ], - [ - -9.1739699, - 52.5620573 - ], - [ - -9.1426235, - 52.589645 - ], - [ - -9.1542382, - 52.610216 - ], - [ - -9.1426231, - 52.6387401 - ], - [ - -9.1776844, - 52.6447573 - ], - [ - -9.2012184, - 52.6526248 - ], - [ - -9.2036198, - 52.6686468 - ], - [ - -9.2238348, - 52.6706578 - ], - [ - -9.2161072, - 52.6919412 - ], - [ - -9.1882395, - 52.7057242 - ], - [ - -9.2750099, - 52.7350292 - ], - [ - -9.2601152, - 52.7616711 - ] - ], - [ - [ - -7.307313219981238, - 53.81625879275365 - ], - [ - -7.245858447032101, - 53.78300449111207 - ], - [ - -7.15144468970801, - 53.81179938127503 - ], - [ - -7.086900011973722, - 53.784424420834 - ], - [ - -7.0347149533800435, - 53.77996162275688 - ], - [ - -6.975320116954343, - 53.788481098127924 - ], - [ - -6.928628222423156, - 53.81443454540607 - ], - [ - -6.992829577403537, - 53.86609081229548 - ], - [ - -6.975320116954343, - 53.87945028968944 - ], - [ - -6.949914233165313, - 53.87094929783329 - ], - [ - -6.9375546140247035, - 53.87540241385127 - ], - [ - -6.936867968516893, - 53.896649390754646 - ], - [ - -6.897042529063821, - 53.889770599553906 - ], - [ - -6.867516772227924, - 53.880259817835736 - ], - [ - -6.851037280040446, - 53.88450958346468 - ], - [ - -6.842454211192801, - 53.89786317755242 - ], - [ - -6.812928454356904, - 53.90069520963246 - ], - [ - -6.79850889869286, - 53.89280549994937 - ], - [ - -6.789925829845217, - 53.89462633440526 - ], - [ - -6.791985766368652, - 53.904538374710896 - ], - [ - -6.778939501720231, - 53.918087767078354 - ], - [ - -6.77001311011868, - 53.91505470292794 - ], - [ - -6.75868345923979, - 53.921727153244476 - ], - [ - -6.744263903575747, - 53.916065748791254 - ], - [ - -6.727441088634364, - 53.92334455637637 - ], - [ - -6.713021532970319, - 53.90777445003927 - ], - [ - -6.684182421642232, - 53.90292024303218 - ], - [ - -6.623757616954815, - 53.88187882710815 - ], - [ - -6.590455309825955, - 53.857789593974296 - ], - [ - -6.591141955333765, - 53.835509894663346 - ], - [ - -6.574319140392382, - 53.82254170362619 - ], - [ - -6.571572558361136, - 53.804703885117576 - ], - [ - -6.5533764524041285, - 53.79983770791046 - ], - [ - -6.541360156017425, - 53.78300449111207 - ], - [ - -6.511491076427622, - 53.76900546961285 - ], - [ - -6.472695605236269, - 53.77326653566421 - ], - [ - -6.443513171154276, - 53.76393220797015 - ], - [ - -6.44728972144724, - 53.75114486961979 - ], - [ - -6.4775021237909485, - 53.728199094666586 - ], - [ - -6.459649340587848, - 53.71682309412751 - ], - [ - -6.435616747814443, - 53.72230833571077 - ], - [ - -6.4198239011347775, - 53.72921465935537 - ], - [ - -6.4009411496699595, - 53.72169889975152 - ], - [ - -6.375878588634836, - 53.718042098526006 - ], - [ - -6.359055773693453, - 53.708695495259434 - ], - [ - -6.340173022228636, - 53.708085862042424 - ], - [ - -6.329873339611461, - 53.71296268045594 - ], - [ - -6.325753466564592, - 53.72210519137233 - ], - [ - -6.2938244504513525, - 53.72576163932632 - ], - [ - -6.265328661877173, - 53.7363229253304 - ], - [ - -6.240952746349864, - 53.734292114843086 - ], - [ - -6.180871264416349, - 53.632015710147016 - ], - [ - -6.092793818322125, - 53.588038288422446 - ], - [ - -5.985734079608837, - 53.49383447350347 - ], - [ - -6.0887447432153685, - 53.27174268379562 - ], - [ - -6.033272979232964, - 53.1191110041494 - ], - [ - -5.984663357119282, - 52.9651254915577 - ], - [ - -6.122679104189409, - 52.73207538466633 - ], - [ - -6.185163845400262, - 52.73706461957944 - ], - [ - -6.1899703639549415, - 52.76075568810044 - ], - [ - -6.319059719423517, - 52.782357357522855 - ], - [ - -6.393904079774976, - 52.7790347214105 - ], - [ - -6.465315212587381, - 52.6946379192593 - ], - [ - -6.534666408876349, - 52.673409093161446 - ], - [ - -6.612257351259057, - 52.69255711803012 - ], - [ - -6.6692489284074155, - 52.74745702505679 - ], - [ - -6.671308864930852, - 52.76948072949997 - ], - [ - -6.720747341493285, - 52.7748810695361 - ], - [ - -6.71456753192298, - 52.80311808637125 - ], - [ - -6.658949245790243, - 52.84709806982182 - ], - [ - -6.582044948915348, - 52.81349473557279 - ], - [ - -6.547712673524768, - 52.83133677935633 - ], - [ - -6.531233181337292, - 52.87404491274922 - ], - [ - -6.617750515321548, - 52.87528820923615 - ], - [ - -6.728987087587023, - 52.90635903963372 - ], - [ - -6.780485500672891, - 52.859122574848655 - ], - [ - -6.870436062196207, - 52.85165948109425 - ], - [ - -6.938413967469552, - 52.86658438536895 - ], - [ - -6.965879787782016, - 52.89766145203082 - ], - [ - -6.987852444031986, - 52.969260966642985 - ], - [ - -7.039350857117853, - 52.9560260536776 - ], - [ - -7.109388698914634, - 53.007288776633686 - ], - [ - -7.068876613953752, - 53.058078015357786 - ], - [ - -7.088789333680287, - 53.11869890949892 - ], - [ - -7.119688381531809, - 53.15000684568904 - ], - [ - -7.105955471375577, - 53.16112391039828 - ], - [ - -7.127928127625547, - 53.17223809655703 - ], - [ - -7.180113186219227, - 53.182526443342745 - ], - [ - -7.160887112000503, - 53.19898266621498 - ], - [ - -7.057890285828767, - 53.19898266621498 - ], - [ - -7.048963894227218, - 53.217077217179636 - ], - [ - -7.0915359157115345, - 53.235575105358386 - ], - [ - -7.0434707301647235, - 53.25735126035676 - ], - [ - -7.05102383075065, - 53.29717703664696 - ], - [ - -6.996778835633536, - 53.31112780504489 - ], - [ - -7.044157375672535, - 53.33368557548294 - ], - [ - -7.105955471375576, - 53.371801590024276 - ], - [ - -7.22050647653913, - 53.432465115081854 - ], - [ - -7.149441429887032, - 53.45731709817442 - ], - [ - -7.099891489102085, - 53.463915962572514 - ], - [ - -7.0744645458045445, - 53.48370640260363 - ], - [ - -7.079028356140001, - 53.504650927752664 - ], - [ - -7.047733656696876, - 53.515119311359335 - ], - [ - -7.029478415355053, - 53.54147267392419 - ], - [ - -7.054253385747527, - 53.56471202500164 - ], - [ - -7.009267255298033, - 53.58561652973758 - ], - [ - -6.992641946218873, - 53.602642188744426 - ], - [ - -6.989056095241016, - 53.62739453790707 - ], - [ - -6.9717788132567895, - 53.63686620586593 - ], - [ - -6.9633031654909425, - 53.650973114934644 - ], - [ - -6.9871001765258205, - 53.66623418009986 - ], - [ - -6.999813648174589, - 53.67086935885432 - ], - [ - -7.008289295940436, - 53.65908728051006 - ], - [ - -7.044473792171549, - 53.65367801032349 - ], - [ - -7.066640870943764, - 53.63918547390694 - ], - [ - -7.101847407817279, - 53.65870092708686 - ], - [ - -7.120754622064167, - 53.672993645380515 - ], - [ - -7.137379931143327, - 53.66893809633893 - ], - [ - -7.160850955725672, - 53.683034277255075 - ], - [ - -7.174216400279507, - 53.686316272406906 - ], - [ - -7.196057492599188, - 53.69017711570491 - ], - [ - -7.210726882963154, - 53.69480966037566 - ], - [ - -7.247237365646801, - 53.71661437518035 - ], - [ - -7.239413690786019, - 53.73223735177976 - ], - [ - -7.260276823748104, - 53.74361339729716 - ], - [ - -7.2814659431627184, - 53.75922634307083 - ], - [ - -7.289615604476034, - 53.77271433845693 - ], - [ - -7.3238441819919515, - 53.78465723043301 - ], - [ - -7.337209626545788, - 53.78658318504567 - ], - [ - -7.351227044004687, - 53.80141007448381 - ], - [ - -7.307313219981238, - 53.81625879275365 - ] - ], - [ - [ - -5.685433013282673, - 54.77854496390836 - ], - [ - -5.696867084279401, - 54.73050346921268 - ], - [ - -5.8223689524230124, - 54.70033215177621 - ], - [ - -5.878760568989772, - 54.649492182564074 - ], - [ - -5.743404719024681, - 54.68128223623249 - ], - [ - -5.581196917402638, - 54.68781619319656 - ], - [ - -5.571488953592992, - 54.67074450064368 - ], - [ - -5.582915011231644, - 54.66440901595977 - ], - [ - -5.58291501123164, - 54.65085746679818 - ], - [ - -5.6086481910584185, - 54.63997082553691 - ], - [ - -5.6354970593650116, - 54.61551371292451 - ], - [ - -5.728732824433139, - 54.6184944610979 - ], - [ - -5.822612969913913, - 54.49193018941315 - ], - [ - -5.896754545381575, - 54.44975600798866 - ], - [ - -5.936834914186871, - 54.38213187386197 - ], - [ - -6.0187561190025445, - 54.36974944197913 - ], - [ - -6.059257912638059, - 54.38280030737259 - ], - [ - -6.101784280694663, - 54.41510088826871 - ], - [ - -6.1740201072375225, - 54.43476829635816 - ], - [ - -6.216261364689026, - 54.42827259213158 - ], - [ - -6.264329002478664, - 54.487825014814625 - ], - [ - -6.249277519938476, - 54.49741303545491 - ], - [ - -6.288340515296785, - 54.53143435197413 - ], - [ - -6.283750270272458, - 54.54447449434036 - ], - [ - -6.321445027854273, - 54.58928767713928 - ], - [ - -6.264329002478664, - 54.604982769755765 - ], - [ - -6.240052417736423, - 54.59541999854735 - ], - [ - -6.098762694536575, - 54.631690374598676 - ], - [ - -6.051950538018501, - 54.61314575326238 - ], - [ - -6.031509408441251, - 54.620921248201434 - ], - [ - -6.002995140908084, - 54.65571636730639 - ], - [ - -6.0647754758974335, - 54.6634355452454 - ], - [ - -6.059920158948984, - 54.704134188139534 - ], - [ - -6.047781866577864, - 54.71395188569398 - ], - [ - -6.120611620804591, - 54.801644524994515 - ], - [ - -6.002141887262449, - 54.80836072138932 - ], - [ - -5.984662746248036, - 54.78652900156178 - ], - [ - -5.685433013282673, - 54.77854496390836 - ] - ], - [ - [ - -9.128658300749114, - 53.24759266864586 - ], - [ - -9.024510568479629, - 53.26744820137083 - ], - [ - -9.016360907166316, - 53.26364619217274 - ], - [ - -9.001854510028616, - 53.26588844362053 - ], - [ - -8.9951717877517, - 53.259258838409615 - ], - [ - -8.973493688658284, - 53.262378780650025 - ], - [ - -8.95230456924367, - 53.271444820907114 - ], - [ - -8.956705386352859, - 53.281580911863244 - ], - [ - -8.961106203462048, - 53.28119110665652 - ], - [ - -8.960780217009516, - 53.28908396911955 - ], - [ - -8.954260487958864, - 53.28927883616923 - ], - [ - -8.95230456924367, - 53.30155366854246 - ], - [ - -8.963714095082308, - 53.303793931840495 - ], - [ - -8.9811543702928, - 53.294734752711804 - ], - [ - -8.985718180628256, - 53.30174847871221 - ], - [ - -9.019946758144176, - 53.30768976199425 - ], - [ - -9.00837423907927, - 53.31596722087059 - ], - [ - -9.01880580556031, - 53.31625933715475 - ], - [ - -9.045862681120513, - 53.31275380979257 - ], - [ - -9.06444390891487, - 53.32122500810515 - ], - [ - -9.080906224767762, - 53.307397587062724 - ], - [ - -9.08106921799403, - 53.303404329274585 - ], - [ - -9.09019683866494, - 53.30574189135002 - ], - [ - -9.095901601584261, - 53.298826232852214 - ], - [ - -9.10128037805105, - 53.3008718259498 - ], - [ - -9.115623781962478, - 53.28450433758295 - ], - [ - -9.121491538108067, - 53.2832375443259 - ], - [ - -9.13273807072044, - 53.28557621023763 - ], - [ - -9.144636576237877, - 53.27865728614638 - ], - [ - -9.13876882009229, - 53.26345120822951 - ], - [ - -9.128658300749114, - 53.24759266864586 - ] - ], - [ - [ - -8.595266214281438, - 51.69264788483154 - ], - [ - -8.55819409885298, - 51.69306638852667 - ], - [ - -8.566697711835303, - 51.682644706464686 - ], - [ - -8.579130708100188, - 51.67349700898941 - ], - [ - -8.544554623426079, - 51.66520531197343 - ], - [ - -8.494765061495364, - 51.667778759675976 - ], - [ - -8.30113898732036, - 51.7235009029955 - ], - [ - -8.268406960495541, - 51.784858633837544 - ], - [ - -8.154536388302146, - 51.7814362126791 - ], - [ - -8.115350159004825, - 51.809093351533164 - ], - [ - -8.068326683848039, - 51.870050153657075 - ], - [ - -8.10059769621054, - 51.89964422561186 - ], - [ - -8.08123508879304, - 51.918414974037226 - ], - [ - -8.09183842142643, - 51.95337589170907 - ], - [ - -8.124570448251253, - 51.95479649105758 - ], - [ - -8.132407694110718, - 51.970988142592034 - ], - [ - -8.099675667285895, - 51.978371865876596 - ], - [ - -8.144394070131078, - 52.02151390085561 - ], - [ - -8.159607547387685, - 52.064330945363764 - ], - [ - -8.140705954432507, - 52.07254939152303 - ], - [ - -8.165600735397863, - 52.09294727054506 - ], - [ - -8.18726841512697, - 52.0835993998731 - ], - [ - -8.2093971093184, - 52.10512489114057 - ], - [ - -8.207092037006792, - 52.12494181389489 - ], - [ - -8.227837687811258, - 52.143052434929714 - ], - [ - -8.222766528725723, - 52.16454923557058 - ], - [ - -8.30298304516965, - 52.1829264222872 - ], - [ - -8.427456949996438, - 52.17783811526099 - ], - [ - -8.46710419375608, - 52.169921813849676 - ], - [ - -8.509978538751975, - 52.18405707812542 - ], - [ - -8.530263175094117, - 52.16511480067495 - ], - [ - -8.574981577939297, - 52.18066502436804 - ], - [ - -8.587889982884295, - 52.16963906274442 - ], - [ - -8.642289689438227, - 52.18829678149147 - ], - [ - -8.719279104645906, - 52.15804472022032 - ], - [ - -8.698533453841442, - 52.13541291452849 - ], - [ - -8.740946784375014, - 52.10823956240069 - ], - [ - -8.77460084012448, - 52.05951253229793 - ], - [ - -8.803183736788409, - 52.03768144571248 - ], - [ - -8.86818677597573, - 52.03286015807593 - ], - [ - -8.870491848287335, - 52.01839317543363 - ], - [ - -8.844214023935015, - 51.991148511559096 - ], - [ - -8.79811257770287, - 51.964455373040394 - ], - [ - -8.782899100446263, - 51.931777239822054 - ], - [ - -8.835915763613228, - 51.9292188160068 - ], - [ - -8.838681850387156, - 51.90277322850554 - ], - [ - -8.802261707863764, - 51.89367006943167 - ], - [ - -8.792580404155013, - 51.85695425263326 - ], - [ - -8.765841565340368, - 51.82476769939557 - ], - [ - -8.758926348405547, - 51.80054140901511 - ], - [ - -8.79811257770287, - 51.78628456602828 - ], - [ - -8.832227647914657, - 51.79626482935233 - ], - [ - -8.836837792537873, - 51.77687258059678 - ], - [ - -8.885705325543944, - 51.746055989869106 - ], - [ - -8.859888515653944, - 51.72435763090916 - ], - [ - -8.807332866949299, - 51.71093369500414 - ], - [ - -8.678248817499297, - 51.693505197270746 - ], - [ - -8.60540853245251, - 51.67835695335278 - ], - [ - -8.595266214281438, - 51.69264788483154 - ] - ], - [ - [ - -7.138279151048154, - 55.06131559970097 - ], - [ - -7.117994514706011, - 54.99631329558348 - ], - [ - -7.070049010624583, - 54.98784996056705 - ], - [ - -7.076503213097081, - 54.93332450204895 - ], - [ - -7.025791622241725, - 54.91159959910791 - ], - [ - -7.007351043748867, - 54.87872502112528 - ], - [ - -7.024869593317081, - 54.8511320998998 - ], - [ - -6.990754523105296, - 54.81661438893913 - ], - [ - -7.051608432131725, - 54.80598761598125 - ], - [ - -7.115228427932084, - 54.80651902101645 - ], - [ - -7.170550163410654, - 54.84847793920564 - ], - [ - -7.199133060074584, - 54.84316909395457 - ], - [ - -7.222183783190655, - 54.85803210052931 - ], - [ - -7.2111194360949415, - 54.862808332627324 - ], - [ - -7.212041465019584, - 54.882438010878076 - ], - [ - -7.279349576518514, - 54.880846771447125 - ], - [ - -7.273817402970655, - 54.91530955931841 - ], - [ - -7.3033223285592275, - 54.915839525718205 - ], - [ - -7.363254208661015, - 54.90894941815292 - ], - [ - -7.385382902852443, - 54.91636948513913 - ], - [ - -7.391837105324943, - 54.93438395336098 - ], - [ - -7.429640291235302, - 54.95291983389722 - ], - [ - -7.420420001988872, - 54.99208185118366 - ], - [ - -7.410277683817801, - 55.03437621938347 - ], - [ - -7.3577220351131585, - 55.057619110599035 - ], - [ - -7.265519142648871, - 55.07557028899173 - ], - [ - -7.138279151048154, - 55.06131559970097 - ] - ], - [ - [ - -7.190498776293322, - 52.26144368927652 - ], - [ - -7.156844720543858, - 52.28443443581867 - ], - [ - -7.132871968503143, - 52.27343421670601 - ], - [ - -7.113278853854483, - 52.26779201951648 - ], - [ - -7.098295883829036, - 52.27230583471742 - ], - [ - -7.089767116276089, - 52.25509445009032 - ], - [ - -7.07109603055207, - 52.259186286149074 - ], - [ - -7.033984366335195, - 52.257352061495865 - ], - [ - -7.027530163862696, - 52.250720000975015 - ], - [ - -7.034675888028678, - 52.247756419376 - ], - [ - -7.031218279561267, - 52.24013487190721 - ], - [ - -7.034214873566356, - 52.23222966213934 - ], - [ - -7.050580886978767, - 52.2296884028405 - ], - [ - -7.062567262999124, - 52.21980434486687 - ], - [ - -7.076858711331088, - 52.216132562953725 - ], - [ - -7.084926464421715, - 52.22065163604718 - ], - [ - -7.084465449959392, - 52.22785295843095 - ], - [ - -7.101292477834124, - 52.221498911062525 - ], - [ - -7.105211100763858, - 52.21726237433474 - ], - [ - -7.111665303236357, - 52.21796849185403 - ], - [ - -7.107977187537785, - 52.21104805609072 - ], - [ - -7.117773744862115, - 52.20928246619701 - ], - [ - -7.129760120882472, - 52.21690931136535 - ], - [ - -7.14497359813908, - 52.21782726924826 - ], - [ - -7.150505771686938, - 52.22375823207553 - ], - [ - -7.158112510315241, - 52.22262858593765 - ], - [ - -7.158804032008724, - 52.22700580464912 - ], - [ - -7.158573524777563, - 52.23180612902503 - ], - [ - -7.167563306792832, - 52.23985256723076 - ], - [ - -7.16733279956167, - 52.244580933687786 - ], - [ - -7.172519212262786, - 52.24676851484933 - ], - [ - -7.177590371348324, - 52.25114335361416 - ], - [ - -7.190498776293322, - 52.26144368927652 - ] - ] - ], - "terms_url": "http://www.eea.europa.eu/data-and-maps/data/urban-atlas", - "terms_text": "EEA GMES Urban Atlas" - }, - { - "name": "Kanton Aargau 25cm (AGIS 2011)", - "type": "tms", - "template": "http://tiles.poole.ch/AGIS/OF2011/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 14, - 19 - ], - "polygon": [ - [ - [ - 7.7, - 47.12 - ], - [ - 7.7, - 47.63 - ], - [ - 8.5, - 47.63 - ], - [ - 8.5, - 47.12 - ], - [ - 7.7, - 47.12 - ] - ] - ], - "terms_text": "AGIS OF2011" - }, - { - "name": "Katastrálna mapa Slovenska (KaPor, 2010-04)", - "type": "tms", - "template": "http://www.freemap.sk/tms/kapor2/{zoom}/{x}/{y}.jpg", - "polygon": [ - [ - [ - 19.83682, - 49.25529 - ], - [ - 19.80075, - 49.42385 - ], - [ - 19.60437, - 49.48058 - ], - [ - 19.49179, - 49.63961 - ], - [ - 19.21831, - 49.52604 - ], - [ - 19.16778, - 49.42521 - ], - [ - 19.00308, - 49.42236 - ], - [ - 18.97611, - 49.5308 - ], - [ - 18.54685, - 49.51425 - ], - [ - 18.31432, - 49.33818 - ], - [ - 18.15913, - 49.2961 - ], - [ - 18.05564, - 49.11134 - ], - [ - 17.56396, - 48.84938 - ], - [ - 17.17929, - 48.88816 - ], - [ - 17.058, - 48.81105 - ], - [ - 16.90426, - 48.61947 - ], - [ - 16.79685, - 48.38561 - ], - [ - 17.06762, - 48.01116 - ], - [ - 17.32787, - 47.97749 - ], - [ - 17.51699, - 47.82535 - ], - [ - 17.74776, - 47.73093 - ], - [ - 18.29515, - 47.72075 - ], - [ - 18.67959, - 47.75541 - ], - [ - 18.89755, - 47.81203 - ], - [ - 18.79463, - 47.88245 - ], - [ - 18.84318, - 48.04046 - ], - [ - 19.46212, - 48.05333 - ], - [ - 19.62064, - 48.22938 - ], - [ - 19.89585, - 48.09387 - ], - [ - 20.33766, - 48.2643 - ], - [ - 20.55395, - 48.52358 - ], - [ - 20.82335, - 48.55714 - ], - [ - 21.10271, - 48.47096 - ], - [ - 21.45863, - 48.55513 - ], - [ - 21.74536, - 48.31435 - ], - [ - 22.15293, - 48.37179 - ], - [ - 22.61255, - 49.08914 - ], - [ - 22.09997, - 49.23814 - ], - [ - 21.9686, - 49.36363 - ], - [ - 21.6244, - 49.46989 - ], - [ - 21.06873, - 49.46402 - ], - [ - 20.94336, - 49.31088 - ], - [ - 20.73052, - 49.44006 - ], - [ - 20.22804, - 49.41714 - ], - [ - 20.05234, - 49.23052 - ], - [ - 19.83682, - 49.25529 - ] - ] - ], - "terms_url": "http://wiki.freemap.sk/KatasterPortal", - "terms_text": "Permisssion by UGKK" - }, - { - "name": "Katastrálna mapa Slovenska (KaPor, 2011-05)", - "type": "tms", - "template": "http://www.freemap.sk/tms/kapor2_201105/{zoom}/{x}/{y}.jpg", - "polygon": [ - [ - [ - 19.83682, - 49.25529 - ], - [ - 19.80075, - 49.42385 - ], - [ - 19.60437, - 49.48058 - ], - [ - 19.49179, - 49.63961 - ], - [ - 19.21831, - 49.52604 - ], - [ - 19.16778, - 49.42521 - ], - [ - 19.00308, - 49.42236 - ], - [ - 18.97611, - 49.5308 - ], - [ - 18.54685, - 49.51425 - ], - [ - 18.31432, - 49.33818 - ], - [ - 18.15913, - 49.2961 - ], - [ - 18.05564, - 49.11134 - ], - [ - 17.56396, - 48.84938 - ], - [ - 17.17929, - 48.88816 - ], - [ - 17.058, - 48.81105 - ], - [ - 16.90426, - 48.61947 - ], - [ - 16.79685, - 48.38561 - ], - [ - 17.06762, - 48.01116 - ], - [ - 17.32787, - 47.97749 - ], - [ - 17.51699, - 47.82535 - ], - [ - 17.74776, - 47.73093 - ], - [ - 18.29515, - 47.72075 - ], - [ - 18.67959, - 47.75541 - ], - [ - 18.89755, - 47.81203 - ], - [ - 18.79463, - 47.88245 - ], - [ - 18.84318, - 48.04046 - ], - [ - 19.46212, - 48.05333 - ], - [ - 19.62064, - 48.22938 - ], - [ - 19.89585, - 48.09387 - ], - [ - 20.33766, - 48.2643 - ], - [ - 20.55395, - 48.52358 - ], - [ - 20.82335, - 48.55714 - ], - [ - 21.10271, - 48.47096 - ], - [ - 21.45863, - 48.55513 - ], - [ - 21.74536, - 48.31435 - ], - [ - 22.15293, - 48.37179 - ], - [ - 22.61255, - 49.08914 - ], - [ - 22.09997, - 49.23814 - ], - [ - 21.9686, - 49.36363 - ], - [ - 21.6244, - 49.46989 - ], - [ - 21.06873, - 49.46402 - ], - [ - 20.94336, - 49.31088 - ], - [ - 20.73052, - 49.44006 - ], - [ - 20.22804, - 49.41714 - ], - [ - 20.05234, - 49.23052 - ], - [ - 19.83682, - 49.25529 - ] - ] - ], - "terms_url": "http://wiki.freemap.sk/KatasterPortal", - "terms_text": "Permisssion by UGKK" - }, - { - "name": "Kelowna 2012", - "type": "tms", - "description": "High quality aerial imagery taken for the City of Kelowna", - "template": "http://{switch:a,b,c,d}.tile.paulnorman.ca/kelowna2012/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 9, - 20 - ], - "polygon": [ - [ - [ - -119.5867318, - 49.7928087 - ], - [ - -119.5465655, - 49.7928097 - ], - [ - -119.5465661, - 49.8013837 - ], - [ - -119.5343374, - 49.8013841 - ], - [ - -119.5343376, - 49.8047321 - ], - [ - -119.5296211, - 49.8047322 - ], - [ - -119.5296216, - 49.8119555 - ], - [ - -119.5104463, - 49.811956 - ], - [ - -119.5115683, - 49.8744325 - ], - [ - -119.5108946, - 49.8744904 - ], - [ - -119.5114111, - 49.8843312 - ], - [ - -119.5114115, - 49.9221763 - ], - [ - -119.49386, - 49.9223477 - ], - [ - -119.4940505, - 49.9313031 - ], - [ - -119.4803936, - 49.9317529 - ], - [ - -119.4804572, - 49.9407474 - ], - [ - -119.4666732, - 49.9409927 - ], - [ - -119.4692775, - 49.9913717 - ], - [ - -119.4551337, - 49.9916078 - ], - [ - -119.4556736, - 50.0121242 - ], - [ - -119.4416673, - 50.0123895 - ], - [ - -119.4417308, - 50.0136345 - ], - [ - -119.4221492, - 50.0140377 - ], - [ - -119.4221042, - 50.0119306 - ], - [ - -119.4121303, - 50.012165 - ], - [ - -119.4126082, - 50.0216913 - ], - [ - -119.4123387, - 50.0216913 - ], - [ - -119.4124772, - 50.0250773 - ], - [ - -119.4120917, - 50.0250821 - ], - [ - -119.4121954, - 50.0270769 - ], - [ - -119.4126083, - 50.0270718 - ], - [ - -119.4128328, - 50.0321946 - ], - [ - -119.3936313, - 50.0326418 - ], - [ - -119.393529, - 50.0307781 - ], - [ - -119.3795727, - 50.0310116 - ], - [ - -119.3795377, - 50.0287584 - ], - [ - -119.3735764, - 50.0288621 - ], - [ - -119.371544, - 49.9793618 - ], - [ - -119.3573506, - 49.9793618 - ], - [ - -119.3548353, - 49.9256081 - ], - [ - -119.3268079, - 49.9257238 - ], - [ - -119.3256573, - 49.8804068 - ], - [ - -119.3138893, - 49.8806528 - ], - [ - -119.3137097, - 49.8771651 - ], - [ - -119.3132156, - 49.877223 - ], - [ - -119.3131482, - 49.8749652 - ], - [ - -119.312452, - 49.8749073 - ], - [ - -119.3122275, - 49.87236 - ], - [ - -119.3117558, - 49.872331 - ], - [ - -119.3115986, - 49.8696098 - ], - [ - -119.3112169, - 49.8694217 - ], - [ - -119.3109199, - 49.8632417 - ], - [ - -119.3103721, - 49.8632724 - ], - [ - -119.3095139, - 49.8512388 - ], - [ - -119.3106368, - 49.8512316 - ], - [ - -119.3103859, - 49.8462564 - ], - [ - -119.3245344, - 49.8459957 - ], - [ - -119.3246018, - 49.8450689 - ], - [ - -119.3367018, - 49.844875 - ], - [ - -119.3367467, - 49.8435136 - ], - [ - -119.337937, - 49.8434702 - ], - [ - -119.3378023, - 49.8382055 - ], - [ - -119.3383637, - 49.8381041 - ], - [ - -119.3383749, - 49.8351202 - ], - [ - -119.3390936, - 49.8351058 - ], - [ - -119.3388016, - 49.8321217 - ], - [ - -119.3391497, - 49.8320565 - ], - [ - -119.3391722, - 49.8293331 - ], - [ - -119.3394641, - 49.8293331 - ], - [ - -119.3395879, - 49.8267878 - ], - [ - -119.3500053, - 49.8265829 - ], - [ - -119.3493701, - 49.8180588 - ], - [ - -119.4046964, - 49.8163785 - ], - [ - -119.4045694, - 49.8099022 - ], - [ - -119.4101592, - 49.8099022 - ], - [ - -119.4102862, - 49.8072787 - ], - [ - -119.4319467, - 49.8069098 - ], - [ - -119.4322643, - 49.7907965 - ], - [ - -119.4459847, - 49.7905504 - ], - [ - -119.445286, - 49.7820201 - ], - [ - -119.4967376, - 49.7811587 - ], - [ - -119.4966105, - 49.7784927 - ], - [ - -119.5418371, - 49.7775082 - ], - [ - -119.5415892, - 49.7718277 - ], - [ - -119.5560296, - 49.7714941 - ], - [ - -119.5561194, - 49.7718422 - ], - [ - -119.5715704, - 49.7715086 - ], - [ - -119.5716153, - 49.7717262 - ], - [ - -119.5819235, - 49.7714941 - ], - [ - -119.5820133, - 49.7717697 - ], - [ - -119.5922991, - 49.7715231 - ], - [ - -119.592344, - 49.7718132 - ], - [ - -119.6003839, - 49.7715957 - ], - [ - -119.6011924, - 49.7839081 - ], - [ - -119.5864365, - 49.7843863 - ] - ] - ], - "id": "kelowna_2012", - "default": true - }, - { - "name": "Kelowna Roads overlay", - "type": "tms", - "template": "http://{switch:a,b,c,d}.tile.paulnorman.ca/kelowna_overlay/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 9, - 20 - ], - "polygon": [ - [ - [ - -119.5867318, - 49.7928087 - ], - [ - -119.5465655, - 49.7928097 - ], - [ - -119.5465661, - 49.8013837 - ], - [ - -119.5343374, - 49.8013841 - ], - [ - -119.5343376, - 49.8047321 - ], - [ - -119.5296211, - 49.8047322 - ], - [ - -119.5296216, - 49.8119555 - ], - [ - -119.5104463, - 49.811956 - ], - [ - -119.5115683, - 49.8744325 - ], - [ - -119.5108946, - 49.8744904 - ], - [ - -119.5114111, - 49.8843312 - ], - [ - -119.5114115, - 49.9221763 - ], - [ - -119.49386, - 49.9223477 - ], - [ - -119.4940505, - 49.9313031 - ], - [ - -119.4803936, - 49.9317529 - ], - [ - -119.4804572, - 49.9407474 - ], - [ - -119.4666732, - 49.9409927 - ], - [ - -119.4692775, - 49.9913717 - ], - [ - -119.4551337, - 49.9916078 - ], - [ - -119.4556736, - 50.0121242 - ], - [ - -119.4416673, - 50.0123895 - ], - [ - -119.4417308, - 50.0136345 - ], - [ - -119.4221492, - 50.0140377 - ], - [ - -119.4221042, - 50.0119306 - ], - [ - -119.4121303, - 50.012165 - ], - [ - -119.4126082, - 50.0216913 - ], - [ - -119.4123387, - 50.0216913 - ], - [ - -119.4124772, - 50.0250773 - ], - [ - -119.4120917, - 50.0250821 - ], - [ - -119.4121954, - 50.0270769 - ], - [ - -119.4126083, - 50.0270718 - ], - [ - -119.4128328, - 50.0321946 - ], - [ - -119.3936313, - 50.0326418 - ], - [ - -119.393529, - 50.0307781 - ], - [ - -119.3795727, - 50.0310116 - ], - [ - -119.3795377, - 50.0287584 - ], - [ - -119.3735764, - 50.0288621 - ], - [ - -119.371544, - 49.9793618 - ], - [ - -119.3573506, - 49.9793618 - ], - [ - -119.3548353, - 49.9256081 - ], - [ - -119.3268079, - 49.9257238 - ], - [ - -119.3256573, - 49.8804068 - ], - [ - -119.3138893, - 49.8806528 - ], - [ - -119.3137097, - 49.8771651 - ], - [ - -119.3132156, - 49.877223 - ], - [ - -119.3131482, - 49.8749652 - ], - [ - -119.312452, - 49.8749073 - ], - [ - -119.3122275, - 49.87236 - ], - [ - -119.3117558, - 49.872331 - ], - [ - -119.3115986, - 49.8696098 - ], - [ - -119.3112169, - 49.8694217 - ], - [ - -119.3109199, - 49.8632417 - ], - [ - -119.3103721, - 49.8632724 - ], - [ - -119.3095139, - 49.8512388 - ], - [ - -119.3106368, - 49.8512316 - ], - [ - -119.3103859, - 49.8462564 - ], - [ - -119.3245344, - 49.8459957 - ], - [ - -119.3246018, - 49.8450689 - ], - [ - -119.3367018, - 49.844875 - ], - [ - -119.3367467, - 49.8435136 - ], - [ - -119.337937, - 49.8434702 - ], - [ - -119.3378023, - 49.8382055 - ], - [ - -119.3383637, - 49.8381041 - ], - [ - -119.3383749, - 49.8351202 - ], - [ - -119.3390936, - 49.8351058 - ], - [ - -119.3388016, - 49.8321217 - ], - [ - -119.3391497, - 49.8320565 - ], - [ - -119.3391722, - 49.8293331 - ], - [ - -119.3394641, - 49.8293331 - ], - [ - -119.3395879, - 49.8267878 - ], - [ - -119.3500053, - 49.8265829 - ], - [ - -119.3493701, - 49.8180588 - ], - [ - -119.4046964, - 49.8163785 - ], - [ - -119.4045694, - 49.8099022 - ], - [ - -119.4101592, - 49.8099022 - ], - [ - -119.4102862, - 49.8072787 - ], - [ - -119.4319467, - 49.8069098 - ], - [ - -119.4322643, - 49.7907965 - ], - [ - -119.4459847, - 49.7905504 - ], - [ - -119.445286, - 49.7820201 - ], - [ - -119.4967376, - 49.7811587 - ], - [ - -119.4966105, - 49.7784927 - ], - [ - -119.5418371, - 49.7775082 - ], - [ - -119.5415892, - 49.7718277 - ], - [ - -119.5560296, - 49.7714941 - ], - [ - -119.5561194, - 49.7718422 - ], - [ - -119.5715704, - 49.7715086 - ], - [ - -119.5716153, - 49.7717262 - ], - [ - -119.5819235, - 49.7714941 - ], - [ - -119.5820133, - 49.7717697 - ], - [ - -119.5922991, - 49.7715231 - ], - [ - -119.592344, - 49.7718132 - ], - [ - -119.6003839, - 49.7715957 - ], - [ - -119.6011924, - 49.7839081 - ], - [ - -119.5864365, - 49.7843863 - ] - ] - ], - "id": "kelowna_roads", - "overlay": true - }, - { - "name": "Landsat 233055", - "type": "tms", - "description": "Recent Landsat imagery", - "template": "http://{switch:a,b,c,d}.tile.paulnorman.ca/landsat_233055/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 5, - 14 - ], - "polygon": [ - [ - [ - -60.8550011, - 6.1765004 - ], - [ - -60.4762612, - 7.9188291 - ], - [ - -62.161689, - 8.2778675 - ], - [ - -62.5322549, - 6.5375488 - ] - ] - ], - "id": "landsat_233055" - }, - { - "name": "Latest southwest British Columbia Landsat", - "type": "tms", - "description": "Recent lower-resolution landwsat imagery for southwest British Columbia", - "template": "http://{switch:a,b,c,d}.tile.paulnorman.ca/landsat_047026/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 5, - 13 - ], - "polygon": [ - [ - [ - -121.9355512, - 47.7820648 - ], - [ - -121.5720582, - 48.6410125 - ], - [ - -121.2015461, - 49.4846247 - ], - [ - -121.8375516, - 49.6023246 - ], - [ - -122.4767046, - 49.7161735 - ], - [ - -123.118912, - 49.8268824 - ], - [ - -123.760228, - 49.9335836 - ], - [ - -124.0887706, - 49.0870469 - ], - [ - -124.4128889, - 48.2252567 - ], - [ - -123.792772, - 48.1197334 - ], - [ - -123.1727942, - 48.0109592 - ], - [ - -122.553553, - 47.8982299 - ] - ] - ], - "id": "landsat_047026" - }, - { - "name": "Lithuania - NŽT ORT10LT", - "type": "tms", - "template": "http://mapproxy.openmap.lt/ort10lt/g/{z}/{x}/{y}.jpeg", - "scaleExtent": [ - 4, - 18 - ], - "polygon": [ - [ - [ - 21.4926054, - 56.3592046 - ], - [ - 21.8134688, - 56.4097144 - ], - [ - 21.9728753, - 56.4567587 - ], - [ - 22.2158294, - 56.4604404 - ], - [ - 22.2183922, - 56.4162361 - ], - [ - 23.3511527, - 56.4267251 - ], - [ - 23.3521778, - 56.3824815 - ], - [ - 23.9179035, - 56.383305 - ], - [ - 23.9176231, - 56.3392908 - ], - [ - 24.5649817, - 56.3382169 - ], - [ - 24.564933, - 56.3828587 - ], - [ - 24.6475683, - 56.4277798 - ], - [ - 24.8099394, - 56.470646 - ], - [ - 24.9733979, - 56.4698452 - ], - [ - 25.1299701, - 56.2890356 - ], - [ - 25.127433, - 56.1990144 - ], - [ - 25.6921076, - 56.1933684 - ], - [ - 26.0839005, - 56.0067879 - ], - [ - 26.4673573, - 55.7304232 - ], - [ - 26.5463565, - 55.7132705 - ], - [ - 26.5154447, - 55.2345969 - ], - [ - 25.7874641, - 54.8425656 - ], - [ - 25.7675259, - 54.6350898 - ], - [ - 25.6165253, - 54.4404007 - ], - [ - 24.4566043, - 53.9577649 - ], - [ - 23.6164786, - 53.9575517 - ], - [ - 23.5632006, - 54.048085 - ], - [ - 22.8462074, - 54.3563682 - ], - [ - 22.831944, - 54.9414849 - ], - [ - 22.4306085, - 55.1159913 - ], - [ - 21.9605898, - 55.1107144 - ], - [ - 21.7253241, - 55.1496885 - ], - [ - 21.5628422, - 55.2362913 - ], - [ - 21.2209638, - 55.2742668 - ], - [ - 21.1630444, - 55.2803979 - ], - [ - 20.9277788, - 55.3101641 - ], - [ - 20.9257285, - 55.3588507 - ], - [ - 20.9980451, - 55.4514157 - ], - [ - 21.0282249, - 56.0796297 - ] - ] - ], - "terms_url": "http://www.geoportal.lt", - "terms_text": "NŽT ORT10LT" - }, - { - "name": "Locator Overlay", - "type": "tms", - "description": "Shows major features to help orient you.", - "template": "http://{switch:a,b,c}.tiles.mapbox.com/v3/openstreetmap.map-btyhiati/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 0, - 16 - ], - "terms_url": "http://www.mapbox.com/about/maps/", - "terms_text": "Terms & Feedback", - "default": true, - "overlay": true - }, - { - "name": "MapQuest Open Aerial", - "type": "tms", - "template": "http://oatile{switch:1,2,3,4}.mqcdn.com/tiles/1.0.0/sat/{zoom}/{x}/{y}.png", - "default": true - }, - { - "name": "Mapbox Satellite", - "type": "tms", - "description": "Satellite and aerial imagery.", - "template": "http://{switch:a,b,c}.tiles.mapbox.com/v3/openstreetmap.map-4wvf9l0l/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 0, - 19 - ], - "terms_url": "http://www.mapbox.com/about/maps/", - "terms_text": "Terms & Feedback", - "id": "Mapbox", - "default": true - }, - { - "name": "NLS - Bartholomew Half Inch, 1897-1907", - "type": "tms", - "template": "http://geo.nls.uk/mapdata2/bartholomew/great_britain/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 0, - 15 - ], - "polygon": [ - [ - [ - -9, - 49.8 - ], - [ - -9, - 61.1 - ], - [ - 1.9, - 61.1 - ], - [ - 1.9, - 49.8 - ], - [ - -9, - 49.8 - ] - ] - ], - "terms_url": "http://geo.nls.uk/maps/", - "terms_text": "National Library of Scotland Historic Maps" - }, - { - "name": "NLS - OS 1-inch 7th Series 1955-61", - "type": "tms", - "template": "http://geo.nls.uk/mapdata2/os/seventh/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 5, - 16 - ], - "polygon": [ - [ - [ - -6.4585407, - 49.9044128 - ], - [ - -6.3872009, - 49.9841116 - ], - [ - -6.2296827, - 49.9896159 - ], - [ - -6.2171269, - 49.8680087 - ], - [ - -6.4551164, - 49.8591793 - ] - ], - [ - [ - -1.4495137, - 60.8634056 - ], - [ - -0.7167114, - 60.8545122 - ], - [ - -0.7349744, - 60.4359756 - ], - [ - -0.6938826, - 60.4168218 - ], - [ - -0.7258429, - 60.3942735 - ], - [ - -0.7395401, - 60.0484714 - ], - [ - -0.9267357, - 60.0461918 - ], - [ - -0.9381501, - 59.8266157 - ], - [ - -1.4586452, - 59.831205 - ], - [ - -1.4455187, - 60.0535999 - ], - [ - -1.463211, - 60.0535999 - ], - [ - -1.4643524, - 60.0630002 - ], - [ - -1.5716475, - 60.0638546 - ], - [ - -1.5693646, - 60.1790005 - ], - [ - -1.643558, - 60.1807033 - ], - [ - -1.643558, - 60.1892162 - ], - [ - -1.8216221, - 60.1894999 - ], - [ - -1.8204807, - 60.3615507 - ], - [ - -1.8415973, - 60.3697345 - ], - [ - -1.8216221, - 60.3832755 - ], - [ - -1.8179852, - 60.5934321 - ], - [ - -1.453168, - 60.5934321 - ] - ], - [ - [ - -4.9089213, - 54.4242078 - ], - [ - -4.282598, - 54.4429861 - ], - [ - -4.2535417, - 54.029769 - ], - [ - -4.8766366, - 54.0221831 - ] - ], - [ - [ - -5.8667408, - 59.1444603 - ], - [ - -5.7759966, - 59.1470945 - ], - [ - -5.7720016, - 59.1014052 - ], - [ - -5.8621751, - 59.0990605 - ] - ], - [ - [ - -1.7065887, - 59.5703599 - ], - [ - -1.5579165, - 59.5693481 - ], - [ - -1.5564897, - 59.4965695 - ], - [ - -1.7054472, - 59.4975834 - ] - ], - [ - [ - -7.6865827, - 58.2940975 - ], - [ - -7.5330594, - 58.3006957 - ], - [ - -7.5256401, - 58.2646905 - ], - [ - -7.6797341, - 58.2577853 - ] - ], - [ - [ - -4.5338281, - 59.0359871 - ], - [ - -4.481322, - 59.0371616 - ], - [ - -4.4796099, - 59.0186583 - ], - [ - -4.5332574, - 59.0180707 - ] - ], - [ - [ - -8.6710698, - 57.8769896 - ], - [ - -8.4673234, - 57.8897332 - ], - [ - -8.4467775, - 57.7907 - ], - [ - -8.6510947, - 57.7779213 - ] - ], - [ - [ - -5.2395519, - 50.3530581 - ], - [ - -5.7920073, - 50.3384899 - ], - [ - -5.760047, - 49.9317027 - ], - [ - -4.6551363, - 49.9581461 - ], - [ - -4.677965, - 50.2860073 - ], - [ - -4.244219, - 50.2801723 - ], - [ - -4.2487848, - 50.2042525 - ], - [ - -3.3812929, - 50.2042525 - ], - [ - -3.4223846, - 50.5188201 - ], - [ - -3.1164796, - 50.5246258 - ], - [ - -3.1210453, - 50.6579592 - ], - [ - -2.6736357, - 50.6619495 - ], - [ - -2.5953453, - 50.6394325 - ], - [ - -2.5905026, - 50.5728419 - ], - [ - -2.4791203, - 50.5733545 - ], - [ - -2.4758919, - 50.5066704 - ], - [ - -2.3967943, - 50.5056438 - ], - [ - -2.401637, - 50.5723293 - ], - [ - -1.0400296, - 50.5718167 - ], - [ - -1.0335726, - 50.7059289 - ], - [ - -0.549302, - 50.7038843 - ], - [ - -0.5460736, - 50.7886618 - ], - [ - -0.0924734, - 50.7856002 - ], - [ - -0.0876307, - 50.7181949 - ], - [ - 0.4789659, - 50.7120623 - ], - [ - 0.487037, - 50.8182467 - ], - [ - 0.9761503, - 50.8049868 - ], - [ - 0.9922927, - 51.0126311 - ], - [ - 1.4491213, - 51.0004424 - ], - [ - 1.4781775, - 51.4090372 - ], - [ - 1.0229632, - 51.4271576 - ], - [ - 1.035877, - 51.7640881 - ], - [ - 1.6105448, - 51.7500992 - ], - [ - 1.646058, - 52.1560003 - ], - [ - 1.7267698, - 52.1540195 - ], - [ - 1.749369, - 52.4481811 - ], - [ - 1.7870672, - 52.4811624 - ], - [ - 1.759102, - 52.522505 - ], - [ - 1.7933451, - 52.9602749 - ], - [ - 0.3798147, - 52.9958468 - ], - [ - 0.3895238, - 53.2511239 - ], - [ - 0.3478614, - 53.2511239 - ], - [ - 0.3238912, - 53.282186 - ], - [ - 0.3461492, - 53.6538501 - ], - [ - 0.128487, - 53.6575466 - ], - [ - 0.116582, - 53.6674703 - ], - [ - 0.1350586, - 54.0655731 - ], - [ - -0.0609831, - 54.065908 - ], - [ - -0.0414249, - 54.4709448 - ], - [ - -0.5662701, - 54.4771794 - ], - [ - -0.5592078, - 54.6565127 - ], - [ - -1.1665638, - 54.6623485 - ], - [ - -1.1637389, - 54.842611 - ], - [ - -1.3316194, - 54.843909 - ], - [ - -1.3257065, - 55.2470842 - ], - [ - -1.529453, - 55.2487108 - ], - [ - -1.524178, - 55.6540122 - ], - [ - -1.7638798, - 55.6540122 - ], - [ - -1.7733693, - 55.9719116 - ], - [ - -2.1607858, - 55.9682981 - ], - [ - -2.1543289, - 56.0621387 - ], - [ - -2.4578051, - 56.0585337 - ], - [ - -2.4190635, - 56.641717 - ], - [ - -2.0962164, - 56.641717 - ], - [ - -2.0833025, - 57.0021322 - ], - [ - -1.9283359, - 57.0126802 - ], - [ - -1.9180966, - 57.3590895 - ], - [ - -1.7502161, - 57.3625721 - ], - [ - -1.7695869, - 57.7608634 - ], - [ - -3.6937554, - 57.7574187 - ], - [ - -3.7066693, - 57.9806386 - ], - [ - -3.5969013, - 57.9772149 - ], - [ - -3.6033582, - 58.1207277 - ], - [ - -3.0222335, - 58.1309566 - ], - [ - -3.0286905, - 58.5410788 - ], - [ - -2.8478961, - 58.530968 - ], - [ - -2.86081, - 58.8430508 - ], - [ - -2.679624, - 58.8414991 - ], - [ - -2.6841897, - 58.885175 - ], - [ - -2.6339665, - 58.9052239 - ], - [ - -2.679624, - 58.9335083 - ], - [ - -2.6887555, - 59.0229231 - ], - [ - -2.3668703, - 59.0229231 - ], - [ - -2.3702946, - 59.2652861 - ], - [ - -2.3429001, - 59.2821989 - ], - [ - -2.3714361, - 59.2996861 - ], - [ - -2.3737189, - 59.3707083 - ], - [ - -2.3429001, - 59.385825 - ], - [ - -2.3725775, - 59.400354 - ], - [ - -2.3714361, - 59.4259098 - ], - [ - -3.0734196, - 59.4230067 - ], - [ - -3.0711368, - 59.3433649 - ], - [ - -3.103097, - 59.3311405 - ], - [ - -3.0745611, - 59.3136695 - ], - [ - -3.0722782, - 59.232603 - ], - [ - -3.3850319, - 59.1484167 - ], - [ - -3.3747589, - 58.9352753 - ], - [ - -3.5653789, - 58.9323303 - ], - [ - -3.554829, - 58.69759 - ], - [ - -5.2808579, - 58.6667732 - ], - [ - -5.2534159, - 58.3514125 - ], - [ - -5.5068508, - 58.3437887 - ], - [ - -5.4761804, - 58.0323557 - ], - [ - -5.8974958, - 58.0212436 - ], - [ - -5.8522972, - 57.6171758 - ], - [ - -6.1396311, - 57.6137174 - ], - [ - -6.1541592, - 57.7423183 - ], - [ - -6.2913692, - 57.7380102 - ], - [ - -6.3365678, - 58.1398784 - ], - [ - -6.1121891, - 58.1466944 - ], - [ - -6.1473778, - 58.5106285 - ], - [ - -6.2934817, - 58.5416182 - ], - [ - -6.8413713, - 58.2977321 - ], - [ - -7.0057382, - 58.2929331 - ], - [ - -7.1016189, - 58.2064403 - ], - [ - -7.2573132, - 58.1793148 - ], - [ - -7.2531092, - 58.1004928 - ], - [ - -7.4070698, - 58.0905566 - ], - [ - -7.391347, - 57.7911354 - ], - [ - -7.790991, - 57.7733151 - ], - [ - -7.7624215, - 57.5444165 - ], - [ - -7.698501, - 57.1453194 - ], - [ - -7.7943817, - 57.1304547 - ], - [ - -7.716764, - 56.7368628 - ], - [ - -7.0122067, - 56.7654359 - ], - [ - -6.979922, - 56.5453858 - ], - [ - -7.0638622, - 56.5453858 - ], - [ - -7.0444914, - 56.3562587 - ], - [ - -6.500676, - 56.3812917 - ], - [ - -6.4491433, - 55.9793649 - ], - [ - -6.563287, - 55.9691456 - ], - [ - -6.5393742, - 55.7030135 - ], - [ - -6.5595521, - 55.6907321 - ], - [ - -6.5345315, - 55.6761713 - ], - [ - -6.5216176, - 55.5704434 - ], - [ - -5.8912587, - 55.5923416 - ], - [ - -5.8560127, - 55.2320733 - ], - [ - -5.2293639, - 55.2515958 - ], - [ - -5.1837064, - 54.6254139 - ], - [ - -3.6655956, - 54.6518373 - ], - [ - -3.6496155, - 54.4320023 - ], - [ - -3.5400375, - 54.4306744 - ], - [ - -3.530906, - 54.0290181 - ], - [ - -3.0697656, - 54.030359 - ], - [ - -3.0675737, - 53.8221388 - ], - [ - -3.0804876, - 53.7739911 - ], - [ - -3.0619239, - 53.7477488 - ], - [ - -3.0611168, - 53.6737049 - ], - [ - -3.2144691, - 53.6708361 - ], - [ - -3.2057699, - 53.4226163 - ], - [ - -3.2799632, - 53.355224 - ], - [ - -3.2896655, - 53.3608441 - ], - [ - -3.3327547, - 53.364931 - ], - [ - -3.3761293, - 53.3540318 - ], - [ - -4.0888976, - 53.3433102 - ], - [ - -4.0945474, - 53.4612036 - ], - [ - -4.697412, - 53.4448624 - ], - [ - -4.6882805, - 53.3318598 - ], - [ - -4.7202407, - 53.2895771 - ], - [ - -4.6837148, - 53.2486184 - ], - [ - -4.6768661, - 53.1542644 - ], - [ - -4.8480816, - 53.1446807 - ], - [ - -4.8178336, - 52.7440299 - ], - [ - -4.2545751, - 52.7558939 - ], - [ - -4.228876, - 52.254876 - ], - [ - -4.2607571, - 52.2536408 - ], - [ - -4.2724603, - 52.2432637 - ], - [ - -4.8136263, - 52.230095 - ], - [ - -4.8079191, - 52.1138892 - ], - [ - -5.3889104, - 52.0991668 - ], - [ - -5.3717888, - 51.9129667 - ], - [ - -5.4208706, - 51.9101502 - ], - [ - -5.414022, - 51.8453218 - ], - [ - -5.3683645, - 51.8474373 - ], - [ - -5.3466772, - 51.5595332 - ], - [ - -4.773676, - 51.5758518 - ], - [ - -4.7656859, - 51.4885146 - ], - [ - -4.1915432, - 51.4970427 - ], - [ - -4.1869775, - 51.4344663 - ], - [ - -3.6151177, - 51.4444274 - ], - [ - -3.6105519, - 51.3746543 - ], - [ - -3.1494115, - 51.3789292 - ], - [ - -3.1494115, - 51.2919281 - ], - [ - -4.3038735, - 51.2745907 - ], - [ - -4.2861169, - 51.0508721 - ], - [ - -4.8543277, - 51.0366633 - ], - [ - -4.8372201, - 50.7212787 - ], - [ - -5.2618345, - 50.7082694 - ] - ], - [ - [ - -2.1502671, - 60.171318 - ], - [ - -2.0030218, - 60.1696146 - ], - [ - -2.0013096, - 60.0997023 - ], - [ - -2.148555, - 60.1011247 - ] - ], - [ - [ - -6.2086011, - 59.1163488 - ], - [ - -6.1229934, - 59.1166418 - ], - [ - -6.121852, - 59.0714985 - ], - [ - -6.2097426, - 59.0714985 - ] - ], - [ - [ - -4.4159559, - 59.0889036 - ], - [ - -4.4212022, - 59.0770848 - ], - [ - -4.3971904, - 59.0779143 - ], - [ - -4.3913388, - 59.0897328 - ] - ] - ], - "terms_url": "http://geo.nls.uk/maps/", - "terms_text": "National Library of Scotland Historic Maps" - }, - { - "name": "NLS - OS 1:25k 1st Series 1937-61", - "type": "tms", - "template": "http://geo.nls.uk/mapdata2/os/25000/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 5, - 16 - ], - "polygon": [ - [ - [ - -4.7157244, - 54.6796556 - ], - [ - -4.6850662, - 54.6800268 - ], - [ - -4.6835779, - 54.6623245 - ], - [ - -4.7148782, - 54.6615818 - ] - ], - [ - [ - -3.7085748, - 58.3371151 - ], - [ - -3.5405937, - 58.3380684 - ], - [ - -3.5315137, - 58.1608002 - ], - [ - -3.3608086, - 58.1622372 - ], - [ - -3.3653486, - 58.252173 - ], - [ - -3.1610473, - 58.2536063 - ], - [ - -3.1610473, - 58.3261509 - ], - [ - -3.0275704, - 58.3271045 - ], - [ - -3.0366505, - 58.6139001 - ], - [ - -3.0021463, - 58.614373 - ], - [ - -3.0030543, - 58.7036341 - ], - [ - -3.4180129, - 58.7003322 - ], - [ - -3.4171049, - 58.6290293 - ], - [ - -3.7240109, - 58.6266658 - ], - [ - -3.7231029, - 58.606806 - ], - [ - -4.2361262, - 58.5992374 - ], - [ - -4.2334022, - 58.5092347 - ], - [ - -3.88836, - 58.5144516 - ], - [ - -3.8829119, - 58.4261327 - ], - [ - -3.7158389, - 58.4270836 - ] - ], - [ - [ - -6.46676, - 49.9943621 - ], - [ - -6.1889102, - 50.004868 - ], - [ - -6.1789222, - 49.8967815 - ], - [ - -6.3169391, - 49.8915171 - ], - [ - -6.312399, - 49.8200979 - ], - [ - -6.4504159, - 49.8159968 - ] - ], - [ - [ - -5.6453263, - 50.2029809 - ], - [ - -5.7801329, - 50.2014076 - ], - [ - -5.7637888, - 50.0197267 - ], - [ - -5.3479221, - 50.0290604 - ], - [ - -5.3388421, - 49.9414854 - ], - [ - -5.024672, - 49.9473287 - ], - [ - -5.0355681, - 50.0383923 - ], - [ - -5.0010639, - 50.0453901 - ], - [ - -4.9974319, - 50.1304478 - ], - [ - -4.855783, - 50.13394 - ], - [ - -4.861231, - 50.206057 - ], - [ - -4.6546085, - 50.2140172 - ], - [ - -4.6558926, - 50.3018616 - ], - [ - -4.5184924, - 50.3026818 - ], - [ - -4.51464, - 50.325642 - ], - [ - -4.2488284, - 50.3264618 - ], - [ - -4.2488284, - 50.3100631 - ], - [ - -4.10886, - 50.3141633 - ], - [ - -4.1062917, - 50.2411267 - ], - [ - -3.9648088, - 50.2432047 - ], - [ - -3.9640778, - 50.2254158 - ], - [ - -3.8522287, - 50.2273626 - ], - [ - -3.8503757, - 50.1552563 - ], - [ - -3.6921809, - 50.1572487 - ], - [ - -3.5414602, - 50.1602198 - ], - [ - -3.5465781, - 50.3226814 - ], - [ - -3.4068012, - 50.3241013 - ], - [ - -3.4165761, - 50.5892711 - ], - [ - -3.2746691, - 50.5962721 - ], - [ - -3.2749172, - 50.6106323 - ], - [ - -2.9971742, - 50.613972 - ], - [ - -2.9896008, - 50.688537 - ], - [ - -2.7120266, - 50.690565 - ], - [ - -2.710908, - 50.6195964 - ], - [ - -2.5695473, - 50.6157538 - ], - [ - -2.5651019, - 50.5134083 - ], - [ - -2.4014463, - 50.513379 - ], - [ - -2.3940583, - 50.6160348 - ], - [ - -2.2894123, - 50.6147436 - ], - [ - -2.2876184, - 50.6008549 - ], - [ - -2.1477855, - 50.6048506 - ], - [ - -2.1451013, - 50.5325437 - ], - [ - -1.9335117, - 50.5347477 - ], - [ - -1.9362139, - 50.6170445 - ], - [ - -1.8573025, - 50.6228094 - ], - [ - -1.8554865, - 50.709139 - ], - [ - -1.6066929, - 50.709139 - ], - [ - -1.6085089, - 50.6239615 - ], - [ - -1.4450678, - 50.6228094 - ], - [ - -1.4432518, - 50.5317039 - ], - [ - -1.1545059, - 50.5293951 - ], - [ - -1.1472419, - 50.6170485 - ], - [ - -1.011041, - 50.6205051 - ], - [ - -1.011041, - 50.7056889 - ], - [ - -0.704135, - 50.7045388 - ], - [ - -0.700503, - 50.7769401 - ], - [ - -0.5860943, - 50.7723465 - ], - [ - -0.5879103, - 50.7907181 - ], - [ - -0.0149586, - 50.7798108 - ], - [ - -0.0185906, - 50.7625836 - ], - [ - 0.0967261, - 50.7620093 - ], - [ - 0.0921861, - 50.6913106 - ], - [ - 0.3046595, - 50.6890096 - ], - [ - 0.3101075, - 50.7757917 - ], - [ - 0.5511831, - 50.7726336 - ], - [ - 0.5529991, - 50.8432096 - ], - [ - 0.695556, - 50.8403428 - ], - [ - 0.696464, - 50.8592608 - ], - [ - 0.9852099, - 50.8523824 - ], - [ - 0.9906579, - 50.9417226 - ], - [ - 1.0160821, - 50.9411504 - ], - [ - 1.0215301, - 51.0303204 - ], - [ - 1.2812198, - 51.0240383 - ], - [ - 1.2848518, - 51.0948044 - ], - [ - 1.4277848, - 51.0948044 - ], - [ - 1.4386809, - 51.2882859 - ], - [ - 1.4713691, - 51.2871502 - ], - [ - 1.4804492, - 51.3994534 - ], - [ - 1.1590151, - 51.4073836 - ], - [ - 1.1590151, - 51.3869889 - ], - [ - 1.0191822, - 51.3903886 - ], - [ - 1.0228142, - 51.4798247 - ], - [ - 0.8793493, - 51.4843484 - ], - [ - 0.8829813, - 51.5566675 - ], - [ - 1.0264462, - 51.5544092 - ], - [ - 1.0373423, - 51.7493319 - ], - [ - 1.2607117, - 51.7482076 - ], - [ - 1.2661598, - 51.8279642 - ], - [ - 1.3351682, - 51.8335756 - ], - [ - 1.3478803, - 51.9199021 - ], - [ - 1.4840812, - 51.9199021 - ], - [ - 1.4986093, - 52.0038271 - ], - [ - 1.6438902, - 52.0027092 - ], - [ - 1.6656823, - 52.270221 - ], - [ - 1.7310588, - 52.270221 - ], - [ - 1.7528509, - 52.4465637 - ], - [ - 1.8254914, - 52.4476705 - ], - [ - 1.8345714, - 52.624408 - ], - [ - 1.7690346, - 52.6291402 - ], - [ - 1.7741711, - 52.717904 - ], - [ - 1.6996925, - 52.721793 - ], - [ - 1.706113, - 52.8103687 - ], - [ - 1.559724, - 52.8165777 - ], - [ - 1.5648605, - 52.9034116 - ], - [ - 1.4184715, - 52.9103818 - ], - [ - 1.4223238, - 52.9281894 - ], - [ - 1.3439928, - 52.9289635 - ], - [ - 1.3491293, - 53.0001194 - ], - [ - 0.4515789, - 53.022589 - ], - [ - 0.4497629, - 52.9351139 - ], - [ - 0.3789384, - 52.9351139 - ], - [ - 0.3716744, - 52.846365 - ], - [ - 0.2227614, - 52.8496552 - ], - [ - 0.2336575, - 52.9329248 - ], - [ - 0.3062979, - 52.9351139 - ], - [ - 0.308114, - 53.022589 - ], - [ - 0.3807544, - 53.0236813 - ], - [ - 0.3993708, - 53.2933729 - ], - [ - 0.3248922, - 53.2987454 - ], - [ - 0.3274604, - 53.3853782 - ], - [ - 0.2504136, - 53.38691 - ], - [ - 0.2581183, - 53.4748924 - ], - [ - 0.1862079, - 53.4779494 - ], - [ - 0.1913443, - 53.6548777 - ], - [ - 0.1502527, - 53.6594436 - ], - [ - 0.1528209, - 53.7666003 - ], - [ - 0.0012954, - 53.7734308 - ], - [ - 0.0025796, - 53.8424326 - ], - [ - -0.0282392, - 53.841675 - ], - [ - -0.0226575, - 53.9311501 - ], - [ - -0.1406983, - 53.9322193 - ], - [ - -0.1416063, - 54.0219323 - ], - [ - -0.1706625, - 54.0235326 - ], - [ - -0.1679384, - 54.0949482 - ], - [ - -0.0126694, - 54.0912206 - ], - [ - -0.0099454, - 54.1811226 - ], - [ - -0.1615824, - 54.1837795 - ], - [ - -0.1606744, - 54.2029038 - ], - [ - -0.2405789, - 54.2034349 - ], - [ - -0.2378549, - 54.2936234 - ], - [ - -0.3894919, - 54.2941533 - ], - [ - -0.3857497, - 54.3837321 - ], - [ - -0.461638, - 54.3856364 - ], - [ - -0.4571122, - 54.4939066 - ], - [ - -0.6105651, - 54.4965434 - ], - [ - -0.6096571, - 54.5676704 - ], - [ - -0.7667421, - 54.569776 - ], - [ - -0.7640181, - 54.5887213 - ], - [ - -0.9192871, - 54.5908258 - ], - [ - -0.9148116, - 54.6608348 - ], - [ - -1.1485204, - 54.6634343 - ], - [ - -1.1472363, - 54.7528316 - ], - [ - -1.2268514, - 54.7532021 - ], - [ - -1.2265398, - 54.8429879 - ], - [ - -1.2991803, - 54.8435107 - ], - [ - -1.2991803, - 54.9333391 - ], - [ - -1.3454886, - 54.9354258 - ], - [ - -1.3436726, - 55.0234878 - ], - [ - -1.3772688, - 55.0255698 - ], - [ - -1.3754528, - 55.1310877 - ], - [ - -1.4997441, - 55.1315727 - ], - [ - -1.4969272, - 55.2928323 - ], - [ - -1.5296721, - 55.2942946 - ], - [ - -1.5258198, - 55.6523803 - ], - [ - -1.7659492, - 55.6545537 - ], - [ - -1.7620968, - 55.7435626 - ], - [ - -1.9688392, - 55.7435626 - ], - [ - -1.9698023, - 55.8334505 - ], - [ - -2.0019051, - 55.8336308 - ], - [ - -2.0015841, - 55.9235526 - ], - [ - -2.1604851, - 55.9240613 - ], - [ - -2.1613931, - 55.9413549 - ], - [ - -2.3202942, - 55.9408463 - ], - [ - -2.3212022, - 56.0145126 - ], - [ - -2.5627317, - 56.0124824 - ], - [ - -2.5645477, - 56.1022207 - ], - [ - -2.9658863, - 56.0991822 - ], - [ - -2.9667943, - 56.1710304 - ], - [ - -2.4828272, - 56.1755797 - ], - [ - -2.4882752, - 56.2856078 - ], - [ - -2.5645477, - 56.2835918 - ], - [ - -2.5681798, - 56.3742075 - ], - [ - -2.7261728, - 56.3732019 - ], - [ - -2.7316208, - 56.4425301 - ], - [ - -2.6190281, - 56.4425301 - ], - [ - -2.6153961, - 56.5317671 - ], - [ - -2.453771, - 56.5347715 - ], - [ - -2.4534686, - 56.6420248 - ], - [ - -2.4062523, - 56.6440218 - ], - [ - -2.3953562, - 56.7297964 - ], - [ - -2.2936596, - 56.7337811 - ], - [ - -2.2972916, - 56.807423 - ], - [ - -2.1629067, - 56.8113995 - ], - [ - -2.1592747, - 56.9958425 - ], - [ - -1.9922016, - 57.0017771 - ], - [ - -2.0067297, - 57.2737477 - ], - [ - -1.9195612, - 57.2757112 - ], - [ - -1.9304572, - 57.3482876 - ], - [ - -1.8106005, - 57.3443682 - ], - [ - -1.7997044, - 57.4402728 - ], - [ - -1.6616875, - 57.4285429 - ], - [ - -1.6689516, - 57.5398256 - ], - [ - -1.7452241, - 57.5398256 - ], - [ - -1.7524881, - 57.6313302 - ], - [ - -1.8287606, - 57.6332746 - ], - [ - -1.8287606, - 57.7187255 - ], - [ - -3.1768526, - 57.7171219 - ], - [ - -3.1794208, - 57.734264 - ], - [ - -3.5134082, - 57.7292105 - ], - [ - -3.5129542, - 57.7112683 - ], - [ - -3.7635638, - 57.7076303 - ], - [ - -3.7598539, - 57.635713 - ], - [ - -3.8420372, - 57.6343382 - ], - [ - -3.8458895, - 57.6178365 - ], - [ - -3.9794374, - 57.6157733 - ], - [ - -3.9794374, - 57.686544 - ], - [ - -3.8150708, - 57.689976 - ], - [ - -3.817639, - 57.7968899 - ], - [ - -3.6853753, - 57.7989429 - ], - [ - -3.6892276, - 57.8891567 - ], - [ - -3.9383458, - 57.8877915 - ], - [ - -3.9421981, - 57.9750592 - ], - [ - -3.6943641, - 57.9784638 - ], - [ - -3.6969323, - 58.0695865 - ], - [ - -4.0372226, - 58.0641528 - ], - [ - -4.0346543, - 57.9730163 - ], - [ - -4.2003051, - 57.9702923 - ], - [ - -4.1832772, - 57.7012869 - ], - [ - -4.518752, - 57.6951111 - ], - [ - -4.5122925, - 57.6050682 - ], - [ - -4.6789116, - 57.6016628 - ], - [ - -4.666022, - 57.4218334 - ], - [ - -3.6677696, - 57.4394729 - ], - [ - -3.671282, - 57.5295384 - ], - [ - -3.3384979, - 57.5331943 - ], - [ - -3.3330498, - 57.4438859 - ], - [ - -2.8336466, - 57.4485275 - ], - [ - -2.8236396, - 56.9992706 - ], - [ - -2.3305398, - 57.0006693 - ], - [ - -2.3298977, - 56.9113932 - ], - [ - -2.6579889, - 56.9092901 - ], - [ - -2.6559637, - 56.8198406 - ], - [ - -2.8216747, - 56.8188467 - ], - [ - -2.8184967, - 56.7295397 - ], - [ - -3.1449248, - 56.7265508 - ], - [ - -3.1435628, - 56.6362749 - ], - [ - -3.4679089, - 56.6350265 - ], - [ - -3.474265, - 56.7238108 - ], - [ - -3.8011471, - 56.7188284 - ], - [ - -3.785711, - 56.4493026 - ], - [ - -3.946428, - 56.4457896 - ], - [ - -3.9428873, - 56.2659777 - ], - [ - -4.423146, - 56.2588459 - ], - [ - -4.4141572, - 56.0815506 - ], - [ - -4.8944159, - 56.0708008 - ], - [ - -4.8791072, - 55.8896994 - ], - [ - -5.1994158, - 55.8821374 - ], - [ - -5.1852906, - 55.7023791 - ], - [ - -5.0273445, - 55.7067203 - ], - [ - -5.0222081, - 55.6879046 - ], - [ - -4.897649, - 55.6907999 - ], - [ - -4.8880181, - 55.6002822 - ], - [ - -4.7339244, - 55.6046348 - ], - [ - -4.7275038, - 55.5342082 - ], - [ - -4.773732, - 55.5334815 - ], - [ - -4.7685955, - 55.4447227 - ], - [ - -4.8494947, - 55.4418092 - ], - [ - -4.8405059, - 55.3506535 - ], - [ - -4.8700405, - 55.3513836 - ], - [ - -4.8649041, - 55.2629462 - ], - [ - -4.9920314, - 55.2592875 - ], - [ - -4.9907473, - 55.1691779 - ], - [ - -5.0600894, - 55.1655105 - ], - [ - -5.0575212, - 55.0751884 - ], - [ - -5.2141831, - 55.0722477 - ], - [ - -5.1991766, - 54.8020337 - ], - [ - -5.0466316, - 54.8062205 - ], - [ - -5.0502636, - 54.7244996 - ], - [ - -4.9703591, - 54.7203043 - ], - [ - -4.9776232, - 54.6215905 - ], - [ - -4.796022, - 54.6342056 - ], - [ - -4.796022, - 54.7307917 - ], - [ - -4.8977186, - 54.7265971 - ], - [ - -4.9086147, - 54.8145928 - ], - [ - -4.8069181, - 54.8166856 - ], - [ - -4.8105501, - 54.7915648 - ], - [ - -4.6943253, - 54.7978465 - ], - [ - -4.6761652, - 54.7244996 - ], - [ - -4.5744686, - 54.7244996 - ], - [ - -4.5599405, - 54.6426135 - ], - [ - -4.3093309, - 54.6384098 - ], - [ - -4.3333262, - 54.8229889 - ], - [ - -4.2626999, - 54.8274274 - ], - [ - -4.2549952, - 54.7348587 - ], - [ - -3.8338058, - 54.7400481 - ], - [ - -3.836374, - 54.8141105 - ], - [ - -3.7118149, - 54.8133706 - ], - [ - -3.7143831, - 54.8318654 - ], - [ - -3.5346072, - 54.8355633 - ], - [ - -3.5271039, - 54.9066228 - ], - [ - -3.4808758, - 54.9084684 - ], - [ - -3.4776655, - 54.7457328 - ], - [ - -3.5874573, - 54.744621 - ], - [ - -3.5836049, - 54.6546166 - ], - [ - -3.7107322, - 54.6531308 - ], - [ - -3.6991752, - 54.4550407 - ], - [ - -3.5746161, - 54.4572801 - ], - [ - -3.5759002, - 54.3863042 - ], - [ - -3.539945, - 54.3855564 - ], - [ - -3.5386609, - 54.297224 - ], - [ - -3.46033, - 54.2957252 - ], - [ - -3.4590458, - 54.2079507 - ], - [ - -3.3807149, - 54.2102037 - ], - [ - -3.381999, - 54.1169788 - ], - [ - -3.302878, - 54.1160656 - ], - [ - -3.300154, - 54.0276224 - ], - [ - -3.1013007, - 54.0292224 - ], - [ - -3.093596, - 53.6062158 - ], - [ - -3.2065981, - 53.6016441 - ], - [ - -3.2091663, - 53.4917753 - ], - [ - -3.2451215, - 53.4887193 - ], - [ - -3.2348486, - 53.4045934 - ], - [ - -3.5276266, - 53.3999999 - ], - [ - -3.5343966, - 53.328481 - ], - [ - -3.6488053, - 53.3252272 - ], - [ - -3.6527308, - 53.3057716 - ], - [ - -3.7271873, - 53.3046865 - ], - [ - -3.7315003, - 53.3945257 - ], - [ - -3.9108315, - 53.3912769 - ], - [ - -3.9071995, - 53.3023804 - ], - [ - -3.9521457, - 53.3015665 - ], - [ - -3.9566724, - 53.3912183 - ], - [ - -4.1081979, - 53.3889209 - ], - [ - -4.1081979, - 53.4072967 - ], - [ - -4.2622916, - 53.4065312 - ], - [ - -4.2635757, - 53.4753707 - ], - [ - -4.638537, - 53.4677274 - ], - [ - -4.6346847, - 53.3812621 - ], - [ - -4.7091633, - 53.3774321 - ], - [ - -4.7001745, - 53.1954965 - ], - [ - -4.5499332, - 53.1962658 - ], - [ - -4.5435126, - 53.1092488 - ], - [ - -4.3919871, - 53.1100196 - ], - [ - -4.3855666, - 53.0236002 - ], - [ - -4.6115707, - 53.0205105 - ], - [ - -4.603866, - 52.9284932 - ], - [ - -4.7566756, - 52.9261709 - ], - [ - -4.7476868, - 52.8370555 - ], - [ - -4.8208813, - 52.8331768 - ], - [ - -4.8208813, - 52.7446476 - ], - [ - -4.3701572, - 52.7539749 - ], - [ - -4.3765778, - 52.8401583 - ], - [ - -4.2314728, - 52.8455875 - ], - [ - -4.2237682, - 52.7586379 - ], - [ - -4.1056297, - 52.7570836 - ], - [ - -4.1015192, - 52.6714874 - ], - [ - -4.1487355, - 52.6703862 - ], - [ - -4.1305754, - 52.4008596 - ], - [ - -4.1995838, - 52.3986435 - ], - [ - -4.2050319, - 52.3110195 - ], - [ - -4.3466808, - 52.303247 - ], - [ - -4.3484968, - 52.2365693 - ], - [ - -4.4901457, - 52.2332328 - ], - [ - -4.4883297, - 52.2098702 - ], - [ - -4.6572188, - 52.2098702 - ], - [ - -4.6590348, - 52.1385939 - ], - [ - -4.7788916, - 52.13525 - ], - [ - -4.7807076, - 52.1162967 - ], - [ - -4.9259885, - 52.1140663 - ], - [ - -4.9187245, - 52.0392855 - ], - [ - -5.2365265, - 52.0314653 - ], - [ - -5.2347105, - 51.9442339 - ], - [ - -5.3473032, - 51.9408755 - ], - [ - -5.3473032, - 51.9195995 - ], - [ - -5.4925842, - 51.9162392 - ], - [ - -5.4853201, - 51.8265386 - ], - [ - -5.1983903, - 51.8321501 - ], - [ - -5.1893102, - 51.7625177 - ], - [ - -5.335825, - 51.7589528 - ], - [ - -5.3281204, - 51.6686495 - ], - [ - -5.1836575, - 51.6730296 - ], - [ - -5.1836575, - 51.6539134 - ], - [ - -5.0674452, - 51.6578966 - ], - [ - -5.0603825, - 51.5677905 - ], - [ - -4.5974594, - 51.5809588 - ], - [ - -4.60388, - 51.6726314 - ], - [ - -4.345773, - 51.6726314 - ], - [ - -4.3355001, - 51.4962964 - ], - [ - -3.9528341, - 51.5106841 - ], - [ - -3.9425611, - 51.5905333 - ], - [ - -3.8809237, - 51.5953198 - ], - [ - -3.8706508, - 51.5074872 - ], - [ - -3.7679216, - 51.4978952 - ], - [ - -3.7550805, - 51.4242895 - ], - [ - -3.5855774, - 51.41468 - ], - [ - -3.5778727, - 51.3329177 - ], - [ - -3.0796364, - 51.3329177 - ], - [ - -3.0770682, - 51.2494018 - ], - [ - -3.7216935, - 51.2381477 - ], - [ - -3.7216935, - 51.2558315 - ], - [ - -3.8706508, - 51.2558315 - ], - [ - -3.8680825, - 51.2365398 - ], - [ - -4.2944084, - 51.2252825 - ], - [ - -4.289272, - 51.0496352 - ], - [ - -4.5692089, - 51.0431767 - ], - [ - -4.5624122, - 50.9497388 - ], - [ - -4.5905604, - 50.9520269 - ], - [ - -4.5896524, - 50.8627065 - ], - [ - -4.6296046, - 50.8592677 - ], - [ - -4.6226411, - 50.7691513 - ], - [ - -4.6952816, - 50.7680028 - ], - [ - -4.6934655, - 50.6967379 - ], - [ - -4.8342064, - 50.6938621 - ], - [ - -4.8296664, - 50.6046231 - ], - [ - -4.9676833, - 50.6000126 - ], - [ - -4.9685913, - 50.5821427 - ], - [ - -5.1084242, - 50.5786832 - ], - [ - -5.1029762, - 50.4892254 - ], - [ - -5.1311244, - 50.48807 - ], - [ - -5.1274923, - 50.4163798 - ], - [ - -5.2664172, - 50.4117509 - ], - [ - -5.2609692, - 50.3034214 - ], - [ - -5.5124868, - 50.2976214 - ], - [ - -5.5061308, - 50.2256428 - ], - [ - -5.6468717, - 50.2209953 - ] - ], - [ - [ - -5.1336607, - 55.2630226 - ], - [ - -5.1021999, - 55.2639372 - ], - [ - -5.0999527, - 55.2458239 - ], - [ - -5.1322161, - 55.2446343 - ] - ], - [ - [ - -5.6431878, - 55.5095745 - ], - [ - -5.4861028, - 55.5126594 - ], - [ - -5.4715747, - 55.3348829 - ], - [ - -5.6277517, - 55.3302345 - ] - ], - [ - [ - -4.7213517, - 51.2180246 - ], - [ - -4.5804201, - 51.2212417 - ], - [ - -4.5746416, - 51.1306736 - ], - [ - -4.7174993, - 51.1280545 - ] - ], - [ - [ - -5.1608796, - 55.4153626 - ], - [ - -5.0045387, - 55.4190069 - ], - [ - -5.0184798, - 55.6153521 - ], - [ - -5.1755648, - 55.6138137 - ] - ] - ], - "terms_url": "http://geo.nls.uk/maps/", - "terms_text": "National Library of Scotland Historic Maps" - }, - { - "name": "NLS - OS 6-inch Scotland 1842-82", - "type": "tms", - "template": "http://geo.nls.uk/maps/os/six_inch/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 5, - 16 - ], - "polygon": [ - [ - [ - -5.2112173, - 54.8018593 - ], - [ - -5.0642752, - 54.8026508 - ], - [ - -5.0560354, - 54.6305176 - ], - [ - -4.3158316, - 54.6297227 - ], - [ - -4.3117117, - 54.7448258 - ], - [ - -3.8530325, - 54.7464112 - ], - [ - -3.8530325, - 54.8034424 - ], - [ - -3.5522818, - 54.8034424 - ], - [ - -3.5522818, - 54.8374644 - ], - [ - -3.468511, - 54.8406277 - ], - [ - -3.4657644, - 54.8983158 - ], - [ - -3.3847403, - 54.8991055 - ], - [ - -3.3888601, - 54.9559214 - ], - [ - -3.0920786, - 54.9539468 - ], - [ - -3.0392359, - 54.9923274 - ], - [ - -3.0212713, - 55.0493881 - ], - [ - -2.9591232, - 55.0463283 - ], - [ - -2.9202807, - 55.0666294 - ], - [ - -2.7857081, - 55.068652 - ], - [ - -2.7852225, - 55.0914426 - ], - [ - -2.7337562, - 55.0922761 - ], - [ - -2.737616, - 55.151204 - ], - [ - -2.7648395, - 55.1510672 - ], - [ - -2.7013114, - 55.1722505 - ], - [ - -2.6635459, - 55.2192808 - ], - [ - -2.6460364, - 55.2188891 - ], - [ - -2.629042, - 55.2233933 - ], - [ - -2.6317886, - 55.2287781 - ], - [ - -2.6235488, - 55.2446345 - ], - [ - -2.6197723, - 55.2454663 - ], - [ - -2.6099017, - 55.2454174 - ], - [ - -2.6099876, - 55.2486466 - ], - [ - -2.6408121, - 55.2590039 - ], - [ - -2.6247896, - 55.2615631 - ], - [ - -2.6045186, - 55.2823081 - ], - [ - -2.5693176, - 55.296132 - ], - [ - -2.5479542, - 55.3121617 - ], - [ - -2.5091116, - 55.3234891 - ], - [ - -2.4780376, - 55.3494471 - ], - [ - -2.4421083, - 55.3533118 - ], - [ - -2.4052079, - 55.3439256 - ], - [ - -2.3726772, - 55.3447539 - ], - [ - -2.3221819, - 55.3687665 - ], - [ - -2.3241241, - 55.3999337 - ], - [ - -2.2576062, - 55.425015 - ], - [ - -2.1985547, - 55.4273529 - ], - [ - -2.1484296, - 55.4717466 - ], - [ - -2.1944348, - 55.484199 - ], - [ - -2.2040479, - 55.529306 - ], - [ - -2.2960584, - 55.6379722 - ], - [ - -2.2177808, - 55.6379722 - ], - [ - -2.1059266, - 55.7452498 - ], - [ - -1.9716874, - 55.7462161 - ], - [ - -1.9697453, - 55.9190951 - ], - [ - -2.1201694, - 55.9207115 - ], - [ - -2.1242893, - 55.9776133 - ], - [ - -2.3440159, - 55.9783817 - ], - [ - -2.3440159, - 56.0390349 - ], - [ - -2.5046909, - 56.0413363 - ], - [ - -2.500571, - 56.1003588 - ], - [ - -2.8823459, - 56.0957629 - ], - [ - -2.8823459, - 56.1722898 - ], - [ - -2.4126804, - 56.1692316 - ], - [ - -2.4181736, - 56.2334017 - ], - [ - -2.5857151, - 56.2303484 - ], - [ - -2.5719822, - 56.3416356 - ], - [ - -2.7257908, - 56.3462022 - ], - [ - -2.7312839, - 56.4343808 - ], - [ - -2.6928318, - 56.4343808 - ], - [ - -2.6928318, - 56.4859769 - ], - [ - -2.5307834, - 56.4935587 - ], - [ - -2.5307834, - 56.570806 - ], - [ - -2.5302878, - 56.6047947 - ], - [ - -2.3732428, - 56.6044452 - ], - [ - -2.3684363, - 56.7398824 - ], - [ - -2.3292975, - 56.7398824 - ], - [ - -2.3292975, - 56.7888065 - ], - [ - -2.3145346, - 56.7891826 - ], - [ - -2.3148779, - 56.7967036 - ], - [ - -2.171369, - 56.7967036 - ], - [ - -2.1703979, - 56.9710595 - ], - [ - -2.0101725, - 56.9694716 - ], - [ - -2.0101725, - 57.0846832 - ], - [ - -2.0817687, - 57.085349 - ], - [ - -2.0488097, - 57.1259963 - ], - [ - -2.0409133, - 57.126369 - ], - [ - -2.0383434, - 57.2411129 - ], - [ - -1.878118, - 57.2421638 - ], - [ - -1.8771469, - 57.2978175 - ], - [ - -1.9868771, - 57.2983422 - ], - [ - -1.9082209, - 57.3560063 - ], - [ - -1.8752048, - 57.3560063 - ], - [ - -1.8761758, - 57.3769527 - ], - [ - -1.8120857, - 57.4120111 - ], - [ - -1.7120661, - 57.4120111 - ], - [ - -1.7034646, - 57.6441388 - ], - [ - -1.8666032, - 57.6451781 - ], - [ - -1.8646611, - 57.7033351 - ], - [ - -3.1204292, - 57.7064705 - ], - [ - -3.1218025, - 57.7504652 - ], - [ - -3.4445259, - 57.7526635 - ], - [ - -3.4472724, - 57.7138067 - ], - [ - -3.5145637, - 57.7094052 - ], - [ - -3.5118171, - 57.6939956 - ], - [ - -3.7645027, - 57.6917938 - ], - [ - -3.7672492, - 57.6344975 - ], - [ - -3.842378, - 57.6288312 - ], - [ - -3.8438346, - 57.5965825 - ], - [ - -3.9414265, - 57.5916386 - ], - [ - -3.9404554, - 57.6537782 - ], - [ - -3.8894746, - 57.6529989 - ], - [ - -3.8826772, - 57.7676408 - ], - [ - -3.7224517, - 57.766087 - ], - [ - -3.7195385, - 57.8819201 - ], - [ - -3.9146888, - 57.8853352 - ], - [ - -3.916062, - 57.9546243 - ], - [ - -3.745774, - 57.9538956 - ], - [ - -3.7471473, - 58.0688409 - ], - [ - -3.5837256, - 58.0695672 - ], - [ - -3.5837256, - 58.1116689 - ], - [ - -3.4560096, - 58.1138452 - ], - [ - -3.4544646, - 58.228503 - ], - [ - -3.4379851, - 58.2283222 - ], - [ - -3.4243233, - 58.2427725 - ], - [ - -3.412307, - 58.2438567 - ], - [ - -3.3735115, - 58.2695057 - ], - [ - -3.3063919, - 58.2862038 - ], - [ - -3.1229154, - 58.2859395 - ], - [ - -3.123602, - 58.3443661 - ], - [ - -2.9574338, - 58.3447264 - ], - [ - -2.951254, - 58.6422011 - ], - [ - -2.8812162, - 58.6429157 - ], - [ - -2.8851004, - 58.8112825 - ], - [ - -2.7180775, - 58.8142997 - ], - [ - -2.7161354, - 58.8715749 - ], - [ - -2.556881, - 58.8775984 - ], - [ - -2.5544533, - 58.9923453 - ], - [ - -2.5567617, - 59.0483775 - ], - [ - -2.391893, - 59.0485996 - ], - [ - -2.3918002, - 59.1106996 - ], - [ - -2.4733695, - 59.1106996 - ], - [ - -2.5591563, - 59.1783028 - ], - [ - -2.5630406, - 59.2210646 - ], - [ - -2.3921334, - 59.224046 - ], - [ - -2.3911409, - 59.2740075 - ], - [ - -2.3639512, - 59.2745036 - ], - [ - -2.3658933, - 59.285417 - ], - [ - -2.3911409, - 59.284921 - ], - [ - -2.3911409, - 59.3379505 - ], - [ - -2.2221759, - 59.3381981 - ], - [ - -2.2233897, - 59.395965 - ], - [ - -2.3758467, - 59.396583 - ], - [ - -2.3899271, - 59.4026383 - ], - [ - -2.4008516, - 59.3962122 - ], - [ - -2.5637882, - 59.3952604 - ], - [ - -2.5637882, - 59.3385811 - ], - [ - -2.7320164, - 59.3375306 - ], - [ - -2.7333896, - 59.3952604 - ], - [ - -3.0726511, - 59.3931174 - ], - [ - -3.0703404, - 59.3354759 - ], - [ - -3.0753186, - 59.3355634 - ], - [ - -3.0749753, - 59.3292593 - ], - [ - -3.0698254, - 59.3289091 - ], - [ - -3.069801, - 59.2196159 - ], - [ - -3.2363384, - 59.2166341 - ], - [ - -3.2336751, - 59.1606496 - ], - [ - -3.4032766, - 59.1588895 - ], - [ - -3.394086, - 58.9279316 - ], - [ - -3.5664497, - 58.9259268 - ], - [ - -3.5611089, - 58.8679885 - ], - [ - -3.392508, - 58.8699339 - ], - [ - -3.3894734, - 58.8698711 - ], - [ - -3.3891093, - 58.8684905 - ], - [ - -3.3912942, - 58.868616 - ], - [ - -3.3884161, - 58.7543084 - ], - [ - -3.2238208, - 58.7555677 - ], - [ - -3.2189655, - 58.691289 - ], - [ - -3.4634113, - 58.6905753 - ], - [ - -3.4551716, - 58.6341518 - ], - [ - -3.787508, - 58.6341518 - ], - [ - -3.7861347, - 58.5769211 - ], - [ - -3.9028645, - 58.5733411 - ], - [ - -3.9028645, - 58.6477304 - ], - [ - -4.0690327, - 58.6491594 - ], - [ - -4.0690327, - 58.5912376 - ], - [ - -4.7364521, - 58.5933845 - ], - [ - -4.7364521, - 58.6505884 - ], - [ - -5.0715351, - 58.6520173 - ], - [ - -5.0654779, - 58.5325854 - ], - [ - -5.2332047, - 58.5316087 - ], - [ - -5.2283494, - 58.4719947 - ], - [ - -5.2424298, - 58.4719947 - ], - [ - -5.2366034, - 58.4089731 - ], - [ - -5.2283494, - 58.4094818 - ], - [ - -5.2210664, - 58.3005859 - ], - [ - -5.5657939, - 58.2959933 - ], - [ - -5.5580254, - 58.2372573 - ], - [ - -5.4146722, - 58.2401326 - ], - [ - -5.4141866, - 58.2267768 - ], - [ - -5.3885749, - 58.2272242 - ], - [ - -5.382714, - 58.1198615 - ], - [ - -5.51043, - 58.1191362 - ], - [ - -5.5114011, - 58.006214 - ], - [ - -5.6745397, - 58.0041559 - ], - [ - -5.6716266, - 57.9449366 - ], - [ - -5.6716266, - 57.8887166 - ], - [ - -5.8347652, - 57.8856193 - ], - [ - -5.8277052, - 57.5988958 - ], - [ - -6.0384259, - 57.5986357 - ], - [ - -6.0389115, - 57.6459559 - ], - [ - -6.1981658, - 57.6456961 - ], - [ - -6.2076123, - 57.7600132 - ], - [ - -6.537067, - 57.7544033 - ], - [ - -6.5312406, - 57.6402392 - ], - [ - -6.7002056, - 57.6360809 - ], - [ - -6.6807844, - 57.5236293 - ], - [ - -6.8516915, - 57.5152857 - ], - [ - -6.8361545, - 57.3385811 - ], - [ - -6.6730158, - 57.3438213 - ], - [ - -6.674958, - 57.2850883 - ], - [ - -6.5098772, - 57.2850883 - ], - [ - -6.4982244, - 57.1757637 - ], - [ - -6.3506228, - 57.1820797 - ], - [ - -6.3312015, - 57.1251969 - ], - [ - -6.1797156, - 57.1230884 - ], - [ - -6.1719471, - 57.0682265 - ], - [ - -6.4593819, - 57.059779 - ], - [ - -6.4564687, - 57.1093806 - ], - [ - -6.6671895, - 57.1062165 - ], - [ - -6.6730158, - 57.002708 - ], - [ - -6.5021087, - 57.0048233 - ], - [ - -6.4836097, - 56.8917522 - ], - [ - -6.3266104, - 56.8894062 - ], - [ - -6.3156645, - 56.7799312 - ], - [ - -6.2146739, - 56.775675 - ], - [ - -6.2146739, - 56.7234965 - ], - [ - -6.6866107, - 56.7224309 - ], - [ - -6.6769001, - 56.6114413 - ], - [ - -6.8419809, - 56.607166 - ], - [ - -6.8400387, - 56.5483307 - ], - [ - -7.1546633, - 56.5461895 - ], - [ - -7.1488369, - 56.4872592 - ], - [ - -6.9915246, - 56.490476 - ], - [ - -6.9876404, - 56.4325329 - ], - [ - -6.6827265, - 56.4314591 - ], - [ - -6.6769001, - 56.5472601 - ], - [ - -6.5292985, - 56.5504717 - ], - [ - -6.5234721, - 56.4379018 - ], - [ - -6.3661598, - 56.4368281 - ], - [ - -6.3642177, - 56.3766524 - ], - [ - -6.5273563, - 56.3712749 - ], - [ - -6.5171745, - 56.2428427 - ], - [ - -6.4869621, - 56.247421 - ], - [ - -6.4869621, - 56.1893882 - ], - [ - -6.3001945, - 56.1985572 - ], - [ - -6.3029411, - 56.2581017 - ], - [ - -5.9019401, - 56.256576 - ], - [ - -5.8964469, - 56.0960466 - ], - [ - -6.0282829, - 56.0883855 - ], - [ - -6.0392692, - 56.1557502 - ], - [ - -6.3853385, - 56.1542205 - ], - [ - -6.3606193, - 55.96099 - ], - [ - -6.2123039, - 55.9640647 - ], - [ - -6.2047508, - 55.9202269 - ], - [ - -6.5185478, - 55.9129158 - ], - [ - -6.5061881, - 55.7501763 - ], - [ - -6.6764762, - 55.7409005 - ], - [ - -6.6599967, - 55.6263176 - ], - [ - -6.3551261, - 55.6232161 - ], - [ - -6.3578727, - 55.5689002 - ], - [ - -6.0392692, - 55.5720059 - ], - [ - -6.0310294, - 55.6247669 - ], - [ - -5.7398917, - 55.6309694 - ], - [ - -5.7371452, - 55.4569279 - ], - [ - -5.8964469, - 55.4600426 - ], - [ - -5.8964469, - 55.2789864 - ], - [ - -5.4350211, - 55.2821151 - ], - [ - -5.4405143, - 55.4506979 - ], - [ - -5.2867057, - 55.4569279 - ], - [ - -5.3086784, - 55.4070602 - ], - [ - -4.9735954, - 55.4008223 - ], - [ - -4.9845817, - 55.2038242 - ], - [ - -5.1493766, - 55.2038242 - ], - [ - -5.1411369, - 55.037337 - ], - [ - -5.2152946, - 55.0341891 - ] - ], - [ - [ - -2.1646559, - 60.1622059 - ], - [ - -1.9930299, - 60.1609801 - ], - [ - -1.9946862, - 60.1035151 - ], - [ - -2.1663122, - 60.104743 - ] - ], - [ - [ - -1.5360658, - 59.8570831 - ], - [ - -1.3653566, - 59.8559841 - ], - [ - -1.366847, - 59.7975565 - ], - [ - -1.190628, - 59.7964199 - ], - [ - -1.1862046, - 59.9695391 - ], - [ - -1.0078652, - 59.9683948 - ], - [ - -1.0041233, - 60.114145 - ], - [ - -0.8360832, - 60.1130715 - ], - [ - -0.834574, - 60.1716772 - ], - [ - -1.0074262, - 60.1727795 - ], - [ - -1.0052165, - 60.2583924 - ], - [ - -0.8299659, - 60.2572778 - ], - [ - -0.826979, - 60.3726551 - ], - [ - -0.6507514, - 60.3715381 - ], - [ - -0.6477198, - 60.4882292 - ], - [ - -0.9984896, - 60.4904445 - ], - [ - -0.9970279, - 60.546555 - ], - [ - -0.6425288, - 60.5443201 - ], - [ - -0.6394896, - 60.6606792 - ], - [ - -0.8148133, - 60.6617806 - ], - [ - -0.8132987, - 60.7196112 - ], - [ - -0.6383298, - 60.7185141 - ], - [ - -0.635467, - 60.8275393 - ], - [ - -0.797568, - 60.8285523 - ], - [ - -0.9941426, - 60.8297807 - ], - [ - -0.9954966, - 60.7782667 - ], - [ - -1.1670282, - 60.7793403 - ], - [ - -1.1700357, - 60.6646181 - ], - [ - -1.5222599, - 60.6668304 - ], - [ - -1.5237866, - 60.6084426 - ], - [ - -1.6975673, - 60.609536 - ], - [ - -1.7021271, - 60.4345249 - ], - [ - -1.5260578, - 60.4334111 - ], - [ - -1.5275203, - 60.3770719 - ], - [ - -1.8751127, - 60.3792746 - ], - [ - -1.8781372, - 60.2624647 - ], - [ - -1.7019645, - 60.2613443 - ], - [ - -1.7049134, - 60.1470532 - ], - [ - -1.528659, - 60.1459283 - ] - ], - [ - [ - -0.9847667, - 60.8943762 - ], - [ - -0.9860347, - 60.8361105 - ], - [ - -0.8078362, - 60.8351904 - ], - [ - -0.8065683, - 60.8934578 - ] - ], - [ - [ - -7.7696901, - 56.8788231 - ], - [ - -7.7614504, - 56.7608274 - ], - [ - -7.6009049, - 56.7641903 - ], - [ - -7.5972473, - 56.819332 - ], - [ - -7.4479894, - 56.8203948 - ], - [ - -7.4489319, - 56.8794098 - ], - [ - -7.2841369, - 56.8794098 - ], - [ - -7.2813904, - 57.0471152 - ], - [ - -7.1303283, - 57.0515969 - ], - [ - -7.1330749, - 57.511801 - ], - [ - -6.96828, - 57.5147514 - ], - [ - -6.9765198, - 57.6854668 - ], - [ - -6.8062317, - 57.6913392 - ], - [ - -6.8089782, - 57.8041985 - ], - [ - -6.6496765, - 57.8071252 - ], - [ - -6.6441833, - 57.8612267 - ], - [ - -6.3200866, - 57.8626878 - ], - [ - -6.3200866, - 58.1551617 - ], - [ - -6.1607849, - 58.1522633 - ], - [ - -6.1552917, - 58.20874 - ], - [ - -5.9850036, - 58.2101869 - ], - [ - -5.9904968, - 58.2680163 - ], - [ - -6.1497986, - 58.2665717 - ], - [ - -6.1415588, - 58.5557514 - ], - [ - -6.3173401, - 58.5557514 - ], - [ - -6.3091003, - 58.4983923 - ], - [ - -6.4876282, - 58.4955218 - ], - [ - -6.4876282, - 58.4423768 - ], - [ - -6.6606628, - 58.4395018 - ], - [ - -6.6469299, - 58.3819525 - ], - [ - -6.8117248, - 58.3805125 - ], - [ - -6.8117248, - 58.3286357 - ], - [ - -6.9792663, - 58.3286357 - ], - [ - -6.9710266, - 58.2694608 - ], - [ - -7.1413147, - 58.2680163 - ], - [ - -7.1403816, - 58.0358742 - ], - [ - -7.3020636, - 58.0351031 - ], - [ - -7.3030347, - 57.9774797 - ], - [ - -7.1379539, - 57.9777372 - ], - [ - -7.1413526, - 57.9202792 - ], - [ - -7.1398961, - 57.8640206 - ], - [ - -7.3020636, - 57.862471 - ], - [ - -7.298484, - 57.7442293 - ], - [ - -7.4509193, - 57.7456951 - ], - [ - -7.4550392, - 57.6899522 - ], - [ - -7.6186131, - 57.6906048 - ], - [ - -7.6198341, - 57.7456951 - ], - [ - -7.7901222, - 57.7442293 - ], - [ - -7.7873756, - 57.6855477 - ], - [ - -7.6222332, - 57.6853817 - ], - [ - -7.6173779, - 57.5712602 - ], - [ - -7.788285, - 57.5709998 - ], - [ - -7.7892561, - 57.512109 - ], - [ - -7.7038025, - 57.5115874 - ], - [ - -7.6999183, - 57.4546902 - ], - [ - -7.5367796, - 57.4552126 - ], - [ - -7.5348375, - 57.5126306 - ], - [ - -7.4581235, - 57.5131521 - ], - [ - -7.4552103, - 57.2824165 - ], - [ - -7.6115515, - 57.2845158 - ], - [ - -7.6144647, - 57.2272651 - ], - [ - -7.451326, - 57.2256881 - ], - [ - -7.451326, - 57.1103873 - ], - [ - -7.6164068, - 57.1088053 - ], - [ - -7.603783, - 56.8792358 - ] - ], - [ - [ - -1.7106618, - 59.5626284 - ], - [ - -1.5417509, - 59.562215 - ], - [ - -1.5423082, - 59.5037224 - ], - [ - -1.7112191, - 59.5041365 - ] - ] - ], - "terms_url": "http://geo.nls.uk/maps/", - "terms_text": "National Library of Scotland Historic Maps" - }, - { - "name": "New & Misaligned TIGER Roads", - "type": "tms", - "description": "At zoom level 16+, public domain map data from the US Census. At lower zooms, only changes since 2006 minus changes already incorporated into OpenStreetMap", - "template": "http://{switch:a,b,c}.tiles.mapbox.com/v3/enf.y5c4ygb9,enf.ho20a3n1,enf.game1617/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 0, - 22 - ], - "polygon": [ - [ - [ - -124.7617886, - 48.4130148 - ], - [ - -124.6059492, - 45.90245 - ], - [ - -124.9934269, - 40.0557614 - ], - [ - -122.5369737, - 36.8566086 - ], - [ - -119.9775867, - 33.0064099 - ], - [ - -117.675935, - 32.4630223 - ], - [ - -114.8612307, - 32.4799891 - ], - [ - -111.0089311, - 31.336015 - ], - [ - -108.1992687, - 31.3260016 - ], - [ - -108.1871123, - 31.7755116 - ], - [ - -106.5307225, - 31.7820947 - ], - [ - -106.4842052, - 31.7464455 - ], - [ - -106.429317, - 31.7520583 - ], - [ - -106.2868855, - 31.5613291 - ], - [ - -106.205248, - 31.446704 - ], - [ - -105.0205259, - 30.5360988 - ], - [ - -104.5881916, - 29.6997856 - ], - [ - -103.2518856, - 28.8908685 - ], - [ - -102.7173632, - 29.3920567 - ], - [ - -102.1513983, - 29.7475702 - ], - [ - -101.2552871, - 29.4810523 - ], - [ - -100.0062436, - 28.0082173 - ], - [ - -99.2351068, - 26.4475962 - ], - [ - -98.0109067, - 25.9928035 - ], - [ - -97.435024, - 25.8266009 - ], - [ - -96.9555259, - 25.9821589 - ], - [ - -96.8061741, - 27.7978168 - ], - [ - -95.5563349, - 28.5876066 - ], - [ - -93.7405308, - 29.4742093 - ], - [ - -90.9028456, - 28.8564513 - ], - [ - -88.0156706, - 28.9944338 - ], - [ - -88.0162494, - 30.0038862 - ], - [ - -86.0277506, - 30.0047454 - ], - [ - -84.0187909, - 28.9961781 - ], - [ - -81.9971976, - 25.9826768 - ], - [ - -81.9966618, - 25.0134917 - ], - [ - -84.0165592, - 25.0125783 - ], - [ - -84.0160068, - 24.0052745 - ], - [ - -80.0199985, - 24.007096 - ], - [ - -79.8901116, - 26.8550713 - ], - [ - -80.0245309, - 32.0161282 - ], - [ - -75.4147385, - 35.0531894 - ], - [ - -74.0211163, - 39.5727927 - ], - [ - -72.002019, - 40.9912464 - ], - [ - -69.8797398, - 40.9920457 - ], - [ - -69.8489304, - 43.2619916 - ], - [ - -66.9452845, - 44.7104937 - ], - [ - -67.7596632, - 47.0990024 - ], - [ - -69.2505131, - 47.5122328 - ], - [ - -70.4614886, - 46.2176574 - ], - [ - -71.412273, - 45.254878 - ], - [ - -72.0222508, - 45.0059846 - ], - [ - -75.0798841, - 44.9802854 - ], - [ - -76.9023061, - 43.8024568 - ], - [ - -78.7623935, - 43.6249578 - ], - [ - -79.15798, - 43.4462589 - ], - [ - -79.0060087, - 42.8005317 - ], - [ - -82.662475, - 41.6889458 - ], - [ - -82.1761642, - 43.588535 - ], - [ - -83.2813977, - 46.138853 - ], - [ - -87.5064535, - 48.0142702 - ], - [ - -88.3492194, - 48.2963271 - ], - [ - -89.4353148, - 47.9837822 - ], - [ - -93.9981078, - 49.0067142 - ], - [ - -95.1105379, - 49.412004 - ], - [ - -96.0131199, - 49.0060547 - ], - [ - -123.3228926, - 49.0042878 - ], - [ - -123.2275233, - 48.1849927 - ] - ], - [ - [ - -160.5787616, - 22.5062947 - ], - [ - -160.5782192, - 21.4984647 - ], - [ - -158.7470604, - 21.2439843 - ], - [ - -157.5083185, - 20.995803 - ], - [ - -155.9961942, - 18.7790194 - ], - [ - -154.6217803, - 18.7586966 - ], - [ - -154.6890176, - 19.8805722 - ], - [ - -156.2927622, - 21.2225888 - ], - [ - -157.5047384, - 21.9984962 - ], - [ - -159.0093692, - 22.5070181 - ] - ], - [ - [ - -167.1571546, - 68.721974 - ], - [ - -164.8553982, - 67.0255078 - ], - [ - -168.002195, - 66.0017503 - ], - [ - -169.0087448, - 66.001546 - ], - [ - -169.0075381, - 64.9987675 - ], - [ - -172.5143281, - 63.8767267 - ], - [ - -173.8197023, - 59.74014 - ], - [ - -162.5018149, - 58.0005815 - ], - [ - -160.0159024, - 58.0012389 - ], - [ - -160.0149725, - 57.000035 - ], - [ - -160.5054788, - 56.9999017 - ], - [ - -165.8092575, - 54.824847 - ], - [ - -178.000097, - 52.2446469 - ], - [ - -177.9992996, - 51.2554252 - ], - [ - -171.4689067, - 51.8215329 - ], - [ - -162.40251, - 53.956664 - ], - [ - -159.0075717, - 55.002502 - ], - [ - -158.0190709, - 55.0027849 - ], - [ - -151.9963213, - 55.9991902 - ], - [ - -151.500341, - 57.9987853 - ], - [ - -151.5012894, - 58.9919816 - ], - [ - -138.5159989, - 58.9953194 - ], - [ - -138.5150471, - 57.9986434 - ], - [ - -133.9948193, - 54.0031685 - ], - [ - -130.0044418, - 54.0043387 - ], - [ - -130.0070826, - 57.0000507 - ], - [ - -131.975877, - 56.9995156 - ], - [ - -135.1229873, - 59.756601 - ], - [ - -138.0071813, - 59.991805 - ], - [ - -139.1715881, - 60.4127229 - ], - [ - -140.9874011, - 61.0118551 - ], - [ - -140.9683975, - 69.9535069 - ], - [ - -156.176891, - 71.5633329 - ], - [ - -160.413634, - 70.7397728 - ], - [ - -163.0218273, - 69.9707435 - ], - [ - -164.9717003, - 68.994689 - ] - ] - ], - "overlay": true - }, - { - "name": "OS 1:25k historic (OSM)", - "type": "tms", - "template": "http://ooc.openstreetmap.org/os1/{zoom}/{x}/{y}.jpg", - "scaleExtent": [ - 6, - 17 - ], - "polygon": [ - [ - [ - -9, - 49.8 - ], - [ - -9, - 61.1 - ], - [ - 1.9, - 61.1 - ], - [ - 1.9, - 49.8 - ], - [ - -9, - 49.8 - ] - ] - ] - }, - { - "name": "OS New Popular Edition historic", - "type": "tms", - "template": "http://ooc.openstreetmap.org/npe/{zoom}/{x}/{y}.png", - "polygon": [ - [ - [ - -5.8, - 49.8 - ], - [ - -5.8, - 55.8 - ], - [ - 1.9, - 55.8 - ], - [ - 1.9, - 49.8 - ], - [ - -5.8, - 49.8 - ] - ] - ] - }, - { - "name": "OS OpenData Locator", - "type": "tms", - "template": "http://tiles.itoworld.com/os_locator/{zoom}/{x}/{y}.png", - "polygon": [ - [ - [ - -9, - 49.8 - ], - [ - -9, - 61.1 - ], - [ - 1.9, - 61.1 - ], - [ - 1.9, - 49.8 - ], - [ - -9, - 49.8 - ] - ] - ], - "overlay": true - }, - { - "name": "OS OpenData StreetView", - "type": "tms", - "template": "http://os.openstreetmap.org/sv/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 1, - 18 - ], - "polygon": [ - [ - [ - -5.8292886, - 50.0229734 - ], - [ - -5.8292886, - 50.254819 - ], - [ - -5.373356, - 50.254819 - ], - [ - -5.373356, - 50.3530588 - ], - [ - -5.1756021, - 50.3530588 - ], - [ - -5.1756021, - 50.5925406 - ], - [ - -4.9970743, - 50.5925406 - ], - [ - -4.9970743, - 50.6935617 - ], - [ - -4.7965738, - 50.6935617 - ], - [ - -4.7965738, - 50.7822112 - ], - [ - -4.6949503, - 50.7822112 - ], - [ - -4.6949503, - 50.9607371 - ], - [ - -4.6043131, - 50.9607371 - ], - [ - -4.6043131, - 51.0692066 - ], - [ - -4.3792215, - 51.0692066 - ], - [ - -4.3792215, - 51.2521782 - ], - [ - -3.9039346, - 51.2521782 - ], - [ - -3.9039346, - 51.2916998 - ], - [ - -3.7171671, - 51.2916998 - ], - [ - -3.7171671, - 51.2453014 - ], - [ - -3.1486246, - 51.2453014 - ], - [ - -3.1486246, - 51.362067 - ], - [ - -3.7446329, - 51.362067 - ], - [ - -3.7446329, - 51.4340386 - ], - [ - -3.8297769, - 51.4340386 - ], - [ - -3.8297769, - 51.5298246 - ], - [ - -4.0852091, - 51.5298246 - ], - [ - -4.0852091, - 51.4939284 - ], - [ - -4.3792215, - 51.4939284 - ], - [ - -4.3792215, - 51.5427168 - ], - [ - -5.1444195, - 51.5427168 - ], - [ - -5.1444195, - 51.6296003 - ], - [ - -5.7387103, - 51.6296003 - ], - [ - -5.7387103, - 51.774037 - ], - [ - -5.5095393, - 51.774037 - ], - [ - -5.5095393, - 51.9802596 - ], - [ - -5.198799, - 51.9802596 - ], - [ - -5.198799, - 52.0973358 - ], - [ - -4.8880588, - 52.0973358 - ], - [ - -4.8880588, - 52.1831557 - ], - [ - -4.4957492, - 52.1831557 - ], - [ - -4.4957492, - 52.2925739 - ], - [ - -4.3015365, - 52.2925739 - ], - [ - -4.3015365, - 52.3685318 - ], - [ - -4.1811246, - 52.3685318 - ], - [ - -4.1811246, - 52.7933685 - ], - [ - -4.4413696, - 52.7933685 - ], - [ - -4.4413696, - 52.7369614 - ], - [ - -4.8569847, - 52.7369614 - ], - [ - -4.8569847, - 52.9317255 - ], - [ - -4.7288044, - 52.9317255 - ], - [ - -4.7288044, - 53.5038599 - ], - [ - -4.1578191, - 53.5038599 - ], - [ - -4.1578191, - 53.4113498 - ], - [ - -3.3110518, - 53.4113498 - ], - [ - -3.3110518, - 53.5038599 - ], - [ - -3.2333667, - 53.5038599 - ], - [ - -3.2333667, - 54.0159169 - ], - [ - -3.3926211, - 54.0159169 - ], - [ - -3.3926211, - 54.1980953 - ], - [ - -3.559644, - 54.1980953 - ], - [ - -3.559644, - 54.433732 - ], - [ - -3.7188984, - 54.433732 - ], - [ - -3.7188984, - 54.721897 - ], - [ - -4.3015365, - 54.721897 - ], - [ - -4.3015365, - 54.6140739 - ], - [ - -5.0473132, - 54.6140739 - ], - [ - -5.0473132, - 54.7532915 - ], - [ - -5.2298731, - 54.7532915 - ], - [ - -5.2298731, - 55.2190799 - ], - [ - -5.6532567, - 55.2190799 - ], - [ - -5.6532567, - 55.250088 - ], - [ - -5.8979647, - 55.250088 - ], - [ - -5.8979647, - 55.4822462 - ], - [ - -6.5933212, - 55.4822462 - ], - [ - -6.5933212, - 56.3013441 - ], - [ - -7.1727691, - 56.3013441 - ], - [ - -7.1727691, - 56.5601822 - ], - [ - -6.8171722, - 56.5601822 - ], - [ - -6.8171722, - 56.6991713 - ], - [ - -6.5315276, - 56.6991713 - ], - [ - -6.5315276, - 56.9066964 - ], - [ - -6.811679, - 56.9066964 - ], - [ - -6.811679, - 57.3716613 - ], - [ - -6.8721038, - 57.3716613 - ], - [ - -6.8721038, - 57.5518893 - ], - [ - -7.0973235, - 57.5518893 - ], - [ - -7.0973235, - 57.2411085 - ], - [ - -7.1742278, - 57.2411085 - ], - [ - -7.1742278, - 56.9066964 - ], - [ - -7.3719817, - 56.9066964 - ], - [ - -7.3719817, - 56.8075885 - ], - [ - -7.5202972, - 56.8075885 - ], - [ - -7.5202972, - 56.7142479 - ], - [ - -7.8306806, - 56.7142479 - ], - [ - -7.8306806, - 56.8994605 - ], - [ - -7.6494061, - 56.8994605 - ], - [ - -7.6494061, - 57.4739617 - ], - [ - -7.8306806, - 57.4739617 - ], - [ - -7.8306806, - 57.7915584 - ], - [ - -7.4736249, - 57.7915584 - ], - [ - -7.4736249, - 58.086063 - ], - [ - -7.1879804, - 58.086063 - ], - [ - -7.1879804, - 58.367197 - ], - [ - -6.8034589, - 58.367197 - ], - [ - -6.8034589, - 58.4155786 - ], - [ - -6.638664, - 58.4155786 - ], - [ - -6.638664, - 58.4673277 - ], - [ - -6.5178143, - 58.4673277 - ], - [ - -6.5178143, - 58.5625632 - ], - [ - -6.0536224, - 58.5625632 - ], - [ - -6.0536224, - 58.1568843 - ], - [ - -6.1470062, - 58.1568843 - ], - [ - -6.1470062, - 58.1105865 - ], - [ - -6.2799798, - 58.1105865 - ], - [ - -6.2799798, - 57.7122664 - ], - [ - -6.1591302, - 57.7122664 - ], - [ - -6.1591302, - 57.6667563 - ], - [ - -5.9339104, - 57.6667563 - ], - [ - -5.9339104, - 57.8892524 - ], - [ - -5.80643, - 57.8892524 - ], - [ - -5.80643, - 57.9621767 - ], - [ - -5.6141692, - 57.9621767 - ], - [ - -5.6141692, - 58.0911236 - ], - [ - -5.490819, - 58.0911236 - ], - [ - -5.490819, - 58.3733281 - ], - [ - -5.3199118, - 58.3733281 - ], - [ - -5.3199118, - 58.75015 - ], - [ - -3.5719977, - 58.75015 - ], - [ - -3.5719977, - 59.2091788 - ], - [ - -3.1944501, - 59.2091788 - ], - [ - -3.1944501, - 59.4759216 - ], - [ - -2.243583, - 59.4759216 - ], - [ - -2.243583, - 59.1388749 - ], - [ - -2.4611012, - 59.1388749 - ], - [ - -2.4611012, - 58.8185938 - ], - [ - -2.7407675, - 58.8185938 - ], - [ - -2.7407675, - 58.5804743 - ], - [ - -2.9116746, - 58.5804743 - ], - [ - -2.9116746, - 58.1157523 - ], - [ - -3.4865441, - 58.1157523 - ], - [ - -3.4865441, - 57.740386 - ], - [ - -1.7153245, - 57.740386 - ], - [ - -1.7153245, - 57.2225558 - ], - [ - -1.9794538, - 57.2225558 - ], - [ - -1.9794538, - 56.8760742 - ], - [ - -2.1658979, - 56.8760742 - ], - [ - -2.1658979, - 56.6333186 - ], - [ - -2.3601106, - 56.6333186 - ], - [ - -2.3601106, - 56.0477521 - ], - [ - -1.9794538, - 56.0477521 - ], - [ - -1.9794538, - 55.8650949 - ], - [ - -1.4745008, - 55.8650949 - ], - [ - -1.4745008, - 55.2499926 - ], - [ - -1.3221997, - 55.2499926 - ], - [ - -1.3221997, - 54.8221737 - ], - [ - -1.0550014, - 54.8221737 - ], - [ - -1.0550014, - 54.6746628 - ], - [ - -0.6618765, - 54.6746628 - ], - [ - -0.6618765, - 54.5527463 - ], - [ - -0.3247617, - 54.5527463 - ], - [ - -0.3247617, - 54.2865195 - ], - [ - 0.0092841, - 54.2865195 - ], - [ - 0.0092841, - 53.7938518 - ], - [ - 0.2081962, - 53.7938518 - ], - [ - 0.2081962, - 53.5217726 - ], - [ - 0.4163548, - 53.5217726 - ], - [ - 0.4163548, - 53.0298851 - ], - [ - 1.4273388, - 53.0298851 - ], - [ - 1.4273388, - 52.92021 - ], - [ - 1.8333912, - 52.92021 - ], - [ - 1.8333912, - 52.042488 - ], - [ - 1.5235504, - 52.042488 - ], - [ - 1.5235504, - 51.8261335 - ], - [ - 1.2697049, - 51.8261335 - ], - [ - 1.2697049, - 51.6967453 - ], - [ - 1.116651, - 51.6967453 - ], - [ - 1.116651, - 51.440346 - ], - [ - 1.5235504, - 51.440346 - ], - [ - 1.5235504, - 51.3331831 - ], - [ - 1.4507565, - 51.3331831 - ], - [ - 1.4507565, - 51.0207553 - ], - [ - 1.0699883, - 51.0207553 - ], - [ - 1.0699883, - 50.9008416 - ], - [ - 0.7788126, - 50.9008416 - ], - [ - 0.7788126, - 50.729843 - ], - [ - -0.7255952, - 50.729843 - ], - [ - -0.7255952, - 50.7038437 - ], - [ - -1.0074383, - 50.7038437 - ], - [ - -1.0074383, - 50.5736307 - ], - [ - -2.3625252, - 50.5736307 - ], - [ - -2.3625252, - 50.4846421 - ], - [ - -2.4987805, - 50.4846421 - ], - [ - -2.4987805, - 50.5736307 - ], - [ - -3.4096378, - 50.5736307 - ], - [ - -3.4096378, - 50.2057837 - ], - [ - -3.6922446, - 50.2057837 - ], - [ - -3.6922446, - 50.1347737 - ], - [ - -5.005468, - 50.1347737 - ], - [ - -5.005468, - 49.9474456 - ], - [ - -5.2839506, - 49.9474456 - ], - [ - -5.2839506, - 50.0229734 - ] - ], - [ - [ - -6.4580707, - 49.8673563 - ], - [ - -6.4580707, - 49.9499935 - ], - [ - -6.3978807, - 49.9499935 - ], - [ - -6.3978807, - 50.0053797 - ], - [ - -6.1799606, - 50.0053797 - ], - [ - -6.1799606, - 49.9168614 - ], - [ - -6.2540201, - 49.9168614 - ], - [ - -6.2540201, - 49.8673563 - ] - ], - [ - [ - -5.8343165, - 49.932156 - ], - [ - -5.8343165, - 49.9754641 - ], - [ - -5.7683254, - 49.9754641 - ], - [ - -5.7683254, - 49.932156 - ] - ], - [ - [ - -1.9483797, - 60.6885737 - ], - [ - -1.9483797, - 60.3058841 - ], - [ - -1.7543149, - 60.3058841 - ], - [ - -1.7543149, - 60.1284428 - ], - [ - -1.5754914, - 60.1284428 - ], - [ - -1.5754914, - 59.797917 - ], - [ - -1.0316959, - 59.797917 - ], - [ - -1.0316959, - 60.0354518 - ], - [ - -0.6626918, - 60.0354518 - ], - [ - -0.6626918, - 60.9103862 - ], - [ - -1.1034395, - 60.9103862 - ], - [ - -1.1034395, - 60.8040022 - ], - [ - -1.3506319, - 60.8040022 - ], - [ - -1.3506319, - 60.6885737 - ] - ], - [ - [ - -2.203381, - 60.1968568 - ], - [ - -2.203381, - 60.0929443 - ], - [ - -1.9864011, - 60.0929443 - ], - [ - -1.9864011, - 60.1968568 - ] - ], - [ - [ - -1.7543149, - 59.5698289 - ], - [ - -1.7543149, - 59.4639383 - ], - [ - -1.5373349, - 59.4639383 - ], - [ - -1.5373349, - 59.5698289 - ] - ], - [ - [ - -4.5585981, - 59.1370518 - ], - [ - -4.5585981, - 58.9569099 - ], - [ - -4.2867004, - 58.9569099 - ], - [ - -4.2867004, - 59.1370518 - ] - ], - [ - [ - -6.2787732, - 59.2025744 - ], - [ - -6.2787732, - 59.0227769 - ], - [ - -5.6650612, - 59.0227769 - ], - [ - -5.6650612, - 59.2025744 - ] - ], - [ - [ - -8.7163482, - 57.9440556 - ], - [ - -8.7163482, - 57.7305936 - ], - [ - -8.3592926, - 57.7305936 - ], - [ - -8.3592926, - 57.9440556 - ] - ], - [ - [ - -7.6077005, - 50.4021026 - ], - [ - -7.6077005, - 50.2688657 - ], - [ - -7.3907205, - 50.2688657 - ], - [ - -7.3907205, - 50.4021026 - ] - ], - [ - [ - -7.7304303, - 58.3579902 - ], - [ - -7.7304303, - 58.248313 - ], - [ - -7.5134503, - 58.248313 - ], - [ - -7.5134503, - 58.3579902 - ] - ] - ] - }, - { - "name": "OS Scottish Popular historic", - "type": "tms", - "template": "http://ooc.openstreetmap.org/npescotland/tiles/{zoom}/{x}/{y}.jpg", - "scaleExtent": [ - 6, - 15 - ], - "polygon": [ - [ - [ - -7.8, - 54.5 - ], - [ - -7.8, - 61.1 - ], - [ - -1.1, - 61.1 - ], - [ - -1.1, - 54.5 - ], - [ - -7.8, - 54.5 - ] - ] - ] - }, - { - "name": "OS Town Plans, Aberdeen 1866-1867 (NLS)", - "type": "tms", - "description": "Detailed town plan of Aberdeen 1866-1867, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/aberdeen/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.14039404, - 57.11218789 - ], - [ - -2.14064752, - 57.17894161 - ], - [ - -2.04501987, - 57.17901252 - ], - [ - -2.04493842, - 57.11225862 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/aberdeen.html", - "terms_text": "National Library of Scotland - Aberdeen 1866-1867" - }, - { - "name": "OS Town Plans, Airdrie 1858 (NLS)", - "type": "tms", - "description": "Detailed town plan of Airdrie 1858, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/airdrie/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.99291738, - 55.86408041 - ], - [ - -3.99338933, - 55.87329115 - ], - [ - -3.9691085, - 55.87368212 - ], - [ - -3.9686423, - 55.86447124 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/airdrie.html", - "terms_text": "National Library of Scotland - Airdrie 1858" - }, - { - "name": "OS Town Plans, Alexandria 1859 (NLS)", - "type": "tms", - "description": "Detailed town plan of Alexandria 1859, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/alexandria/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.58973571, - 55.97536707 - ], - [ - -4.59104461, - 55.99493153 - ], - [ - -4.55985072, - 55.99558348 - ], - [ - -4.55855754, - 55.97601855 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/alexandria.html", - "terms_text": "National Library of Scotland - Alexandria 1859" - }, - { - "name": "OS Town Plans, Alloa 1861-1862 (NLS)", - "type": "tms", - "description": "Detailed town plan of Alloa 1861-1862, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/alloa/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.81166061, - 56.09864363 - ], - [ - -3.81274448, - 56.12169929 - ], - [ - -3.7804609, - 56.12216898 - ], - [ - -3.77939631, - 56.09911292 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/alloa.html", - "terms_text": "National Library of Scotland - Alloa 1861-1862" - }, - { - "name": "OS Town Plans, Annan 1859 (NLS)", - "type": "tms", - "description": "Detailed town plan of Annan 1859, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/annan/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.27921439, - 54.98252155 - ], - [ - -3.27960062, - 54.9946601 - ], - [ - -3.24866331, - 54.99498165 - ], - [ - -3.24828642, - 54.98284297 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/annan.html", - "terms_text": "National Library of Scotland - Annan 1859" - }, - { - "name": "OS Town Plans, Arbroath 1858 (NLS)", - "type": "tms", - "description": "Detailed town plan of Arbroath 1858, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/arbroath/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.60716469, - 56.53995105 - ], - [ - -2.60764981, - 56.57022426 - ], - [ - -2.56498708, - 56.57042549 - ], - [ - -2.564536, - 56.54015206 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/arbroath.html", - "terms_text": "National Library of Scotland - Arbroath 1858" - }, - { - "name": "OS Town Plans, Ayr 1855 (NLS)", - "type": "tms", - "description": "Detailed town plan of Ayr 1855, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/ayr/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.66768105, - 55.43748864 - ], - [ - -4.67080057, - 55.48363961 - ], - [ - -4.60609844, - 55.48503484 - ], - [ - -4.60305426, - 55.43888149 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/ayr.html", - "terms_text": "National Library of Scotland - Ayr 1855" - }, - { - "name": "OS Town Plans, Berwick-upon-Tweed 1852 (NLS)", - "type": "tms", - "description": "Detailed town plan of Berwick-upon-Tweed 1852, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/berwick/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.02117487, - 55.75577627 - ], - [ - -2.02118763, - 55.77904118 - ], - [ - -1.98976956, - 55.77904265 - ], - [ - -1.9897755, - 55.75577774 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/berwick.html", - "terms_text": "National Library of Scotland - Berwick-upon-Tweed 1852" - }, - { - "name": "OS Town Plans, Brechin 1862 (NLS)", - "type": "tms", - "description": "Detailed town plan of Brechin 1862, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/brechin/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.67480248, - 56.71456775 - ], - [ - -2.67521172, - 56.73739937 - ], - [ - -2.64319679, - 56.73756872 - ], - [ - -2.64280695, - 56.71473694 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/brechin.html", - "terms_text": "National Library of Scotland - Brechin 1862" - }, - { - "name": "OS Town Plans, Burntisland 1894 (NLS)", - "type": "tms", - "description": "Detailed town plan of Burntisland 1894, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/burntisland/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.24879624, - 56.04240046 - ], - [ - -3.2495182, - 56.06472996 - ], - [ - -3.21830572, - 56.06504207 - ], - [ - -3.21760179, - 56.0427123 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/burntisland.html", - "terms_text": "National Library of Scotland - Burntisland 1894" - }, - { - "name": "OS Town Plans, Campbelton 1865 (NLS)", - "type": "tms", - "description": "Detailed town plan of Campbelton 1865, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/campbeltown/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -5.62345307, - 55.40255998 - ], - [ - -5.62631353, - 55.43375303 - ], - [ - -5.58276654, - 55.43503753 - ], - [ - -5.57994024, - 55.40384299 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/campbelton.html", - "terms_text": "National Library of Scotland - Campbelton 1865" - }, - { - "name": "OS Town Plans, Coatbridge 1858 (NLS)", - "type": "tms", - "description": "Detailed town plan of Coatbridge 1858, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/coatbridge/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.05035921, - 55.84648689 - ], - [ - -4.05157062, - 55.86947193 - ], - [ - -4.01953905, - 55.87000186 - ], - [ - -4.01834651, - 55.84701638 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/coatbridge.html", - "terms_text": "National Library of Scotland - Coatbridge 1858" - }, - { - "name": "OS Town Plans, Cupar 1854 (NLS)", - "type": "tms", - "description": "Detailed town plan of Cupar 1854, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/cupar1854/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.04765872, - 56.28653177 - ], - [ - -3.04890965, - 56.332192 - ], - [ - -2.98498515, - 56.33271677 - ], - [ - -2.98381041, - 56.28705563 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/cupar_1.html", - "terms_text": "National Library of Scotland - Cupar 1854" - }, - { - "name": "OS Town Plans, Cupar 1893-1894 (NLS)", - "type": "tms", - "description": "Detailed town plan of Cupar 1893-1894, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/cupar1893/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.0327697, - 56.30243657 - ], - [ - -3.03338443, - 56.32520139 - ], - [ - -3.00146629, - 56.32546356 - ], - [ - -3.00087054, - 56.30269852 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/cupar_2.html", - "terms_text": "National Library of Scotland - Cupar 1893-1894" - }, - { - "name": "OS Town Plans, Dalkeith 1852 (NLS)", - "type": "tms", - "description": "Detailed town plan of Dalkeith 1852, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/dalkeith1852/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.07862465, - 55.88900264 - ], - [ - -3.0790381, - 55.90389729 - ], - [ - -3.05835611, - 55.90407681 - ], - [ - -3.05795059, - 55.88918206 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/dalkeith_1.html", - "terms_text": "National Library of Scotland - Dalkeith 1852" - }, - { - "name": "OS Town Plans, Dalkeith 1893 (NLS)", - "type": "tms", - "description": "Detailed town plan of Dalkeith 1893, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/dalkeith1893/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.08600192, - 55.87936087 - ], - [ - -3.08658588, - 55.90025926 - ], - [ - -3.0436473, - 55.90063074 - ], - [ - -3.04308639, - 55.87973206 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/dalkeith_2.html", - "terms_text": "National Library of Scotland - Dalkeith 1893" - }, - { - "name": "OS Town Plans, Dumbarton 1859 (NLS)", - "type": "tms", - "description": "Detailed town plan of Dumbarton 1859, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/dumbarton/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.58559982, - 55.92742578 - ], - [ - -4.58714245, - 55.95056014 - ], - [ - -4.55463269, - 55.95123882 - ], - [ - -4.55310939, - 55.92810387 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/dumbarton.html", - "terms_text": "National Library of Scotland - Dumbarton 1859" - }, - { - "name": "OS Town Plans, Dumfries 1850 (NLS)", - "type": "tms", - "description": "Detailed town plan of Dumfries 1850, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/dumfries1850/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.63928076, - 55.03715991 - ], - [ - -3.64116352, - 55.08319002 - ], - [ - -3.57823183, - 55.08402202 - ], - [ - -3.57642118, - 55.0379905 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/dumfries_1.html", - "terms_text": "National Library of Scotland - Dumfries 1850" - }, - { - "name": "OS Town Plans, Dumfries 1893 (NLS)", - "type": "tms", - "description": "Detailed town plan of Dumfries 1893, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/dumfries1893/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.63179081, - 55.04150111 - ], - [ - -3.63330662, - 55.07873429 - ], - [ - -3.58259012, - 55.07940411 - ], - [ - -3.58112132, - 55.04217001 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/dumfries_2.html", - "terms_text": "National Library of Scotland - Dumfries 1893" - }, - { - "name": "OS Town Plans, Dundee 1857-1858 (NLS)", - "type": "tms", - "description": "Detailed town plan of Dundee 1857-1858, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/dundee1857/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.02584468, - 56.44879161 - ], - [ - -3.02656969, - 56.47566815 - ], - [ - -2.94710317, - 56.47629984 - ], - [ - -2.94643424, - 56.44942266 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/dundee_1.html", - "terms_text": "National Library of Scotland - Dundee 1857-1858" - }, - { - "name": "OS Town Plans, Dundee 1870-1872 (NLS)", - "type": "tms", - "description": "Detailed town plan of Dundee 1870-1872, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/dundee1870/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.03399945, - 56.448497 - ], - [ - -3.03497463, - 56.48435238 - ], - [ - -2.92352705, - 56.48523137 - ], - [ - -2.92265681, - 56.4493748 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/dundee_2.html", - "terms_text": "National Library of Scotland - Dundee 1870-1872" - }, - { - "name": "OS Town Plans, Dunfermline 1854 (NLS)", - "type": "tms", - "description": "Detailed town plan of Dunfermline 1854, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/dunfermline1854/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.49045481, - 56.0605979 - ], - [ - -3.49116489, - 56.07898822 - ], - [ - -3.44374075, - 56.07955208 - ], - [ - -3.44305323, - 56.06116138 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/dunfermline_1.html", - "terms_text": "National Library of Scotland - Dunfermline 1854" - }, - { - "name": "OS Town Plans, Dunfermline 1894 (NLS)", - "type": "tms", - "description": "Detailed town plan of Dunfermline 1894, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/dunfermline1893/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.48284159, - 56.05198219 - ], - [ - -3.48399434, - 56.08198924 - ], - [ - -3.44209721, - 56.08248587 - ], - [ - -3.44097697, - 56.05247826 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/dunfermline_2.html", - "terms_text": "National Library of Scotland - Dunfermline 1894" - }, - { - "name": "OS Town Plans, Edinburgh 1849-1851 (NLS)", - "type": "tms", - "description": "Detailed town plan of Edinburgh 1849-1851, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/edinburgh1849/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.2361048, - 55.921366 - ], - [ - -3.23836397, - 55.99217223 - ], - [ - -3.14197035, - 55.99310288 - ], - [ - -3.13988689, - 55.92229419 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/edinburgh1056_1.html", - "terms_text": "National Library of Scotland - Edinburgh 1849-1851" - }, - { - "name": "OS Town Plans, Edinburgh 1876-1877 (NLS)", - "type": "tms", - "description": "Detailed town plan of Edinburgh 1876-1877, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/edinburgh1876/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.24740498, - 55.92116518 - ], - [ - -3.24989581, - 55.99850896 - ], - [ - -3.13061127, - 55.99966059 - ], - [ - -3.12835798, - 55.92231348 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/edinburgh1056_2.html", - "terms_text": "National Library of Scotland - Edinburgh 1876-1877" - }, - { - "name": "OS Town Plans, Edinburgh 1893-1894 (NLS)", - "type": "tms", - "description": "Detailed town plan of Edinburgh 1893-1894, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/edinburgh1893/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.26111081, - 55.89555387 - ], - [ - -3.26450423, - 55.9997912 - ], - [ - -3.11970824, - 56.00119128 - ], - [ - -3.1167031, - 55.89694851 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/edinburgh500.html", - "terms_text": "National Library of Scotland - Edinburgh 1893-1894" - }, - { - "name": "OS Town Plans, Elgin 1868 (NLS)", - "type": "tms", - "description": "Detailed town plan of Elgin 1868, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/elgin/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.33665196, - 57.62879017 - ], - [ - -3.33776583, - 57.65907381 - ], - [ - -3.29380859, - 57.65953111 - ], - [ - -3.29273129, - 57.62924695 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/elgin.html", - "terms_text": "National Library of Scotland - Elgin 1868" - }, - { - "name": "OS Town Plans, Falkirk 1858-1859 (NLS)", - "type": "tms", - "description": "Detailed town plan of Falkirk 1858-1859, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/falkirk/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.79587441, - 55.99343101 - ], - [ - -3.79697783, - 56.01720281 - ], - [ - -3.76648151, - 56.01764348 - ], - [ - -3.76539679, - 55.99387129 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/falkirk.html", - "terms_text": "National Library of Scotland - Falkirk 1858-1859" - }, - { - "name": "OS Town Plans, Forfar 1860-1861 (NLS)", - "type": "tms", - "description": "Detailed town plan of Forfar 1860-1861, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/forfar/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.90326183, - 56.6289471 - ], - [ - -2.90378797, - 56.65095013 - ], - [ - -2.87228457, - 56.65117489 - ], - [ - -2.87177676, - 56.62917168 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/forfar.html", - "terms_text": "National Library of Scotland - Forfar 1860-1861" - }, - { - "name": "OS Town Plans, Forres 1868 (NLS)", - "type": "tms", - "description": "Detailed town plan of Forres 1868, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/forres/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.63516795, - 57.58887872 - ], - [ - -3.63647637, - 57.618002 - ], - [ - -3.57751453, - 57.61875171 - ], - [ - -3.5762532, - 57.58962759 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/forres.html", - "terms_text": "National Library of Scotland - Forres 1868" - }, - { - "name": "OS Town Plans, Galashiels 1858 (NLS)", - "type": "tms", - "description": "Detailed town plan of Galashiels 1858, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/galashiels/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.82918609, - 55.59586303 - ], - [ - -2.82981273, - 55.62554026 - ], - [ - -2.78895254, - 55.62580992 - ], - [ - -2.78835674, - 55.59613239 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/galashiels.html", - "terms_text": "National Library of Scotland - Galashiels 1858" - }, - { - "name": "OS Town Plans, Girvan 1857 (NLS)", - "type": "tms", - "description": "Detailed town plan of Girvan 1857, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/girvan/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.87424251, - 55.22679729 - ], - [ - -4.87587895, - 55.24945946 - ], - [ - -4.84447382, - 55.25019598 - ], - [ - -4.84285519, - 55.22753318 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/girvan.html", - "terms_text": "National Library of Scotland - Girvan 1857" - }, - { - "name": "OS Town Plans, Glasgow 1857-1858 (NLS)", - "type": "tms", - "description": "Detailed town plan of Glasgow 1857-1858, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/glasgow1857/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.31575491, - 55.82072009 - ], - [ - -4.319683, - 55.88667625 - ], - [ - -4.1771319, - 55.88928081 - ], - [ - -4.1734447, - 55.82331825 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/glasgow_1.html", - "terms_text": "National Library of Scotland - Glasgow 1857-1858" - }, - { - "name": "OS Town Plans, Glasgow 1892-1894 (NLS)", - "type": "tms", - "description": "Detailed town plan of Glasgow 1892-1894, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/glasgow1894/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.3465357, - 55.81456228 - ], - [ - -4.35157646, - 55.89806268 - ], - [ - -4.17788765, - 55.9012587 - ], - [ - -4.17321842, - 55.81774834 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/glasgow_2.html", - "terms_text": "National Library of Scotland - Glasgow 1892-1894" - }, - { - "name": "OS Town Plans, Greenock 1857 (NLS)", - "type": "tms", - "description": "Detailed town plan of Greenock 1857, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/greenock/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.78108857, - 55.92617865 - ], - [ - -4.78382957, - 55.96437481 - ], - [ - -4.7302257, - 55.96557475 - ], - [ - -4.72753731, - 55.92737687 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/greenock.html", - "terms_text": "National Library of Scotland - Greenock 1857" - }, - { - "name": "OS Town Plans, Haddington 1853 (NLS)", - "type": "tms", - "description": "Detailed town plan of Haddington 1853, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/haddington1853/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.78855542, - 55.9451862 - ], - [ - -2.78888196, - 55.96124194 - ], - [ - -2.76674325, - 55.9613817 - ], - [ - -2.76642588, - 55.94532587 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/haddington_1.html", - "terms_text": "National Library of Scotland - Haddington 1853" - }, - { - "name": "OS Town Plans, Haddington 1893 (NLS)", - "type": "tms", - "description": "Detailed town plan of Haddington 1893, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/haddington1893/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.80152293, - 55.93428734 - ], - [ - -2.80214693, - 55.96447189 - ], - [ - -2.76038069, - 55.9647367 - ], - [ - -2.75978916, - 55.93455185 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/haddington_2.html", - "terms_text": "National Library of Scotland - Haddington 1893" - }, - { - "name": "OS Town Plans, Hamilton 1858 (NLS)", - "type": "tms", - "description": "Detailed town plan of Hamilton 1858, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/hamilton/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.06721642, - 55.74877265 - ], - [ - -4.06924047, - 55.78698508 - ], - [ - -4.01679233, - 55.78785698 - ], - [ - -4.01481949, - 55.74964331 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/hamilton.html", - "terms_text": "National Library of Scotland - Hamilton 1858" - }, - { - "name": "OS Town Plans, Hawick 1857-1858 (NLS)", - "type": "tms", - "description": "Detailed town plan of Hawick 1857-1858, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/hawick/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.80130149, - 55.4102516 - ], - [ - -2.80176329, - 55.43304638 - ], - [ - -2.7708832, - 55.43324489 - ], - [ - -2.77043917, - 55.41044995 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/hawick.html", - "terms_text": "National Library of Scotland - Hawick 1857-1858" - }, - { - "name": "OS Town Plans, Inverness 1867-1868 (NLS)", - "type": "tms", - "description": "Detailed town plan of Inverness 1867-1868, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/inverness/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.25481758, - 57.45916363 - ], - [ - -4.25752308, - 57.50302387 - ], - [ - -4.19713638, - 57.50409032 - ], - [ - -4.1945031, - 57.46022829 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/inverness.html", - "terms_text": "National Library of Scotland - Inverness 1867-1868" - }, - { - "name": "OS Town Plans, Irvine 1859 (NLS)", - "type": "tms", - "description": "Detailed town plan of Irvine 1859, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/irvine/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.67540402, - 55.60649957 - ], - [ - -4.67643252, - 55.62159024 - ], - [ - -4.65537888, - 55.62204812 - ], - [ - -4.65435844, - 55.60695719 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/irvine.html", - "terms_text": "National Library of Scotland - Irvine 1859" - }, - { - "name": "OS Town Plans, Jedburgh 1858 (NLS)", - "type": "tms", - "description": "Detailed town plan of Jedburgh 1858, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/jedburgh/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.56332521, - 55.47105448 - ], - [ - -2.56355503, - 55.48715562 - ], - [ - -2.54168193, - 55.48725438 - ], - [ - -2.54146103, - 55.47115318 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/jedburgh.html", - "terms_text": "National Library of Scotland - Jedburgh 1858" - }, - { - "name": "OS Town Plans, Kelso 1857 (NLS)", - "type": "tms", - "description": "Detailed town plan of Kelso 1857, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/kelso/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.44924544, - 55.58390848 - ], - [ - -2.44949757, - 55.6059582 - ], - [ - -2.41902085, - 55.60606617 - ], - [ - -2.41878581, - 55.58401636 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/kelso.html", - "terms_text": "National Library of Scotland - Kelso 1857" - }, - { - "name": "OS Town Plans, Kilmarnock 1857-1859 (NLS)", - "type": "tms", - "description": "Detailed town plan of Kilmarnock 1857-1859, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/kilmarnock/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.51746876, - 55.58950933 - ], - [ - -4.5194347, - 55.62017114 - ], - [ - -4.47675652, - 55.62104083 - ], - [ - -4.4748238, - 55.59037802 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/kilmarnock.html", - "terms_text": "National Library of Scotland - Kilmarnock 1857-1859" - }, - { - "name": "OS Town Plans, Kirkcaldy 1855 (NLS)", - "type": "tms", - "description": "Detailed town plan of Kirkcaldy 1855, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/kirkcaldy1855/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.17455285, - 56.09518942 - ], - [ - -3.17554995, - 56.12790251 - ], - [ - -3.12991402, - 56.12832843 - ], - [ - -3.12895559, - 56.09561481 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/kirkcaldy_1.html", - "terms_text": "National Library of Scotland - Kirkcaldy 1855" - }, - { - "name": "OS Town Plans, Kirkcaldy 1894 (NLS)", - "type": "tms", - "description": "Detailed town plan of Kirkcaldy 1894, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/kirkcaldy1894/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.17460426, - 56.09513375 - ], - [ - -3.17560428, - 56.12794116 - ], - [ - -3.12989512, - 56.12836777 - ], - [ - -3.12893395, - 56.09555983 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/kirkcaldy_2.html", - "terms_text": "National Library of Scotland - Kirkcaldy 1894" - }, - { - "name": "OS Town Plans, Kirkcudbright 1850 (NLS)", - "type": "tms", - "description": "Detailed town plan of Kirkcudbright 1850, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/kirkcudbright1850/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.06154334, - 54.82586314 - ], - [ - -4.0623081, - 54.84086061 - ], - [ - -4.0420219, - 54.84120364 - ], - [ - -4.04126464, - 54.82620598 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/kirkcudbright_1.html", - "terms_text": "National Library of Scotland - Kirkcudbright 1850" - }, - { - "name": "OS Town Plans, Kirkcudbright 1893 (NLS)", - "type": "tms", - "description": "Detailed town plan of Kirkcudbright 1893, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/kirkcudbright1893/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.06001868, - 54.82720122 - ], - [ - -4.06079036, - 54.84234455 - ], - [ - -4.04025067, - 54.84269158 - ], - [ - -4.03948667, - 54.82754805 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/kirkcudbright_2.html", - "terms_text": "National Library of Scotland - Kirkcudbright 1893" - }, - { - "name": "OS Town Plans, Kirkintilloch 1859 (NLS)", - "type": "tms", - "description": "Detailed town plan of Kirkintilloch 1859, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/kirkintilloch/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.16664222, - 55.93124287 - ], - [ - -4.16748402, - 55.94631265 - ], - [ - -4.14637318, - 55.94668235 - ], - [ - -4.14553956, - 55.93161237 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/kirkintilloch.html", - "terms_text": "National Library of Scotland - Kirkintilloch 1859" - }, - { - "name": "OS Town Plans, Kirriemuir 1861 (NLS)", - "type": "tms", - "description": "Detailed town plan of Kirriemuir 1861, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/kirriemuir/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.01255744, - 56.65896044 - ], - [ - -3.01302683, - 56.67645382 - ], - [ - -2.98815879, - 56.67665366 - ], - [ - -2.98770092, - 56.65916014 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/kirriemuir.html", - "terms_text": "National Library of Scotland - Kirriemuir 1861" - }, - { - "name": "OS Town Plans, Lanark 1858 (NLS)", - "type": "tms", - "description": "Detailed town plan of Lanark 1858, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/lanark/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.78642584, - 55.66308804 - ], - [ - -3.78710605, - 55.67800854 - ], - [ - -3.76632876, - 55.67830935 - ], - [ - -3.76565645, - 55.66338868 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/lanark.html", - "terms_text": "National Library of Scotland - Lanark 1858" - }, - { - "name": "OS Town Plans, Linlithgow 1856 (NLS)", - "type": "tms", - "description": "Detailed town plan of Linlithgow 1856, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/linlithgow/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.61908334, - 55.95549561 - ], - [ - -3.62033259, - 55.98538615 - ], - [ - -3.57838447, - 55.98593047 - ], - [ - -3.57716753, - 55.95603932 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/linlithgow.html", - "terms_text": "National Library of Scotland - Linlithgow 1856" - }, - { - "name": "OS Town Plans, Mayole 1856-1857 (NLS)", - "type": "tms", - "description": "Detailed town plan of Mayole 1856-1857, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/maybole/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.69086378, - 55.34340178 - ], - [ - -4.6918884, - 55.35849731 - ], - [ - -4.67089656, - 55.35895813 - ], - [ - -4.6698799, - 55.34386234 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/maybole.html", - "terms_text": "National Library of Scotland - Mayole 1856-1857" - }, - { - "name": "OS Town Plans, Montrose 1861-1862 (NLS)", - "type": "tms", - "description": "Detailed town plan of Montrose 1861-1862, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/montrose/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.4859324, - 56.69645192 - ], - [ - -2.4862257, - 56.71918799 - ], - [ - -2.45405417, - 56.71930941 - ], - [ - -2.45378027, - 56.69657324 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/montrose.html", - "terms_text": "National Library of Scotland - Montrose 1861-1862" - }, - { - "name": "OS Town Plans, Musselburgh 1853 (NLS)", - "type": "tms", - "description": "Detailed town plan of Musselburgh 1853, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/musselburgh1853/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.07888558, - 55.93371953 - ], - [ - -3.07954151, - 55.95729781 - ], - [ - -3.03240684, - 55.95770177 - ], - [ - -3.03177952, - 55.93412313 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/musselburgh_1.html", - "terms_text": "National Library of Scotland - Musselburgh 1853" - }, - { - "name": "OS Town Plans, Musselburgh 1893 (NLS)", - "type": "tms", - "description": "Detailed town plan of Musselburgh 1893, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/musselburgh1893/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.07017621, - 55.92694102 - ], - [ - -3.07078961, - 55.94917624 - ], - [ - -3.03988228, - 55.94944099 - ], - [ - -3.03928658, - 55.92720556 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/musselburgh_2.html", - "terms_text": "National Library of Scotland - Musselburgh 1893" - }, - { - "name": "OS Town Plans, Nairn 1867-1868 (NLS)", - "type": "tms", - "description": "Detailed town plan of Nairn 1867-1868, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/nairn/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.88433907, - 57.57899149 - ], - [ - -3.88509905, - 57.5936822 - ], - [ - -3.85931017, - 57.59406441 - ], - [ - -3.85856057, - 57.57937348 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/nairn.html", - "terms_text": "National Library of Scotland - Nairn 1867-1868" - }, - { - "name": "OS Town Plans, Oban 1867-1868 (NLS)", - "type": "tms", - "description": "Detailed town plan of Oban 1867-1868, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/oban/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -5.49548449, - 56.39080407 - ], - [ - -5.49836627, - 56.42219039 - ], - [ - -5.45383984, - 56.42343933 - ], - [ - -5.45099456, - 56.39205153 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/oban.html", - "terms_text": "National Library of Scotland - Oban 1867-1868" - }, - { - "name": "OS Town Plans, Peebles 1856 (NLS)", - "type": "tms", - "description": "Detailed town plan of Peebles 1856, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/peebles/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.20921287, - 55.63635834 - ], - [ - -3.20990288, - 55.65873817 - ], - [ - -3.17896372, - 55.65903935 - ], - [ - -3.17829135, - 55.63665927 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/peebles.html", - "terms_text": "National Library of Scotland - Peebles 1856" - }, - { - "name": "OS Town Plans, Perth 1860 (NLS)", - "type": "tms", - "description": "Detailed town plan of Perth 1860, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/perth/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.45302495, - 56.37794226 - ], - [ - -3.45416664, - 56.40789908 - ], - [ - -3.41187528, - 56.40838777 - ], - [ - -3.41076676, - 56.3784304 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/perth.html", - "terms_text": "National Library of Scotland - Perth 1860" - }, - { - "name": "OS Town Plans, Peterhead 1868 (NLS)", - "type": "tms", - "description": "Detailed town plan of Peterhead 1868, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/peterhead/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -1.80513747, - 57.48046916 - ], - [ - -1.80494005, - 57.51755411 - ], - [ - -1.75135366, - 57.51746003 - ], - [ - -1.75160539, - 57.48037522 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/peterhead", - "terms_text": "National Library of Scotland - Peterhead 1868" - }, - { - "name": "OS Town Plans, Port Glasgow 1856-1857 (NLS)", - "type": "tms", - "description": "Detailed town plan of Port Glasgow 1856-1857, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/portglasgow/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.70063209, - 55.91995983 - ], - [ - -4.70222026, - 55.9427679 - ], - [ - -4.67084958, - 55.94345237 - ], - [ - -4.6692798, - 55.92064372 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/port-glasgow.html", - "terms_text": "National Library of Scotland - Port Glasgow 1856-1857" - }, - { - "name": "OS Town Plans, Portobello 1893-1894 (NLS)", - "type": "tms", - "description": "Detailed town plan of Portobello 1893-1894, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/portobello/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.12437919, - 55.93846889 - ], - [ - -3.1250234, - 55.96068605 - ], - [ - -3.09394827, - 55.96096586 - ], - [ - -3.09332184, - 55.93874847 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/portobello.html", - "terms_text": "National Library of Scotland - Portobello 1893-1894" - }, - { - "name": "OS Town Plans, Rothesay 1862-1863 (NLS)", - "type": "tms", - "description": "Detailed town plan of Rothesay 1862-1863, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/rothesay/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -5.06449893, - 55.82864114 - ], - [ - -5.06569719, - 55.84385927 - ], - [ - -5.04413114, - 55.84439519 - ], - [ - -5.04294127, - 55.82917676 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/rothesay.html", - "terms_text": "National Library of Scotland - Rothesay 1862-1863" - }, - { - "name": "OS Town Plans, Selkirk 1865 (NLS)", - "type": "tms", - "description": "Detailed town plan of Selkirk 1865, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/selkirk/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.85998582, - 55.53499576 - ], - [ - -2.86063259, - 55.56459732 - ], - [ - -2.82003242, - 55.56487574 - ], - [ - -2.81941615, - 55.53527387 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/selkirk.html", - "terms_text": "National Library of Scotland - Selkirk 1865" - }, - { - "name": "OS Town Plans, St Andrews 1854 (NLS)", - "type": "tms", - "description": "Detailed town plan of St Andrews 1854, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/standrews1854/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.81342686, - 56.32097352 - ], - [ - -2.81405804, - 56.3506222 - ], - [ - -2.77243712, - 56.35088865 - ], - [ - -2.77183819, - 56.32123967 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/st-andrews_1.html", - "terms_text": "National Library of Scotland - St Andrews 1854" - }, - { - "name": "OS Town Plans, St Andrews 1893 (NLS)", - "type": "tms", - "description": "Detailed town plan of St Andrews 1893, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/standrews1893/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.81545583, - 56.31861733 - ], - [ - -2.81609919, - 56.3487653 - ], - [ - -2.77387785, - 56.34903619 - ], - [ - -2.77326775, - 56.31888792 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/st-andrews_2.html", - "terms_text": "National Library of Scotland - St Andrews 1893" - }, - { - "name": "OS Town Plans, Stirling 1858 (NLS)", - "type": "tms", - "description": "Detailed town plan of Stirling 1858, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/stirling/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.95768489, - 56.10754239 - ], - [ - -3.95882978, - 56.13007142 - ], - [ - -3.92711024, - 56.13057046 - ], - [ - -3.92598386, - 56.10804101 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/stirling.html", - "terms_text": "National Library of Scotland - Stirling 1858" - }, - { - "name": "OS Town Plans, Stonehaven 1864 (NLS)", - "type": "tms", - "description": "Detailed town plan of Stonehaven 1864, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/stonehaven/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -2.220167, - 56.9565098 - ], - [ - -2.2202543, - 56.97129283 - ], - [ - -2.19924399, - 56.9713281 - ], - [ - -2.19916501, - 56.95654504 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/stonehaven.html", - "terms_text": "National Library of Scotland - Stonehaven 1864" - }, - { - "name": "OS Town Plans, Stranraer 1847 (NLS)", - "type": "tms", - "description": "Detailed town plan of Stranraer 1847, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/stranraer1847/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -5.04859743, - 54.8822997 - ], - [ - -5.0508954, - 54.91268061 - ], - [ - -5.0095373, - 54.91371278 - ], - [ - -5.00727037, - 54.88333071 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/stranraer_1.html", - "terms_text": "National Library of Scotland - Stranraer 1847" - }, - { - "name": "OS Town Plans, Stranraer 1863-1877 (NLS)", - "type": "tms", - "description": "Detailed town plan of Stranraer 1863-1877, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/stranraer1867/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -5.04877289, - 54.88228699 - ], - [ - -5.05107324, - 54.9126976 - ], - [ - -5.00947337, - 54.91373582 - ], - [ - -5.00720427, - 54.88332405 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/stranraer_1a.html", - "terms_text": "National Library of Scotland - Stranraer 1863-1877" - }, - { - "name": "OS Town Plans, Stranraer 1893 (NLS)", - "type": "tms", - "description": "Detailed town plan of Stranraer 1893, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/stranraer1893/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -5.04418424, - 54.89773858 - ], - [ - -5.04511026, - 54.90999885 - ], - [ - -5.0140499, - 54.91077389 - ], - [ - -5.0131333, - 54.89851327 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/stranraer_2.html", - "terms_text": "National Library of Scotland - Stranraer 1893" - }, - { - "name": "OS Town Plans, Strathaven 1858 (NLS)", - "type": "tms", - "description": "Detailed town plan of Strathaven 1858, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/strathaven/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.06914872, - 55.67242091 - ], - [ - -4.06954357, - 55.67989707 - ], - [ - -4.05917487, - 55.6800715 - ], - [ - -4.05878199, - 55.67259529 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/strathaven.html", - "terms_text": "National Library of Scotland - Strathaven 1858" - }, - { - "name": "OS Town Plans, Wick 1872 (NLS)", - "type": "tms", - "description": "Detailed town plan of Wick 1872, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/wick/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -3.11470001, - 58.41344839 - ], - [ - -3.11588837, - 58.45101446 - ], - [ - -3.05949843, - 58.45149284 - ], - [ - -3.05837008, - 58.41392606 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/wick.html", - "terms_text": "National Library of Scotland - Wick 1872" - }, - { - "name": "OS Town Plans, Wigtown 1848 (NLS)", - "type": "tms", - "description": "Detailed town plan of Wigtown 1848, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/wigtown1848/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.45235587, - 54.8572296 - ], - [ - -4.45327284, - 54.87232603 - ], - [ - -4.43254469, - 54.87274317 - ], - [ - -4.43163545, - 54.85764651 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/wigtown_1.html", - "terms_text": "National Library of Scotland - Wigtown 1848" - }, - { - "name": "OS Town Plans, Wigtown 1894 (NLS)", - "type": "tms", - "description": "Detailed town plan of Wigtown 1894, courtesy of National Library of Scotland.", - "template": "http://geo.nls.uk/maps/towns/wigtown1894/{zoom}/{x}/{-y}.png", - "scaleExtent": [ - 13, - 20 - ], - "polygon": [ - [ - [ - -4.45233361, - 54.85721131 - ], - [ - -4.45325423, - 54.87236807 - ], - [ - -4.43257837, - 54.87278416 - ], - [ - -4.43166549, - 54.85762716 - ] - ] - ], - "terms_url": "http://maps.nls.uk/townplans/wigtown_2.html", - "terms_text": "National Library of Scotland - Wigtown 1894" - }, - { - "name": "OpenPT Map (overlay)", - "type": "tms", - "template": "http://openptmap.de/tiles/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 5, - 16 - ], - "polygon": [ - [ - [ - 6.4901072, - 53.665658 - ], - [ - 8.5665347, - 53.9848257 - ], - [ - 8.1339457, - 54.709715 - ], - [ - 8.317796, - 55.0952362 - ], - [ - 10.1887438, - 54.7783834 - ], - [ - 10.6321475, - 54.4778841 - ], - [ - 11.2702164, - 54.6221504 - ], - [ - 11.681176, - 54.3709243 - ], - [ - 12.0272473, - 54.3898199 - ], - [ - 13.3250145, - 54.8531617 - ], - [ - 13.9198245, - 54.6972173 - ], - [ - 14.2118221, - 54.1308273 - ], - [ - 14.493005, - 53.2665063 - ], - [ - 14.1577485, - 52.8766495 - ], - [ - 14.7525584, - 52.5819369 - ], - [ - 15.0986297, - 51.0171541 - ], - [ - 14.9364088, - 50.8399279 - ], - [ - 14.730929, - 50.7920977 - ], - [ - 14.4389313, - 50.8808862 - ], - [ - 12.9573138, - 50.3939044 - ], - [ - 12.51391, - 50.3939044 - ], - [ - 12.3084302, - 50.1173237 - ], - [ - 12.6112425, - 49.9088337 - ], - [ - 12.394948, - 49.7344006 - ], - [ - 12.7734634, - 49.4047626 - ], - [ - 14.1469337, - 48.6031036 - ], - [ - 14.6768553, - 48.6531391 - ], - [ - 15.0661855, - 49.0445497 - ], - [ - 16.2666202, - 48.7459305 - ], - [ - 16.4937294, - 48.8741286 - ], - [ - 16.904689, - 48.7173975 - ], - [ - 16.9371332, - 48.5315383 - ], - [ - 16.8384693, - 48.3823161 - ], - [ - 17.2017097, - 48.010204 - ], - [ - 17.1214145, - 47.6997605 - ], - [ - 16.777292, - 47.6585709 - ], - [ - 16.6090543, - 47.7460598 - ], - [ - 16.410228, - 47.6637214 - ], - [ - 16.7352326, - 47.6147714 - ], - [ - 16.5555242, - 47.3589738 - ], - [ - 16.4790525, - 46.9768539 - ], - [ - 16.0355168, - 46.8096295 - ], - [ - 16.0508112, - 46.6366332 - ], - [ - 14.9572663, - 46.6313822 - ], - [ - 14.574908, - 46.3892866 - ], - [ - 12.3954655, - 46.6891149 - ], - [ - 12.1507562, - 47.0550608 - ], - [ - 11.1183887, - 46.9142058 - ], - [ - 11.0342699, - 46.7729797 - ], - [ - 10.4836739, - 46.8462544 - ], - [ - 10.4607324, - 46.5472973 - ], - [ - 10.1013156, - 46.5735879 - ], - [ - 10.2007287, - 46.1831867 - ], - [ - 9.8948421, - 46.3629068 - ], - [ - 9.5966026, - 46.2889758 - ], - [ - 9.2983631, - 46.505206 - ], - [ - 9.2830687, - 46.2572605 - ], - [ - 9.0536537, - 45.7953255 - ], - [ - 8.4265861, - 46.2466846 - ], - [ - 8.4418804, - 46.4736161 - ], - [ - 7.8759901, - 45.9284607 - ], - [ - 7.0959791, - 45.8645956 - ], - [ - 6.7747981, - 46.1620044 - ], - [ - 6.8206811, - 46.4051083 - ], - [ - 6.5453831, - 46.4578142 - ], - [ - 6.3312624, - 46.3840116 - ], - [ - 6.3847926, - 46.2466846 - ], - [ - 5.8953739, - 46.0878021 - ], - [ - 6.1171418, - 46.3681838 - ], - [ - 6.0942003, - 46.5998657 - ], - [ - 6.4383228, - 46.7782169 - ], - [ - 6.4306756, - 46.9298747 - ], - [ - 7.0806847, - 47.3460216 - ], - [ - 6.8436226, - 47.3719227 - ], - [ - 6.9965659, - 47.5012373 - ], - [ - 7.1800979, - 47.5064033 - ], - [ - 7.2336281, - 47.439206 - ], - [ - 7.4553959, - 47.4805683 - ], - [ - 7.7842241, - 48.645735 - ], - [ - 8.1971711, - 49.0282701 - ], - [ - 7.6006921, - 49.0382974 - ], - [ - 7.4477487, - 49.1634679 - ], - [ - 7.2030394, - 49.1034255 - ], - [ - 6.6677378, - 49.1634679 - ], - [ - 6.6371491, - 49.3331933 - ], - [ - 6.3542039, - 49.4576194 - ], - [ - 6.5453831, - 49.8043366 - ], - [ - 6.2471436, - 49.873384 - ], - [ - 6.0789059, - 50.1534883 - ], - [ - 6.3618511, - 50.3685934 - ], - [ - 6.0865531, - 50.7039632 - ], - [ - 5.8800796, - 51.0513752 - ], - [ - 6.1247889, - 51.1618085 - ], - [ - 6.1936134, - 51.491527 - ], - [ - 5.9641984, - 51.7526501 - ], - [ - 6.0253758, - 51.8897286 - ], - [ - 6.4536171, - 51.8661241 - ], - [ - 6.8436226, - 51.9557552 - ], - [ - 6.6906793, - 52.0499105 - ], - [ - 7.0042131, - 52.2282603 - ], - [ - 7.0195074, - 52.4525245 - ], - [ - 6.6983264, - 52.4665032 - ], - [ - 6.6906793, - 52.6524628 - ], - [ - 7.0348017, - 52.6385432 - ], - [ - 7.0730376, - 52.8330151 - ], - [ - 7.2183337, - 52.9852064 - ], - [ - 7.1953922, - 53.3428087 - ], - [ - 7.0042131, - 53.3291098 - ] - ] - ], - "terms_url": "http://openstreetmap.org/", - "terms_text": "© OpenStreetMap contributors, CC-BY-SA" - }, - { - "name": "OpenStreetMap (Mapnik)", - "type": "tms", - "description": "The default OpenStreetMap layer.", - "template": "http://tile.openstreetmap.org/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 0, - 19 - ], - "terms_url": "http://openstreetmap.org/", - "terms_text": "© OpenStreetMap contributors, CC-BY-SA", - "id": "MAPNIK", - "default": true - }, - { - "name": "OpenStreetMap GPS traces", - "type": "tms", - "description": "Public GPS traces uploaded to OpenStreetMap.", - "template": "http://{switch:a,b,c}.gps-tile.openstreetmap.org/lines/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 0, - 20 - ], - "terms_url": "http://www.openstreetmap.org/copyright", - "terms_text": "© OpenStreetMap contributors", - "terms_html": "© OpenStreetMap contributors. North: South: East: West: ", - "overlay": true - }, - { - "name": "Pangasinán/Bulacan (Phillipines HiRes)", - "type": "tms", - "template": "http://gravitystorm.dev.openstreetmap.org/imagery/philippines/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 12, - 19 - ], - "polygon": [ - [ - [ - 120.336593, - 15.985768 - ], - [ - 120.445995, - 15.984 - ], - [ - 120.446134, - 15.974459 - ], - [ - 120.476464, - 15.974592 - ], - [ - 120.594247, - 15.946832 - ], - [ - 120.598064, - 16.090795 - ], - [ - 120.596537, - 16.197999 - ], - [ - 120.368537, - 16.218527 - ], - [ - 120.347576, - 16.042308 - ], - [ - 120.336593, - 15.985768 - ] - ], - [ - [ - 120.8268, - 15.3658 - ], - [ - 121.2684, - 15.2602 - ], - [ - 121.2699, - 14.7025 - ], - [ - 120.695, - 14.8423 - ] - ] - ] - }, - { - "name": "Slovakia EEA CORINE 2006", - "type": "tms", - "template": "http://www.freemap.sk/tms/clc/{zoom}/{x}/{y}.png", - "polygon": [ - [ - [ - 19.83682, - 49.25529 - ], - [ - 19.80075, - 49.42385 - ], - [ - 19.60437, - 49.48058 - ], - [ - 19.49179, - 49.63961 - ], - [ - 19.21831, - 49.52604 - ], - [ - 19.16778, - 49.42521 - ], - [ - 19.00308, - 49.42236 - ], - [ - 18.97611, - 49.5308 - ], - [ - 18.54685, - 49.51425 - ], - [ - 18.31432, - 49.33818 - ], - [ - 18.15913, - 49.2961 - ], - [ - 18.05564, - 49.11134 - ], - [ - 17.56396, - 48.84938 - ], - [ - 17.17929, - 48.88816 - ], - [ - 17.058, - 48.81105 - ], - [ - 16.90426, - 48.61947 - ], - [ - 16.79685, - 48.38561 - ], - [ - 17.06762, - 48.01116 - ], - [ - 17.32787, - 47.97749 - ], - [ - 17.51699, - 47.82535 - ], - [ - 17.74776, - 47.73093 - ], - [ - 18.29515, - 47.72075 - ], - [ - 18.67959, - 47.75541 - ], - [ - 18.89755, - 47.81203 - ], - [ - 18.79463, - 47.88245 - ], - [ - 18.84318, - 48.04046 - ], - [ - 19.46212, - 48.05333 - ], - [ - 19.62064, - 48.22938 - ], - [ - 19.89585, - 48.09387 - ], - [ - 20.33766, - 48.2643 - ], - [ - 20.55395, - 48.52358 - ], - [ - 20.82335, - 48.55714 - ], - [ - 21.10271, - 48.47096 - ], - [ - 21.45863, - 48.55513 - ], - [ - 21.74536, - 48.31435 - ], - [ - 22.15293, - 48.37179 - ], - [ - 22.61255, - 49.08914 - ], - [ - 22.09997, - 49.23814 - ], - [ - 21.9686, - 49.36363 - ], - [ - 21.6244, - 49.46989 - ], - [ - 21.06873, - 49.46402 - ], - [ - 20.94336, - 49.31088 - ], - [ - 20.73052, - 49.44006 - ], - [ - 20.22804, - 49.41714 - ], - [ - 20.05234, - 49.23052 - ], - [ - 19.83682, - 49.25529 - ] - ] - ], - "terms_url": "http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version-1", - "terms_text": "EEA Corine 2006" - }, - { - "name": "Slovakia EEA GMES Urban Atlas", - "type": "tms", - "template": "http://www.freemap.sk/tms/urbanatlas/{zoom}/{x}/{y}.png", - "polygon": [ - [ - [ - 19.83682, - 49.25529 - ], - [ - 19.80075, - 49.42385 - ], - [ - 19.60437, - 49.48058 - ], - [ - 19.49179, - 49.63961 - ], - [ - 19.21831, - 49.52604 - ], - [ - 19.16778, - 49.42521 - ], - [ - 19.00308, - 49.42236 - ], - [ - 18.97611, - 49.5308 - ], - [ - 18.54685, - 49.51425 - ], - [ - 18.31432, - 49.33818 - ], - [ - 18.15913, - 49.2961 - ], - [ - 18.05564, - 49.11134 - ], - [ - 17.56396, - 48.84938 - ], - [ - 17.17929, - 48.88816 - ], - [ - 17.058, - 48.81105 - ], - [ - 16.90426, - 48.61947 - ], - [ - 16.79685, - 48.38561 - ], - [ - 17.06762, - 48.01116 - ], - [ - 17.32787, - 47.97749 - ], - [ - 17.51699, - 47.82535 - ], - [ - 17.74776, - 47.73093 - ], - [ - 18.29515, - 47.72075 - ], - [ - 18.67959, - 47.75541 - ], - [ - 18.89755, - 47.81203 - ], - [ - 18.79463, - 47.88245 - ], - [ - 18.84318, - 48.04046 - ], - [ - 19.46212, - 48.05333 - ], - [ - 19.62064, - 48.22938 - ], - [ - 19.89585, - 48.09387 - ], - [ - 20.33766, - 48.2643 - ], - [ - 20.55395, - 48.52358 - ], - [ - 20.82335, - 48.55714 - ], - [ - 21.10271, - 48.47096 - ], - [ - 21.45863, - 48.55513 - ], - [ - 21.74536, - 48.31435 - ], - [ - 22.15293, - 48.37179 - ], - [ - 22.61255, - 49.08914 - ], - [ - 22.09997, - 49.23814 - ], - [ - 21.9686, - 49.36363 - ], - [ - 21.6244, - 49.46989 - ], - [ - 21.06873, - 49.46402 - ], - [ - 20.94336, - 49.31088 - ], - [ - 20.73052, - 49.44006 - ], - [ - 20.22804, - 49.41714 - ], - [ - 20.05234, - 49.23052 - ], - [ - 19.83682, - 49.25529 - ] - ] - ], - "terms_url": "http://www.eea.europa.eu/data-and-maps/data/urban-atlas", - "terms_text": "EEA GMES Urban Atlas" - }, - { - "name": "Slovakia Historic Maps", - "type": "tms", - "template": "http://tms.freemap.sk/historicke/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 0, - 12 - ], - "polygon": [ - [ - [ - 16.8196949, - 47.4927236 - ], - [ - 16.8196949, - 49.5030322 - ], - [ - 22.8388318, - 49.5030322 - ], - [ - 22.8388318, - 47.4927236 - ], - [ - 16.8196949, - 47.4927236 - ] - ] - ] - }, - { - "name": "South Africa CD:NGI Aerial", - "type": "tms", - "template": "http://{switch:a,b,c}.aerial.openstreetmap.org.za/ngi-aerial/{zoom}/{x}/{y}.jpg", - "scaleExtent": [ - 1, - 22 - ], - "polygon": [ - [ - [ - 17.8396817, - -32.7983384 - ], - [ - 17.8893509, - -32.6972835 - ], - [ - 18.00364, - -32.6982187 - ], - [ - 18.0991679, - -32.7485251 - ], - [ - 18.2898747, - -32.5526645 - ], - [ - 18.2930182, - -32.0487089 - ], - [ - 18.105455, - -31.6454966 - ], - [ - 17.8529257, - -31.3443951 - ], - [ - 17.5480046, - -30.902171 - ], - [ - 17.4044506, - -30.6374731 - ], - [ - 17.2493704, - -30.3991663 - ], - [ - 16.9936977, - -29.6543552 - ], - [ - 16.7987996, - -29.19437 - ], - [ - 16.5494139, - -28.8415949 - ], - [ - 16.4498691, - -28.691876 - ], - [ - 16.4491046, - -28.5515766 - ], - [ - 16.6002551, - -28.4825663 - ], - [ - 16.7514057, - -28.4486958 - ], - [ - 16.7462192, - -28.2458973 - ], - [ - 16.8855148, - -28.04729 - ], - [ - 16.9929502, - -28.0244005 - ], - [ - 17.0529659, - -28.0257086 - ], - [ - 17.1007562, - -28.0338839 - ], - [ - 17.2011527, - -28.0930546 - ], - [ - 17.2026346, - -28.2328424 - ], - [ - 17.2474611, - -28.2338215 - ], - [ - 17.2507953, - -28.198892 - ], - [ - 17.3511919, - -28.1975861 - ], - [ - 17.3515624, - -28.2442655 - ], - [ - 17.4015754, - -28.2452446 - ], - [ - 17.4149122, - -28.3489751 - ], - [ - 17.4008345, - -28.547997 - ], - [ - 17.4526999, - -28.5489733 - ], - [ - 17.4512071, - -28.6495106 - ], - [ - 17.4983599, - -28.6872054 - ], - [ - 17.6028204, - -28.6830048 - ], - [ - 17.6499732, - -28.6967928 - ], - [ - 17.6525928, - -28.7381457 - ], - [ - 17.801386, - -28.7381457 - ], - [ - 17.9994276, - -28.7560602 - ], - [ - 18.0002748, - -28.7956172 - ], - [ - 18.1574507, - -28.8718055 - ], - [ - 18.5063811, - -28.8718055 - ], - [ - 18.6153564, - -28.8295875 - ], - [ - 18.9087513, - -28.8277516 - ], - [ - 19.1046973, - -28.9488548 - ], - [ - 19.1969071, - -28.9378513 - ], - [ - 19.243012, - -28.8516164 - ], - [ - 19.2314858, - -28.802963 - ], - [ - 19.2587296, - -28.7009928 - ], - [ - 19.4431493, - -28.6973163 - ], - [ - 19.5500289, - -28.4958332 - ], - [ - 19.6967264, - -28.4939914 - ], - [ - 19.698822, - -28.4479358 - ], - [ - 19.8507587, - -28.4433291 - ], - [ - 19.8497109, - -28.4027818 - ], - [ - 19.9953605, - -28.399095 - ], - [ - 19.9893671, - -24.7497859 - ], - [ - 20.2916682, - -24.9192346 - ], - [ - 20.4724562, - -25.1501701 - ], - [ - 20.6532441, - -25.4529449 - ], - [ - 20.733265, - -25.6801957 - ], - [ - 20.8281046, - -25.8963498 - ], - [ - 20.8429232, - -26.215851 - ], - [ - 20.6502804, - -26.4840868 - ], - [ - 20.6532441, - -26.8204869 - ], - [ - 21.0889134, - -26.846933 - ], - [ - 21.6727695, - -26.8389998 - ], - [ - 21.7765003, - -26.6696268 - ], - [ - 21.9721069, - -26.6431395 - ], - [ - 22.2803355, - -26.3274702 - ], - [ - 22.5707817, - -26.1333967 - ], - [ - 22.7752795, - -25.6775246 - ], - [ - 23.0005235, - -25.2761948 - ], - [ - 23.4658301, - -25.2735148 - ], - [ - 23.883717, - -25.597366 - ], - [ - 24.2364017, - -25.613402 - ], - [ - 24.603905, - -25.7896563 - ], - [ - 25.110704, - -25.7389432 - ], - [ - 25.5078447, - -25.6855376 - ], - [ - 25.6441766, - -25.4823781 - ], - [ - 25.8419267, - -24.7805437 - ], - [ - 25.846641, - -24.7538456 - ], - [ - 26.3928487, - -24.6332894 - ], - [ - 26.4739066, - -24.5653312 - ], - [ - 26.5089966, - -24.4842437 - ], - [ - 26.5861946, - -24.4075775 - ], - [ - 26.7300635, - -24.3014458 - ], - [ - 26.8567384, - -24.2499463 - ], - [ - 26.8574402, - -24.1026901 - ], - [ - 26.9215471, - -23.8990957 - ], - [ - 26.931831, - -23.8461891 - ], - [ - 26.9714827, - -23.6994344 - ], - [ - 27.0006074, - -23.6367644 - ], - [ - 27.0578041, - -23.6052574 - ], - [ - 27.1360547, - -23.5203437 - ], - [ - 27.3339623, - -23.3973792 - ], - [ - 27.5144057, - -23.3593929 - ], - [ - 27.5958145, - -23.2085465 - ], - [ - 27.8098634, - -23.0994957 - ], - [ - 27.8828506, - -23.0620496 - ], - [ - 27.9382928, - -22.9496487 - ], - [ - 28.0407556, - -22.8255118 - ], - [ - 28.2056786, - -22.6552861 - ], - [ - 28.3397223, - -22.5639374 - ], - [ - 28.4906093, - -22.560697 - ], - [ - 28.6108769, - -22.5400248 - ], - [ - 28.828175, - -22.4550173 - ], - [ - 28.9285324, - -22.4232328 - ], - [ - 28.9594116, - -22.3090081 - ], - [ - 29.0162574, - -22.208335 - ], - [ - 29.2324117, - -22.1693453 - ], - [ - 29.3531213, - -22.1842926 - ], - [ - 29.6548952, - -22.1186426 - ], - [ - 29.7777102, - -22.1361956 - ], - [ - 29.9292989, - -22.1849425 - ], - [ - 30.1166795, - -22.2830348 - ], - [ - 30.2563377, - -22.2914767 - ], - [ - 30.3033582, - -22.3395204 - ], - [ - 30.5061784, - -22.3057617 - ], - [ - 30.8374279, - -22.284983 - ], - [ - 31.0058599, - -22.3077095 - ], - [ - 31.1834152, - -22.3232913 - ], - [ - 31.2930586, - -22.3674647 - ], - [ - 31.5680579, - -23.1903385 - ], - [ - 31.5568311, - -23.4430809 - ], - [ - 31.6931122, - -23.6175209 - ], - [ - 31.7119696, - -23.741136 - ], - [ - 31.7774743, - -23.8800628 - ], - [ - 31.8886337, - -23.9481098 - ], - [ - 31.9144386, - -24.1746736 - ], - [ - 31.9948307, - -24.3040878 - ], - [ - 32.0166656, - -24.4405988 - ], - [ - 32.0077331, - -24.6536578 - ], - [ - 32.019643, - -24.9140701 - ], - [ - 32.035523, - -25.0849767 - ], - [ - 32.019643, - -25.3821442 - ], - [ - 31.9928457, - -25.4493771 - ], - [ - 31.9997931, - -25.5165725 - ], - [ - 32.0057481, - -25.6078978 - ], - [ - 32.0057481, - -25.6624806 - ], - [ - 31.9362735, - -25.8403721 - ], - [ - 31.9809357, - -25.9546537 - ], - [ - 31.8687838, - -26.0037251 - ], - [ - 31.4162062, - -25.7277683 - ], - [ - 31.3229117, - -25.7438611 - ], - [ - 31.2504595, - -25.8296526 - ], - [ - 31.1393001, - -25.9162746 - ], - [ - 31.1164727, - -25.9912361 - ], - [ - 30.9656135, - -26.2665756 - ], - [ - 30.8921689, - -26.3279703 - ], - [ - 30.8534616, - -26.4035568 - ], - [ - 30.8226943, - -26.4488849 - ], - [ - 30.8022583, - -26.5240694 - ], - [ - 30.8038369, - -26.8082089 - ], - [ - 30.9020939, - -26.7807451 - ], - [ - 30.9100338, - -26.8489495 - ], - [ - 30.9824859, - -26.9082627 - ], - [ - 30.976531, - -27.0029222 - ], - [ - 31.0034434, - -27.0441587 - ], - [ - 31.1543322, - -27.1980416 - ], - [ - 31.5015607, - -27.311117 - ], - [ - 31.9700183, - -27.311117 - ], - [ - 31.9700183, - -27.120472 - ], - [ - 31.9769658, - -27.050664 - ], - [ - 32.0002464, - -26.7983892 - ], - [ - 32.1069826, - -26.7984645 - ], - [ - 32.3114546, - -26.8479493 - ], - [ - 32.899986, - -26.8516059 - ], - [ - 32.886091, - -26.9816971 - ], - [ - 32.709427, - -27.4785436 - ], - [ - 32.6240724, - -27.7775144 - ], - [ - 32.5813951, - -28.07479 - ], - [ - 32.5387178, - -28.2288046 - ], - [ - 32.4275584, - -28.5021568 - ], - [ - 32.3640388, - -28.5945699 - ], - [ - 32.0702603, - -28.8469827 - ], - [ - 31.9878832, - -28.9069497 - ], - [ - 31.7764818, - -28.969487 - ], - [ - 31.4638459, - -29.2859343 - ], - [ - 31.359634, - -29.3854348 - ], - [ - 31.1680825, - -29.6307408 - ], - [ - 31.064863, - -29.7893535 - ], - [ - 31.0534493, - -29.8470469 - ], - [ - 31.0669933, - -29.8640319 - ], - [ - 31.0455459, - -29.9502017 - ], - [ - 30.9518556, - -30.0033946 - ], - [ - 30.8651833, - -30.1024093 - ], - [ - 30.7244725, - -30.392502 - ], - [ - 30.3556256, - -30.9308873 - ], - [ - 30.0972364, - -31.2458274 - ], - [ - 29.8673136, - -31.4304296 - ], - [ - 29.7409393, - -31.5014699 - ], - [ - 29.481312, - -31.6978686 - ], - [ - 28.8943171, - -32.2898903 - ], - [ - 28.5497137, - -32.5894641 - ], - [ - 28.1436499, - -32.8320732 - ], - [ - 28.0748735, - -32.941689 - ], - [ - 27.8450942, - -33.082869 - ], - [ - 27.3757956, - -33.3860685 - ], - [ - 26.8805407, - -33.6458951 - ], - [ - 26.5916871, - -33.7480756 - ], - [ - 26.4527308, - -33.7935795 - ], - [ - 26.206754, - -33.7548943 - ], - [ - 26.0077897, - -33.7223961 - ], - [ - 25.8055494, - -33.7524272 - ], - [ - 25.7511073, - -33.8006512 - ], - [ - 25.6529079, - -33.8543597 - ], - [ - 25.6529079, - -33.9469768 - ], - [ - 25.7195789, - -34.0040115 - ], - [ - 25.7202807, - -34.0511235 - ], - [ - 25.5508915, - -34.063151 - ], - [ - 25.3504571, - -34.0502627 - ], - [ - 25.2810609, - -34.0020322 - ], - [ - 25.0476316, - -33.9994588 - ], - [ - 24.954724, - -34.0043594 - ], - [ - 24.9496586, - -34.1010363 - ], - [ - 24.8770358, - -34.1506456 - ], - [ - 24.8762914, - -34.2005281 - ], - [ - 24.8532574, - -34.2189562 - ], - [ - 24.7645287, - -34.2017946 - ], - [ - 24.5001356, - -34.2003254 - ], - [ - 24.3486733, - -34.1163824 - ], - [ - 24.1988819, - -34.1019039 - ], - [ - 23.9963377, - -34.0514443 - ], - [ - 23.8017509, - -34.0524332 - ], - [ - 23.7493589, - -34.0111855 - ], - [ - 23.4973536, - -34.009014 - ], - [ - 23.4155191, - -34.0434586 - ], - [ - 23.4154284, - -34.1140433 - ], - [ - 22.9000853, - -34.0993009 - ], - [ - 22.8412418, - -34.0547911 - ], - [ - 22.6470321, - -34.0502627 - ], - [ - 22.6459843, - -34.0072768 - ], - [ - 22.570016, - -34.0064081 - ], - [ - 22.5050499, - -34.0645866 - ], - [ - 22.2519968, - -34.0645866 - ], - [ - 22.2221334, - -34.1014701 - ], - [ - 22.1621197, - -34.1057019 - ], - [ - 22.1712431, - -34.1521766 - ], - [ - 22.1576913, - -34.2180897 - ], - [ - 22.0015632, - -34.2172232 - ], - [ - 21.9496952, - -34.3220009 - ], - [ - 21.8611528, - -34.4007145 - ], - [ - 21.5614708, - -34.4020114 - ], - [ - 21.5468011, - -34.3661242 - ], - [ - 21.501744, - -34.3669892 - ], - [ - 21.5006961, - -34.4020114 - ], - [ - 21.4194886, - -34.4465247 - ], - [ - 21.1978706, - -34.4478208 - ], - [ - 21.0988193, - -34.3991325 - ], - [ - 21.0033746, - -34.3753872 - ], - [ - 20.893192, - -34.3997115 - ], - [ - 20.8976647, - -34.4854003 - ], - [ - 20.7446802, - -34.4828092 - ], - [ - 20.5042011, - -34.486264 - ], - [ - 20.2527197, - -34.701477 - ], - [ - 20.0803502, - -34.8361855 - ], - [ - 19.9923317, - -34.8379056 - ], - [ - 19.899074, - -34.8275845 - ], - [ - 19.8938348, - -34.7936018 - ], - [ - 19.5972963, - -34.7961833 - ], - [ - 19.3929677, - -34.642015 - ], - [ - 19.2877095, - -34.6404784 - ], - [ - 19.2861377, - -34.5986563 - ], - [ - 19.3474363, - -34.5244458 - ], - [ - 19.3285256, - -34.4534372 - ], - [ - 19.098001, - -34.449981 - ], - [ - 19.0725583, - -34.3802371 - ], - [ - 19.0023531, - -34.3525593 - ], - [ - 18.9520568, - -34.3949373 - ], - [ - 18.7975006, - -34.3936403 - ], - [ - 18.7984174, - -34.1016376 - ], - [ - 18.501748, - -34.1015292 - ], - [ - 18.4999545, - -34.3616945 - ], - [ - 18.4477325, - -34.3620007 - ], - [ - 18.4479944, - -34.3522691 - ], - [ - 18.3974362, - -34.3514041 - ], - [ - 18.3971742, - -34.3022959 - ], - [ - 18.3565705, - -34.3005647 - ], - [ - 18.3479258, - -34.2020436 - ], - [ - 18.2972095, - -34.1950274 - ], - [ - 18.2951139, - -33.9937138 - ], - [ - 18.3374474, - -33.9914079 - ], - [ - 18.3476638, - -33.8492427 - ], - [ - 18.3479258, - -33.781555 - ], - [ - 18.4124718, - -33.7448849 - ], - [ - 18.3615477, - -33.6501624 - ], - [ - 18.2992013, - -33.585591 - ], - [ - 18.2166839, - -33.448872 - ], - [ - 18.1389858, - -33.3974083 - ], - [ - 17.9473472, - -33.1602647 - ], - [ - 17.8855247, - -33.0575732 - ], - [ - 17.8485884, - -32.9668505 - ], - [ - 17.8396817, - -32.8507302 - ] - ] - ] - }, - { - "name": "South Tyrol Orthofoto 2011", - "type": "tms", - "template": "http://sdi.provincia.bz.it/geoserver/gwc/service/tms/1.0.0/WMTS_OF2011_APB-PAB@GoogleMapsCompatible@png8/{z}/{x}/{-y}.png", - "polygon": [ - [ - [ - 10.373383, - 46.213553 - ], - [ - 10.373383, - 47.098175 - ], - [ - 12.482758, - 47.098175 - ], - [ - 12.482758, - 46.213553 - ], - [ - 10.373383, - 46.213553 - ] - ] - ], - "id": "sdi.provinz.bz.it-WMTS_OF2011_APB-PAB" - }, - { - "name": "South Tyrol Topomap", - "type": "tms", - "template": "http://sdi.provincia.bz.it/geoserver/gwc/service/tms/1.0.0/WMTS_TOPOMAP_APB-PAB@GoogleMapsCompatible@png8/{z}/{x}/{-y}.png", - "polygon": [ - [ - [ - 10.373383, - 46.213553 - ], - [ - 10.373383, - 47.098175 - ], - [ - 12.482758, - 47.098175 - ], - [ - 12.482758, - 46.213553 - ], - [ - 10.373383, - 46.213553 - ] - ] - ], - "id": "sdi.provinz.bz.it-WMTS_TOPOMAP_APB-PAB" - }, - { - "name": "Stadt Uster Orthophoto 2008 10cm", - "type": "tms", - "template": "http://mapproxy.sosm.ch:8080/tiles/uster/EPSG900913/{zoom}/{x}/{y}.png?origin=nw", - "polygon": [ - [ - [ - 8.6, - 47.31 - ], - [ - 8.6, - 47.39 - ], - [ - 8.77, - 47.39 - ], - [ - 8.77, - 47.31 - ], - [ - 8.6, - 47.31 - ] - ] - ], - "terms_text": "Stadt Uster Vermessung Orthophoto 2008" - }, - { - "name": "Stevns (Denmark)", - "type": "tms", - "template": "http://{switch:a,b,c}.tile.openstreetmap.dk/stevns/2009/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 0, - 20 - ], - "polygon": [ - [ - [ - 12.0913942, - 55.3491574 - ], - [ - 12.0943104, - 55.3842256 - ], - [ - 12.1573875, - 55.3833103 - ], - [ - 12.1587287, - 55.4013326 - ], - [ - 12.1903468, - 55.400558 - ], - [ - 12.1931411, - 55.4364665 - ], - [ - 12.2564251, - 55.4347995 - ], - [ - 12.2547073, - 55.4168882 - ], - [ - 12.3822489, - 55.4134349 - ], - [ - 12.3795942, - 55.3954143 - ], - [ - 12.4109213, - 55.3946958 - ], - [ - 12.409403, - 55.3766417 - ], - [ - 12.4407807, - 55.375779 - ], - [ - 12.4394142, - 55.3578314 - ], - [ - 12.4707413, - 55.3569971 - ], - [ - 12.4629475, - 55.2672214 - ], - [ - 12.4315633, - 55.2681491 - ], - [ - 12.430045, - 55.2502103 - ], - [ - 12.3672011, - 55.2519673 - ], - [ - 12.3656858, - 55.2340267 - ], - [ - 12.2714604, - 55.2366031 - ], - [ - 12.2744467, - 55.272476 - ], - [ - 12.2115654, - 55.2741475 - ], - [ - 12.2130078, - 55.2920322 - ], - [ - 12.1815665, - 55.2928638 - ], - [ - 12.183141, - 55.3107091 - ], - [ - 12.2144897, - 55.3100981 - ], - [ - 12.2159927, - 55.3279764 - ], - [ - 12.1214458, - 55.3303379 - ], - [ - 12.1229489, - 55.3483291 - ] - ] - ], - "terms_text": "Stevns Kommune" - }, - { - "name": "Surrey Air Survey", - "type": "tms", - "template": "http://gravitystorm.dev.openstreetmap.org/surrey/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 8, - 19 - ], - "polygon": [ - [ - [ - -0.752478, - 51.0821941 - ], - [ - -0.7595183, - 51.0856254 - ], - [ - -0.8014342, - 51.1457917 - ], - [ - -0.8398864, - 51.1440686 - ], - [ - -0.8357665, - 51.1802397 - ], - [ - -0.8529549, - 51.2011266 - ], - [ - -0.8522683, - 51.2096231 - ], - [ - -0.8495217, - 51.217903 - ], - [ - -0.8266907, - 51.2403696 - ], - [ - -0.8120995, - 51.2469248 - ], - [ - -0.7736474, - 51.2459577 - ], - [ - -0.7544213, - 51.2381127 - ], - [ - -0.754078, - 51.233921 - ], - [ - -0.7446366, - 51.2333836 - ], - [ - -0.7430693, - 51.2847178 - ], - [ - -0.751503, - 51.3069524 - ], - [ - -0.7664376, - 51.3121032 - ], - [ - -0.7820588, - 51.3270157 - ], - [ - -0.7815438, - 51.3388135 - ], - [ - -0.7374268, - 51.3720456 - ], - [ - -0.7192307, - 51.3769748 - ], - [ - -0.6795769, - 51.3847961 - ], - [ - -0.6807786, - 51.3901523 - ], - [ - -0.6531411, - 51.3917591 - ], - [ - -0.6301385, - 51.3905808 - ], - [ - -0.6291085, - 51.3970074 - ], - [ - -0.6234437, - 51.3977572 - ], - [ - -0.613144, - 51.4295552 - ], - [ - -0.6002471, - 51.4459121 - ], - [ - -0.5867081, - 51.4445365 - ], - [ - -0.5762368, - 51.453202 - ], - [ - -0.5626755, - 51.4523462 - ], - [ - -0.547741, - 51.4469972 - ], - [ - -0.5372697, - 51.4448575 - ], - [ - -0.537098, - 51.4526671 - ], - [ - -0.5439644, - 51.4545926 - ], - [ - -0.5405312, - 51.4698865 - ], - [ - -0.5309182, - 51.4760881 - ], - [ - -0.5091172, - 51.4744843 - ], - [ - -0.5086022, - 51.4695657 - ], - [ - -0.4900628, - 51.4682825 - ], - [ - -0.4526406, - 51.4606894 - ], - [ - -0.4486924, - 51.4429316 - ], - [ - -0.4414826, - 51.4418616 - ], - [ - -0.4418259, - 51.4369394 - ], - [ - -0.4112702, - 51.4380095 - ], - [ - -0.4014855, - 51.4279498 - ], - [ - -0.3807145, - 51.4262372 - ], - [ - -0.3805428, - 51.4161749 - ], - [ - -0.3491288, - 51.4138195 - ], - [ - -0.3274994, - 51.4037544 - ], - [ - -0.3039818, - 51.3990424 - ], - [ - -0.3019219, - 51.3754747 - ], - [ - -0.309475, - 51.369688 - ], - [ - -0.3111916, - 51.3529669 - ], - [ - -0.2955704, - 51.3541462 - ], - [ - -0.2923089, - 51.3673303 - ], - [ - -0.2850991, - 51.3680805 - ], - [ - -0.2787476, - 51.3771891 - ], - [ - -0.2655297, - 51.3837247 - ], - [ - -0.2411538, - 51.3847961 - ], - [ - -0.2123147, - 51.3628288 - ], - [ - -0.2107697, - 51.3498578 - ], - [ - -0.190857, - 51.3502867 - ], - [ - -0.1542931, - 51.3338802 - ], - [ - -0.1496583, - 51.3057719 - ], - [ - -0.1074296, - 51.2966491 - ], - [ - -0.0887185, - 51.3099571 - ], - [ - -0.0878602, - 51.3220811 - ], - [ - -0.0652009, - 51.3215448 - ], - [ - -0.0641709, - 51.3264793 - ], - [ - -0.0519829, - 51.3263721 - ], - [ - -0.0528412, - 51.334631 - ], - [ - -0.0330779, - 51.3430876 - ], - [ - 0.0019187, - 51.3376339 - ], - [ - 0.0118751, - 51.3281956 - ], - [ - 0.013935, - 51.2994398 - ], - [ - 0.0202865, - 51.2994398 - ], - [ - 0.0240631, - 51.3072743 - ], - [ - 0.0331611, - 51.3086694 - ], - [ - 0.0455207, - 51.30545 - ], - [ - 0.0523872, - 51.2877392 - ], - [ - 0.0616569, - 51.2577764 - ], - [ - 0.0640602, - 51.2415518 - ], - [ - 0.0462074, - 51.2126342 - ], - [ - 0.0407142, - 51.2109136 - ], - [ - 0.0448341, - 51.1989753 - ], - [ - 0.0494689, - 51.1997283 - ], - [ - 0.0558204, - 51.1944573 - ], - [ - 0.0611419, - 51.1790713 - ], - [ - 0.0623435, - 51.1542061 - ], - [ - 0.0577087, - 51.1417146 - ], - [ - 0.0204582, - 51.1365447 - ], - [ - -0.0446015, - 51.1336364 - ], - [ - -0.1566964, - 51.1352522 - ], - [ - -0.1572114, - 51.1290043 - ], - [ - -0.2287942, - 51.1183379 - ], - [ - -0.2473336, - 51.1183379 - ], - [ - -0.2500802, - 51.1211394 - ], - [ - -0.299347, - 51.1137042 - ], - [ - -0.3221779, - 51.1119799 - ], - [ - -0.3223496, - 51.1058367 - ], - [ - -0.3596001, - 51.1019563 - ], - [ - -0.3589135, - 51.1113333 - ], - [ - -0.3863793, - 51.1117644 - ], - [ - -0.3869014, - 51.1062516 - ], - [ - -0.4281001, - 51.0947174 - ], - [ - -0.4856784, - 51.0951554 - ], - [ - -0.487135, - 51.0872266 - ], - [ - -0.5297404, - 51.0865404 - ], - [ - -0.5302259, - 51.0789914 - ], - [ - -0.61046, - 51.076551 - ], - [ - -0.6099745, - 51.080669 - ], - [ - -0.6577994, - 51.0792202 - ], - [ - -0.6582849, - 51.0743394 - ], - [ - -0.6836539, - 51.0707547 - ], - [ - -0.6997979, - 51.070831 - ], - [ - -0.7296581, - 51.0744919 - ] - ] - ] - }, - { - "name": "Toulouse - Orthophotoplan 2007", - "type": "tms", - "template": "http://wms.openstreetmap.fr/tms/1.0.0/toulouse_ortho2007/{zoom}/{x}/{y}", - "scaleExtent": [ - 0, - 22 - ], - "polygon": [ - [ - [ - 1.1919978, - 43.6328791 - ], - [ - 1.2015377, - 43.6329729 - ], - [ - 1.2011107, - 43.6554932 - ], - [ - 1.2227985, - 43.6557029 - ], - [ - 1.2226231, - 43.6653353 - ], - [ - 1.2275341, - 43.6653849 - ], - [ - 1.2275417, - 43.6656387 - ], - [ - 1.2337568, - 43.6656883 - ], - [ - 1.2337644, - 43.6650153 - ], - [ - 1.2351218, - 43.6650319 - ], - [ - 1.2350913, - 43.6670729 - ], - [ - 1.2443566, - 43.6671556 - ], - [ - 1.2441584, - 43.6743925 - ], - [ - 1.2493973, - 43.6744256 - ], - [ - 1.2493973, - 43.6746628 - ], - [ - 1.2555666, - 43.6747234 - ], - [ - 1.2555742, - 43.6744532 - ], - [ - 1.2569545, - 43.6744697 - ], - [ - 1.2568782, - 43.678529 - ], - [ - 1.2874873, - 43.6788257 - ], - [ - 1.2870803, - 43.7013229 - ], - [ - 1.3088219, - 43.7014632 - ], - [ - 1.3086493, - 43.7127673 - ], - [ - 1.3303262, - 43.7129544 - ], - [ - 1.3300242, - 43.7305221 - ], - [ - 1.3367106, - 43.7305845 - ], - [ - 1.3367322, - 43.7312235 - ], - [ - 1.3734338, - 43.7310456 - ], - [ - 1.3735848, - 43.7245772 - ], - [ - 1.4604504, - 43.7252947 - ], - [ - 1.4607783, - 43.7028034 - ], - [ - 1.4824875, - 43.7029516 - ], - [ - 1.4829828, - 43.6692071 - ], - [ - 1.5046832, - 43.6693616 - ], - [ - 1.5048383, - 43.6581174 - ], - [ - 1.5265475, - 43.6582656 - ], - [ - 1.5266945, - 43.6470298 - ], - [ - 1.548368, - 43.6471633 - ], - [ - 1.5485357, - 43.6359385 - ], - [ - 1.5702172, - 43.636082 - ], - [ - 1.5705123, - 43.6135777 - ], - [ - 1.5488166, - 43.6134276 - ], - [ - 1.549097, - 43.5909479 - ], - [ - 1.5707695, - 43.5910694 - ], - [ - 1.5709373, - 43.5798341 - ], - [ - 1.5793714, - 43.5798894 - ], - [ - 1.5794782, - 43.5737682 - ], - [ - 1.5809119, - 43.5737792 - ], - [ - 1.5810859, - 43.5573794 - ], - [ - 1.5712334, - 43.5573131 - ], - [ - 1.5716504, - 43.5235497 - ], - [ - 1.3984804, - 43.5222618 - ], - [ - 1.3986509, - 43.5110113 - ], - [ - 1.3120959, - 43.5102543 - ], - [ - 1.3118968, - 43.5215192 - ], - [ - 1.2902569, - 43.5213126 - ], - [ - 1.2898637, - 43.5438168 - ], - [ - 1.311517, - 43.5440133 - ], - [ - 1.3113271, - 43.5552596 - ], - [ - 1.3036924, - 43.5551924 - ], - [ - 1.3036117, - 43.5595099 - ], - [ - 1.2955449, - 43.5594317 - ], - [ - 1.2955449, - 43.5595489 - ], - [ - 1.2895595, - 43.5594473 - ], - [ - 1.2892899, - 43.5775366 - ], - [ - 1.2675698, - 43.5773647 - ], - [ - 1.2673973, - 43.5886141 - ], - [ - 1.25355, - 43.5885047 - ], - [ - 1.2533774, - 43.5956282 - ], - [ - 1.2518029, - 43.5956282 - ], - [ - 1.2518029, - 43.5949409 - ], - [ - 1.2350437, - 43.5947847 - ], - [ - 1.2350437, - 43.5945972 - ], - [ - 1.2239572, - 43.5945972 - ], - [ - 1.2239357, - 43.5994708 - ], - [ - 1.2139708, - 43.599299 - ], - [ - 1.2138845, - 43.6046408 - ], - [ - 1.2020647, - 43.6044846 - ], - [ - 1.2019464, - 43.61048 - ], - [ - 1.1924294, - 43.6103695 - ] - ] - ], - "terms_url": "https://wiki.openstreetmap.org/wiki/Toulouse/ToulouseMetropoleData", - "terms_text": "ToulouseMetropole" - }, - { - "name": "Toulouse - Orthophotoplan 2011", - "type": "tms", - "template": "http://wms.openstreetmap.fr/tms/1.0.0/toulouse_ortho2011/{zoom}/{x}/{y}", - "scaleExtent": [ - 0, - 22 - ], - "polygon": [ - [ - [ - 1.1135067, - 43.6867566 - ], - [ - 1.1351836, - 43.6870842 - ], - [ - 1.1348907, - 43.6983471 - ], - [ - 1.1782867, - 43.6990338 - ], - [ - 1.1779903, - 43.7102786 - ], - [ - 1.1996591, - 43.7106144 - ], - [ - 1.1993387, - 43.7218722 - ], - [ - 1.2427356, - 43.7225269 - ], - [ - 1.2424336, - 43.7337491 - ], - [ - 1.2641536, - 43.734092 - ], - [ - 1.2638301, - 43.7453588 - ], - [ - 1.2855285, - 43.7456548 - ], - [ - 1.2852481, - 43.756935 - ], - [ - 1.306925, - 43.757231 - ], - [ - 1.3066446, - 43.7684779 - ], - [ - 1.3283431, - 43.7687894 - ], - [ - 1.3280842, - 43.780034 - ], - [ - 1.4367275, - 43.7815757 - ], - [ - 1.4373098, - 43.7591004 - ], - [ - 1.4590083, - 43.7593653 - ], - [ - 1.4593318, - 43.7481479 - ], - [ - 1.4810303, - 43.7483972 - ], - [ - 1.4813322, - 43.7371777 - ], - [ - 1.5030307, - 43.7374115 - ], - [ - 1.5035915, - 43.7149664 - ], - [ - 1.5253115, - 43.7151846 - ], - [ - 1.5256135, - 43.7040057 - ], - [ - 1.5472688, - 43.7042552 - ], - [ - 1.5475708, - 43.6930431 - ], - [ - 1.5692045, - 43.6932926 - ], - [ - 1.5695712, - 43.6820316 - ], - [ - 1.5912049, - 43.6822656 - ], - [ - 1.5917441, - 43.6597998 - ], - [ - 1.613421, - 43.6600339 - ], - [ - 1.613723, - 43.6488291 - ], - [ - 1.6353783, - 43.6490788 - ], - [ - 1.6384146, - 43.5140731 - ], - [ - 1.2921649, - 43.5094658 - ], - [ - 1.2918629, - 43.5206966 - ], - [ - 1.2702076, - 43.5203994 - ], - [ - 1.2698841, - 43.5316437 - ], - [ - 1.2482288, - 43.531331 - ], - [ - 1.2476048, - 43.5537788 - ], - [ - 1.2259628, - 43.5534914 - ], - [ - 1.2256819, - 43.564716 - ], - [ - 1.2039835, - 43.564419 - ], - [ - 1.2033148, - 43.5869049 - ], - [ - 1.1816164, - 43.5865611 - ], - [ - 1.1810237, - 43.6090368 - ], - [ - 1.1592821, - 43.6086932 - ], - [ - 1.1589585, - 43.6199523 - ], - [ - 1.1372601, - 43.6196244 - ], - [ - 1.1365933, - 43.642094 - ], - [ - 1.1149055, - 43.6417629 - ] - ] - ], - "terms_url": "https://wiki.openstreetmap.org/wiki/Toulouse/ToulouseMetropoleData", - "terms_text": "ToulouseMetropole" - }, - { - "name": "Tours - Orthophotos 2008", - "type": "tms", - "template": "http://tms.mapspot.ge/tms/2/nonstandard/{zoom}/{x}/{y}.jpeg", - "polygon": [ - [ - [ - 0.5457462, - 47.465264 - ], - [ - 0.54585, - 47.4608163 - ], - [ - 0.5392188, - 47.4606983 - ], - [ - 0.5393484, - 47.456243 - ], - [ - 0.5327959, - 47.4561003 - ], - [ - 0.5329011, - 47.451565 - ], - [ - 0.52619, - 47.4514013 - ], - [ - 0.5265854, - 47.4424884 - ], - [ - 0.5000941, - 47.4420739 - ], - [ - 0.5002357, - 47.4375835 - ], - [ - 0.4936014, - 47.4374324 - ], - [ - 0.4937, - 47.4329285 - ], - [ - 0.4606141, - 47.4324593 - ], - [ - 0.4607248, - 47.4279827 - ], - [ - 0.4541016, - 47.4278125 - ], - [ - 0.454932, - 47.4053921 - ], - [ - 0.4615431, - 47.4054476 - ], - [ - 0.4619097, - 47.3964924 - ], - [ - 0.4684346, - 47.3966005 - ], - [ - 0.4691319, - 47.3786415 - ], - [ - 0.4757125, - 47.3787609 - ], - [ - 0.4762116, - 47.3652018 - ], - [ - 0.4828297, - 47.3653499 - ], - [ - 0.4832223, - 47.3518574 - ], - [ - 0.5097927, - 47.3522592 - ], - [ - 0.5095688, - 47.3567713 - ], - [ - 0.5227698, - 47.3569785 - ], - [ - 0.5226429, - 47.3614867 - ], - [ - 0.5490721, - 47.3618878 - ], - [ - 0.5489087, - 47.3663307 - ], - [ - 0.5555159, - 47.3664985 - ], - [ - 0.5559105, - 47.3575522 - ], - [ - 0.6152789, - 47.358407 - ], - [ - 0.6152963, - 47.362893 - ], - [ - 0.6285093, - 47.3630936 - ], - [ - 0.6288256, - 47.353987 - ], - [ - 0.6155012, - 47.3538823 - ], - [ - 0.6157682, - 47.3493424 - ], - [ - 0.6090956, - 47.3492991 - ], - [ - 0.6094735, - 47.3402962 - ], - [ - 0.6160477, - 47.3404448 - ], - [ - 0.616083, - 47.3369074 - ], - [ - 0.77497, - 47.3388218 - ], - [ - 0.7745786, - 47.351628 - ], - [ - 0.7680363, - 47.3515901 - ], - [ - 0.767589, - 47.3605298 - ], - [ - 0.7742443, - 47.3606238 - ], - [ - 0.7733465, - 47.3921266 - ], - [ - 0.7667434, - 47.3920195 - ], - [ - 0.7664411, - 47.4010837 - ], - [ - 0.7730647, - 47.4011115 - ], - [ - 0.7728868, - 47.4101297 - ], - [ - 0.7661849, - 47.4100226 - ], - [ - 0.7660267, - 47.4145044 - ], - [ - 0.7527613, - 47.4143038 - ], - [ - 0.7529788, - 47.4098086 - ], - [ - 0.7462373, - 47.4097016 - ], - [ - 0.7459424, - 47.4232208 - ], - [ - 0.7392324, - 47.4231451 - ], - [ - 0.738869, - 47.4366116 - ], - [ - 0.7323267, - 47.4365171 - ], - [ - 0.7321869, - 47.4410556 - ], - [ - 0.7255048, - 47.44098 - ], - [ - 0.7254209, - 47.4453479 - ], - [ - 0.7318793, - 47.4454803 - ], - [ - 0.7318514, - 47.4501126 - ], - [ - 0.7384496, - 47.450226 - ], - [ - 0.7383098, - 47.454631 - ], - [ - 0.7449359, - 47.4547444 - ], - [ - 0.7443209, - 47.4771985 - ], - [ - 0.7310685, - 47.4769717 - ], - [ - 0.7309008, - 47.4815445 - ], - [ - 0.7176205, - 47.4812611 - ], - [ - 0.7177883, - 47.4768394 - ], - [ - 0.69777, - 47.4764993 - ], - [ - 0.6980496, - 47.4719827 - ], - [ - 0.6914514, - 47.4718882 - ], - [ - 0.6917309, - 47.4630241 - ], - [ - 0.6851048, - 47.4629295 - ], - [ - 0.684937, - 47.4673524 - ], - [ - 0.678255, - 47.4673335 - ], - [ - 0.6779754, - 47.4762158 - ], - [ - 0.6714051, - 47.4761592 - ], - [ - 0.6710417, - 47.4881952 - ], - [ - 0.6577334, - 47.4879685 - ], - [ - 0.6578173, - 47.48504 - ], - [ - 0.6511911, - 47.4848322 - ], - [ - 0.6514707, - 47.4758568 - ], - [ - 0.6448166, - 47.4757245 - ], - [ - 0.6449284, - 47.4712646 - ], - [ - 0.6117976, - 47.4707543 - ], - [ - 0.6118815, - 47.4663129 - ], - [ - 0.6052833, - 47.4661239 - ], - [ - 0.6054231, - 47.4616631 - ], - [ - 0.5988808, - 47.4615497 - ], - [ - 0.5990206, - 47.4570886 - ], - [ - 0.572488, - 47.4566916 - ], - [ - 0.5721805, - 47.4656513 - ] - ] - ], - "terms_url": "http://wiki.openstreetmap.org/wiki/Tours/Orthophoto", - "terms_text": "Orthophoto Tour(s) Plus 2008" - }, - { - "name": "Tours - Orthophotos 2008-2010", - "type": "tms", - "template": "http://wms.openstreetmap.fr/tms/1.0.0/tours/{zoom}/{x}/{y}", - "scaleExtent": [ - 0, - 20 - ], - "polygon": [ - [ - [ - 0.5457462, - 47.465264 - ], - [ - 0.54585, - 47.4608163 - ], - [ - 0.5392188, - 47.4606983 - ], - [ - 0.5393484, - 47.456243 - ], - [ - 0.5327959, - 47.4561003 - ], - [ - 0.5329011, - 47.451565 - ], - [ - 0.52619, - 47.4514013 - ], - [ - 0.5265854, - 47.4424884 - ], - [ - 0.5000941, - 47.4420739 - ], - [ - 0.5002357, - 47.4375835 - ], - [ - 0.4936014, - 47.4374324 - ], - [ - 0.4937, - 47.4329285 - ], - [ - 0.4606141, - 47.4324593 - ], - [ - 0.4607248, - 47.4279827 - ], - [ - 0.4541016, - 47.4278125 - ], - [ - 0.454932, - 47.4053921 - ], - [ - 0.4615431, - 47.4054476 - ], - [ - 0.4619097, - 47.3964924 - ], - [ - 0.4684346, - 47.3966005 - ], - [ - 0.4691319, - 47.3786415 - ], - [ - 0.4757125, - 47.3787609 - ], - [ - 0.4762116, - 47.3652018 - ], - [ - 0.4828297, - 47.3653499 - ], - [ - 0.4829611, - 47.3608321 - ], - [ - 0.4763543, - 47.360743 - ], - [ - 0.476654, - 47.3517263 - ], - [ - 0.4700497, - 47.3516186 - ], - [ - 0.4701971, - 47.3471313 - ], - [ - 0.4637503, - 47.3470104 - ], - [ - 0.4571425, - 47.3424146 - ], - [ - 0.4572922, - 47.3379061 - ], - [ - 0.4506741, - 47.3378081 - ], - [ - 0.4508379, - 47.3333051 - ], - [ - 0.4442212, - 47.3332032 - ], - [ - 0.4443809, - 47.328711 - ], - [ - 0.4311392, - 47.3284977 - ], - [ - 0.4316262, - 47.3150004 - ], - [ - 0.4382432, - 47.3151136 - ], - [ - 0.4383815, - 47.3106174 - ], - [ - 0.4714487, - 47.3111374 - ], - [ - 0.4713096, - 47.3156565 - ], - [ - 0.477888, - 47.3157542 - ], - [ - 0.4780733, - 47.3112802 - ], - [ - 0.4846826, - 47.3113639 - ], - [ - 0.4848576, - 47.3068686 - ], - [ - 0.4914359, - 47.3069803 - ], - [ - 0.491745, - 47.2979733 - ], - [ - 0.4851578, - 47.2978722 - ], - [ - 0.4854269, - 47.2888744 - ], - [ - 0.4788485, - 47.2887697 - ], - [ - 0.4791574, - 47.2797818 - ], - [ - 0.4857769, - 47.2799005 - ], - [ - 0.4859107, - 47.2753885 - ], - [ - 0.492539, - 47.2755029 - ], - [ - 0.4926669, - 47.2710127 - ], - [ - 0.4992986, - 47.2711066 - ], - [ - 0.4994296, - 47.2666116 - ], - [ - 0.5192658, - 47.2669245 - ], - [ - 0.5194225, - 47.2624231 - ], - [ - 0.5260186, - 47.2625205 - ], - [ - 0.5258735, - 47.2670183 - ], - [ - 0.5456972, - 47.2673383 - ], - [ - 0.5455537, - 47.2718283 - ], - [ - 0.5587737, - 47.2720366 - ], - [ - 0.5586259, - 47.2765185 - ], - [ - 0.5652252, - 47.2766278 - ], - [ - 0.5650848, - 47.2811206 - ], - [ - 0.5716753, - 47.2812285 - ], - [ - 0.5715223, - 47.2857217 - ], - [ - 0.5781436, - 47.2858299 - ], - [ - 0.5779914, - 47.2903294 - ], - [ - 0.5846023, - 47.2904263 - ], - [ - 0.5843076, - 47.2994231 - ], - [ - 0.597499, - 47.2996094 - ], - [ - 0.5976637, - 47.2951375 - ], - [ - 0.6571596, - 47.2960036 - ], - [ - 0.6572988, - 47.2915091 - ], - [ - 0.6705019, - 47.2917186 - ], - [ - 0.6703475, - 47.2962082 - ], - [ - 0.6836175, - 47.2963688 - ], - [ - 0.6834322, - 47.3008929 - ], - [ - 0.690062, - 47.3009558 - ], - [ - 0.6899241, - 47.3054703 - ], - [ - 0.7362019, - 47.3061157 - ], - [ - 0.7360848, - 47.3106063 - ], - [ - 0.7559022, - 47.3108935 - ], - [ - 0.7557718, - 47.315392 - ], - [ - 0.7623755, - 47.3154716 - ], - [ - 0.7622314, - 47.3199941 - ], - [ - 0.7754911, - 47.3201546 - ], - [ - 0.77497, - 47.3388218 - ], - [ - 0.7745786, - 47.351628 - ], - [ - 0.7680363, - 47.3515901 - ], - [ - 0.767589, - 47.3605298 - ], - [ - 0.7742443, - 47.3606238 - ], - [ - 0.7733465, - 47.3921266 - ], - [ - 0.7667434, - 47.3920195 - ], - [ - 0.7664411, - 47.4010837 - ], - [ - 0.7730647, - 47.4011115 - ], - [ - 0.7728868, - 47.4101297 - ], - [ - 0.7661849, - 47.4100226 - ], - [ - 0.7660267, - 47.4145044 - ], - [ - 0.7527613, - 47.4143038 - ], - [ - 0.7529788, - 47.4098086 - ], - [ - 0.7462373, - 47.4097016 - ], - [ - 0.7459424, - 47.4232208 - ], - [ - 0.7392324, - 47.4231451 - ], - [ - 0.738869, - 47.4366116 - ], - [ - 0.7323267, - 47.4365171 - ], - [ - 0.7321869, - 47.4410556 - ], - [ - 0.7255048, - 47.44098 - ], - [ - 0.7254209, - 47.4453479 - ], - [ - 0.7318793, - 47.4454803 - ], - [ - 0.7318514, - 47.4501126 - ], - [ - 0.7384496, - 47.450226 - ], - [ - 0.7383098, - 47.454631 - ], - [ - 0.7449359, - 47.4547444 - ], - [ - 0.7443209, - 47.4771985 - ], - [ - 0.7310685, - 47.4769717 - ], - [ - 0.7309008, - 47.4815445 - ], - [ - 0.7176205, - 47.4812611 - ], - [ - 0.7177883, - 47.4768394 - ], - [ - 0.69777, - 47.4764993 - ], - [ - 0.6980496, - 47.4719827 - ], - [ - 0.6914514, - 47.4718882 - ], - [ - 0.6917309, - 47.4630241 - ], - [ - 0.6851048, - 47.4629295 - ], - [ - 0.684937, - 47.4673524 - ], - [ - 0.678255, - 47.4673335 - ], - [ - 0.6779754, - 47.4762158 - ], - [ - 0.6714051, - 47.4761592 - ], - [ - 0.6710417, - 47.4881952 - ], - [ - 0.6577334, - 47.4879685 - ], - [ - 0.6578173, - 47.48504 - ], - [ - 0.6511911, - 47.4848322 - ], - [ - 0.6514707, - 47.4758568 - ], - [ - 0.6448166, - 47.4757245 - ], - [ - 0.6449284, - 47.4712646 - ], - [ - 0.6117976, - 47.4707543 - ], - [ - 0.6118815, - 47.4663129 - ], - [ - 0.6052833, - 47.4661239 - ], - [ - 0.6054231, - 47.4616631 - ], - [ - 0.5988808, - 47.4615497 - ], - [ - 0.5990206, - 47.4570886 - ], - [ - 0.572488, - 47.4566916 - ], - [ - 0.5721805, - 47.4656513 - ] - ] - ], - "terms_url": "http://wiki.openstreetmap.org/wiki/Tours/Orthophoto", - "terms_text": "Orthophoto Tour(s) Plus 2008" - }, - { - "name": "USGS Large Scale Imagery", - "type": "tms", - "template": "http://{switch:a,b,c}.tile.openstreetmap.us/usgs_large_scale/{zoom}/{x}/{y}.jpg", - "scaleExtent": [ - 12, - 20 - ], - "polygon": [ - [ - [ - -123.2549305, - 48.7529029 - ], - [ - -123.2549305, - 48.5592263 - ], - [ - -123.192224, - 48.5592263 - ], - [ - -123.192224, - 48.4348366 - ], - [ - -122.9419646, - 48.4348366 - ], - [ - -122.9419646, - 48.3720812 - ], - [ - -122.8806229, - 48.3720812 - ], - [ - -122.8806229, - 48.3094763 - ], - [ - -122.8167566, - 48.3094763 - ], - [ - -122.8167566, - 48.1904587 - ], - [ - -123.0041133, - 48.1904587 - ], - [ - -123.0041133, - 48.1275918 - ], - [ - -123.058416, - 48.1275918 - ], - [ - -123.058416, - 48.190514 - ], - [ - -123.254113, - 48.190514 - ], - [ - -123.254113, - 48.1274982 - ], - [ - -123.3706593, - 48.1274982 - ], - [ - -123.3706593, - 48.1908403 - ], - [ - -124.0582632, - 48.1908403 - ], - [ - -124.0582632, - 48.253442 - ], - [ - -124.1815163, - 48.253442 - ], - [ - -124.1815163, - 48.3164666 - ], - [ - -124.4319117, - 48.3164666 - ], - [ - -124.4319117, - 48.3782613 - ], - [ - -124.5564618, - 48.3782613 - ], - [ - -124.5564618, - 48.4408305 - ], - [ - -124.7555107, - 48.4408305 - ], - [ - -124.7555107, - 48.1914986 - ], - [ - -124.8185282, - 48.1914986 - ], - [ - -124.8185282, - 48.1228381 - ], - [ - -124.7552951, - 48.1228381 - ], - [ - -124.7552951, - 47.5535253 - ], - [ - -124.3812108, - 47.5535253 - ], - [ - -124.3812108, - 47.1218696 - ], - [ - -124.1928897, - 47.1218696 - ], - [ - -124.1928897, - 43.7569431 - ], - [ - -124.4443382, - 43.7569431 - ], - [ - -124.4443382, - 43.1425556 - ], - [ - -124.6398855, - 43.1425556 - ], - [ - -124.6398855, - 42.6194503 - ], - [ - -124.4438525, - 42.6194503 - ], - [ - -124.4438525, - 39.8080662 - ], - [ - -123.8815685, - 39.8080662 - ], - [ - -123.8815685, - 39.1102825 - ], - [ - -123.75805, - 39.1102825 - ], - [ - -123.75805, - 38.4968799 - ], - [ - -123.2702803, - 38.4968799 - ], - [ - -123.2702803, - 37.9331905 - ], - [ - -122.8148084, - 37.9331905 - ], - [ - -122.8148084, - 37.8019606 - ], - [ - -122.5664316, - 37.8019606 - ], - [ - -122.5664316, - 36.9319611 - ], - [ - -121.8784026, - 36.9319611 - ], - [ - -121.8784026, - 36.6897596 - ], - [ - -122.0034748, - 36.6897596 - ], - [ - -122.0034748, - 36.4341056 - ], - [ - -121.9414159, - 36.4341056 - ], - [ - -121.9414159, - 35.9297636 - ], - [ - -121.5040977, - 35.9297636 - ], - [ - -121.5040977, - 35.8100273 - ], - [ - -121.3790276, - 35.8100273 - ], - [ - -121.3790276, - 35.4239164 - ], - [ - -120.9426515, - 35.4239164 - ], - [ - -120.9426515, - 35.1849683 - ], - [ - -120.8171978, - 35.1849683 - ], - [ - -120.8171978, - 35.1219894 - ], - [ - -120.6918447, - 35.1219894 - ], - [ - -120.6918447, - 34.4966794 - ], - [ - -120.5045898, - 34.4966794 - ], - [ - -120.5045898, - 34.4339651 - ], - [ - -120.0078775, - 34.4339651 - ], - [ - -120.0078775, - 34.3682626 - ], - [ - -119.5283517, - 34.3682626 - ], - [ - -119.5283517, - 34.0576434 - ], - [ - -119.0060985, - 34.0576434 - ], - [ - -119.0060985, - 33.9975267 - ], - [ - -118.5046259, - 33.9975267 - ], - [ - -118.5046259, - 33.8694631 - ], - [ - -118.4413209, - 33.8694631 - ], - [ - -118.4413209, - 33.6865253 - ], - [ - -118.066912, - 33.6865253 - ], - [ - -118.066912, - 33.3063832 - ], - [ - -117.5030045, - 33.3063832 - ], - [ - -117.5030045, - 33.0500337 - ], - [ - -117.3188195, - 33.0500337 - ], - [ - -117.3188195, - 32.6205888 - ], - [ - -117.1917023, - 32.6205888 - ], - [ - -117.1917023, - 32.4974566 - ], - [ - -116.746496, - 32.4974566 - ], - [ - -116.746496, - 32.5609161 - ], - [ - -115.9970138, - 32.5609161 - ], - [ - -115.9970138, - 32.6264942 - ], - [ - -114.8808125, - 32.6264942 - ], - [ - -114.8808125, - 32.4340796 - ], - [ - -114.6294474, - 32.4340796 - ], - [ - -114.6294474, - 32.3731636 - ], - [ - -114.4447437, - 32.3731636 - ], - [ - -114.4447437, - 32.3075418 - ], - [ - -114.2557628, - 32.3075418 - ], - [ - -114.2557628, - 32.2444561 - ], - [ - -114.0680274, - 32.2444561 - ], - [ - -114.0680274, - 32.1829113 - ], - [ - -113.8166499, - 32.1829113 - ], - [ - -113.8166499, - 32.1207622 - ], - [ - -113.6307421, - 32.1207622 - ], - [ - -113.6307421, - 32.0565099 - ], - [ - -113.4417495, - 32.0565099 - ], - [ - -113.4417495, - 31.9984372 - ], - [ - -113.2546027, - 31.9984372 - ], - [ - -113.2546027, - 31.9325434 - ], - [ - -113.068072, - 31.9325434 - ], - [ - -113.068072, - 31.8718062 - ], - [ - -112.8161105, - 31.8718062 - ], - [ - -112.8161105, - 31.8104171 - ], - [ - -112.6308756, - 31.8104171 - ], - [ - -112.6308756, - 31.7464723 - ], - [ - -112.4418918, - 31.7464723 - ], - [ - -112.4418918, - 31.6856001 - ], - [ - -112.257192, - 31.6856001 - ], - [ - -112.257192, - 31.6210352 - ], - [ - -112.0033787, - 31.6210352 - ], - [ - -112.0033787, - 31.559584 - ], - [ - -111.815619, - 31.559584 - ], - [ - -111.815619, - 31.4970238 - ], - [ - -111.6278586, - 31.4970238 - ], - [ - -111.6278586, - 31.4339867 - ], - [ - -111.4418978, - 31.4339867 - ], - [ - -111.4418978, - 31.3733859 - ], - [ - -111.2559708, - 31.3733859 - ], - [ - -111.2559708, - 31.3113225 - ], - [ - -108.1845822, - 31.3113225 - ], - [ - -108.1845822, - 31.7459502 - ], - [ - -106.5065055, - 31.7459502 - ], - [ - -106.5065055, - 31.6842308 - ], - [ - -106.3797265, - 31.6842308 - ], - [ - -106.3797265, - 31.621752 - ], - [ - -106.317434, - 31.621752 - ], - [ - -106.317434, - 31.4968167 - ], - [ - -106.2551769, - 31.4968167 - ], - [ - -106.2551769, - 31.4344889 - ], - [ - -106.1924698, - 31.4344889 - ], - [ - -106.1924698, - 31.3721296 - ], - [ - -106.0039212, - 31.3721296 - ], - [ - -106.0039212, - 31.309328 - ], - [ - -105.9416582, - 31.309328 - ], - [ - -105.9416582, - 31.2457547 - ], - [ - -105.8798174, - 31.2457547 - ], - [ - -105.8798174, - 31.1836194 - ], - [ - -105.8162349, - 31.1836194 - ], - [ - -105.8162349, - 31.1207155 - ], - [ - -105.6921198, - 31.1207155 - ], - [ - -105.6921198, - 31.0584835 - ], - [ - -105.6302881, - 31.0584835 - ], - [ - -105.6302881, - 30.9328271 - ], - [ - -105.5044418, - 30.9328271 - ], - [ - -105.5044418, - 30.8715864 - ], - [ - -105.4412973, - 30.8715864 - ], - [ - -105.4412973, - 30.808463 - ], - [ - -105.3781497, - 30.808463 - ], - [ - -105.3781497, - 30.7471828 - ], - [ - -105.1904658, - 30.7471828 - ], - [ - -105.1904658, - 30.6843231 - ], - [ - -105.1286244, - 30.6843231 - ], - [ - -105.1286244, - 30.6199737 - ], - [ - -105.0036504, - 30.6199737 - ], - [ - -105.0036504, - 30.5589058 - ], - [ - -104.9417962, - 30.5589058 - ], - [ - -104.9417962, - 30.4963236 - ], - [ - -104.8782018, - 30.4963236 - ], - [ - -104.8782018, - 30.3098261 - ], - [ - -104.8155257, - 30.3098261 - ], - [ - -104.8155257, - 30.2478305 - ], - [ - -104.7536079, - 30.2478305 - ], - [ - -104.7536079, - 29.9353916 - ], - [ - -104.690949, - 29.9353916 - ], - [ - -104.690949, - 29.8090156 - ], - [ - -104.6291301, - 29.8090156 - ], - [ - -104.6291301, - 29.6843577 - ], - [ - -104.5659869, - 29.6843577 - ], - [ - -104.5659869, - 29.6223459 - ], - [ - -104.5037188, - 29.6223459 - ], - [ - -104.5037188, - 29.5595436 - ], - [ - -104.4410072, - 29.5595436 - ], - [ - -104.4410072, - 29.4974832 - ], - [ - -104.2537551, - 29.4974832 - ], - [ - -104.2537551, - 29.3716718 - ], - [ - -104.1291984, - 29.3716718 - ], - [ - -104.1291984, - 29.3091621 - ], - [ - -104.0688737, - 29.3091621 - ], - [ - -104.0688737, - 29.2467276 - ], - [ - -103.8187309, - 29.2467276 - ], - [ - -103.8187309, - 29.1843076 - ], - [ - -103.755736, - 29.1843076 - ], - [ - -103.755736, - 29.1223174 - ], - [ - -103.5667542, - 29.1223174 - ], - [ - -103.5667542, - 29.0598119 - ], - [ - -103.5049819, - 29.0598119 - ], - [ - -103.5049819, - 28.9967506 - ], - [ - -103.3165753, - 28.9967506 - ], - [ - -103.3165753, - 28.9346923 - ], - [ - -103.0597572, - 28.9346923 - ], - [ - -103.0597572, - 29.0592965 - ], - [ - -102.9979694, - 29.0592965 - ], - [ - -102.9979694, - 29.1212855 - ], - [ - -102.9331397, - 29.1212855 - ], - [ - -102.9331397, - 29.1848575 - ], - [ - -102.8095989, - 29.1848575 - ], - [ - -102.8095989, - 29.2526154 - ], - [ - -102.8701345, - 29.2526154 - ], - [ - -102.8701345, - 29.308096 - ], - [ - -102.8096681, - 29.308096 - ], - [ - -102.8096681, - 29.3715484 - ], - [ - -102.7475655, - 29.3715484 - ], - [ - -102.7475655, - 29.5581899 - ], - [ - -102.684554, - 29.5581899 - ], - [ - -102.684554, - 29.6847655 - ], - [ - -102.4967764, - 29.6847655 - ], - [ - -102.4967764, - 29.7457694 - ], - [ - -102.3086647, - 29.7457694 - ], - [ - -102.3086647, - 29.8086627 - ], - [ - -102.1909323, - 29.8086627 - ], - [ - -102.1909323, - 29.7460097 - ], - [ - -101.5049914, - 29.7460097 - ], - [ - -101.5049914, - 29.6846777 - ], - [ - -101.3805796, - 29.6846777 - ], - [ - -101.3805796, - 29.5594459 - ], - [ - -101.3175057, - 29.5594459 - ], - [ - -101.3175057, - 29.4958934 - ], - [ - -101.1910075, - 29.4958934 - ], - [ - -101.1910075, - 29.4326115 - ], - [ - -101.067501, - 29.4326115 - ], - [ - -101.067501, - 29.308808 - ], - [ - -100.9418897, - 29.308808 - ], - [ - -100.9418897, - 29.2456231 - ], - [ - -100.8167271, - 29.2456231 - ], - [ - -100.8167271, - 29.1190449 - ], - [ - -100.7522672, - 29.1190449 - ], - [ - -100.7522672, - 29.0578214 - ], - [ - -100.6925358, - 29.0578214 - ], - [ - -100.6925358, - 28.8720431 - ], - [ - -100.6290158, - 28.8720431 - ], - [ - -100.6290158, - 28.8095363 - ], - [ - -100.5679901, - 28.8095363 - ], - [ - -100.5679901, - 28.622554 - ], - [ - -100.5040411, - 28.622554 - ], - [ - -100.5040411, - 28.5583804 - ], - [ - -100.4421832, - 28.5583804 - ], - [ - -100.4421832, - 28.4968266 - ], - [ - -100.379434, - 28.4968266 - ], - [ - -100.379434, - 28.3092865 - ], - [ - -100.3171942, - 28.3092865 - ], - [ - -100.3171942, - 28.1835681 - ], - [ - -100.254483, - 28.1835681 - ], - [ - -100.254483, - 28.1213885 - ], - [ - -100.1282282, - 28.1213885 - ], - [ - -100.1282282, - 28.059215 - ], - [ - -100.0659537, - 28.059215 - ], - [ - -100.0659537, - 27.9966087 - ], - [ - -100.0023855, - 27.9966087 - ], - [ - -100.0023855, - 27.9332152 - ], - [ - -99.9426497, - 27.9332152 - ], - [ - -99.9426497, - 27.7454658 - ], - [ - -99.816851, - 27.7454658 - ], - [ - -99.816851, - 27.6834301 - ], - [ - -99.7541346, - 27.6834301 - ], - [ - -99.7541346, - 27.6221543 - ], - [ - -99.6291629, - 27.6221543 - ], - [ - -99.6291629, - 27.5588977 - ], - [ - -99.5672838, - 27.5588977 - ], - [ - -99.5672838, - 27.4353752 - ], - [ - -99.5041798, - 27.4353752 - ], - [ - -99.5041798, - 27.3774021 - ], - [ - -99.5671796, - 27.3774021 - ], - [ - -99.5671796, - 27.2463726 - ], - [ - -99.504975, - 27.2463726 - ], - [ - -99.504975, - 26.9965649 - ], - [ - -99.4427427, - 26.9965649 - ], - [ - -99.4427427, - 26.872803 - ], - [ - -99.3800633, - 26.872803 - ], - [ - -99.3800633, - 26.8068179 - ], - [ - -99.3190684, - 26.8068179 - ], - [ - -99.3190684, - 26.7473614 - ], - [ - -99.2537541, - 26.7473614 - ], - [ - -99.2537541, - 26.6210068 - ], - [ - -99.1910617, - 26.6210068 - ], - [ - -99.1910617, - 26.4956737 - ], - [ - -99.1300639, - 26.4956737 - ], - [ - -99.1300639, - 26.3713808 - ], - [ - -99.0029473, - 26.3713808 - ], - [ - -99.0029473, - 26.3093836 - ], - [ - -98.816572, - 26.3093836 - ], - [ - -98.816572, - 26.2457762 - ], - [ - -98.6920082, - 26.2457762 - ], - [ - -98.6920082, - 26.1837096 - ], - [ - -98.4440896, - 26.1837096 - ], - [ - -98.4440896, - 26.1217217 - ], - [ - -98.3823181, - 26.1217217 - ], - [ - -98.3823181, - 26.0596488 - ], - [ - -98.2532707, - 26.0596488 - ], - [ - -98.2532707, - 25.9986871 - ], - [ - -98.0109084, - 25.9986871 - ], - [ - -98.0109084, - 25.9932255 - ], - [ - -97.6932319, - 25.9932255 - ], - [ - -97.6932319, - 25.9334103 - ], - [ - -97.6313904, - 25.9334103 - ], - [ - -97.6313904, - 25.8695893 - ], - [ - -97.5046779, - 25.8695893 - ], - [ - -97.5046779, - 25.8073488 - ], - [ - -97.3083401, - 25.8073488 - ], - [ - -97.3083401, - 25.8731159 - ], - [ - -97.2456326, - 25.8731159 - ], - [ - -97.2456326, - 25.9353731 - ], - [ - -97.1138939, - 25.9353731 - ], - [ - -97.1138939, - 27.6809179 - ], - [ - -97.0571035, - 27.6809179 - ], - [ - -97.0571035, - 27.8108242 - ], - [ - -95.5810766, - 27.8108242 - ], - [ - -95.5810766, - 28.7468827 - ], - [ - -94.271041, - 28.7468827 - ], - [ - -94.271041, - 29.5594076 - ], - [ - -92.5029947, - 29.5594076 - ], - [ - -92.5029947, - 29.4974754 - ], - [ - -91.8776216, - 29.4974754 - ], - [ - -91.8776216, - 29.3727013 - ], - [ - -91.378418, - 29.3727013 - ], - [ - -91.378418, - 29.2468326 - ], - [ - -91.3153953, - 29.2468326 - ], - [ - -91.3153953, - 29.1844301 - ], - [ - -91.1294702, - 29.1844301 - ], - [ - -91.1294702, - 29.1232559 - ], - [ - -91.0052632, - 29.1232559 - ], - [ - -91.0052632, - 28.9968437 - ], - [ - -89.4500159, - 28.9968437 - ], - [ - -89.4500159, - 28.8677422 - ], - [ - -88.8104309, - 28.8677422 - ], - [ - -88.8104309, - 30.1841864 - ], - [ - -85.8791527, - 30.1841864 - ], - [ - -85.8791527, - 29.5455038 - ], - [ - -84.8368083, - 29.5455038 - ], - [ - -84.8368083, - 29.6225158 - ], - [ - -84.7482786, - 29.6225158 - ], - [ - -84.7482786, - 29.683624 - ], - [ - -84.685894, - 29.683624 - ], - [ - -84.685894, - 29.7468386 - ], - [ - -83.6296975, - 29.7468386 - ], - [ - -83.6296975, - 29.4324361 - ], - [ - -83.3174937, - 29.4324361 - ], - [ - -83.3174937, - 29.0579442 - ], - [ - -82.879659, - 29.0579442 - ], - [ - -82.879659, - 27.7453529 - ], - [ - -82.8182822, - 27.7453529 - ], - [ - -82.8182822, - 26.9290868 - ], - [ - -82.3796782, - 26.9290868 - ], - [ - -82.3796782, - 26.3694183 - ], - [ - -81.8777106, - 26.3694183 - ], - [ - -81.8777106, - 25.805971 - ], - [ - -81.5036862, - 25.805971 - ], - [ - -81.5036862, - 25.7474753 - ], - [ - -81.4405462, - 25.7474753 - ], - [ - -81.4405462, - 25.6851489 - ], - [ - -81.3155883, - 25.6851489 - ], - [ - -81.3155883, - 25.5600985 - ], - [ - -81.2538534, - 25.5600985 - ], - [ - -81.2538534, - 25.4342361 - ], - [ - -81.1902012, - 25.4342361 - ], - [ - -81.1902012, - 25.1234341 - ], - [ - -81.1288133, - 25.1234341 - ], - [ - -81.1288133, - 25.0619389 - ], - [ - -81.0649231, - 25.0619389 - ], - [ - -81.0649231, - 24.8157807 - ], - [ - -81.6289469, - 24.8157807 - ], - [ - -81.6289469, - 24.7538367 - ], - [ - -81.6907173, - 24.7538367 - ], - [ - -81.6907173, - 24.6899374 - ], - [ - -81.8173189, - 24.6899374 - ], - [ - -81.8173189, - 24.6279161 - ], - [ - -82.1910041, - 24.6279161 - ], - [ - -82.1910041, - 24.496294 - ], - [ - -81.6216596, - 24.496294 - ], - [ - -81.6216596, - 24.559484 - ], - [ - -81.372006, - 24.559484 - ], - [ - -81.372006, - 24.6220687 - ], - [ - -81.0593278, - 24.6220687 - ], - [ - -81.0593278, - 24.684826 - ], - [ - -80.9347147, - 24.684826 - ], - [ - -80.9347147, - 24.7474828 - ], - [ - -80.7471081, - 24.7474828 - ], - [ - -80.7471081, - 24.8100618 - ], - [ - -80.3629898, - 24.8100618 - ], - [ - -80.3629898, - 25.1175858 - ], - [ - -80.122344, - 25.1175858 - ], - [ - -80.122344, - 25.7472357 - ], - [ - -80.0588458, - 25.7472357 - ], - [ - -80.0588458, - 26.3708251 - ], - [ - -79.995837, - 26.3708251 - ], - [ - -79.995837, - 26.9398003 - ], - [ - -80.0587265, - 26.9398003 - ], - [ - -80.0587265, - 27.1277466 - ], - [ - -80.1226251, - 27.1277466 - ], - [ - -80.1226251, - 27.2534279 - ], - [ - -80.1846956, - 27.2534279 - ], - [ - -80.1846956, - 27.3781229 - ], - [ - -80.246175, - 27.3781229 - ], - [ - -80.246175, - 27.5658729 - ], - [ - -80.3094768, - 27.5658729 - ], - [ - -80.3094768, - 27.7530311 - ], - [ - -80.3721485, - 27.7530311 - ], - [ - -80.3721485, - 27.8774451 - ], - [ - -80.4351457, - 27.8774451 - ], - [ - -80.4351457, - 28.0033366 - ], - [ - -80.4966078, - 28.0033366 - ], - [ - -80.4966078, - 28.1277326 - ], - [ - -80.5587159, - 28.1277326 - ], - [ - -80.5587159, - 28.3723509 - ], - [ - -80.4966335, - 28.3723509 - ], - [ - -80.4966335, - 29.5160326 - ], - [ - -81.1213644, - 29.5160326 - ], - [ - -81.1213644, - 31.6846966 - ], - [ - -80.6018723, - 31.6846966 - ], - [ - -80.6018723, - 32.2475309 - ], - [ - -79.4921024, - 32.2475309 - ], - [ - -79.4921024, - 32.9970261 - ], - [ - -79.1116488, - 32.9970261 - ], - [ - -79.1116488, - 33.3729457 - ], - [ - -78.6153621, - 33.3729457 - ], - [ - -78.6153621, - 33.8097638 - ], - [ - -77.9316963, - 33.8097638 - ], - [ - -77.9316963, - 33.8718243 - ], - [ - -77.8692252, - 33.8718243 - ], - [ - -77.8692252, - 34.0552454 - ], - [ - -77.6826392, - 34.0552454 - ], - [ - -77.6826392, - 34.2974598 - ], - [ - -77.2453509, - 34.2974598 - ], - [ - -77.2453509, - 34.5598585 - ], - [ - -76.4973277, - 34.5598585 - ], - [ - -76.4973277, - 34.622796 - ], - [ - -76.4337602, - 34.622796 - ], - [ - -76.4337602, - 34.6849285 - ], - [ - -76.373212, - 34.6849285 - ], - [ - -76.373212, - 34.7467674 - ], - [ - -76.3059364, - 34.7467674 - ], - [ - -76.3059364, - 34.808551 - ], - [ - -76.2468017, - 34.808551 - ], - [ - -76.2468017, - 34.8728418 - ], - [ - -76.1825922, - 34.8728418 - ], - [ - -76.1825922, - 34.9335332 - ], - [ - -76.120814, - 34.9335332 - ], - [ - -76.120814, - 34.9952359 - ], - [ - -75.9979015, - 34.9952359 - ], - [ - -75.9979015, - 35.0578182 - ], - [ - -75.870338, - 35.0578182 - ], - [ - -75.870338, - 35.1219097 - ], - [ - -75.7462194, - 35.1219097 - ], - [ - -75.7462194, - 35.1818911 - ], - [ - -75.4929694, - 35.1818911 - ], - [ - -75.4929694, - 35.3082988 - ], - [ - -75.4325662, - 35.3082988 - ], - [ - -75.4325662, - 35.7542495 - ], - [ - -75.4969907, - 35.7542495 - ], - [ - -75.4969907, - 37.8105602 - ], - [ - -75.3082972, - 37.8105602 - ], - [ - -75.3082972, - 37.8720088 - ], - [ - -75.245601, - 37.8720088 - ], - [ - -75.245601, - 37.9954849 - ], - [ - -75.1828751, - 37.9954849 - ], - [ - -75.1828751, - 38.0585079 - ], - [ - -75.1184793, - 38.0585079 - ], - [ - -75.1184793, - 38.2469091 - ], - [ - -75.0592098, - 38.2469091 - ], - [ - -75.0592098, - 38.3704316 - ], - [ - -74.9948111, - 38.3704316 - ], - [ - -74.9948111, - 38.8718417 - ], - [ - -74.4878252, - 38.8718417 - ], - [ - -74.4878252, - 39.3089428 - ], - [ - -74.1766317, - 39.3089428 - ], - [ - -74.1766317, - 39.6224653 - ], - [ - -74.0567045, - 39.6224653 - ], - [ - -74.0567045, - 39.933178 - ], - [ - -73.9959035, - 39.933178 - ], - [ - -73.9959035, - 40.1854852 - ], - [ - -73.9341593, - 40.1854852 - ], - [ - -73.9341593, - 40.4959486 - ], - [ - -73.8723024, - 40.4959486 - ], - [ - -73.8723024, - 40.5527135 - ], - [ - -71.8074506, - 40.5527135 - ], - [ - -71.8074506, - 41.3088005 - ], - [ - -70.882512, - 41.3088005 - ], - [ - -70.882512, - 41.184978 - ], - [ - -70.7461947, - 41.184978 - ], - [ - -70.7461947, - 41.3091865 - ], - [ - -70.4337553, - 41.3091865 - ], - [ - -70.4337553, - 41.4963885 - ], - [ - -69.9334281, - 41.4963885 - ], - [ - -69.9334281, - 41.6230802 - ], - [ - -69.869857, - 41.6230802 - ], - [ - -69.869857, - 41.8776895 - ], - [ - -69.935791, - 41.8776895 - ], - [ - -69.935791, - 42.0032342 - ], - [ - -69.9975823, - 42.0032342 - ], - [ - -69.9975823, - 42.0650191 - ], - [ - -70.0606103, - 42.0650191 - ], - [ - -70.0606103, - 42.1294348 - ], - [ - -70.5572884, - 42.1294348 - ], - [ - -70.5572884, - 43.2487079 - ], - [ - -70.4974097, - 43.2487079 - ], - [ - -70.4974097, - 43.3092194 - ], - [ - -70.3704249, - 43.3092194 - ], - [ - -70.3704249, - 43.371963 - ], - [ - -70.3085701, - 43.371963 - ], - [ - -70.3085701, - 43.4969879 - ], - [ - -70.183921, - 43.4969879 - ], - [ - -70.183921, - 43.6223531 - ], - [ - -70.057583, - 43.6223531 - ], - [ - -70.057583, - 43.6850173 - ], - [ - -69.7455247, - 43.6850173 - ], - [ - -69.7455247, - 43.7476571 - ], - [ - -69.2472845, - 43.7476571 - ], - [ - -69.2472845, - 43.8107035 - ], - [ - -69.0560701, - 43.8107035 - ], - [ - -69.0560701, - 43.8717247 - ], - [ - -68.9950522, - 43.8717247 - ], - [ - -68.9950522, - 43.9982022 - ], - [ - -68.4963672, - 43.9982022 - ], - [ - -68.4963672, - 44.0597368 - ], - [ - -68.3081038, - 44.0597368 - ], - [ - -68.3081038, - 44.122137 - ], - [ - -68.1851802, - 44.122137 - ], - [ - -68.1851802, - 44.3081382 - ], - [ - -67.9956019, - 44.3081382 - ], - [ - -67.9956019, - 44.3727489 - ], - [ - -67.8103041, - 44.3727489 - ], - [ - -67.8103041, - 44.435178 - ], - [ - -67.4965289, - 44.435178 - ], - [ - -67.4965289, - 44.4968776 - ], - [ - -67.37102, - 44.4968776 - ], - [ - -67.37102, - 44.5600642 - ], - [ - -67.1848753, - 44.5600642 - ], - [ - -67.1848753, - 44.6213345 - ], - [ - -67.1221208, - 44.6213345 - ], - [ - -67.1221208, - 44.6867918 - ], - [ - -67.059365, - 44.6867918 - ], - [ - -67.059365, - 44.7473657 - ], - [ - -66.9311098, - 44.7473657 - ], - [ - -66.9311098, - 44.9406566 - ], - [ - -66.994683, - 44.9406566 - ], - [ - -66.994683, - 45.0024514 - ], - [ - -67.0595847, - 45.0024514 - ], - [ - -67.0595847, - 45.1273377 - ], - [ - -67.1201974, - 45.1273377 - ], - [ - -67.1201974, - 45.1910115 - ], - [ - -67.2469811, - 45.1910115 - ], - [ - -67.2469811, - 45.253442 - ], - [ - -67.3177546, - 45.253442 - ], - [ - -67.3177546, - 45.1898369 - ], - [ - -67.370749, - 45.1898369 - ], - [ - -67.370749, - 45.2534001 - ], - [ - -67.4326888, - 45.2534001 - ], - [ - -67.4326888, - 45.3083409 - ], - [ - -67.3708571, - 45.3083409 - ], - [ - -67.3708571, - 45.4396986 - ], - [ - -67.4305573, - 45.4396986 - ], - [ - -67.4305573, - 45.4950095 - ], - [ - -67.37099, - 45.4950095 - ], - [ - -67.37099, - 45.6264543 - ], - [ - -67.6214982, - 45.6264543 - ], - [ - -67.6214982, - 45.6896133 - ], - [ - -67.683828, - 45.6896133 - ], - [ - -67.683828, - 45.753259 - ], - [ - -67.7462097, - 45.753259 - ], - [ - -67.7462097, - 47.1268165 - ], - [ - -67.8700141, - 47.1268165 - ], - [ - -67.8700141, - 47.1900278 - ], - [ - -67.9323803, - 47.1900278 - ], - [ - -67.9323803, - 47.2539678 - ], - [ - -67.9959387, - 47.2539678 - ], - [ - -67.9959387, - 47.3149737 - ], - [ - -68.1206676, - 47.3149737 - ], - [ - -68.1206676, - 47.3780823 - ], - [ - -68.4423175, - 47.3780823 - ], - [ - -68.4423175, - 47.3166082 - ], - [ - -68.6314305, - 47.3166082 - ], - [ - -68.6314305, - 47.2544676 - ], - [ - -68.9978037, - 47.2544676 - ], - [ - -68.9978037, - 47.439895 - ], - [ - -69.0607223, - 47.439895 - ], - [ - -69.0607223, - 47.5047558 - ], - [ - -69.2538122, - 47.5047558 - ], - [ - -69.2538122, - 47.4398084 - ], - [ - -69.3179284, - 47.4398084 - ], - [ - -69.3179284, - 47.378601 - ], - [ - -69.4438546, - 47.378601 - ], - [ - -69.4438546, - 47.3156274 - ], - [ - -69.5038204, - 47.3156274 - ], - [ - -69.5038204, - 47.2525839 - ], - [ - -69.5667838, - 47.2525839 - ], - [ - -69.5667838, - 47.1910884 - ], - [ - -69.6303478, - 47.1910884 - ], - [ - -69.6303478, - 47.128701 - ], - [ - -69.6933103, - 47.128701 - ], - [ - -69.6933103, - 47.0654307 - ], - [ - -69.7557063, - 47.0654307 - ], - [ - -69.7557063, - 47.0042751 - ], - [ - -69.8180391, - 47.0042751 - ], - [ - -69.8180391, - 46.9415344 - ], - [ - -69.8804023, - 46.9415344 - ], - [ - -69.8804023, - 46.8792519 - ], - [ - -69.9421674, - 46.8792519 - ], - [ - -69.9421674, - 46.8177399 - ], - [ - -70.0063088, - 46.8177399 - ], - [ - -70.0063088, - 46.6920295 - ], - [ - -70.0704265, - 46.6920295 - ], - [ - -70.0704265, - 46.4425926 - ], - [ - -70.1945902, - 46.4425926 - ], - [ - -70.1945902, - 46.3785887 - ], - [ - -70.2562047, - 46.3785887 - ], - [ - -70.2562047, - 46.3152628 - ], - [ - -70.3203651, - 46.3152628 - ], - [ - -70.3203651, - 46.0651209 - ], - [ - -70.3814988, - 46.0651209 - ], - [ - -70.3814988, - 45.93552 - ], - [ - -70.3201618, - 45.93552 - ], - [ - -70.3201618, - 45.879479 - ], - [ - -70.4493131, - 45.879479 - ], - [ - -70.4493131, - 45.7538713 - ], - [ - -70.5070021, - 45.7538713 - ], - [ - -70.5070021, - 45.6916912 - ], - [ - -70.6316642, - 45.6916912 - ], - [ - -70.6316642, - 45.6291619 - ], - [ - -70.7575538, - 45.6291619 - ], - [ - -70.7575538, - 45.4414685 - ], - [ - -70.8809878, - 45.4414685 - ], - [ - -70.8809878, - 45.3780612 - ], - [ - -71.13328, - 45.3780612 - ], - [ - -71.13328, - 45.3151452 - ], - [ - -71.3830282, - 45.3151452 - ], - [ - -71.3830282, - 45.253416 - ], - [ - -71.5076448, - 45.253416 - ], - [ - -71.5076448, - 45.0655726 - ], - [ - -73.9418929, - 45.0655726 - ], - [ - -73.9418929, - 45.0031242 - ], - [ - -74.7469725, - 45.0031242 - ], - [ - -74.7469725, - 45.0649003 - ], - [ - -74.8800964, - 45.0649003 - ], - [ - -74.8800964, - 45.0029023 - ], - [ - -75.0662455, - 45.0029023 - ], - [ - -75.0662455, - 44.9415167 - ], - [ - -75.2539363, - 44.9415167 - ], - [ - -75.2539363, - 44.8776043 - ], - [ - -75.3789648, - 44.8776043 - ], - [ - -75.3789648, - 44.8153462 - ], - [ - -75.4431283, - 44.8153462 - ], - [ - -75.4431283, - 44.7536053 - ], - [ - -75.5666566, - 44.7536053 - ], - [ - -75.5666566, - 44.6909879 - ], - [ - -75.6290205, - 44.6909879 - ], - [ - -75.6290205, - 44.6284958 - ], - [ - -75.7540484, - 44.6284958 - ], - [ - -75.7540484, - 44.566385 - ], - [ - -75.817312, - 44.566385 - ], - [ - -75.817312, - 44.5028932 - ], - [ - -75.8799549, - 44.5028932 - ], - [ - -75.8799549, - 44.3784946 - ], - [ - -76.1300319, - 44.3784946 - ], - [ - -76.1300319, - 44.3159227 - ], - [ - -76.1926961, - 44.3159227 - ], - [ - -76.1926961, - 44.2534378 - ], - [ - -76.3182619, - 44.2534378 - ], - [ - -76.3182619, - 44.1916726 - ], - [ - -76.3792975, - 44.1916726 - ], - [ - -76.3792975, - 44.0653733 - ], - [ - -76.4427584, - 44.0653733 - ], - [ - -76.4427584, - 43.9963825 - ], - [ - -76.317027, - 43.9963825 - ], - [ - -76.317027, - 43.9414581 - ], - [ - -76.5076611, - 43.9414581 - ], - [ - -76.5076611, - 43.8723335 - ], - [ - -76.3829974, - 43.8723335 - ], - [ - -76.3829974, - 43.8091872 - ], - [ - -76.2534102, - 43.8091872 - ], - [ - -76.2534102, - 43.5665222 - ], - [ - -76.5064833, - 43.5665222 - ], - [ - -76.5064833, - 43.5033881 - ], - [ - -76.6331208, - 43.5033881 - ], - [ - -76.6331208, - 43.4432252 - ], - [ - -76.6951085, - 43.4432252 - ], - [ - -76.6951085, - 43.3786858 - ], - [ - -76.8177798, - 43.3786858 - ], - [ - -76.8177798, - 43.318066 - ], - [ - -77.682, - 43.318066 - ], - [ - -77.682, - 43.3789376 - ], - [ - -78.0565883, - 43.3789376 - ], - [ - -78.0565883, - 43.4396918 - ], - [ - -78.4389748, - 43.4396918 - ], - [ - -78.4389748, - 43.3794382 - ], - [ - -78.8803396, - 43.3794382 - ], - [ - -78.8803396, - 43.3149724 - ], - [ - -79.1298858, - 43.3149724 - ], - [ - -79.1298858, - 43.2429286 - ], - [ - -79.0669615, - 43.2429286 - ], - [ - -79.0669615, - 43.1299931 - ], - [ - -79.1298858, - 43.1299931 - ], - [ - -79.1298858, - 43.0577305 - ], - [ - -79.071264, - 43.0577305 - ], - [ - -79.071264, - 42.9294906 - ], - [ - -78.943264, - 42.9294906 - ], - [ - -78.943264, - 42.7542165 - ], - [ - -79.069439, - 42.7542165 - ], - [ - -79.069439, - 42.6941622 - ], - [ - -79.133439, - 42.6941622 - ], - [ - -79.133439, - 42.6296973 - ], - [ - -79.1947499, - 42.6296973 - ], - [ - -79.1947499, - 42.5663538 - ], - [ - -79.3786827, - 42.5663538 - ], - [ - -79.3786827, - 42.5033425 - ], - [ - -79.4442961, - 42.5033425 - ], - [ - -79.4442961, - 42.4410614 - ], - [ - -79.5679936, - 42.4410614 - ], - [ - -79.5679936, - 42.3775264 - ], - [ - -79.6906154, - 42.3775264 - ], - [ - -79.6906154, - 42.3171086 - ], - [ - -79.8164642, - 42.3171086 - ], - [ - -79.8164642, - 42.2534481 - ], - [ - -80.0052373, - 42.2534481 - ], - [ - -80.0052373, - 42.1909188 - ], - [ - -80.1916829, - 42.1909188 - ], - [ - -80.1916829, - 42.1272555 - ], - [ - -80.3167992, - 42.1272555 - ], - [ - -80.3167992, - 42.0669857 - ], - [ - -80.5063234, - 42.0669857 - ], - [ - -80.5063234, - 42.0034331 - ], - [ - -80.6930471, - 42.0034331 - ], - [ - -80.6930471, - 41.9415141 - ], - [ - -80.9440403, - 41.9415141 - ], - [ - -80.9440403, - 41.8781193 - ], - [ - -81.1942729, - 41.8781193 - ], - [ - -81.1942729, - 41.8166455 - ], - [ - -81.3190089, - 41.8166455 - ], - [ - -81.3190089, - 41.7545453 - ], - [ - -81.4418435, - 41.7545453 - ], - [ - -81.4418435, - 41.690965 - ], - [ - -81.5053523, - 41.690965 - ], - [ - -81.5053523, - 41.6301643 - ], - [ - -82.7470081, - 41.6301643 - ], - [ - -82.7470081, - 41.7536942 - ], - [ - -82.8839135, - 41.7536942 - ], - [ - -82.8839135, - 41.5656075 - ], - [ - -82.9957195, - 41.5656075 - ], - [ - -82.9957195, - 41.6270375 - ], - [ - -83.1257796, - 41.6270375 - ], - [ - -83.1257796, - 41.6878411 - ], - [ - -83.2474733, - 41.6878411 - ], - [ - -83.2474733, - 41.7536942 - ], - [ - -83.3737305, - 41.7536942 - ], - [ - -83.3737305, - 41.809276 - ], - [ - -83.3106019, - 41.809276 - ], - [ - -83.3106019, - 41.8716064 - ], - [ - -83.2474733, - 41.8716064 - ], - [ - -83.2474733, - 41.9361393 - ], - [ - -83.1843447, - 41.9361393 - ], - [ - -83.1843447, - 41.9960851 - ], - [ - -83.1207681, - 41.9960851 - ], - [ - -83.1207681, - 42.2464812 - ], - [ - -83.0589194, - 42.2464812 - ], - [ - -83.0589194, - 42.3089555 - ], - [ - -82.8685328, - 42.3089555 - ], - [ - -82.8685328, - 42.3717652 - ], - [ - -82.8072219, - 42.3717652 - ], - [ - -82.8072219, - 42.558553 - ], - [ - -82.7553745, - 42.558553 - ], - [ - -82.7553745, - 42.4954945 - ], - [ - -82.5599041, - 42.4954945 - ], - [ - -82.5599041, - 42.558553 - ], - [ - -82.4967755, - 42.558553 - ], - [ - -82.4967755, - 42.6833607 - ], - [ - -82.4328863, - 42.6833607 - ], - [ - -82.4328863, - 42.9342196 - ], - [ - -82.3700552, - 42.9342196 - ], - [ - -82.3700552, - 43.0648071 - ], - [ - -82.4328863, - 43.0648071 - ], - [ - -82.4328863, - 43.1917566 - ], - [ - -82.4947464, - 43.1917566 - ], - [ - -82.4947464, - 43.5034627 - ], - [ - -82.557133, - 43.5034627 - ], - [ - -82.557133, - 43.8160901 - ], - [ - -82.6197884, - 43.8160901 - ], - [ - -82.6197884, - 43.9422098 - ], - [ - -82.6839499, - 43.9422098 - ], - [ - -82.6839499, - 44.0022641 - ], - [ - -82.7465346, - 44.0022641 - ], - [ - -82.7465346, - 44.0670545 - ], - [ - -82.8708696, - 44.0670545 - ], - [ - -82.8708696, - 44.1291935 - ], - [ - -83.008517, - 44.1291935 - ], - [ - -83.008517, - 44.0664786 - ], - [ - -83.1336086, - 44.0664786 - ], - [ - -83.1336086, - 44.0053949 - ], - [ - -83.2414522, - 44.0053949 - ], - [ - -83.2414522, - 44.9962034 - ], - [ - -83.1806112, - 44.9962034 - ], - [ - -83.1806112, - 45.067302 - ], - [ - -83.2455172, - 45.067302 - ], - [ - -83.2455172, - 45.1287382 - ], - [ - -83.3065878, - 45.1287382 - ], - [ - -83.3065878, - 45.2551509 - ], - [ - -83.3706087, - 45.2551509 - ], - [ - -83.3706087, - 45.3165923 - ], - [ - -83.4325644, - 45.3165923 - ], - [ - -83.4325644, - 45.3792105 - ], - [ - -83.6178415, - 45.3792105 - ], - [ - -83.6178415, - 45.4419665 - ], - [ - -83.8084291, - 45.4419665 - ], - [ - -83.8084291, - 45.5036189 - ], - [ - -84.0550718, - 45.5036189 - ], - [ - -84.0550718, - 45.5647907 - ], - [ - -84.1235181, - 45.5647907 - ], - [ - -84.1235181, - 45.6287845 - ], - [ - -84.1807534, - 45.6287845 - ], - [ - -84.1807534, - 45.6914688 - ], - [ - -84.3111554, - 45.6914688 - ], - [ - -84.3111554, - 45.9337076 - ], - [ - -83.8209974, - 45.9337076 - ], - [ - -83.8209974, - 45.8725113 - ], - [ - -83.4968086, - 45.8725113 - ], - [ - -83.4968086, - 45.9337076 - ], - [ - -83.4338066, - 45.9337076 - ], - [ - -83.4338066, - 46.0016863 - ], - [ - -83.4962697, - 46.0016863 - ], - [ - -83.4962697, - 46.0668178 - ], - [ - -83.5599956, - 46.0668178 - ], - [ - -83.5599956, - 46.1261576 - ], - [ - -83.9954558, - 46.1261576 - ], - [ - -83.9954558, - 46.1931747 - ], - [ - -84.0591816, - 46.1931747 - ], - [ - -84.0591816, - 46.3814972 - ], - [ - -84.1152614, - 46.3814972 - ], - [ - -84.1152614, - 46.4953584 - ], - [ - -84.0591816, - 46.4953584 - ], - [ - -84.0591816, - 46.5682653 - ], - [ - -84.2579545, - 46.5682653 - ], - [ - -84.2579545, - 46.5051232 - ], - [ - -84.3071879, - 46.5051232 - ], - [ - -84.3071879, - 46.5682653 - ], - [ - -84.4415364, - 46.5682653 - ], - [ - -84.4415364, - 46.504525 - ], - [ - -84.9965729, - 46.504525 - ], - [ - -84.9965729, - 46.6842882 - ], - [ - -84.9298158, - 46.6842882 - ], - [ - -84.9298158, - 46.818077 - ], - [ - -85.3165894, - 46.818077 - ], - [ - -85.3165894, - 46.7535825 - ], - [ - -87.5562645, - 46.7535825 - ], - [ - -87.5562645, - 47.4407371 - ], - [ - -87.6825361, - 47.4407371 - ], - [ - -87.6825361, - 47.5035554 - ], - [ - -88.2560738, - 47.5035554 - ], - [ - -88.2560738, - 47.4433716 - ], - [ - -88.4417419, - 47.4433716 - ], - [ - -88.4417419, - 47.3789949 - ], - [ - -88.50683, - 47.3789949 - ], - [ - -88.50683, - 47.3153881 - ], - [ - -88.6312821, - 47.3153881 - ], - [ - -88.6312821, - 47.2539782 - ], - [ - -88.7569636, - 47.2539782 - ], - [ - -88.7569636, - 47.1934682 - ], - [ - -88.8838253, - 47.1934682 - ], - [ - -88.8838253, - 47.1284735 - ], - [ - -88.9434208, - 47.1284735 - ], - [ - -88.9434208, - 47.0662127 - ], - [ - -89.0708726, - 47.0662127 - ], - [ - -89.0708726, - 47.0026826 - ], - [ - -89.2565553, - 47.0026826 - ], - [ - -89.2565553, - 46.9410806 - ], - [ - -90.3677669, - 46.9410806 - ], - [ - -90.3677669, - 47.6844827 - ], - [ - -90.3069978, - 47.6844827 - ], - [ - -90.3069978, - 47.7460174 - ], - [ - -89.994859, - 47.7460174 - ], - [ - -89.994859, - 47.8082719 - ], - [ - -89.8048615, - 47.8082719 - ], - [ - -89.8048615, - 47.8700562 - ], - [ - -89.6797699, - 47.8700562 - ], - [ - -89.6797699, - 47.9339637 - ], - [ - -89.4933757, - 47.9339637 - ], - [ - -89.4933757, - 47.9957956 - ], - [ - -89.4284697, - 47.9957956 - ], - [ - -89.4284697, - 48.0656377 - ], - [ - -89.9932739, - 48.0656377 - ], - [ - -89.9932739, - 48.1282966 - ], - [ - -90.7455933, - 48.1282966 - ], - [ - -90.7455933, - 48.1893056 - ], - [ - -90.8087291, - 48.1893056 - ], - [ - -90.8087291, - 48.2522065 - ], - [ - -91.067763, - 48.2522065 - ], - [ - -91.067763, - 48.1916658 - ], - [ - -91.1946247, - 48.1916658 - ], - [ - -91.1946247, - 48.1279027 - ], - [ - -91.6814196, - 48.1279027 - ], - [ - -91.6814196, - 48.2525994 - ], - [ - -91.9321927, - 48.2525994 - ], - [ - -91.9321927, - 48.3142454 - ], - [ - -91.9929683, - 48.3142454 - ], - [ - -91.9929683, - 48.3780845 - ], - [ - -92.3189383, - 48.3780845 - ], - [ - -92.3189383, - 48.2529081 - ], - [ - -92.3732233, - 48.2529081 - ], - [ - -92.3732233, - 48.3153385 - ], - [ - -92.4322288, - 48.3153385 - ], - [ - -92.4322288, - 48.4411448 - ], - [ - -92.4977248, - 48.4411448 - ], - [ - -92.4977248, - 48.501781 - ], - [ - -92.5679413, - 48.501781 - ], - [ - -92.5679413, - 48.439579 - ], - [ - -92.6210462, - 48.439579 - ], - [ - -92.6210462, - 48.5650783 - ], - [ - -92.8086835, - 48.5650783 - ], - [ - -92.8086835, - 48.6286865 - ], - [ - -92.8086835, - 48.6267365 - ], - [ - -92.933185, - 48.6267365 - ], - [ - -92.933185, - 48.6922145 - ], - [ - -93.0051716, - 48.6922145 - ], - [ - -93.0051716, - 48.6282965 - ], - [ - -93.1225924, - 48.6282965 - ], - [ - -93.1225924, - 48.6922145 - ], - [ - -93.3190806, - 48.6922145 - ], - [ - -93.3190806, - 48.6267365 - ], - [ - -93.5049477, - 48.6267365 - ], - [ - -93.5049477, - 48.5635164 - ], - [ - -93.7474601, - 48.5635164 - ], - [ - -93.7474601, - 48.6267365 - ], - [ - -93.8135461, - 48.6267365 - ], - [ - -93.8135461, - 48.6898775 - ], - [ - -94.2453121, - 48.6898775 - ], - [ - -94.2453121, - 48.7554327 - ], - [ - -94.6183171, - 48.7554327 - ], - [ - -94.6183171, - 48.941036 - ], - [ - -94.6809018, - 48.941036 - ], - [ - -94.6809018, - 49.0029737 - ], - [ - -94.7441532, - 49.0029737 - ], - [ - -94.7441532, - 49.2536079 - ], - [ - -94.8084069, - 49.2536079 - ], - [ - -94.8084069, - 49.3784134 - ], - [ - -95.1192391, - 49.3784134 - ], - [ - -95.1192391, - 49.4425264 - ], - [ - -95.1934341, - 49.4425264 - ], - [ - -95.1934341, - 49.0035292 - ], - [ - -96.87069, - 49.0035292 - ], - [ - -96.87069, - 49.0656063 - ], - [ - -99.0049312, - 49.0656063 - ], - [ - -99.0049312, - 49.0050714 - ], - [ - -109.3699257, - 49.0050714 - ], - [ - -109.3699257, - 49.0668231 - ], - [ - -109.5058746, - 49.0668231 - ], - [ - -109.5058746, - 49.0050714 - ], - [ - -114.1830014, - 49.0050714 - ], - [ - -114.1830014, - 49.0687317 - ], - [ - -114.7578709, - 49.0687317 - ], - [ - -114.7578709, - 49.0050714 - ], - [ - -115.433731, - 49.0050714 - ], - [ - -115.433731, - 49.0671412 - ], - [ - -116.5062706, - 49.0671412 - ], - [ - -116.5062706, - 49.0050714 - ], - [ - -117.3089504, - 49.0050714 - ], - [ - -117.3089504, - 49.0659803 - ], - [ - -119.882945, - 49.0659803 - ], - [ - -119.882945, - 49.0050714 - ], - [ - -120.1208555, - 49.0050714 - ], - [ - -120.1208555, - 49.0678367 - ], - [ - -121.4451636, - 49.0678367 - ], - [ - -121.4451636, - 49.0050714 - ], - [ - -121.9311808, - 49.0050714 - ], - [ - -121.9311808, - 49.0656099 - ], - [ - -122.817484, - 49.0656099 - ], - [ - -122.817484, - 49.0029143 - ], - [ - -122.8795155, - 49.0029143 - ], - [ - -122.8795155, - 48.9347018 - ], - [ - -122.8174629, - 48.9347018 - ], - [ - -122.8174629, - 48.8101998 - ], - [ - -122.7538859, - 48.8101998 - ], - [ - -122.7538859, - 48.7533758 - ], - [ - -122.8712937, - 48.7533758 - ], - [ - -122.8712937, - 48.8153948 - ], - [ - -123.0055391, - 48.8153948 - ], - [ - -123.0055391, - 48.7529529 - ], - [ - -123.1296926, - 48.7529529 - ], - [ - -123.1296926, - 48.6902201 - ], - [ - -123.1838197, - 48.6902201 - ], - [ - -123.1838197, - 48.7529029 - ] - ], - [ - [ - -122.9341743, - 37.7521547 - ], - [ - -122.9347457, - 37.6842013 - ], - [ - -123.0679013, - 37.6849023 - ], - [ - -123.0673747, - 37.7475251 - ], - [ - -123.1292603, - 37.7478506 - ], - [ - -123.1286894, - 37.815685 - ], - [ - -123.0590687, - 37.8153192 - ], - [ - -123.0595947, - 37.7528143 - ] - ], - [ - [ - -71.6299464, - 41.2540893 - ], - [ - -71.4966465, - 41.2541393 - ], - [ - -71.4965596, - 41.122965 - ], - [ - -71.6298594, - 41.1229149 - ] - ], - [ - [ - -70.3184265, - 41.3775196 - ], - [ - -70.3183384, - 41.2448243 - ], - [ - -70.1906612, - 41.2448722 - ], - [ - -70.1906239, - 41.1886019 - ], - [ - -69.9336025, - 41.1886984 - ], - [ - -69.933729, - 41.3791941 - ], - [ - -69.9950664, - 41.3791712 - ], - [ - -69.995109, - 41.443159 - ], - [ - -70.0707828, - 41.4431307 - ], - [ - -70.0706972, - 41.3144915 - ], - [ - -70.2461667, - 41.3144258 - ], - [ - -70.2462087, - 41.3775467 - ] - ], - [ - [ - -68.9403374, - 43.9404062 - ], - [ - -68.6856948, - 43.9404977 - ], - [ - -68.6856475, - 43.8721797 - ], - [ - -68.7465405, - 43.8721577 - ], - [ - -68.7464976, - 43.8102529 - ], - [ - -68.8090782, - 43.8102304 - ], - [ - -68.8090343, - 43.746728 - ], - [ - -68.8773094, - 43.7467034 - ], - [ - -68.8773544, - 43.8117826 - ], - [ - -68.9402483, - 43.8117599 - ] - ], - [ - [ - -123.1291466, - 49.0645144 - ], - [ - -122.9954224, - 49.0645144 - ], - [ - -122.9954224, - 48.9343243 - ], - [ - -123.1291466, - 48.9343243 - ] - ], - [ - [ - -82.9407144, - 24.7535913 - ], - [ - -82.8719398, - 24.7535913 - ], - [ - -82.8719398, - 24.6905653 - ], - [ - -82.7446233, - 24.6905653 - ], - [ - -82.7446233, - 24.6214593 - ], - [ - -82.8088038, - 24.6214593 - ], - [ - -82.8088038, - 24.5594908 - ], - [ - -82.9407144, - 24.5594908 - ] - ] - ] - }, - { - "name": "USGS Topographic Maps", - "type": "tms", - "template": "http://{switch:a,b,c}.tile.openstreetmap.us/usgs_scanned_topos/{zoom}/{x}/{y}.png", - "polygon": [ - [ - [ - -125.990173, - 48.9962416 - ], - [ - -125.989419, - 47.9948396 - ], - [ - -123.9929739, - 47.9955062 - ], - [ - -123.9922429, - 47.0059202 - ], - [ - -125.988688, - 47.0052409 - ], - [ - -125.9879604, - 46.0015618 - ], - [ - -123.9939396, - 46.0022529 - ], - [ - -123.9925238, - 43.9961708 - ], - [ - -124.9931832, - 43.9958116 - ], - [ - -124.9918175, - 41.9942149 - ], - [ - -125.9851789, - 41.9938465 - ], - [ - -125.9838655, - 40.0076111 - ], - [ - -123.9833285, - 40.0083757 - ], - [ - -123.9814115, - 37.002615 - ], - [ - -122.21903, - 37.0033173 - ], - [ - -122.2184144, - 36.011671 - ], - [ - -122.020087, - 36.011751 - ], - [ - -122.0188591, - 33.9961766 - ], - [ - -119.9787757, - 33.9970206 - ], - [ - -119.9775867, - 31.9987658 - ], - [ - -114.0122833, - 32.00129 - ], - [ - -114.0116894, - 30.9862401 - ], - [ - -105.998294, - 30.9896679 - ], - [ - -105.9971419, - 28.9901065 - ], - [ - -102.0210506, - 28.9918418 - ], - [ - -102.0204916, - 28.00733 - ], - [ - -100.0062436, - 28.0082173 - ], - [ - -100.0051143, - 25.991909 - ], - [ - -98.0109067, - 25.9928035 - ], - [ - -98.0103613, - 25.0063461 - ], - [ - -97.0161086, - 25.0067957 - ], - [ - -97.016654, - 25.9932494 - ], - [ - -95.9824825, - 25.9937132 - ], - [ - -95.9835999, - 27.9891175 - ], - [ - -94.0200898, - 27.9899826 - ], - [ - -94.0206586, - 28.9918129 - ], - [ - -88.0156706, - 28.9944338 - ], - [ - -88.0162494, - 30.0038862 - ], - [ - -86.0277506, - 30.0047454 - ], - [ - -86.0271719, - 28.9953016 - ], - [ - -84.0187909, - 28.9961781 - ], - [ - -84.017095, - 25.9817708 - ], - [ - -81.9971976, - 25.9826768 - ], - [ - -81.9966618, - 25.0134917 - ], - [ - -84.0165592, - 25.0125783 - ], - [ - -84.0160068, - 24.0052745 - ], - [ - -80.0199985, - 24.007096 - ], - [ - -80.0245309, - 32.0161282 - ], - [ - -78.0066484, - 32.0169819 - ], - [ - -78.0072238, - 32.9894278 - ], - [ - -77.8807233, - 32.9894807 - ], - [ - -77.8813253, - 33.9955918 - ], - [ - -76.0115411, - 33.9963653 - ], - [ - -76.0121459, - 34.9952552 - ], - [ - -74.0068449, - 34.9960749 - ], - [ - -74.0099997, - 40.0084254 - ], - [ - -72.0013745, - 40.0091931 - ], - [ - -72.002019, - 40.9912464 - ], - [ - -69.8797398, - 40.9920457 - ], - [ - -69.8804173, - 42.00893 - ], - [ - -69.9927682, - 42.0088883 - ], - [ - -69.9934462, - 43.0105166 - ], - [ - -67.9845366, - 43.0112496 - ], - [ - -67.985224, - 44.0103812 - ], - [ - -65.9892568, - 44.0110975 - ], - [ - -65.9921237, - 47.9993584 - ], - [ - -70.006442, - 47.9980181 - ], - [ - -70.005708, - 47.0042007 - ], - [ - -72.023686, - 47.003514 - ], - [ - -72.0222508, - 45.0059846 - ], - [ - -78.0146667, - 45.0038705 - ], - [ - -78.0139662, - 44.0026998 - ], - [ - -80.029686, - 44.0019763 - ], - [ - -80.0290052, - 43.0122994 - ], - [ - -81.995479, - 43.011582 - ], - [ - -81.9982986, - 47.0042713 - ], - [ - -87.505706, - 47.0023972 - ], - [ - -87.5064535, - 48.0142702 - ], - [ - -88.0260889, - 48.0140968 - ], - [ - -88.026838, - 49.0086686 - ], - [ - -93.9981078, - 49.0067142 - ], - [ - -93.9988778, - 50.0086456 - ], - [ - -96.0138899, - 50.0079995 - ], - [ - -96.0131199, - 49.0060547 - ] - ], - [ - [ - -160.5787616, - 22.5062947 - ], - [ - -160.5782192, - 21.4984647 - ], - [ - -159.0030121, - 21.499196 - ], - [ - -159.0027422, - 20.9951068 - ], - [ - -157.5083185, - 20.995803 - ], - [ - -157.5080519, - 20.4960241 - ], - [ - -155.966889, - 20.4967444 - ], - [ - -155.9674267, - 21.5028287 - ], - [ - -157.5044717, - 21.5021151 - ], - [ - -157.5047384, - 21.9984962 - ], - [ - -159.0090946, - 21.9978002 - ], - [ - -159.0093692, - 22.5070181 - ] - ], - [ - [ - -168.006102, - 68.9941463 - ], - [ - -168.0047628, - 68.0107853 - ], - [ - -165.4842481, - 68.0112562 - ], - [ - -165.4829337, - 67.0037303 - ], - [ - -168.0034485, - 67.0032389 - ], - [ - -168.002195, - 66.0017503 - ], - [ - -169.0087448, - 66.001546 - ], - [ - -169.0075381, - 64.9987675 - ], - [ - -168.0009882, - 64.9989798 - ], - [ - -167.9998282, - 63.9982374 - ], - [ - -164.9871288, - 63.9988964 - ], - [ - -164.9860062, - 62.9950845 - ], - [ - -167.9987057, - 62.9944019 - ], - [ - -167.9946035, - 59.0153692 - ], - [ - -162.5027857, - 59.0167799 - ], - [ - -162.5018149, - 58.0005815 - ], - [ - -160.0159024, - 58.0012389 - ], - [ - -160.0149725, - 57.000035 - ], - [ - -160.5054788, - 56.9999017 - ], - [ - -160.5045719, - 55.9968161 - ], - [ - -164.012195, - 55.9958373 - ], - [ - -164.0113186, - 55.00107 - ], - [ - -165.994782, - 55.0005023 - ], - [ - -165.9941266, - 54.2400584 - ], - [ - -168.0002944, - 54.2394734 - ], - [ - -168.0000986, - 54.0094921 - ], - [ - -170.0156134, - 54.0089011 - ], - [ - -170.0147683, - 53.0016446 - ], - [ - -171.9993636, - 53.0010487 - ], - [ - -171.9989488, - 52.4977745 - ], - [ - -176.0083239, - 52.4965566 - ], - [ - -176.0081186, - 52.2452555 - ], - [ - -178.000097, - 52.2446469 - ], - [ - -177.9992996, - 51.2554252 - ], - [ - -176.0073212, - 51.2560472 - ], - [ - -176.0075146, - 51.4980163 - ], - [ - -171.9981395, - 51.4992617 - ], - [ - -171.9985419, - 51.9985373 - ], - [ - -167.9984317, - 51.9997661 - ], - [ - -167.9994645, - 53.2560877 - ], - [ - -165.9932968, - 53.2566866 - ], - [ - -165.9939308, - 54.0100804 - ], - [ - -159.0067205, - 54.0121291 - ], - [ - -159.0075717, - 55.002502 - ], - [ - -158.0190709, - 55.0027849 - ], - [ - -158.0199473, - 55.9975094 - ], - [ - -151.9963213, - 55.9991902 - ], - [ - -151.9981536, - 57.9986536 - ], - [ - -151.500341, - 57.9987853 - ], - [ - -151.5012894, - 58.9919816 - ], - [ - -138.5159989, - 58.9953194 - ], - [ - -138.5150471, - 57.9986434 - ], - [ - -136.6872422, - 57.9991267 - ], - [ - -136.6863158, - 57.0016688 - ], - [ - -135.9973698, - 57.001856 - ], - [ - -135.9964667, - 56.0030544 - ], - [ - -134.6717732, - 56.003424 - ], - [ - -134.6708865, - 54.9969623 - ], - [ - -133.9956734, - 54.9971556 - ], - [ - -133.9948193, - 54.0031685 - ], - [ - -130.0044418, - 54.0043387 - ], - [ - -130.0070826, - 57.0000507 - ], - [ - -131.975877, - 56.9995156 - ], - [ - -131.9787378, - 59.9933094 - ], - [ - -138.0071813, - 59.991805 - ], - [ - -138.0082158, - 61.0125755 - ], - [ - -140.9874011, - 61.0118551 - ], - [ - -140.99984, - 71.0039309 - ], - [ - -154.5023956, - 71.0017377 - ], - [ - -154.5039632, - 71.9983391 - ], - [ - -157.499048, - 71.9978773 - ], - [ - -157.4974758, - 70.9982877 - ], - [ - -163.0233611, - 70.9973899 - ], - [ - -163.0218273, - 69.9707435 - ], - [ - -164.9730896, - 69.97041 - ], - [ - -164.9717003, - 68.994689 - ] - ], - [ - [ - -168.5133204, - 62.8689586 - ], - [ - -168.5144423, - 63.8765677 - ], - [ - -172.0202755, - 63.8757975 - ], - [ - -172.0191536, - 62.8681608 - ] - ], - [ - [ - -170.9947111, - 59.9954089 - ], - [ - -170.995726, - 60.9969787 - ], - [ - -174.0045311, - 60.9962508 - ], - [ - -174.0035162, - 59.9946581 - ] - ], - [ - [ - -156.0717261, - 20.2854602 - ], - [ - -154.7940471, - 20.2860582 - ], - [ - -154.7933145, - 18.9029464 - ], - [ - -156.0709936, - 18.9023432 - ] - ] - ] - }, - { - "name": "Vejmidte (Denmark)", - "type": "tms", - "template": "http://{switch:a,b,c}.tile.openstreetmap.dk/danmark/vejmidte/{zoom}/{x}/{y}.png", - "scaleExtent": [ - 0, - 20 - ], - "polygon": [ - [ - [ - 8.3743941, - 54.9551655 - ], - [ - 8.3683809, - 55.4042149 - ], - [ - 8.2103997, - 55.4039795 - ], - [ - 8.2087314, - 55.4937345 - ], - [ - 8.0502655, - 55.4924731 - ], - [ - 8.0185123, - 56.7501399 - ], - [ - 8.1819161, - 56.7509948 - ], - [ - 8.1763274, - 57.0208898 - ], - [ - 8.3413329, - 57.0219872 - ], - [ - 8.3392467, - 57.1119574 - ], - [ - 8.5054433, - 57.1123212 - ], - [ - 8.5033923, - 57.2020499 - ], - [ - 9.3316304, - 57.2027636 - ], - [ - 9.3319079, - 57.2924835 - ], - [ - 9.4978864, - 57.2919578 - ], - [ - 9.4988593, - 57.3820608 - ], - [ - 9.6649749, - 57.3811615 - ], - [ - 9.6687295, - 57.5605591 - ], - [ - 9.8351961, - 57.5596265 - ], - [ - 9.8374896, - 57.6493322 - ], - [ - 10.1725726, - 57.6462818 - ], - [ - 10.1754245, - 57.7367768 - ], - [ - 10.5118282, - 57.7330269 - ], - [ - 10.5152095, - 57.8228945 - ], - [ - 10.6834853, - 57.8207722 - ], - [ - 10.6751613, - 57.6412021 - ], - [ - 10.5077045, - 57.6433097 - ], - [ - 10.5039992, - 57.5535088 - ], - [ - 10.671038, - 57.5514113 - ], - [ - 10.6507805, - 57.1024538 - ], - [ - 10.4857673, - 57.1045138 - ], - [ - 10.4786236, - 56.9249051 - ], - [ - 10.3143981, - 56.9267573 - ], - [ - 10.3112341, - 56.8369269 - ], - [ - 10.4750295, - 56.83509 - ], - [ - 10.4649016, - 56.5656681 - ], - [ - 10.9524239, - 56.5589761 - ], - [ - 10.9479249, - 56.4692243 - ], - [ - 11.1099335, - 56.4664675 - ], - [ - 11.1052639, - 56.376833 - ], - [ - 10.9429901, - 56.3795284 - ], - [ - 10.9341235, - 56.1994768 - ], - [ - 10.7719685, - 56.2020244 - ], - [ - 10.7694751, - 56.1120103 - ], - [ - 10.6079695, - 56.1150259 - ], - [ - 10.4466742, - 56.116717 - ], - [ - 10.2865948, - 56.118675 - ], - [ - 10.2831527, - 56.0281851 - ], - [ - 10.4439274, - 56.0270388 - ], - [ - 10.4417713, - 55.7579243 - ], - [ - 10.4334961, - 55.6693533 - ], - [ - 10.743814, - 55.6646861 - ], - [ - 10.743814, - 55.5712253 - ], - [ - 10.8969041, - 55.5712253 - ], - [ - 10.9051793, - 55.3953852 - ], - [ - 11.0613726, - 55.3812841 - ], - [ - 11.0593038, - 55.1124061 - ], - [ - 11.0458567, - 55.0318621 - ], - [ - 11.2030844, - 55.0247474 - ], - [ - 11.2030844, - 55.117139 - ], - [ - 11.0593038, - 55.1124061 - ], - [ - 11.0613726, - 55.3812841 - ], - [ - 11.0789572, - 55.5712253 - ], - [ - 10.8969041, - 55.5712253 - ], - [ - 10.9258671, - 55.6670198 - ], - [ - 10.743814, - 55.6646861 - ], - [ - 10.7562267, - 55.7579243 - ], - [ - 10.4417713, - 55.7579243 - ], - [ - 10.4439274, - 56.0270388 - ], - [ - 10.4466742, - 56.116717 - ], - [ - 10.6079695, - 56.1150259 - ], - [ - 10.6052053, - 56.0247462 - ], - [ - 10.9258671, - 56.0201215 - ], - [ - 10.9197132, - 55.9309388 - ], - [ - 11.0802782, - 55.92792 - ], - [ - 11.0858066, - 56.0178284 - ], - [ - 11.7265047, - 56.005058 - ], - [ - 11.7319981, - 56.0952142 - ], - [ - 12.0540333, - 56.0871256 - ], - [ - 12.0608477, - 56.1762576 - ], - [ - 12.7023469, - 56.1594405 - ], - [ - 12.6611131, - 55.7114318 - ], - [ - 12.9792318, - 55.7014026 - ], - [ - 12.9612912, - 55.5217294 - ], - [ - 12.3268659, - 55.5412096 - ], - [ - 12.3206071, - 55.4513655 - ], - [ - 12.4778226, - 55.447067 - ], - [ - 12.4702432, - 55.3570479 - ], - [ - 12.6269738, - 55.3523837 - ], - [ - 12.6200898, - 55.2632576 - ], - [ - 12.4627339, - 55.26722 - ], - [ - 12.4552949, - 55.1778223 - ], - [ - 12.2987046, - 55.1822303 - ], - [ - 12.2897344, - 55.0923641 - ], - [ - 12.6048608, - 55.0832904 - ], - [ - 12.5872011, - 54.9036285 - ], - [ - 12.2766618, - 54.9119031 - ], - [ - 12.2610181, - 54.7331602 - ], - [ - 12.1070691, - 54.7378161 - ], - [ - 12.0858621, - 54.4681655 - ], - [ - 11.7794953, - 54.4753579 - ], - [ - 11.7837381, - 54.5654783 - ], - [ - 11.1658525, - 54.5782155 - ], - [ - 11.1706443, - 54.6686508 - ], - [ - 10.8617173, - 54.6733956 - ], - [ - 10.8651245, - 54.7634667 - ], - [ - 10.7713646, - 54.7643888 - ], - [ - 10.7707276, - 54.7372807 - ], - [ - 10.7551428, - 54.7375776 - ], - [ - 10.7544039, - 54.7195666 - ], - [ - 10.7389074, - 54.7197588 - ], - [ - 10.7384368, - 54.7108482 - ], - [ - 10.7074486, - 54.7113045 - ], - [ - 10.7041094, - 54.6756741 - ], - [ - 10.5510973, - 54.6781698 - ], - [ - 10.5547184, - 54.7670245 - ], - [ - 10.2423994, - 54.7705935 - ], - [ - 10.2459845, - 54.8604673 - ], - [ - 10.0902268, - 54.8622134 - ], - [ - 10.0873731, - 54.7723851 - ], - [ - 9.1555798, - 54.7769557 - ], - [ - 9.1562752, - 54.8675369 - ], - [ - 8.5321973, - 54.8663765 - ], - [ - 8.531432, - 54.95516 - ] - ], - [ - [ - 11.4577738, - 56.819554 - ], - [ - 11.7849181, - 56.8127385 - ], - [ - 11.7716715, - 56.6332796 - ], - [ - 11.4459621, - 56.6401087 - ] - ], - [ - [ - 11.3274736, - 57.3612962 - ], - [ - 11.3161808, - 57.1818004 - ], - [ - 11.1508692, - 57.1847276 - ], - [ - 11.1456628, - 57.094962 - ], - [ - 10.8157703, - 57.1001693 - ], - [ - 10.8290599, - 57.3695272 - ] - ], - [ - [ - 11.5843266, - 56.2777928 - ], - [ - 11.5782882, - 56.1880397 - ], - [ - 11.7392309, - 56.1845765 - ], - [ - 11.7456428, - 56.2743186 - ] - ], - [ - [ - 14.6825922, - 55.3639405 - ], - [ - 14.8395247, - 55.3565231 - ], - [ - 14.8263755, - 55.2671261 - ], - [ - 15.1393406, - 55.2517359 - ], - [ - 15.1532015, - 55.3410836 - ], - [ - 15.309925, - 55.3330556 - ], - [ - 15.295719, - 55.2437356 - ], - [ - 15.1393406, - 55.2517359 - ], - [ - 15.1255631, - 55.1623802 - ], - [ - 15.2815819, - 55.1544167 - ], - [ - 15.2535578, - 54.9757646 - ], - [ - 14.6317464, - 55.0062496 - ] - ] - ], - "terms_url": "http://wiki.openstreetmap.org/wiki/Vejmidte", - "terms_text": "Danish municipalities" - }, - { - "name": "Vienna: Beschriftungen (annotations)", - "type": "tms", - "template": "http://www.wien.gv.at/wmts/beschriftung/normal/google3857/{zoom}/{y}/{x}.png", - "scaleExtent": [ - 0, - 19 - ], - "polygon": [ - [ - [ - 16.17, - 48.1 - ], - [ - 16.17, - 48.33 - ], - [ - 16.58, - 48.33 - ], - [ - 16.58, - 48.1 - ], - [ - 16.17, - 48.1 - ] - ] - ], - "terms_url": "http://data.wien.gv.at/", - "terms_text": "Stadt Wien" - }, - { - "name": "Vienna: Mehrzweckkarte (general purpose)", - "type": "tms", - "template": "http://www.wien.gv.at/wmts/fmzk/pastell/google3857/{zoom}/{y}/{x}.jpeg", - "scaleExtent": [ - 0, - 19 - ], - "polygon": [ - [ - [ - 16.17, - 48.1 - ], - [ - 16.17, - 48.33 - ], - [ - 16.58, - 48.33 - ], - [ - 16.58, - 48.1 - ], - [ - 16.17, - 48.1 - ] - ] - ], - "terms_url": "http://data.wien.gv.at/", - "terms_text": "Stadt Wien" - }, - { - "name": "Vienna: Orthofoto (aerial image)", - "type": "tms", - "template": "http://www.wien.gv.at/wmts/lb/farbe/google3857/{zoom}/{y}/{x}.jpeg", - "scaleExtent": [ - 0, - 19 - ], - "polygon": [ - [ - [ - 16.17, - 48.1 - ], - [ - 16.17, - 48.33 - ], - [ - 16.58, - 48.33 - ], - [ - 16.58, - 48.1 - ], - [ - 16.17, - 48.1 - ] - ] - ], - "terms_url": "http://data.wien.gv.at/", - "terms_text": "Stadt Wien" - }, - { - "name": "basemap.at", - "type": "tms", - "description": "Basemap of Austria, based on goverment data.", - "template": "http://maps.wien.gv.at/basemap/geolandbasemap/normal/google3857/{zoom}/{y}/{x}.jpeg", - "polygon": [ - [ - [ - 16.5073284, - 46.9929304 - ], - [ - 16.283417, - 46.9929304 - ], - [ - 16.135839, - 46.8713046 - ], - [ - 15.9831722, - 46.8190947 - ], - [ - 16.0493278, - 46.655175 - ], - [ - 15.8610387, - 46.7180116 - ], - [ - 15.7592608, - 46.6900933 - ], - [ - 15.5607938, - 46.6796202 - ], - [ - 15.5760605, - 46.6342132 - ], - [ - 15.4793715, - 46.6027553 - ], - [ - 15.4335715, - 46.6516819 - ], - [ - 15.2249267, - 46.6342132 - ], - [ - 15.0468154, - 46.6481886 - ], - [ - 14.9908376, - 46.5887681 - ], - [ - 14.9603042, - 46.6237293 - ], - [ - 14.8534374, - 46.6027553 - ], - [ - 14.8330818, - 46.5012666 - ], - [ - 14.7516595, - 46.4977636 - ], - [ - 14.6804149, - 46.4381781 - ], - [ - 14.6142593, - 46.4381781 - ], - [ - 14.578637, - 46.3785275 - ], - [ - 14.4412369, - 46.4311638 - ], - [ - 14.1613476, - 46.4276563 - ], - [ - 14.1257253, - 46.4767409 - ], - [ - 14.0188585, - 46.4767409 - ], - [ - 13.9119917, - 46.5257813 - ], - [ - 13.8254805, - 46.5047694 - ], - [ - 13.4438134, - 46.560783 - ], - [ - 13.3064132, - 46.5502848 - ], - [ - 13.1283019, - 46.5887681 - ], - [ - 12.8433237, - 46.6132433 - ], - [ - 12.7262791, - 46.6412014 - ], - [ - 12.5125455, - 46.6656529 - ], - [ - 12.3598787, - 46.7040543 - ], - [ - 12.3649676, - 46.7703197 - ], - [ - 12.2886341, - 46.7772902 - ], - [ - 12.2733674, - 46.8852187 - ], - [ - 12.2072118, - 46.8747835 - ], - [ - 12.1308784, - 46.9026062 - ], - [ - 12.1156117, - 46.9998721 - ], - [ - 12.2530119, - 47.0657733 - ], - [ - 12.2123007, - 47.0934969 - ], - [ - 11.9833004, - 47.0449712 - ], - [ - 11.7339445, - 46.9616816 - ], - [ - 11.6321666, - 47.010283 - ], - [ - 11.5405665, - 46.9755722 - ], - [ - 11.4998553, - 47.0068129 - ], - [ - 11.418433, - 46.9651546 - ], - [ - 11.2555884, - 46.9755722 - ], - [ - 11.1130993, - 46.913036 - ], - [ - 11.0418548, - 46.7633482 - ], - [ - 10.8891879, - 46.7598621 - ], - [ - 10.7416099, - 46.7842599 - ], - [ - 10.7059877, - 46.8643462 - ], - [ - 10.5787653, - 46.8399847 - ], - [ - 10.4566318, - 46.8504267 - ], - [ - 10.4769874, - 46.9269392 - ], - [ - 10.3853873, - 46.9894592 - ], - [ - 10.2327204, - 46.8643462 - ], - [ - 10.1207647, - 46.8330223 - ], - [ - 9.8663199, - 46.9408389 - ], - [ - 9.9019422, - 47.0033426 - ], - [ - 9.6831197, - 47.0588402 - ], - [ - 9.6118752, - 47.0380354 - ], - [ - 9.6322307, - 47.128131 - ], - [ - 9.5813418, - 47.1662025 - ], - [ - 9.5406306, - 47.2664422 - ], - [ - 9.6067863, - 47.3492559 - ], - [ - 9.6729419, - 47.369939 - ], - [ - 9.6424085, - 47.4457079 - ], - [ - 9.5660751, - 47.4801122 - ], - [ - 9.7136531, - 47.5282405 - ], - [ - 9.7848976, - 47.5969187 - ], - [ - 9.8357866, - 47.5454185 - ], - [ - 9.9477423, - 47.538548 - ], - [ - 10.0902313, - 47.4491493 - ], - [ - 10.1105869, - 47.3664924 - ], - [ - 10.2428982, - 47.3871688 - ], - [ - 10.1869203, - 47.2698953 - ], - [ - 10.3243205, - 47.2975125 - ], - [ - 10.4820763, - 47.4491493 - ], - [ - 10.4311873, - 47.4869904 - ], - [ - 10.4413651, - 47.5900549 - ], - [ - 10.4871652, - 47.5522881 - ], - [ - 10.5482319, - 47.5351124 - ], - [ - 10.5991209, - 47.5660246 - ], - [ - 10.7568766, - 47.5316766 - ], - [ - 10.8891879, - 47.5454185 - ], - [ - 10.9400769, - 47.4869904 - ], - [ - 10.9960547, - 47.3906141 - ], - [ - 11.2352328, - 47.4422662 - ], - [ - 11.2810328, - 47.3975039 - ], - [ - 11.4235219, - 47.5144941 - ], - [ - 11.5761888, - 47.5076195 - ], - [ - 11.6067221, - 47.5900549 - ], - [ - 11.8357224, - 47.5866227 - ], - [ - 12.003656, - 47.6243647 - ], - [ - 12.2072118, - 47.6037815 - ], - [ - 12.1614117, - 47.6963421 - ], - [ - 12.2581008, - 47.7442718 - ], - [ - 12.2530119, - 47.6792136 - ], - [ - 12.4311232, - 47.7100408 - ], - [ - 12.4921899, - 47.631224 - ], - [ - 12.5685234, - 47.6277944 - ], - [ - 12.6295901, - 47.6894913 - ], - [ - 12.7720792, - 47.6689338 - ], - [ - 12.8331459, - 47.5419833 - ], - [ - 12.975635, - 47.4732332 - ], - [ - 13.0417906, - 47.4938677 - ], - [ - 13.0367017, - 47.5557226 - ], - [ - 13.0977685, - 47.6415112 - ], - [ - 13.0316128, - 47.7100408 - ], - [ - 12.9043905, - 47.7203125 - ], - [ - 13.0061684, - 47.84683 - ], - [ - 12.9451016, - 47.9355501 - ], - [ - 12.8636793, - 47.9594103 - ], - [ - 12.8636793, - 48.0036929 - ], - [ - 12.7517236, - 48.0989418 - ], - [ - 12.8738571, - 48.2109733 - ], - [ - 12.9603683, - 48.2109733 - ], - [ - 13.0417906, - 48.2652035 - ], - [ - 13.1842797, - 48.2990682 - ], - [ - 13.2606131, - 48.2922971 - ], - [ - 13.3980133, - 48.3565867 - ], - [ - 13.4438134, - 48.417418 - ], - [ - 13.4387245, - 48.5523383 - ], - [ - 13.509969, - 48.5860123 - ], - [ - 13.6117469, - 48.5725454 - ], - [ - 13.7287915, - 48.5118999 - ], - [ - 13.7847694, - 48.5725454 - ], - [ - 13.8203916, - 48.6263915 - ], - [ - 13.7949471, - 48.7171267 - ], - [ - 13.850925, - 48.7741724 - ], - [ - 14.0595697, - 48.6633774 - ], - [ - 14.0137696, - 48.6331182 - ], - [ - 14.0748364, - 48.5927444 - ], - [ - 14.2173255, - 48.5961101 - ], - [ - 14.3649034, - 48.5489696 - ], - [ - 14.4666813, - 48.6499311 - ], - [ - 14.5582815, - 48.5961101 - ], - [ - 14.5989926, - 48.6263915 - ], - [ - 14.7211261, - 48.5759124 - ], - [ - 14.7211261, - 48.6868997 - ], - [ - 14.822904, - 48.7271983 - ], - [ - 14.8178151, - 48.777526 - ], - [ - 14.9647227, - 48.7851754 - ], - [ - 14.9893637, - 49.0126611 - ], - [ - 15.1485933, - 48.9950306 - ], - [ - 15.1943934, - 48.9315502 - ], - [ - 15.3063491, - 48.9850128 - ], - [ - 15.3928603, - 48.9850128 - ], - [ - 15.4844604, - 48.9282069 - ], - [ - 15.749083, - 48.8545973 - ], - [ - 15.8406831, - 48.8880697 - ], - [ - 16.0086166, - 48.7808794 - ], - [ - 16.2070835, - 48.7339115 - ], - [ - 16.3953727, - 48.7372678 - ], - [ - 16.4920617, - 48.8110498 - ], - [ - 16.6905286, - 48.7741724 - ], - [ - 16.7057953, - 48.7339115 - ], - [ - 16.8991733, - 48.713769 - ], - [ - 16.9755067, - 48.515271 - ], - [ - 16.8482844, - 48.4511817 - ], - [ - 16.8533733, - 48.3464411 - ], - [ - 16.9551512, - 48.2516513 - ], - [ - 16.9907734, - 48.1498955 - ], - [ - 17.0925513, - 48.1397088 - ], - [ - 17.0823736, - 48.0241182 - ], - [ - 17.1739737, - 48.0207146 - ], - [ - 17.0823736, - 47.8741447 - ], - [ - 16.9856845, - 47.8673174 - ], - [ - 17.0823736, - 47.8092489 - ], - [ - 17.0925513, - 47.7031919 - ], - [ - 16.7414176, - 47.6792136 - ], - [ - 16.7057953, - 47.7511153 - ], - [ - 16.5378617, - 47.7545368 - ], - [ - 16.5480395, - 47.7066164 - ], - [ - 16.4208172, - 47.6689338 - ], - [ - 16.573484, - 47.6175045 - ], - [ - 16.670173, - 47.631224 - ], - [ - 16.7108842, - 47.538548 - ], - [ - 16.6599952, - 47.4491493 - ], - [ - 16.5429506, - 47.3940591 - ], - [ - 16.4615283, - 47.3940591 - ], - [ - 16.4920617, - 47.276801 - ], - [ - 16.425906, - 47.1973317 - ], - [ - 16.4717061, - 47.1489007 - ], - [ - 16.5480395, - 47.1489007 - ], - [ - 16.476795, - 47.0796369 - ], - [ - 16.527684, - 47.0588402 - ] - ] - ], - "terms_text": "basemap.at", - "id": "basemap.at" - } - ], - "wikipedia": [ - [ - "English", - "English", - "en" - ], - [ - "German", - "Deutsch", - "de" - ], - [ - "Dutch", - "Nederlands", - "nl" - ], - [ - "French", - "Français", - "fr" - ], - [ - "Italian", - "Italiano", - "it" - ], - [ - "Russian", - "Русский", - "ru" - ], - [ - "Spanish", - "Español", - "es" - ], - [ - "Polish", - "Polski", - "pl" - ], - [ - "Swedish", - "Svenska", - "sv" - ], - [ - "Japanese", - "日本語", - "ja" - ], - [ - "Portuguese", - "Português", - "pt" - ], - [ - "Chinese", - "中文", - "zh" - ], - [ - "Vietnamese", - "Tiếng Việt", - "vi" - ], - [ - "Ukrainian", - "Українська", - "uk" - ], - [ - "Catalan", - "Català", - "ca" - ], - [ - "Norwegian (BokmÃ¥l)", - "Norsk (BokmÃ¥l)", - "no" - ], - [ - "Waray-Waray", - "Winaray", - "war" - ], - [ - "Cebuano", - "Sinugboanong Binisaya", - "ceb" - ], - [ - "Finnish", - "Suomi", - "fi" - ], - [ - "Persian", - "فارسی", - "fa" - ], - [ - "Czech", - "ČeÅ¡tina", - "cs" - ], - [ - "Hungarian", - "Magyar", - "hu" - ], - [ - "Korean", - "한국어", - "ko" - ], - [ - "Romanian", - "Română", - "ro" - ], - [ - "Arabic", - "العربية", - "ar" - ], - [ - "Turkish", - "Türkçe", - "tr" - ], - [ - "Indonesian", - "Bahasa Indonesia", - "id" - ], - [ - "Kazakh", - "Қазақша", - "kk" - ], - [ - "Malay", - "Bahasa Melayu", - "ms" - ], - [ - "Serbian", - "Српски / Srpski", - "sr" - ], - [ - "Slovak", - "Slovenčina", - "sk" - ], - [ - "Esperanto", - "Esperanto", - "eo" - ], - [ - "Danish", - "Dansk", - "da" - ], - [ - "Lithuanian", - "Lietuvių", - "lt" - ], - [ - "Basque", - "Euskara", - "eu" - ], - [ - "Bulgarian", - "Български", - "bg" - ], - [ - "Hebrew", - "עברית", - "he" - ], - [ - "Slovenian", - "Slovenščina", - "sl" - ], - [ - "Croatian", - "Hrvatski", - "hr" - ], - [ - "Volapük", - "Volapük", - "vo" - ], - [ - "Estonian", - "Eesti", - "et" - ], - [ - "Hindi", - "हिन्दी", - "hi" - ], - [ - "Uzbek", - "O‘zbek", - "uz" - ], - [ - "Galician", - "Galego", - "gl" - ], - [ - "Norwegian (Nynorsk)", - "Nynorsk", - "nn" - ], - [ - "Simple English", - "Simple English", - "simple" - ], - [ - "Azerbaijani", - "Azərbaycanca", - "az" - ], - [ - "Latin", - "Latina", - "la" - ], - [ - "Greek", - "Ελληνικά", - "el" - ], - [ - "Thai", - "ไทย", - "th" - ], - [ - "Serbo-Croatian", - "Srpskohrvatski / Српскохрватски", - "sh" - ], - [ - "Georgian", - "ქართული", - "ka" - ], - [ - "Occitan", - "Occitan", - "oc" - ], - [ - "Macedonian", - "Македонски", - "mk" - ], - [ - "Newar / Nepal Bhasa", - "नेपाल भाषा", - "new" - ], - [ - "Tagalog", - "Tagalog", - "tl" - ], - [ - "Piedmontese", - "Piemontèis", - "pms" - ], - [ - "Belarusian", - "Беларуская", - "be" - ], - [ - "Haitian", - "Krèyol ayisyen", - "ht" - ], - [ - "Tamil", - "தமிழ்", - "ta" - ], - [ - "Telugu", - "తెలుగు", - "te" - ], - [ - "Belarusian (TaraÅ¡kievica)", - "Беларуская (тарашкевіца)", - "be-x-old" - ], - [ - "Latvian", - "LatvieÅ¡u", - "lv" - ], - [ - "Breton", - "Brezhoneg", - "br" - ], - [ - "Malagasy", - "Malagasy", - "mg" - ], - [ - "Albanian", - "Shqip", - "sq" - ], - [ - "Armenian", - "Հայերեն", - "hy" - ], - [ - "Tatar", - "Tatarça / Татарча", - "tt" - ], - [ - "Javanese", - "Basa Jawa", - "jv" - ], - [ - "Welsh", - "Cymraeg", - "cy" - ], - [ - "Marathi", - "मराठी", - "mr" - ], - [ - "Luxembourgish", - "Lëtzebuergesch", - "lb" - ], - [ - "Icelandic", - "Íslenska", - "is" - ], - [ - "Bosnian", - "Bosanski", - "bs" - ], - [ - "Burmese", - "မြန်မာဘာသာ", - "my" - ], - [ - "Yoruba", - "Yorùbá", - "yo" - ], - [ - "Bashkir", - "Башҡорт", - "ba" - ], - [ - "Malayalam", - "മലയാളം", - "ml" - ], - [ - "Aragonese", - "Aragonés", - "an" - ], - [ - "Lombard", - "Lumbaart", - "lmo" - ], - [ - "Afrikaans", - "Afrikaans", - "af" - ], - [ - "West Frisian", - "Frysk", - "fy" - ], - [ - "Western Panjabi", - "شاہ مکھی پنجابی (ShāhmukhÄ« PañjābÄ«)", - "pnb" - ], - [ - "Bengali", - "বাংলা", - "bn" - ], - [ - "Swahili", - "Kiswahili", - "sw" - ], - [ - "Bishnupriya Manipuri", - "ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী", - "bpy" - ], - [ - "Ido", - "Ido", - "io" - ], - [ - "Kirghiz", - "Кыргызча", - "ky" - ], - [ - "Urdu", - "اردو", - "ur" - ], - [ - "Nepali", - "नेपाली", - "ne" - ], - [ - "Sicilian", - "Sicilianu", - "scn" - ], - [ - "Gujarati", - "ગુજરાતી", - "gu" - ], - [ - "Cantonese", - "粵語", - "zh-yue" - ], - [ - "Low Saxon", - "Plattdüütsch", - "nds" - ], - [ - "Kurdish", - "Kurdî / كوردی", - "ku" - ], - [ - "Irish", - "Gaeilge", - "ga" - ], - [ - "Asturian", - "Asturianu", - "ast" - ], - [ - "Quechua", - "Runa Simi", - "qu" - ], - [ - "Sundanese", - "Basa Sunda", - "su" - ], - [ - "Chuvash", - "Чăваш", - "cv" - ], - [ - "Scots", - "Scots", - "sco" - ], - [ - "Interlingua", - "Interlingua", - "ia" - ], - [ - "Alemannic", - "Alemannisch", - "als" - ], - [ - "Buginese", - "Basa Ugi", - "bug" - ], - [ - "Neapolitan", - "Nnapulitano", - "nap" - ], - [ - "Samogitian", - "Žemaitėška", - "bat-smg" - ], - [ - "Kannada", - "ಕನ್ನಡ", - "kn" - ], - [ - "Banyumasan", - "Basa Banyumasan", - "map-bms" - ], - [ - "Walloon", - "Walon", - "wa" - ], - [ - "Amharic", - "አማርኛ", - "am" - ], - [ - "Sorani", - "Soranî / کوردی", - "ckb" - ], - [ - "Scottish Gaelic", - "Gàidhlig", - "gd" - ], - [ - "Fiji Hindi", - "Fiji Hindi", - "hif" - ], - [ - "Min Nan", - "Bân-lâm-gú", - "zh-min-nan" - ], - [ - "Tajik", - "Тоҷикӣ", - "tg" - ], - [ - "Mazandarani", - "مَزِروني", - "mzn" - ], - [ - "Egyptian Arabic", - "مصرى (Maá¹£rÄ«)", - "arz" - ], - [ - "Yiddish", - "ייִדיש", - "yi" - ], - [ - "Venetian", - "Vèneto", - "vec" - ], - [ - "Mongolian", - "Монгол", - "mn" - ], - [ - "Tarantino", - "Tarandíne", - "roa-tara" - ], - [ - "Sanskrit", - "संस्कृतम्", - "sa" - ], - [ - "Nahuatl", - "Nāhuatl", - "nah" - ], - [ - "Ossetian", - "Иронау", - "os" - ], - [ - "Sakha", - "Саха тыла (Saxa Tyla)", - "sah" - ], - [ - "Kapampangan", - "Kapampangan", - "pam" - ], - [ - "Upper Sorbian", - "Hornjoserbsce", - "hsb" - ], - [ - "Sinhalese", - "සිංහල", - "si" - ], - [ - "Northern Sami", - "Sámegiella", - "se" - ], - [ - "Limburgish", - "Limburgs", - "li" - ], - [ - "Maori", - "Māori", - "mi" - ], - [ - "Bavarian", - "Boarisch", - "bar" - ], - [ - "Corsican", - "Corsu", - "co" - ], - [ - "Ilokano", - "Ilokano", - "ilo" - ], - [ - "Gan", - "贛語", - "gan" - ], - [ - "Tibetan", - "བོད་སྐད", - "bo" - ], - [ - "Gilaki", - "گیلکی", - "glk" - ], - [ - "Faroese", - "Føroyskt", - "fo" - ], - [ - "Rusyn", - "русиньскый язык", - "rue" - ], - [ - "Punjabi", - "ਪੰਜਾਬੀ", - "pa" - ], - [ - "Central_Bicolano", - "Bikol", - "bcl" - ], - [ - "Hill Mari", - "Кырык Мары (Kyryk Mary) ", - "mrj" - ], - [ - "Võro", - "Võro", - "fiu-vro" - ], - [ - "Dutch Low Saxon", - "Nedersaksisch", - "nds-nl" - ], - [ - "Turkmen", - "تركمن / Туркмен", - "tk" - ], - [ - "Pashto", - "پښتو", - "ps" - ], - [ - "West Flemish", - "West-Vlams", - "vls" - ], - [ - "Mingrelian", - "მარგალური (Margaluri)", - "xmf" - ], - [ - "Manx", - "Gaelg", - "gv" - ], - [ - "Zazaki", - "Zazaki", - "diq" - ], - [ - "Pangasinan", - "Pangasinan", - "pag" - ], - [ - "Komi", - "Коми", - "kv" - ], - [ - "Zeelandic", - "Zeêuws", - "zea" - ], - [ - "Divehi", - "ދިވެހިބަސް", - "dv" - ], - [ - "Oriya", - "ଓଡ଼ିଆ", - "or" - ], - [ - "Khmer", - "ភាសាខ្មែរ", - "km" - ], - [ - "Norman", - "Nouormand/Normaund", - "nrm" - ], - [ - "Romansh", - "Rumantsch", - "rm" - ], - [ - "Komi-Permyak", - "Перем Коми (Perem Komi)", - "koi" - ], - [ - "Udmurt", - "Удмурт кыл", - "udm" - ], - [ - "Meadow Mari", - "Олык Марий (Olyk Marij)", - "mhr" - ], - [ - "Ladino", - "Dzhudezmo", - "lad" - ], - [ - "North Frisian", - "Nordfriisk", - "frr" - ], - [ - "Kashubian", - "Kaszëbsczi", - "csb" - ], - [ - "Ligurian", - "Líguru", - "lij" - ], - [ - "Wu", - "吴语", - "wuu" - ], - [ - "Friulian", - "Furlan", - "fur" - ], - [ - "Vepsian", - "Vepsän", - "vep" - ], - [ - "Classical Chinese", - "古文 / 文言文", - "zh-classical" - ], - [ - "Uyghur", - "ئۇيغۇر تىلى", - "ug" - ], - [ - "Saterland Frisian", - "Seeltersk", - "stq" - ], - [ - "Sardinian", - "Sardu", - "sc" - ], - [ - "Aromanian", - "Armãneashce", - "roa-rup" - ], - [ - "Pali", - "पाऴि", - "pi" - ], - [ - "Somali", - "Soomaaliga", - "so" - ], - [ - "Bihari", - "भोजपुरी", - "bh" - ], - [ - "Maltese", - "Malti", - "mt" - ], - [ - "Aymara", - "Aymar", - "ay" - ], - [ - "Ripuarian", - "Ripoarisch", - "ksh" - ], - [ - "Novial", - "Novial", - "nov" - ], - [ - "Anglo-Saxon", - "Englisc", - "ang" - ], - [ - "Cornish", - "Kernewek/Karnuack", - "kw" - ], - [ - "Navajo", - "Diné bizaad", - "nv" - ], - [ - "Picard", - "Picard", - "pcd" - ], - [ - "Hakka", - "Hak-kâ-fa / 客家話", - "hak" - ], - [ - "Guarani", - "Avañe'ẽ", - "gn" - ], - [ - "Extremaduran", - "Estremeñu", - "ext" - ], - [ - "Franco-Provençal/Arpitan", - "Arpitan", - "frp" - ], - [ - "Assamese", - "অসমীয়া", - "as" - ], - [ - "Silesian", - "Ślůnski", - "szl" - ], - [ - "Gagauz", - "Gagauz", - "gag" - ], - [ - "Interlingue", - "Interlingue", - "ie" - ], - [ - "Lingala", - "Lingala", - "ln" - ], - [ - "Emilian-Romagnol", - "Emiliàn e rumagnòl", - "eml" - ], - [ - "Chechen", - "Нохчийн", - "ce" - ], - [ - "Kalmyk", - "Хальмг", - "xal" - ], - [ - "Palatinate German", - "Pfälzisch", - "pfl" - ], - [ - "Hawaiian", - "Hawai`i", - "haw" - ], - [ - "Karachay-Balkar", - "Къарачай-Малкъар (Qarachay-Malqar)", - "krc" - ], - [ - "Pennsylvania German", - "Deitsch", - "pdc" - ], - [ - "Kinyarwanda", - "Ikinyarwanda", - "rw" - ], - [ - "Crimean Tatar", - "Qırımtatarca", - "crh" - ], - [ - "Acehnese", - "Bahsa Acèh", - "ace" - ], - [ - "Tongan", - "faka Tonga", - "to" - ], - [ - "Greenlandic", - "Kalaallisut", - "kl" - ], - [ - "Lower Sorbian", - "Dolnoserbski", - "dsb" - ], - [ - "Aramaic", - "ܐܪܡܝܐ", - "arc" - ], - [ - "Erzya", - "Эрзянь (Erzjanj Kelj)", - "myv" - ], - [ - "Lezgian", - "Лезги чІал (Lezgi č’al)", - "lez" - ], - [ - "Banjar", - "Bahasa Banjar", - "bjn" - ], - [ - "Shona", - "chiShona", - "sn" - ], - [ - "Papiamentu", - "Papiamentu", - "pap" - ], - [ - "Kabyle", - "Taqbaylit", - "kab" - ], - [ - "Tok Pisin", - "Tok Pisin", - "tpi" - ], - [ - "Lak", - "Лакку", - "lbe" - ], - [ - "Buryat (Russia)", - "Буряад", - "bxr" - ], - [ - "Lojban", - "Lojban", - "jbo" - ], - [ - "Wolof", - "Wolof", - "wo" - ], - [ - "Moksha", - "Мокшень (Mokshanj Kälj)", - "mdf" - ], - [ - "Zamboanga Chavacano", - "Chavacano de Zamboanga", - "cbk-zam" - ], - [ - "Avar", - "Авар", - "av" - ], - [ - "Sranan", - "Sranantongo", - "srn" - ], - [ - "Mirandese", - "Mirandés", - "mwl" - ], - [ - "Kabardian Circassian", - "Адыгэбзэ (Adighabze)", - "kbd" - ], - [ - "Tahitian", - "Reo Mā`ohi", - "ty" - ], - [ - "Lao", - "ລາວ", - "lo" - ], - [ - "Abkhazian", - "Аҧсуа", - "ab" - ], - [ - "Tetum", - "Tetun", - "tet" - ], - [ - "Latgalian", - "Latgaļu", - "ltg" - ], - [ - "Nauruan", - "dorerin Naoero", - "na" - ], - [ - "Kongo", - "KiKongo", - "kg" - ], - [ - "Igbo", - "Igbo", - "ig" - ], - [ - "Northern Sotho", - "Sesotho sa Leboa", - "nso" - ], - [ - "Zhuang", - "Cuengh", - "za" - ], - [ - "Karakalpak", - "Qaraqalpaqsha", - "kaa" - ], - [ - "Zulu", - "isiZulu", - "zu" - ], - [ - "Cheyenne", - "Tsetsêhestâhese", - "chy" - ], - [ - "Romani", - "romani - रोमानी", - "rmy" - ], - [ - "Old Church Slavonic", - "Словѣньскъ", - "cu" - ], - [ - "Tswana", - "Setswana", - "tn" - ], - [ - "Cherokee", - "ᏣᎳᎩ", - "chr" - ], - [ - "Bislama", - "Bislama", - "bi" - ], - [ - "Min Dong", - "Mìng-dĕ̤ng-ngṳ̄", - "cdo" - ], - [ - "Gothic", - "𐌲𐌿𐍄𐌹𐍃𐌺", - "got" - ], - [ - "Samoan", - "Gagana Samoa", - "sm" - ], - [ - "Moldovan", - "Молдовеняскэ", - "mo" - ], - [ - "Bambara", - "Bamanankan", - "bm" - ], - [ - "Inuktitut", - "ᐃᓄᒃᑎᑐᑦ", - "iu" - ], - [ - "Norfolk", - "Norfuk", - "pih" - ], - [ - "Pontic", - "Ποντιακά", - "pnt" - ], - [ - "Sindhi", - "سنڌي، سندھی ، सिन्ध", - "sd" - ], - [ - "Swati", - "SiSwati", - "ss" - ], - [ - "Kikuyu", - "GÄ©kÅ©yÅ©", - "ki" - ], - [ - "Ewe", - "Eʋegbe", - "ee" - ], - [ - "Hausa", - "هَوُسَ", - "ha" - ], - [ - "Oromo", - "Oromoo", - "om" - ], - [ - "Fijian", - "Na Vosa Vakaviti", - "fj" - ], - [ - "Tigrinya", - "ትግርኛ", - "ti" - ], - [ - "Tsonga", - "Xitsonga", - "ts" - ], - [ - "Kashmiri", - "कश्मीरी / كشميري", - "ks" - ], - [ - "Venda", - "Tshivenda", - "ve" - ], - [ - "Sango", - "Sängö", - "sg" - ], - [ - "Kirundi", - "Kirundi", - "rn" - ], - [ - "Sesotho", - "Sesotho", - "st" - ], - [ - "Dzongkha", - "ཇོང་ཁ", - "dz" - ], - [ - "Cree", - "Nehiyaw", - "cr" - ], - [ - "Akan", - "Akana", - "ak" - ], - [ - "Tumbuka", - "chiTumbuka", - "tum" - ], - [ - "Luganda", - "Luganda", - "lg" - ], - [ - "Chichewa", - "Chi-Chewa", - "ny" - ], - [ - "Fula", - "Fulfulde", - "ff" - ], - [ - "Inupiak", - "Iñupiak", - "ik" - ], - [ - "Chamorro", - "Chamoru", - "ch" - ], - [ - "Twi", - "Twi", - "tw" - ], - [ - "Xhosa", - "isiXhosa", - "xh" - ], - [ - "Ndonga", - "Oshiwambo", - "ng" - ], - [ - "Sichuan Yi", - "ꆇꉙ", - "ii" - ], - [ - "Choctaw", - "Choctaw", - "cho" - ], - [ - "Marshallese", - "Ebon", - "mh" - ], - [ - "Afar", - "Afar", - "aa" - ], - [ - "Kuanyama", - "Kuanyama", - "kj" - ], - [ - "Hiri Motu", - "Hiri Motu", - "ho" - ], - [ - "Muscogee", - "Muskogee", - "mus" - ], - [ - "Kanuri", - "Kanuri", - "kr" - ], - [ - "Herero", - "Otsiherero", - "hz" - ] - ], - "presets": { - "presets": { - "address": { - "fields": [ - "address" - ], - "geometry": [ - "point" - ], - "tags": { - "addr:housenumber": "*" - }, - "addTags": {}, - "removeTags": {}, - "matchScore": 0.2, - "name": "Address" - }, - "aerialway": { - "fields": [ - "aerialway" - ], - "geometry": [ - "point", - "vertex", - "line" - ], - "tags": { - "aerialway": "*" - }, - "terms": [ - "ski lift", - "funifor", - "funitel" - ], - "name": "Aerialway" - }, - "aerialway/cable_car": { - "geometry": [ - "line" - ], - "terms": [ - "tramway", - "ropeway" - ], - "fields": [ - "aerialway/occupancy", - "aerialway/capacity", - "aerialway/duration", - "aerialway/heating" - ], - "tags": { - "aerialway": "cable_car" - }, - "name": "Cable Car" - }, - "aerialway/chair_lift": { - "geometry": [ - "line" - ], - "fields": [ - "aerialway/occupancy", - "aerialway/capacity", - "aerialway/duration", - "aerialway/bubble", - "aerialway/heating" - ], - "tags": { - "aerialway": "chair_lift" - }, - "name": "Chair Lift" - }, - "aerialway/gondola": { - "geometry": [ - "line" - ], - "fields": [ - "aerialway/occupancy", - "aerialway/capacity", - "aerialway/duration", - "aerialway/bubble", - "aerialway/heating" - ], - "tags": { - "aerialway": "gondola" - }, - "name": "Gondola" - }, - "aerialway/magic_carpet": { - "geometry": [ - "line" - ], - "fields": [ - "aerialway/capacity", - "aerialway/duration", - "aerialway/heating" - ], - "tags": { - "aerialway": "magic_carpet" - }, - "name": "Magic Carpet Lift" - }, - "aerialway/platter": { - "geometry": [ - "line" - ], - "terms": [ - "button lift", - "poma lift" - ], - "fields": [ - "aerialway/capacity", - "aerialway/duration" - ], - "tags": { - "aerialway": "platter" - }, - "name": "Platter Lift" - }, - "aerialway/pylon": { - "geometry": [ - "point", - "vertex" - ], - "fields": [ - "ref" - ], - "tags": { - "aerialway": "pylon" - }, - "name": "Aerialway Pylon" - }, - "aerialway/rope_tow": { - "geometry": [ - "line" - ], - "terms": [ - "handle tow", - "bugel lift" - ], - "fields": [ - "aerialway/capacity", - "aerialway/duration" - ], - "tags": { - "aerialway": "rope_tow" - }, - "name": "Rope Tow Lift" - }, - "aerialway/station": { - "geometry": [ - "point", - "vertex" - ], - "fields": [ - "aerialway/access", - "aerialway/summer/access", - "elevation" - ], - "tags": { - "aerialway": "station" - }, - "name": "Aerialway Station" - }, - "aerialway/t-bar": { - "geometry": [ - "line" - ], - "fields": [ - "aerialway/capacity", - "aerialway/duration" - ], - "tags": { - "aerialway": "t-bar" - }, - "name": "T-bar Lift" - }, - "aeroway": { - "icon": "airport", - "fields": [ - "aeroway" - ], - "geometry": [ - "point", - "vertex", - "line", - "area" - ], - "tags": { - "aeroway": "*" - }, - "name": "Aeroway" - }, - "aeroway/aerodrome": { - "icon": "airport", - "geometry": [ - "point", - "area" - ], - "terms": [ - "airplane", - "airport", - "aerodrome" - ], - "fields": [ - "ref", - "iata", - "icao", - "operator" - ], - "tags": { - "aeroway": "aerodrome" - }, - "name": "Airport" - }, - "aeroway/apron": { - "icon": "airport", - "geometry": [ - "area" - ], - "terms": [ - "ramp" - ], - "fields": [ - "ref", - "surface" - ], - "tags": { - "aeroway": "apron" - }, - "name": "Apron" - }, - "aeroway/gate": { - "icon": "airport", - "geometry": [ - "point" - ], - "fields": [ - "ref" - ], - "tags": { - "aeroway": "gate" - }, - "name": "Airport gate" - }, - "aeroway/hangar": { - "geometry": [ - "area" - ], - "fields": [ - "building_area" - ], - "tags": { - "aeroway": "hangar" - }, - "name": "Hangar" - }, - "aeroway/helipad": { - "icon": "heliport", - "geometry": [ - "point", - "area" - ], - "terms": [ - "helicopter", - "helipad", - "heliport" - ], - "tags": { - "aeroway": "helipad" - }, - "name": "Helipad" - }, - "aeroway/runway": { - "geometry": [ - "line", - "area" - ], - "terms": [ - "landing strip" - ], - "fields": [ - "ref", - "surface", - "length", - "width" - ], - "tags": { - "aeroway": "runway" - }, - "name": "Runway" - }, - "aeroway/taxiway": { - "geometry": [ - "line" - ], - "fields": [ - "ref", - "surface" - ], - "tags": { - "aeroway": "taxiway" - }, - "name": "Taxiway" - }, - "aeroway/terminal": { - "geometry": [ - "point", - "area" - ], - "terms": [ - "airport", - "aerodrome" - ], - "fields": [ - "operator", - "building_area" - ], - "tags": { - "aeroway": "terminal" - }, - "name": "Airport terminal" - }, - "amenity": { - "fields": [ - "amenity" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "*" - }, - "name": "Amenity" - }, - "amenity/arts_centre": { - "name": "Arts Center", - "geometry": [ - "point", - "area" - ], - "terms": [ - "arts", - "arts centre" - ], - "tags": { - "amenity": "arts_centre" - }, - "icon": "theatre", - "fields": [ - "building_area", - "address" - ] - }, - "amenity/atm": { - "icon": "bank", - "fields": [ - "operator" - ], - "geometry": [ - "point", - "vertex" - ], - "tags": { - "amenity": "atm" - }, - "name": "ATM" - }, - "amenity/bank": { - "icon": "bank", - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "coffer", - "countinghouse", - "credit union", - "depository", - "exchequer", - "fund", - "hoard", - "investment firm", - "repository", - "reserve", - "reservoir", - "safe", - "savings", - "stock", - "stockpile", - "store", - "storehouse", - "thrift", - "treasury", - "trust company", - "vault" - ], - "tags": { - "amenity": "bank" - }, - "name": "Bank" - }, - "amenity/bar": { - "icon": "bar", - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "bar" - }, - "terms": [], - "name": "Bar" - }, - "amenity/bbq": { - "geometry": [ - "point" - ], - "tags": { - "amenity": "bbq" - }, - "fields": [ - "covered", - "fuel" - ], - "terms": [ - "barbecue", - "bbq", - "grill" - ], - "name": "Barbecue/Grill" - }, - "amenity/bench": { - "geometry": [ - "point", - "vertex", - "line" - ], - "tags": { - "amenity": "bench" - }, - "fields": [ - "backrest" - ], - "name": "Bench" - }, - "amenity/bicycle_parking": { - "icon": "bicycle", - "fields": [ - "bicycle_parking", - "capacity", - "operator", - "covered", - "access_simple" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "bicycle_parking" - }, - "name": "Bicycle Parking" - }, - "amenity/bicycle_rental": { - "icon": "bicycle", - "fields": [ - "capacity", - "network", - "operator" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "bicycle_rental" - }, - "name": "Bicycle Rental" - }, - "amenity/boat_rental": { - "geometry": [ - "point", - "area" - ], - "tags": { - "amenity": "boat_rental" - }, - "fields": [ - "operator" - ], - "name": "Boat Rental" - }, - "amenity/cafe": { - "icon": "cafe", - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "coffee", - "tea", - "coffee shop" - ], - "tags": { - "amenity": "cafe" - }, - "name": "Cafe" - }, - "amenity/car_rental": { - "icon": "car", - "geometry": [ - "point", - "area" - ], - "tags": { - "amenity": "car_rental" - }, - "fields": [ - "operator" - ], - "name": "Car Rental" - }, - "amenity/car_sharing": { - "icon": "car", - "geometry": [ - "point", - "area" - ], - "tags": { - "amenity": "car_sharing" - }, - "fields": [ - "operator", - "capacity" - ], - "name": "Car Sharing" - }, - "amenity/car_wash": { - "icon": "car", - "geometry": [ - "point", - "area" - ], - "tags": { - "amenity": "car_wash" - }, - "fields": [ - "building_area" - ], - "name": "Car Wash" - }, - "amenity/charging_station": { - "icon": "car", - "geometry": [ - "point", - "area" - ], - "tags": { - "amenity": "charging_station" - }, - "fields": [ - "operator" - ], - "terms": [ - "EV", - "Electric Vehicle", - "Supercharger" - ], - "name": "Charging Station" - }, - "amenity/childcare": { - "icon": "school", - "fields": [ - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "nursery", - "orphanage", - "playgroup" - ], - "tags": { - "amenity": "childcare" - }, - "name": "Childcare" - }, - "amenity/cinema": { - "icon": "cinema", - "fields": [ - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "big screen", - "bijou", - "cine", - "drive-in", - "film", - "flicks", - "motion pictures", - "movie house", - "movie theater", - "moving pictures", - "nabes", - "photoplay", - "picture show", - "pictures", - "playhouse", - "show", - "silver screen" - ], - "tags": { - "amenity": "cinema" - }, - "name": "Cinema" - }, - "amenity/clinic": { - "name": "Clinic", - "geometry": [ - "point", - "area" - ], - "terms": [ - "clinic", - "medical clinic" - ], - "tags": { - "amenity": "clinic" - }, - "icon": "hospital", - "fields": [ - "building_area", - "address", - "opening_hours" - ] - }, - "amenity/clock": { - "geometry": [ - "point", - "vertex" - ], - "tags": { - "amenity": "clock" - }, - "name": "Clock" - }, - "amenity/college": { - "icon": "college", - "fields": [ - "operator", - "address" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "amenity": "college" - }, - "terms": [], - "name": "College" - }, - "amenity/compressed_air": { - "icon": "car", - "geometry": [ - "point", - "area" - ], - "tags": { - "amenity": "compressed_air" - }, - "name": "Compressed Air" - }, - "amenity/courthouse": { - "fields": [ - "operator", - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "courthouse" - }, - "name": "Courthouse" - }, - "amenity/dentist": { - "name": "Dentist", - "geometry": [ - "point", - "area" - ], - "terms": [ - "dentist", - "dentist's office" - ], - "tags": { - "amenity": "dentist" - }, - "icon": "hospital", - "fields": [ - "building_area", - "address", - "opening_hours" - ] - }, - "amenity/doctor": { - "name": "Doctor", - "geometry": [ - "point", - "area" - ], - "terms": [ - "doctor", - "doctor's office" - ], - "tags": { - "amenity": "doctors" - }, - "icon": "hospital", - "fields": [ - "building_area", - "address", - "opening_hours" - ] - }, - "amenity/drinking_water": { - "icon": "water", - "geometry": [ - "point" - ], - "tags": { - "amenity": "drinking_water" - }, - "terms": [ - "water fountain", - "potable water" - ], - "name": "Drinking Water" - }, - "amenity/embassy": { - "geometry": [ - "area", - "point" - ], - "tags": { - "amenity": "embassy" - }, - "fields": [ - "country", - "building_area" - ], - "icon": "embassy", - "name": "Embassy" - }, - "amenity/fast_food": { - "icon": "fast-food", - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "fast_food" - }, - "terms": [], - "name": "Fast Food" - }, - "amenity/fire_station": { - "icon": "fire-station", - "fields": [ - "operator", - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "fire_station" - }, - "terms": [], - "name": "Fire Station" - }, - "amenity/fountain": { - "geometry": [ - "point", - "area" - ], - "tags": { - "amenity": "fountain" - }, - "name": "Fountain" - }, - "amenity/fuel": { - "icon": "fuel", - "fields": [ - "operator", - "address", - "building_area" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "petrol", - "fuel", - "propane", - "diesel", - "lng", - "cng", - "biodiesel" - ], - "tags": { - "amenity": "fuel" - }, - "name": "Gas Station" - }, - "amenity/grave_yard": { - "icon": "cemetery", - "fields": [ - "religion", - "denomination" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "grave_yard" - }, - "name": "Graveyard" - }, - "amenity/hospital": { - "icon": "hospital", - "fields": [ - "emergency", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "clinic", - "emergency room", - "health service", - "hospice", - "infirmary", - "institution", - "nursing home", - "rest home", - "sanatorium", - "sanitarium", - "sick bay", - "surgery", - "ward" - ], - "tags": { - "amenity": "hospital" - }, - "name": "Hospital Grounds" - }, - "amenity/kindergarten": { - "icon": "school", - "fields": [ - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "nursery", - "preschool" - ], - "tags": { - "amenity": "kindergarten" - }, - "name": "Kindergarten Grounds" - }, - "amenity/library": { - "icon": "library", - "fields": [ - "operator", - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "library" - }, - "terms": [], - "name": "Library" - }, - "amenity/marketplace": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "marketplace" - }, - "fields": [ - "building_area" - ], - "name": "Marketplace" - }, - "amenity/nightclub": { - "icon": "bar", - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "nightclub" - }, - "terms": [ - "disco*", - "night club", - "dancing", - "dance club" - ], - "name": "Nightclub" - }, - "amenity/parking": { - "icon": "parking", - "fields": [ - "parking", - "capacity", - "fee", - "access_simple", - "supervised", - "park_ride", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "parking" - }, - "terms": [], - "name": "Car Parking" - }, - "amenity/parking_entrance": { - "icon": "entrance", - "geometry": [ - "vertex" - ], - "tags": { - "amenity": "parking_entrance" - }, - "fields": [ - "access_simple", - "ref" - ], - "name": "Parking Garage Entrance/Exit" - }, - "amenity/pharmacy": { - "icon": "pharmacy", - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "pharmacy" - }, - "terms": [], - "name": "Pharmacy" - }, - "amenity/place_of_worship": { - "icon": "place-of-worship", - "fields": [ - "religion", - "denomination", - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "abbey", - "basilica", - "bethel", - "cathedral", - "chancel", - "chantry", - "chapel", - "church", - "fold", - "house of God", - "house of prayer", - "house of worship", - "minster", - "mission", - "mosque", - "oratory", - "parish", - "sacellum", - "sanctuary", - "shrine", - "synagogue", - "tabernacle", - "temple" - ], - "tags": { - "amenity": "place_of_worship" - }, - "name": "Place of Worship" - }, - "amenity/place_of_worship/buddhist": { - "icon": "place-of-worship", - "fields": [ - "denomination", - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "stupa", - "vihara", - "monastery", - "temple", - "pagoda", - "zendo", - "dojo" - ], - "tags": { - "amenity": "place_of_worship", - "religion": "buddhist" - }, - "name": "Buddhist Temple" - }, - "amenity/place_of_worship/christian": { - "icon": "religious-christian", - "fields": [ - "denomination", - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "christian", - "abbey", - "basilica", - "bethel", - "cathedral", - "chancel", - "chantry", - "chapel", - "church", - "fold", - "house of God", - "house of prayer", - "house of worship", - "minster", - "mission", - "oratory", - "parish", - "sacellum", - "sanctuary", - "shrine", - "tabernacle", - "temple" - ], - "tags": { - "amenity": "place_of_worship", - "religion": "christian" - }, - "name": "Church" - }, - "amenity/place_of_worship/jewish": { - "icon": "religious-jewish", - "fields": [ - "denomination", - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "jewish", - "synagogue" - ], - "tags": { - "amenity": "place_of_worship", - "religion": "jewish" - }, - "name": "Synagogue" - }, - "amenity/place_of_worship/muslim": { - "icon": "religious-muslim", - "fields": [ - "denomination", - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "muslim", - "mosque" - ], - "tags": { - "amenity": "place_of_worship", - "religion": "muslim" - }, - "name": "Mosque" - }, - "amenity/police": { - "icon": "police", - "fields": [ - "operator", - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "badge", - "bear", - "blue", - "bluecoat", - "bobby", - "boy scout", - "bull", - "constable", - "constabulary", - "cop", - "copper", - "corps", - "county mounty", - "detective", - "fed", - "flatfoot", - "force", - "fuzz", - "gendarme", - "gumshoe", - "heat", - "law", - "law enforcement", - "man", - "narc", - "officers", - "patrolman", - "police" - ], - "tags": { - "amenity": "police" - }, - "name": "Police" - }, - "amenity/post_box": { - "icon": "post", - "fields": [ - "operator", - "collection_times" - ], - "geometry": [ - "point", - "vertex" - ], - "tags": { - "amenity": "post_box" - }, - "terms": [ - "letter drop", - "letterbox", - "mail drop", - "mailbox", - "pillar box", - "postbox" - ], - "name": "Mailbox" - }, - "amenity/post_office": { - "icon": "post", - "fields": [ - "operator", - "collection_times", - "building_area" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "post_office" - }, - "name": "Post Office" - }, - "amenity/pub": { - "icon": "beer", - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "pub" - }, - "terms": [], - "name": "Pub" - }, - "amenity/ranger_station": { - "fields": [ - "building_area", - "opening_hours", - "operator", - "phone" - ], - "geometry": [ - "point", - "area" - ], - "terms": [ - "visitor center", - "visitor centre", - "permit center", - "permit centre", - "backcountry office", - "warden office", - "warden center" - ], - "tags": { - "amenity": "ranger_station" - }, - "name": "Ranger Station" - }, - "amenity/recycling": { - "icon": "recycling", - "fields": [ - "recycling/cans", - "recycling/glass", - "recycling/paper", - "recycling/clothes" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [], - "tags": { - "amenity": "recycling" - }, - "name": "Recycling" - }, - "amenity/restaurant": { - "icon": "restaurant", - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "bar", - "cafeteria", - "café", - "canteen", - "chophouse", - "coffee shop", - "diner", - "dining room", - "dive*", - "doughtnut shop", - "drive-in", - "eatery", - "eating house", - "eating place", - "fast-food place", - "fish and chips", - "greasy spoon", - "grill", - "hamburger stand", - "hashery", - "hideaway", - "hotdog stand", - "inn", - "joint*", - "luncheonette", - "lunchroom", - "night club", - "outlet*", - "pizzeria", - "saloon", - "soda fountain", - "watering hole" - ], - "tags": { - "amenity": "restaurant" - }, - "name": "Restaurant" - }, - "amenity/school": { - "icon": "school", - "fields": [ - "operator", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "academy", - "alma mater", - "blackboard", - "college", - "department", - "discipline", - "establishment", - "faculty", - "hall", - "halls of ivy", - "institute", - "institution", - "jail*", - "schoolhouse", - "seminary", - "university" - ], - "tags": { - "amenity": "school" - }, - "name": "School Grounds" - }, - "amenity/shelter": { - "fields": [ - "shelter_type" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "shelter" - }, - "terms": [ - "lean-to" - ], - "name": "Shelter" - }, - "amenity/social_facility": { - "name": "Social Facility", - "geometry": [ - "point", - "area" - ], - "terms": [], - "tags": { - "amenity": "social_facility" - }, - "fields": [ - "social_facility_for", - "address", - "phone", - "opening_hours", - "wheelchair", - "operator" - ] - }, - "amenity/social_facility/food_bank": { - "name": "Food Bank", - "geometry": [ - "point", - "area" - ], - "terms": [], - "tags": { - "amenity": "social_facility", - "social_facility": "food_bank" - }, - "fields": [ - "social_facility_for", - "address", - "phone", - "opening_hours", - "wheelchair", - "operator" - ] - }, - "amenity/social_facility/group_home": { - "name": "Group Home", - "geometry": [ - "point", - "area" - ], - "terms": [ - "elderly", - "old", - "senior living" - ], - "tags": { - "amenity": "social_facility", - "social_facility": "group_home", - "social_facility_for": "senior" - }, - "fields": [ - "social_facility_for", - "address", - "phone", - "opening_hours", - "wheelchair", - "operator" - ] - }, - "amenity/social_facility/homeless_shelter": { - "name": "Homeless Shelter", - "geometry": [ - "point", - "area" - ], - "terms": [ - "houseless", - "unhoused", - "displaced" - ], - "tags": { - "amenity": "social_facility", - "social_facility": "shelter", - "social_facility:for": "homeless" - }, - "fields": [ - "social_facility_for", - "address", - "phone", - "opening_hours", - "wheelchair", - "operator" - ] - }, - "amenity/studio": { - "name": "Studio", - "geometry": [ - "point", - "area" - ], - "terms": [ - "recording studio", - "studio", - "radio", - "radio studio", - "television", - "television studio" - ], - "tags": { - "amenity": "studio" - }, - "icon": "music", - "fields": [ - "building_area", - "studio_type", - "address" - ] - }, - "amenity/swimming_pool": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "swimming_pool" - }, - "icon": "swimming", - "searchable": false, - "name": "Swimming Pool" - }, - "amenity/taxi": { - "fields": [ - "operator", - "capacity" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "cab" - ], - "tags": { - "amenity": "taxi" - }, - "name": "Taxi Stand" - }, - "amenity/telephone": { - "icon": "telephone", - "geometry": [ - "point", - "vertex" - ], - "tags": { - "amenity": "telephone" - }, - "terms": [ - "phone" - ], - "name": "Telephone" - }, - "amenity/theatre": { - "icon": "theatre", - "fields": [ - "operator", - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "theatre", - "performance", - "play", - "musical" - ], - "tags": { - "amenity": "theatre" - }, - "name": "Theater" - }, - "amenity/toilets": { - "fields": [ - "toilets/disposal", - "operator", - "building_area", - "fee", - "access_simple" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "bathroom", - "restroom", - "outhouse", - "privy", - "head", - "lavatory", - "latrine", - "water closet", - "WC", - "W.C." - ], - "tags": { - "amenity": "toilets" - }, - "icon": "toilets", - "name": "Toilets" - }, - "amenity/townhall": { - "icon": "town-hall", - "fields": [ - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "village hall", - "city government", - "courthouse", - "municipal building", - "municipal center", - "municipal centre" - ], - "tags": { - "amenity": "townhall" - }, - "name": "Town Hall" - }, - "amenity/university": { - "icon": "college", - "fields": [ - "operator", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "amenity": "university" - }, - "terms": [ - "college" - ], - "name": "University" - }, - "amenity/vending_machine": { - "fields": [ - "vending", - "operator" - ], - "geometry": [ - "point" - ], - "tags": { - "amenity": "vending_machine" - }, - "name": "Vending Machine" - }, - "amenity/veterinary": { - "fields": [], - "geometry": [ - "point", - "area" - ], - "terms": [ - "pet clinic", - "veterinarian", - "animal hospital", - "pet doctor" - ], - "tags": { - "amenity": "veterinary" - }, - "name": "Veterinary" - }, - "amenity/waste_basket": { - "icon": "waste-basket", - "geometry": [ - "point", - "vertex" - ], - "tags": { - "amenity": "waste_basket" - }, - "terms": [ - "rubbish bin", - "litter bin", - "trash can", - "garbage can" - ], - "name": "Waste Basket" - }, - "area": { - "name": "Area", - "tags": { - "area": "yes" - }, - "geometry": [ - "area" - ], - "matchScore": 0.1 - }, - "barrier": { - "geometry": [ - "point", - "vertex", - "line", - "area" - ], - "tags": { - "barrier": "*" - }, - "fields": [ - "barrier" - ], - "name": "Barrier" - }, - "barrier/block": { - "fields": [ - "access" - ], - "geometry": [ - "point", - "vertex" - ], - "tags": { - "barrier": "block" - }, - "name": "Block" - }, - "barrier/bollard": { - "fields": [ - "access" - ], - "geometry": [ - "point", - "vertex", - "line" - ], - "tags": { - "barrier": "bollard" - }, - "name": "Bollard" - }, - "barrier/cattle_grid": { - "geometry": [ - "vertex" - ], - "tags": { - "barrier": "cattle_grid" - }, - "name": "Cattle Grid" - }, - "barrier/city_wall": { - "geometry": [ - "line", - "area" - ], - "tags": { - "barrier": "city_wall" - }, - "name": "City Wall" - }, - "barrier/cycle_barrier": { - "fields": [ - "access" - ], - "geometry": [ - "vertex" - ], - "tags": { - "barrier": "cycle_barrier" - }, - "name": "Cycle Barrier" - }, - "barrier/ditch": { - "geometry": [ - "line", - "area" - ], - "tags": { - "barrier": "ditch" - }, - "name": "Ditch" - }, - "barrier/entrance": { - "icon": "entrance", - "geometry": [ - "vertex" - ], - "tags": { - "barrier": "entrance" - }, - "name": "Entrance", - "searchable": false - }, - "barrier/fence": { - "geometry": [ - "line" - ], - "tags": { - "barrier": "fence" - }, - "name": "Fence" - }, - "barrier/gate": { - "fields": [ - "access" - ], - "geometry": [ - "point", - "vertex", - "line" - ], - "tags": { - "barrier": "gate" - }, - "name": "Gate" - }, - "barrier/hedge": { - "geometry": [ - "line", - "area" - ], - "tags": { - "barrier": "hedge" - }, - "name": "Hedge" - }, - "barrier/kissing_gate": { - "fields": [ - "access" - ], - "geometry": [ - "vertex" - ], - "tags": { - "barrier": "kissing_gate" - }, - "name": "Kissing Gate" - }, - "barrier/lift_gate": { - "fields": [ - "access" - ], - "geometry": [ - "point", - "vertex" - ], - "tags": { - "barrier": "lift_gate" - }, - "name": "Lift Gate" - }, - "barrier/retaining_wall": { - "geometry": [ - "line", - "area" - ], - "tags": { - "barrier": "retaining_wall" - }, - "name": "Retaining Wall" - }, - "barrier/stile": { - "fields": [ - "access" - ], - "geometry": [ - "point", - "vertex" - ], - "tags": { - "barrier": "stile" - }, - "name": "Stile" - }, - "barrier/toll_booth": { - "fields": [ - "access" - ], - "geometry": [ - "vertex" - ], - "tags": { - "barrier": "toll_booth" - }, - "name": "Toll Booth" - }, - "barrier/wall": { - "geometry": [ - "line", - "area" - ], - "tags": { - "barrier": "wall" - }, - "name": "Wall" - }, - "boundary/administrative": { - "name": "Administrative Boundary", - "geometry": [ - "line" - ], - "tags": { - "boundary": "administrative" - }, - "fields": [ - "admin_level" - ] - }, - "building": { - "icon": "building", - "fields": [ - "building", - "levels", - "address" - ], - "geometry": [ - "area" - ], - "tags": { - "building": "*" - }, - "terms": [], - "name": "Building" - }, - "building/apartments": { - "icon": "commercial", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "apartments" - }, - "name": "Apartments" - }, - "building/barn": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "barn" - }, - "name": "Barn" - }, - "building/bunker": { - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "bunker" - }, - "name": "Bunker", - "searchable": false - }, - "building/cabin": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "cabin" - }, - "name": "Cabin" - }, - "building/cathedral": { - "icon": "place-of-worship", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "cathedral" - }, - "name": "Cathedral" - }, - "building/chapel": { - "icon": "place-of-worship", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "chapel" - }, - "name": "Chapel" - }, - "building/church": { - "icon": "place-of-worship", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "church" - }, - "name": "Church" - }, - "building/commercial": { - "icon": "commercial", - "fields": [ - "address", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "commercial" - }, - "name": "Commercial Building" - }, - "building/construction": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "construction" - }, - "name": "Building Under Construction" - }, - "building/detached": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "detached" - }, - "name": "Detached Home" - }, - "building/dormitory": { - "icon": "building", - "fields": [ - "address", - "levels", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "dormitory" - }, - "name": "Dormitory" - }, - "building/entrance": { - "icon": "entrance", - "geometry": [ - "vertex" - ], - "tags": { - "building": "entrance" - }, - "name": "Entrance/Exit", - "searchable": false - }, - "building/garage": { - "fields": [ - "capacity" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "garage" - }, - "name": "Garage", - "icon": "warehouse" - }, - "building/garages": { - "icon": "warehouse", - "fields": [ - "capacity" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "garages" - }, - "name": "Garages" - }, - "building/greenhouse": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "greenhouse" - }, - "name": "Greenhouse" - }, - "building/hospital": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "hospital" - }, - "name": "Hospital Building" - }, - "building/hotel": { - "icon": "building", - "fields": [ - "address", - "levels", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "hotel" - }, - "name": "Hotel Building" - }, - "building/house": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "building": "house" - }, - "name": "House" - }, - "building/hut": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "hut" - }, - "name": "Hut" - }, - "building/industrial": { - "icon": "industrial", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "industrial" - }, - "name": "Industrial Building" - }, - "building/public": { - "icon": "building", - "fields": [ - "address", - "levels", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "public" - }, - "name": "Public Building" - }, - "building/residential": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "residential" - }, - "name": "Residential Building" - }, - "building/retail": { - "icon": "building", - "fields": [ - "address", - "levels", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "retail" - }, - "name": "Retail Building" - }, - "building/roof": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "roof" - }, - "name": "Roof" - }, - "building/school": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "school" - }, - "name": "School Building" - }, - "building/shed": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "shed" - }, - "name": "Shed" - }, - "building/stable": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "stable" - }, - "name": "Stable" - }, - "building/static_caravan": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "static_caravan" - }, - "name": "Static Mobile Home" - }, - "building/terrace": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "terrace" - }, - "name": "Row Houses" - }, - "building/train_station": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "train_station" - }, - "name": "Train Station", - "searchable": false - }, - "building/university": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "university" - }, - "name": "University Building" - }, - "building/warehouse": { - "icon": "building", - "fields": [ - "address", - "levels" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "building": "warehouse" - }, - "name": "Warehouse" - }, - "craft/basket_maker": { - "name": "Basket Maker", - "geometry": [ - "point", - "area" - ], - "terms": [ - "basket", - "basketry", - "basket maker", - "basket weaver" - ], - "tags": { - "craft": "basket_maker" - }, - "icon": "art-gallery", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/beekeeper": { - "name": "Beekeeper", - "geometry": [ - "point", - "area" - ], - "terms": [ - "bees", - "beekeeper", - "bee box" - ], - "tags": { - "craft": "beekeeper" - }, - "icon": "farm", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/blacksmith": { - "name": "Blacksmith", - "geometry": [ - "point", - "area" - ], - "terms": [ - "blacksmith" - ], - "tags": { - "craft": "blacksmith" - }, - "icon": "farm", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/boatbuilder": { - "name": "Boat Builder", - "geometry": [ - "point", - "area" - ], - "terms": [ - "boat builder" - ], - "tags": { - "craft": "boatbuilder" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/bookbinder": { - "name": "Bookbinder", - "geometry": [ - "point", - "area" - ], - "terms": [ - "bookbinder", - "book repair" - ], - "tags": { - "craft": "bookbinder" - }, - "icon": "library", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/brewery": { - "name": "Brewery", - "geometry": [ - "point", - "area" - ], - "terms": [ - "brewery" - ], - "tags": { - "craft": "brewery" - }, - "icon": "beer", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/carpenter": { - "name": "Carpenter", - "geometry": [ - "point", - "area" - ], - "terms": [ - "carpenter", - "woodworker" - ], - "tags": { - "craft": "carpenter" - }, - "icon": "logging", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/carpet_layer": { - "name": "Carpet Layer", - "geometry": [ - "point", - "area" - ], - "terms": [ - "carpet layer" - ], - "tags": { - "craft": "carpet_layer" - }, - "icon": "square", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/caterer": { - "name": "Caterer", - "geometry": [ - "point", - "area" - ], - "terms": [ - "Caterer", - "Catering" - ], - "tags": { - "craft": "caterer" - }, - "icon": "bakery", - "fields": [ - "cuisine", - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/clockmaker": { - "name": "Clockmaker", - "geometry": [ - "point", - "area" - ], - "terms": [ - "clock", - "clockmaker", - "clock repair" - ], - "tags": { - "craft": "clockmaker" - }, - "icon": "circle-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/confectionary": { - "name": "Confectionary", - "geometry": [ - "point", - "area" - ], - "terms": [ - "confectionary", - "sweets", - "candy" - ], - "tags": { - "craft": "confectionary" - }, - "icon": "bakery", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/dressmaker": { - "name": "Dressmaker", - "geometry": [ - "point", - "area" - ], - "terms": [ - "dress", - "dressmaker" - ], - "tags": { - "craft": "dressmaker" - }, - "icon": "clothing-store", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/electrician": { - "name": "Electrician", - "geometry": [ - "point", - "area" - ], - "terms": [ - "electrician" - ], - "tags": { - "craft": "electrician" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/gardener": { - "name": "Gardener", - "geometry": [ - "point", - "area" - ], - "terms": [ - "gardener", - "landscaper", - "grounds keeper" - ], - "tags": { - "craft": "gardener" - }, - "icon": "garden", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/glaziery": { - "name": "Glaziery", - "geometry": [ - "point", - "area" - ], - "terms": [ - "glass", - "glass foundry", - "stained-glass", - "window" - ], - "tags": { - "craft": "glaziery" - }, - "icon": "fire-station", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/handicraft": { - "name": "Handicraft", - "geometry": [ - "point", - "area" - ], - "terms": [ - "handicraft" - ], - "tags": { - "craft": "handicraft" - }, - "icon": "art-gallery", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/hvac": { - "name": "HVAC", - "geometry": [ - "point", - "area" - ], - "terms": [ - "heating", - "ventilating", - "air-conditioning", - "air conditioning" - ], - "tags": { - "craft": "hvac" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/insulator": { - "name": "Insulator", - "geometry": [ - "point", - "area" - ], - "terms": [ - "insulation", - "insulator" - ], - "tags": { - "craft": "insulation" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/jeweler": { - "name": "Jeweler", - "geometry": [ - "point", - "area" - ], - "terms": [ - "jeweler", - "gem", - "diamond" - ], - "tags": { - "craft": "jeweler" - }, - "icon": "marker-stroked", - "searchable": false, - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/key_cutter": { - "name": "Key Cutter", - "geometry": [ - "point", - "area" - ], - "terms": [ - "key", - "key cutter" - ], - "tags": { - "craft": "key_cutter" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/locksmith": { - "name": "Locksmith", - "geometry": [ - "point", - "area" - ], - "terms": [ - "locksmith", - "lock" - ], - "tags": { - "craft": "locksmith" - }, - "icon": "marker-stroked", - "searchable": false, - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/metal_construction": { - "name": "Metal Construction", - "geometry": [ - "point", - "area" - ], - "terms": [ - "metal construction" - ], - "tags": { - "craft": "metal_construction" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/optician": { - "name": "Optician", - "geometry": [ - "point", - "area" - ], - "terms": [ - "glasses", - "optician" - ], - "tags": { - "craft": "optician" - }, - "icon": "marker-stroked", - "searchable": false, - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/painter": { - "name": "Painter", - "geometry": [ - "point", - "area" - ], - "terms": [ - "painter" - ], - "tags": { - "craft": "painter" - }, - "icon": "art-gallery", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/photographer": { - "name": "Photographer", - "geometry": [ - "point", - "area" - ], - "terms": [ - "photographer" - ], - "tags": { - "craft": "photographer" - }, - "icon": "camera", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/photographic_laboratory": { - "name": "Photographic Laboratory", - "geometry": [ - "point", - "area" - ], - "terms": [ - "photographic laboratory", - "film developer" - ], - "tags": { - "craft": "photographic_laboratory" - }, - "icon": "camera", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/plasterer": { - "name": "Plasterer", - "geometry": [ - "point", - "area" - ], - "terms": [ - "plasterer" - ], - "tags": { - "craft": "plasterer" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/plumber": { - "name": "Plumber", - "geometry": [ - "point", - "area" - ], - "terms": [ - "pumber" - ], - "tags": { - "craft": "plumber" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/pottery": { - "name": "Pottery", - "geometry": [ - "point", - "area" - ], - "terms": [ - "pottery", - "potter" - ], - "tags": { - "craft": "pottery" - }, - "icon": "art-gallery", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/rigger": { - "name": "Rigger", - "geometry": [ - "point", - "area" - ], - "terms": [ - "rigger" - ], - "tags": { - "craft": "rigger" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/roofer": { - "name": "Roofer", - "geometry": [ - "point", - "area" - ], - "terms": [ - "roofer" - ], - "tags": { - "craft": "roofer" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/saddler": { - "name": "Saddler", - "geometry": [ - "point", - "area" - ], - "terms": [ - "saddler" - ], - "tags": { - "craft": "saddler" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/sailmaker": { - "name": "Sailmaker", - "geometry": [ - "point", - "area" - ], - "terms": [ - "sailmaker" - ], - "tags": { - "craft": "sailmaker" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/sawmill": { - "name": "Sawmill", - "geometry": [ - "point", - "area" - ], - "terms": [ - "sawmill", - "lumber" - ], - "tags": { - "craft": "sawmill" - }, - "icon": "park", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/scaffolder": { - "name": "Scaffolder", - "geometry": [ - "point", - "area" - ], - "terms": [ - "scaffolder" - ], - "tags": { - "craft": "scaffolder" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/sculpter": { - "name": "Sculpter", - "geometry": [ - "point", - "area" - ], - "terms": [ - "sculpter" - ], - "tags": { - "craft": "sculpter" - }, - "icon": "art-gallery", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/shoemaker": { - "name": "Shoemaker", - "geometry": [ - "point", - "area" - ], - "terms": [ - "shoe repair", - "shoemaker" - ], - "tags": { - "craft": "shoemaker" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/stonemason": { - "name": "Stonemason", - "geometry": [ - "point", - "area" - ], - "terms": [ - "stonemason", - "masonry" - ], - "tags": { - "craft": "stonemason" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/sweep": { - "name": "Chimney Sweep", - "geometry": [ - "point", - "area" - ], - "terms": [ - "sweep", - "chimney sweep" - ], - "tags": { - "craft": "sweep" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/tailor": { - "name": "Tailor", - "geometry": [ - "point", - "area" - ], - "terms": [ - "tailor", - "clothes" - ], - "tags": { - "craft": "tailor" - }, - "icon": "clothing-store", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/tiler": { - "name": "Tiler", - "geometry": [ - "point", - "area" - ], - "terms": [ - "tiler" - ], - "tags": { - "craft": "tiler" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/tinsmith": { - "name": "Tinsmith", - "geometry": [ - "point", - "area" - ], - "terms": [ - "tinsmith" - ], - "tags": { - "craft": "tinsmith" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/upholsterer": { - "name": "Upholsterer", - "geometry": [ - "point", - "area" - ], - "terms": [ - "upholsterer" - ], - "tags": { - "craft": "upholsterer" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/watchmaker": { - "name": "Watchmaker", - "geometry": [ - "point", - "area" - ], - "terms": [ - "watch", - "watchmaker", - "watch repair" - ], - "tags": { - "craft": "watchmaker" - }, - "icon": "circle-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "craft/window_construction": { - "name": "Window Construction", - "geometry": [ - "point", - "area" - ], - "terms": [ - "window", - "window maker", - "window construction" - ], - "tags": { - "craft": "window_construction" - }, - "icon": "marker-stroked", - "fields": [ - "building_area", - "address", - "operator", - "opening_hours" - ] - }, - "embankment": { - "geometry": [ - "line" - ], - "tags": { - "embankment": "yes" - }, - "name": "Embankment", - "matchScore": 0.2 - }, - "emergency/ambulance_station": { - "fields": [ - "operator" - ], - "geometry": [ - "area", - "point", - "vertex" - ], - "tags": { - "emergency": "ambulance_station" - }, - "name": "Ambulance Station" - }, - "emergency/fire_hydrant": { - "fields": [ - "fire_hydrant/type" - ], - "geometry": [ - "point", - "vertex" - ], - "tags": { - "emergency": "fire_hydrant" - }, - "name": "Fire Hydrant" - }, - "emergency/phone": { - "icon": "emergency-telephone", - "fields": [ - "operator" - ], - "geometry": [ - "point", - "vertex" - ], - "tags": { - "emergency": "phone" - }, - "name": "Emergency Phone" - }, - "entrance": { - "icon": "entrance", - "geometry": [ - "vertex" - ], - "tags": { - "entrance": "*" - }, - "fields": [ - "entrance", - "access_simple", - "address" - ], - "name": "Entrance/Exit" - }, - "footway/crossing": { - "fields": [ - "crossing", - "access", - "surface" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "footway", - "footway": "crossing" - }, - "terms": [ - "crosswalk", - "zebra crossing" - ], - "name": "Crossing" - }, - "footway/sidewalk": { - "fields": [ - "surface", - "lit", - "width", - "structure", - "access" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "footway", - "footway": "sidewalk" - }, - "terms": [], - "name": "Sidewalk" - }, - "ford": { - "geometry": [ - "vertex" - ], - "tags": { - "ford": "yes" - }, - "name": "Ford" - }, - "golf/bunker": { - "icon": "golf", - "geometry": [ - "area" - ], - "tags": { - "golf": "bunker", - "natural": "sand" - }, - "terms": [ - "hazard", - "bunker" - ], - "name": "Sand Trap" - }, - "golf/fairway": { - "icon": "golf", - "geometry": [ - "area" - ], - "tags": { - "golf": "fairway", - "landuse": "grass" - }, - "name": "Fairway" - }, - "golf/green": { - "icon": "golf", - "geometry": [ - "area" - ], - "tags": { - "golf": "green", - "landuse": "grass", - "leisure": "pitch", - "sport": "golf" - }, - "terms": [ - "putting green" - ], - "name": "Putting Green" - }, - "golf/hole": { - "icon": "golf", - "fields": [ - "golf_hole", - "par", - "handicap" - ], - "geometry": [ - "line" - ], - "tags": { - "golf": "hole" - }, - "name": "Golf Hole" - }, - "golf/lateral_water_hazard": { - "icon": "golf", - "geometry": [ - "line", - "area" - ], - "tags": { - "golf": "lateral_water_hazard", - "natural": "water" - }, - "name": "Lateral Water Hazard" - }, - "golf/rough": { - "icon": "golf", - "geometry": [ - "area" - ], - "tags": { - "golf": "rough", - "landuse": "grass" - }, - "name": "Rough" - }, - "golf/tee": { - "icon": "golf", - "geometry": [ - "area" - ], - "tags": { - "golf": "tee", - "landuse": "grass" - }, - "terms": [ - "teeing ground" - ], - "name": "Tee Box" - }, - "golf/water_hazard": { - "icon": "golf", - "geometry": [ - "line", - "area" - ], - "tags": { - "golf": "water_hazard", - "natural": "water" - }, - "name": "Water Hazard" - }, - "highway": { - "fields": [ - "highway" - ], - "geometry": [ - "point", - "vertex", - "line", - "area" - ], - "tags": { - "highway": "*" - }, - "name": "Highway" - }, - "highway/bridleway": { - "fields": [ - "surface", - "width", - "structure", - "access" - ], - "icon": "highway-bridleway", - "geometry": [ - "line" - ], - "tags": { - "highway": "bridleway" - }, - "terms": [ - "bridleway", - "equestrian trail", - "horse riding path", - "bridle road", - "horse trail" - ], - "name": "Bridle Path" - }, - "highway/bus_stop": { - "icon": "bus", - "fields": [ - "operator", - "shelter" - ], - "geometry": [ - "point", - "vertex" - ], - "tags": { - "highway": "bus_stop" - }, - "terms": [], - "name": "Bus Stop" - }, - "highway/crossing": { - "fields": [ - "crossing", - "sloped_curb", - "tactile_paving" - ], - "geometry": [ - "vertex" - ], - "tags": { - "highway": "crossing" - }, - "terms": [ - "crosswalk", - "zebra crossing" - ], - "name": "Crossing" - }, - "highway/cycleway": { - "icon": "highway-cycleway", - "fields": [ - "surface", - "lit", - "width", - "oneway", - "structure", - "access" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "cycleway" - }, - "terms": [], - "name": "Cycle Path" - }, - "highway/footway": { - "icon": "highway-footway", - "fields": [ - "surface", - "lit", - "width", - "structure", - "access" - ], - "geometry": [ - "line", - "area" - ], - "terms": [ - "beaten path", - "boulevard", - "clearing", - "course", - "cut*", - "drag*", - "footpath", - "highway", - "lane", - "line", - "orbit", - "passage", - "pathway", - "rail", - "rails", - "road", - "roadway", - "route", - "street", - "thoroughfare", - "trackway", - "trail", - "trajectory", - "walk" - ], - "tags": { - "highway": "footway" - }, - "name": "Foot Path" - }, - "highway/living_street": { - "icon": "highway-living-street", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "surface" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "living_street" - }, - "name": "Living Street" - }, - "highway/mini_roundabout": { - "geometry": [ - "vertex" - ], - "tags": { - "highway": "mini_roundabout" - }, - "fields": [ - "clock_direction" - ], - "name": "Mini-Roundabout" - }, - "highway/motorway": { - "icon": "highway-motorway", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "lanes", - "surface", - "ref" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "motorway" - }, - "terms": [], - "name": "Motorway" - }, - "highway/motorway_junction": { - "geometry": [ - "vertex" - ], - "tags": { - "highway": "motorway_junction" - }, - "fields": [ - "ref" - ], - "name": "Motorway Junction" - }, - "highway/motorway_link": { - "icon": "highway-motorway-link", - "fields": [ - "oneway_yes", - "maxspeed", - "structure", - "access", - "surface", - "ref" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "motorway_link" - }, - "terms": [ - "ramp", - "on ramp", - "off ramp" - ], - "name": "Motorway Link" - }, - "highway/path": { - "icon": "highway-path", - "fields": [ - "surface", - "width", - "structure", - "access", - "sac_scale", - "incline", - "trail_visibility", - "ref" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "path" - }, - "terms": [], - "name": "Path" - }, - "highway/pedestrian": { - "fields": [ - "surface", - "lit", - "width", - "oneway", - "structure", - "access" - ], - "geometry": [ - "line", - "area" - ], - "tags": { - "highway": "pedestrian" - }, - "terms": [], - "name": "Pedestrian" - }, - "highway/primary": { - "icon": "highway-primary", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "lanes", - "surface", - "ref" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "primary" - }, - "terms": [], - "name": "Primary Road" - }, - "highway/primary_link": { - "icon": "highway-primary-link", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "surface", - "ref" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "primary_link" - }, - "terms": [ - "ramp", - "on ramp", - "off ramp" - ], - "name": "Primary Link" - }, - "highway/residential": { - "icon": "highway-residential", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "surface" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "residential" - }, - "terms": [], - "name": "Residential Road" - }, - "highway/rest_area": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "highway": "rest_area" - }, - "terms": [ - "rest stop", - "turnout", - "lay-by" - ], - "name": "Rest Area" - }, - "highway/road": { - "icon": "highway-road", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "surface" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "road" - }, - "terms": [], - "name": "Unknown Road" - }, - "highway/secondary": { - "icon": "highway-secondary", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "lanes", - "surface", - "ref" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "secondary" - }, - "terms": [], - "name": "Secondary Road" - }, - "highway/secondary_link": { - "icon": "highway-secondary-link", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "surface", - "ref" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "secondary_link" - }, - "terms": [ - "ramp", - "on ramp", - "off ramp" - ], - "name": "Secondary Link" - }, - "highway/service": { - "icon": "highway-service", - "fields": [ - "service", - "oneway", - "maxspeed", - "structure", - "access", - "surface" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "service" - }, - "terms": [], - "name": "Service Road" - }, - "highway/service/alley": { - "icon": "highway-service", - "fields": [ - "oneway", - "access", - "surface" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "service", - "service": "alley" - }, - "name": "Alley" - }, - "highway/service/drive-through": { - "icon": "highway-service", - "fields": [ - "oneway", - "access", - "surface" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "service", - "service": "drive-through" - }, - "name": "Drive-Through" - }, - "highway/service/driveway": { - "icon": "highway-service", - "fields": [ - "oneway", - "access", - "surface" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "service", - "service": "driveway" - }, - "name": "Driveway" - }, - "highway/service/emergency_access": { - "icon": "highway-service", - "fields": [ - "oneway", - "access", - "surface" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "service", - "service": "emergency_access" - }, - "name": "Emergency Access" - }, - "highway/service/parking_aisle": { - "icon": "highway-service", - "fields": [ - "oneway", - "access", - "surface" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "service", - "service": "parking_aisle" - }, - "name": "Parking Aisle" - }, - "highway/services": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "highway": "services" - }, - "terms": [ - "services", - "travel plaza", - "service station" - ], - "name": "Service Area" - }, - "highway/steps": { - "fields": [ - "surface", - "lit", - "width", - "access" - ], - "icon": "highway-steps", - "geometry": [ - "line" - ], - "tags": { - "highway": "steps" - }, - "terms": [ - "stairs", - "staircase" - ], - "name": "Steps" - }, - "highway/stop": { - "geometry": [ - "vertex" - ], - "tags": { - "highway": "stop" - }, - "terms": [ - "stop sign" - ], - "name": "Stop Sign" - }, - "highway/tertiary": { - "icon": "highway-tertiary", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "lanes", - "surface", - "ref" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "tertiary" - }, - "terms": [], - "name": "Tertiary Road" - }, - "highway/tertiary_link": { - "icon": "highway-tertiary-link", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "surface", - "ref" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "tertiary_link" - }, - "terms": [ - "ramp", - "on ramp", - "off ramp" - ], - "name": "Tertiary Link" - }, - "highway/track": { - "icon": "highway-track", - "fields": [ - "tracktype", - "oneway", - "maxspeed", - "structure", - "access", - "surface" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "track" - }, - "terms": [], - "name": "Track" - }, - "highway/traffic_signals": { - "geometry": [ - "vertex" - ], - "tags": { - "highway": "traffic_signals" - }, - "terms": [ - "light", - "stoplight", - "traffic light" - ], - "name": "Traffic Signals" - }, - "highway/trunk": { - "icon": "highway-trunk", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "lanes", - "surface", - "ref" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "trunk" - }, - "terms": [], - "name": "Trunk Road" - }, - "highway/trunk_link": { - "icon": "highway-trunk-link", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "surface", - "ref" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "trunk_link" - }, - "terms": [ - "ramp", - "on ramp", - "off ramp" - ], - "name": "Trunk Link" - }, - "highway/turning_circle": { - "icon": "circle", - "geometry": [ - "vertex" - ], - "tags": { - "highway": "turning_circle" - }, - "terms": [], - "name": "Turning Circle" - }, - "highway/unclassified": { - "icon": "highway-unclassified", - "fields": [ - "oneway", - "maxspeed", - "structure", - "access", - "surface" - ], - "geometry": [ - "line" - ], - "tags": { - "highway": "unclassified" - }, - "terms": [], - "name": "Unclassified Road" - }, - "historic": { - "fields": [ - "historic" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "historic": "*" - }, - "name": "Historic Site" - }, - "historic/archaeological_site": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "historic": "archaeological_site" - }, - "name": "Archaeological Site" - }, - "historic/boundary_stone": { - "geometry": [ - "point", - "vertex" - ], - "tags": { - "historic": "boundary_stone" - }, - "name": "Boundary Stone" - }, - "historic/castle": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "historic": "castle" - }, - "name": "Castle" - }, - "historic/memorial": { - "icon": "monument", - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "historic": "memorial" - }, - "name": "Memorial" - }, - "historic/monument": { - "icon": "monument", - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "historic": "monument" - }, - "name": "Monument" - }, - "historic/ruins": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "historic": "ruins" - }, - "name": "Ruins" - }, - "historic/wayside_cross": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "historic": "wayside_cross" - }, - "name": "Wayside Cross" - }, - "historic/wayside_shrine": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "historic": "wayside_shrine" - }, - "name": "Wayside Shrine" - }, - "landuse": { - "fields": [ - "landuse" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "landuse": "*" - }, - "name": "Landuse" - }, - "landuse/allotments": { - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "allotments" - }, - "terms": [], - "name": "Allotments" - }, - "landuse/basin": { - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "basin" - }, - "terms": [], - "name": "Basin" - }, - "landuse/cemetery": { - "icon": "cemetery", - "fields": [ - "religion", - "denomination" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "landuse": "cemetery" - }, - "terms": [], - "name": "Cemetery" - }, - "landuse/churchyard": { - "fields": [ - "religion", - "denomination" - ], - "geometry": [ - "area" - ], - "tags": { - "landuse": "churchyard" - }, - "terms": [], - "name": "Churchyard" - }, - "landuse/commercial": { - "icon": "commercial", - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "commercial" - }, - "terms": [], - "name": "Commercial" - }, - "landuse/construction": { - "fields": [ - "construction", - "operator" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "construction" - }, - "terms": [], - "name": "Construction" - }, - "landuse/farm": { - "fields": [ - "crop" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "farm" - }, - "terms": [], - "name": "Farm", - "icon": "farm" - }, - "landuse/farmland": { - "fields": [ - "crop" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "farmland" - }, - "terms": [], - "name": "Farmland", - "icon": "farm", - "searchable": false - }, - "landuse/farmyard": { - "fields": [ - "crop" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "farmyard" - }, - "terms": [], - "name": "Farmyard", - "icon": "farm" - }, - "landuse/forest": { - "fields": [ - "wood" - ], - "icon": "park2", - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "forest" - }, - "terms": [], - "name": "Forest" - }, - "landuse/grass": { - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "grass" - }, - "terms": [], - "name": "Grass" - }, - "landuse/industrial": { - "icon": "industrial", - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "industrial" - }, - "terms": [], - "name": "Industrial" - }, - "landuse/landfill": { - "geometry": [ - "area" - ], - "tags": { - "landuse": "landfill" - }, - "terms": [ - "dump" - ], - "name": "Landfill" - }, - "landuse/meadow": { - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "meadow" - }, - "terms": [], - "name": "Meadow" - }, - "landuse/military": { - "geometry": [ - "area" - ], - "tags": { - "landuse": "military" - }, - "terms": [], - "name": "Military" - }, - "landuse/orchard": { - "fields": [ - "trees" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "orchard" - }, - "terms": [], - "name": "Orchard", - "icon": "park2" - }, - "landuse/quarry": { - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "quarry" - }, - "terms": [], - "name": "Quarry" - }, - "landuse/residential": { - "icon": "building", - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "residential" - }, - "terms": [], - "name": "Residential" - }, - "landuse/retail": { - "icon": "shop", - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "retail" - }, - "name": "Retail" - }, - "landuse/vineyard": { - "geometry": [ - "point", - "area" - ], - "tags": { - "landuse": "vineyard" - }, - "terms": [], - "name": "Vineyard" - }, - "leisure": { - "fields": [ - "leisure" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "leisure": "*" - }, - "name": "Leisure" - }, - "leisure/common": { - "geometry": [ - "point", - "area" - ], - "terms": [ - "open space" - ], - "tags": { - "leisure": "common" - }, - "name": "Common" - }, - "leisure/dog_park": { - "geometry": [ - "point", - "area" - ], - "terms": [], - "tags": { - "leisure": "dog_park" - }, - "name": "Dog Park", - "icon": "dog-park" - }, - "leisure/firepit": { - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "firepit" - }, - "terms": [ - "fireplace", - "campfire" - ], - "name": "Firepit" - }, - "leisure/garden": { - "icon": "garden", - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "leisure": "garden" - }, - "name": "Garden" - }, - "leisure/golf_course": { - "icon": "golf", - "fields": [ - "operator", - "address" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "golf_course" - }, - "terms": [ - "links" - ], - "name": "Golf Course" - }, - "leisure/ice_rink": { - "icon": "pitch", - "fields": [ - "building_area", - "seasonal", - "sport_ice" - ], - "geometry": [ - "point", - "area" - ], - "terms": [ - "hockey", - "skating", - "curling" - ], - "tags": { - "leisure": "ice_rink" - }, - "name": "Ice Rink" - }, - "leisure/marina": { - "icon": "harbor", - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "leisure": "marina" - }, - "name": "Marina" - }, - "leisure/park": { - "icon": "park", - "geometry": [ - "point", - "area" - ], - "terms": [ - "esplanade", - "estate", - "forest", - "garden", - "grass", - "green", - "grounds", - "lawn", - "lot", - "meadow", - "parkland", - "place", - "playground", - "plaza", - "pleasure garden", - "recreation area", - "square", - "tract", - "village green", - "woodland" - ], - "tags": { - "leisure": "park" - }, - "name": "Park" - }, - "leisure/picnic_table": { - "geometry": [ - "point" - ], - "tags": { - "leisure": "picnic_table" - }, - "terms": [ - "bench", - "table" - ], - "name": "Picnic Table" - }, - "leisure/pitch": { - "icon": "pitch", - "fields": [ - "sport", - "surface", - "lit" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "pitch" - }, - "terms": [], - "name": "Sport Pitch" - }, - "leisure/pitch/american_football": { - "icon": "america-football", - "fields": [ - "surface", - "lit" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "pitch", - "sport": "american_football" - }, - "terms": [], - "name": "American Football Field" - }, - "leisure/pitch/baseball": { - "icon": "baseball", - "fields": [ - "lit" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "pitch", - "sport": "baseball" - }, - "terms": [], - "name": "Baseball Diamond" - }, - "leisure/pitch/basketball": { - "icon": "basketball", - "fields": [ - "surface", - "hoops", - "lit" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "pitch", - "sport": "basketball" - }, - "terms": [], - "name": "Basketball Court" - }, - "leisure/pitch/skateboard": { - "icon": "pitch", - "fields": [ - "surface", - "lit" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "pitch", - "sport": "skateboard" - }, - "terms": [], - "name": "Skate Park" - }, - "leisure/pitch/soccer": { - "icon": "soccer", - "fields": [ - "surface", - "lit" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "pitch", - "sport": "soccer" - }, - "terms": [], - "name": "Soccer Field" - }, - "leisure/pitch/tennis": { - "icon": "tennis", - "fields": [ - "surface", - "lit" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "pitch", - "sport": "tennis" - }, - "terms": [], - "name": "Tennis Court" - }, - "leisure/pitch/volleyball": { - "icon": "pitch", - "fields": [ - "surface", - "lit" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "pitch", - "sport": "volleyball" - }, - "terms": [], - "name": "Volleyball Court" - }, - "leisure/playground": { - "icon": "playground", - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "playground" - }, - "name": "Playground", - "terms": [ - "jungle gym", - "play area" - ] - }, - "leisure/slipway": { - "geometry": [ - "point", - "line" - ], - "tags": { - "leisure": "slipway" - }, - "name": "Slipway" - }, - "leisure/sports_center": { - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "sports_centre" - }, - "terms": [ - "gym" - ], - "icon": "sports", - "name": "Sports Center" - }, - "leisure/stadium": { - "geometry": [ - "point", - "area" - ], - "tags": { - "leisure": "stadium" - }, - "fields": [ - "sport" - ], - "name": "Stadium" - }, - "leisure/swimming_pool": { - "fields": [ - "access_simple" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "leisure": "swimming_pool" - }, - "icon": "swimming", - "name": "Swimming Pool" - }, - "leisure/track": { - "icon": "pitch", - "fields": [ - "surface", - "lit", - "width" - ], - "geometry": [ - "point", - "line", - "area" - ], - "tags": { - "leisure": "track" - }, - "name": "Race Track" - }, - "line": { - "name": "Line", - "tags": {}, - "geometry": [ - "line" - ], - "matchScore": 0.1 - }, - "man_made": { - "fields": [ - "man_made" - ], - "geometry": [ - "point", - "vertex", - "line", - "area" - ], - "tags": { - "man_made": "*" - }, - "name": "Man Made" - }, - "man_made/breakwater": { - "geometry": [ - "line", - "area" - ], - "tags": { - "man_made": "breakwater" - }, - "name": "Breakwater" - }, - "man_made/cutline": { - "geometry": [ - "line" - ], - "tags": { - "man_made": "cutline" - }, - "name": "Cut line" - }, - "man_made/embankment": { - "geometry": [ - "line" - ], - "tags": { - "man_made": "embankment" - }, - "name": "Embankment", - "searchable": false - }, - "man_made/flagpole": { - "geometry": [ - "point" - ], - "tags": { - "man_made": "flagpole" - }, - "name": "Flagpole", - "icon": "embassy" - }, - "man_made/lighthouse": { - "geometry": [ - "point", - "area" - ], - "tags": { - "man_made": "lighthouse" - }, - "name": "Lighthouse", - "icon": "lighthouse" - }, - "man_made/observation": { - "geometry": [ - "point", - "area" - ], - "terms": [ - "lookout tower", - "fire tower" - ], - "tags": { - "man_made": "tower", - "tower:type": "observation" - }, - "name": "Observation Tower" - }, - "man_made/pier": { - "geometry": [ - "line", - "area" - ], - "tags": { - "man_made": "pier" - }, - "name": "Pier" - }, - "man_made/pipeline": { - "geometry": [ - "line" - ], - "tags": { - "man_made": "pipeline" - }, - "fields": [ - "location", - "operator" - ], - "name": "Pipeline", - "icon": "pipeline" - }, - "man_made/survey_point": { - "icon": "monument", - "geometry": [ - "point", - "vertex" - ], - "tags": { - "man_made": "survey_point" - }, - "fields": [ - "ref" - ], - "name": "Survey Point" - }, - "man_made/tower": { - "geometry": [ - "point", - "area" - ], - "tags": { - "man_made": "tower" - }, - "fields": [ - "towertype" - ], - "name": "Tower" - }, - "man_made/wastewater_plant": { - "icon": "water", - "geometry": [ - "point", - "area" - ], - "tags": { - "man_made": "wastewater_plant" - }, - "name": "Wastewater Plant", - "terms": [ - "sewage works", - "sewage treatment plant", - "water treatment plant", - "reclamation plant" - ] - }, - "man_made/water_tower": { - "icon": "water", - "geometry": [ - "point", - "area" - ], - "tags": { - "man_made": "water_tower" - }, - "name": "Water Tower" - }, - "man_made/water_well": { - "geometry": [ - "point", - "area" - ], - "tags": { - "man_made": "water_well" - }, - "name": "Water well" - }, - "man_made/water_works": { - "icon": "water", - "geometry": [ - "point", - "area" - ], - "tags": { - "man_made": "water_works" - }, - "name": "Water Works" - }, - "military/airfield": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "military": "airfield" - }, - "terms": [], - "name": "Airfield", - "icon": "airfield" - }, - "military/barracks": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "military": "barracks" - }, - "terms": [], - "name": "Barracks" - }, - "military/bunker": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "military": "bunker" - }, - "terms": [], - "name": "Bunker" - }, - "military/range": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "military": "range" - }, - "terms": [], - "name": "Military Range" - }, - "natural": { - "fields": [ - "natural" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "natural": "*" - }, - "name": "Natural" - }, - "natural/bay": { - "geometry": [ - "point", - "area" - ], - "terms": [], - "tags": { - "natural": "bay" - }, - "name": "Bay" - }, - "natural/beach": { - "fields": [ - "surface" - ], - "geometry": [ - "point", - "area" - ], - "terms": [], - "tags": { - "natural": "beach" - }, - "name": "Beach" - }, - "natural/cliff": { - "geometry": [ - "point", - "vertex", - "line", - "area" - ], - "terms": [], - "tags": { - "natural": "cliff" - }, - "name": "Cliff" - }, - "natural/coastline": { - "geometry": [ - "line" - ], - "terms": [ - "shore" - ], - "tags": { - "natural": "coastline" - }, - "name": "Coastline" - }, - "natural/fell": { - "geometry": [ - "area" - ], - "terms": [], - "tags": { - "natural": "fell" - }, - "name": "Fell" - }, - "natural/glacier": { - "geometry": [ - "area" - ], - "terms": [], - "tags": { - "natural": "glacier" - }, - "name": "Glacier" - }, - "natural/grassland": { - "geometry": [ - "point", - "area" - ], - "terms": [], - "tags": { - "natural": "grassland" - }, - "name": "Grassland" - }, - "natural/heath": { - "geometry": [ - "area" - ], - "terms": [], - "tags": { - "natural": "heath" - }, - "name": "Heath" - }, - "natural/peak": { - "icon": "triangle", - "fields": [ - "elevation" - ], - "geometry": [ - "point", - "vertex" - ], - "tags": { - "natural": "peak" - }, - "terms": [ - "acme", - "aiguille", - "alp", - "climax", - "crest", - "crown", - "hill", - "mount", - "mountain", - "pinnacle", - "summit", - "tip", - "top" - ], - "name": "Peak" - }, - "natural/scree": { - "geometry": [ - "area" - ], - "tags": { - "natural": "scree" - }, - "terms": [ - "loose rocks" - ], - "name": "Scree" - }, - "natural/scrub": { - "geometry": [ - "area" - ], - "tags": { - "natural": "scrub" - }, - "terms": [], - "name": "Scrub" - }, - "natural/spring": { - "geometry": [ - "point", - "vertex" - ], - "terms": [], - "tags": { - "natural": "spring" - }, - "name": "Spring" - }, - "natural/tree": { - "fields": [ - "tree_type", - "denotation" - ], - "icon": "park", - "geometry": [ - "point", - "vertex" - ], - "terms": [], - "tags": { - "natural": "tree" - }, - "name": "Tree" - }, - "natural/water": { - "fields": [ - "water" - ], - "geometry": [ - "area" - ], - "tags": { - "natural": "water" - }, - "icon": "water", - "name": "Water" - }, - "natural/water/lake": { - "geometry": [ - "area" - ], - "tags": { - "natural": "water", - "water": "lake" - }, - "terms": [ - "lakelet", - "loch", - "mere" - ], - "icon": "water", - "name": "Lake" - }, - "natural/water/pond": { - "geometry": [ - "area" - ], - "tags": { - "natural": "water", - "water": "pond" - }, - "terms": [ - "lakelet", - "millpond", - "tarn", - "pool", - "mere" - ], - "icon": "water", - "name": "Pond" - }, - "natural/water/reservoir": { - "geometry": [ - "area" - ], - "tags": { - "natural": "water", - "water": "reservoir" - }, - "icon": "water", - "name": "Reservoir" - }, - "natural/wetland": { - "icon": "wetland", - "fields": [ - "wetland" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "natural": "wetland" - }, - "terms": [], - "name": "Wetland" - }, - "natural/wood": { - "fields": [ - "wood" - ], - "icon": "park2", - "geometry": [ - "point", - "area" - ], - "tags": { - "natural": "wood" - }, - "terms": [], - "name": "Wood" - }, - "office": { - "icon": "commercial", - "fields": [ - "office", - "address", - "opening_hours", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "*" - }, - "terms": [], - "name": "Office" - }, - "office/accountant": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "accountant" - }, - "terms": [], - "name": "Accountant" - }, - "office/administrative": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "administrative" - }, - "terms": [], - "name": "Administrative Office" - }, - "office/architect": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "architect" - }, - "terms": [], - "name": "Architect" - }, - "office/company": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "company" - }, - "terms": [], - "name": "Company Office" - }, - "office/educational_institution": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "educational_institution" - }, - "terms": [], - "name": "Educational Institution" - }, - "office/employment_agency": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "employment_agency" - }, - "terms": [], - "name": "Employment Agency" - }, - "office/estate_agent": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "estate_agent" - }, - "terms": [], - "name": "Real Estate Office" - }, - "office/financial": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "financial" - }, - "terms": [], - "name": "Financial Office" - }, - "office/government": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "government" - }, - "terms": [], - "name": "Government Office" - }, - "office/insurance": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "insurance" - }, - "terms": [], - "name": "Insurance Office" - }, - "office/it": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "it" - }, - "terms": [], - "name": "IT Office" - }, - "office/lawyer": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "lawyer" - }, - "terms": [], - "name": "Law Office" - }, - "office/newspaper": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "newspaper" - }, - "terms": [], - "name": "Newspaper" - }, - "office/ngo": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "ngo" - }, - "terms": [], - "name": "NGO Office" - }, - "office/physician": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "physician" - }, - "terms": [], - "name": "Physician" - }, - "office/political_party": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "political_party" - }, - "terms": [], - "name": "Political Party" - }, - "office/research": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "research" - }, - "terms": [], - "name": "Research Office" - }, - "office/telecommunication": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "telecommunication" - }, - "terms": [], - "name": "Telecom Office" - }, - "office/therapist": { - "icon": "commercial", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "therapist" - }, - "terms": [], - "name": "Therapist" - }, - "office/travel_agent": { - "icon": "suitcase", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "office": "travel_agent" - }, - "terms": [], - "name": "Travel Agency", - "searchable": false - }, - "piste": { - "icon": "skiing", - "fields": [ - "piste/type", - "piste/difficulty", - "piste/grooming", - "oneway", - "lit" - ], - "geometry": [ - "point", - "line", - "area" - ], - "terms": [ - "ski", - "sled", - "sleigh", - "snowboard", - "nordic", - "downhill", - "snowmobile" - ], - "tags": { - "piste:type": "*" - }, - "name": "Piste/Ski Trail" - }, - "place": { - "fields": [ - "place" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "place": "*" - }, - "name": "Place" - }, - "place/city": { - "icon": "city", - "fields": [ - "population" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "place": "city" - }, - "name": "City" - }, - "place/hamlet": { - "icon": "triangle-stroked", - "fields": [ - "population" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "place": "hamlet" - }, - "name": "Hamlet" - }, - "place/island": { - "geometry": [ - "point", - "area" - ], - "terms": [ - "archipelago", - "atoll", - "bar", - "cay", - "isle", - "islet", - "key", - "reef" - ], - "tags": { - "place": "island" - }, - "name": "Island" - }, - "place/isolated_dwelling": { - "geometry": [ - "point", - "area" - ], - "tags": { - "place": "isolated_dwelling" - }, - "name": "Isolated Dwelling" - }, - "place/locality": { - "icon": "marker", - "fields": [ - "population" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "place": "locality" - }, - "name": "Locality" - }, - "place/neighbourhood": { - "icon": "triangle-stroked", - "fields": [ - "population" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "place": "neighbourhood" - }, - "terms": [ - "neighbourhood" - ], - "name": "Neighborhood" - }, - "place/suburb": { - "icon": "triangle-stroked", - "fields": [ - "population" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "place": "suburb" - }, - "terms": [ - "Boro", - "Quarter" - ], - "name": "Borough" - }, - "place/town": { - "icon": "town", - "fields": [ - "population" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "place": "town" - }, - "name": "Town" - }, - "place/village": { - "icon": "village", - "fields": [ - "population" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "place": "village" - }, - "name": "Village" - }, - "point": { - "name": "Point", - "tags": {}, - "geometry": [ - "point" - ], - "matchScore": 0.1 - }, - "power": { - "geometry": [ - "point", - "vertex", - "line", - "area" - ], - "tags": { - "power": "*" - }, - "fields": [ - "power" - ], - "name": "Power" - }, - "power/generator": { - "name": "Power Generator", - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "power": "generator" - }, - "fields": [ - "generator/source", - "generator/method", - "generator/type" - ] - }, - "power/line": { - "geometry": [ - "line" - ], - "tags": { - "power": "line" - }, - "name": "Power Line", - "icon": "power-line" - }, - "power/minor_line": { - "geometry": [ - "line" - ], - "tags": { - "power": "minor_line" - }, - "name": "Minor Power Line", - "icon": "power-line" - }, - "power/pole": { - "geometry": [ - "vertex" - ], - "tags": { - "power": "pole" - }, - "name": "Power Pole" - }, - "power/sub_station": { - "fields": [ - "operator", - "building" - ], - "geometry": [ - "point", - "area" - ], - "tags": { - "power": "sub_station" - }, - "name": "Substation" - }, - "power/tower": { - "geometry": [ - "vertex" - ], - "tags": { - "power": "tower" - }, - "name": "High-Voltage Tower" - }, - "power/transformer": { - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "power": "transformer" - }, - "name": "Transformer" - }, - "public_transport/platform": { - "fields": [ - "ref", - "operator", - "network", - "shelter" - ], - "geometry": [ - "point", - "vertex", - "line", - "area" - ], - "tags": { - "public_transport": "platform" - }, - "name": "Platform" - }, - "public_transport/stop_position": { - "icon": "bus", - "fields": [ - "ref", - "operator", - "network" - ], - "geometry": [ - "vertex" - ], - "tags": { - "public_transport": "stop_position" - }, - "name": "Stop Position" - }, - "railway": { - "fields": [ - "railway" - ], - "geometry": [ - "point", - "vertex", - "line", - "area" - ], - "tags": { - "railway": "*" - }, - "name": "Railway" - }, - "railway/abandoned": { - "icon": "railway-abandoned", - "geometry": [ - "line" - ], - "tags": { - "railway": "abandoned" - }, - "fields": [ - "structure" - ], - "terms": [], - "name": "Abandoned Railway" - }, - "railway/disused": { - "icon": "railway-disused", - "geometry": [ - "line" - ], - "tags": { - "railway": "disused" - }, - "fields": [ - "structure" - ], - "terms": [], - "name": "Disused Railway" - }, - "railway/funicular": { - "geometry": [ - "line" - ], - "terms": [ - "venicular", - "cliff railway", - "cable car", - "cable railway", - "funicular railway" - ], - "fields": [ - "structure", - "gauge" - ], - "tags": { - "railway": "funicular" - }, - "icon": "railway-rail", - "name": "Funicular" - }, - "railway/halt": { - "icon": "rail", - "geometry": [ - "point", - "vertex" - ], - "tags": { - "railway": "halt" - }, - "name": "Railway Halt", - "terms": [ - "break", - "interrupt", - "rest", - "wait", - "interruption" - ] - }, - "railway/level_crossing": { - "icon": "cross", - "geometry": [ - "vertex" - ], - "tags": { - "railway": "level_crossing" - }, - "terms": [ - "crossing", - "railroad crossing", - "railway crossing", - "grade crossing", - "road through railroad", - "train crossing" - ], - "name": "Level Crossing" - }, - "railway/monorail": { - "icon": "railway-monorail", - "geometry": [ - "line" - ], - "tags": { - "railway": "monorail" - }, - "fields": [ - "structure", - "electrified" - ], - "terms": [], - "name": "Monorail" - }, - "railway/narrow_gauge": { - "icon": "railway-rail", - "geometry": [ - "line" - ], - "tags": { - "railway": "narrow_gauge" - }, - "fields": [ - "structure", - "gauge", - "electrified" - ], - "terms": [ - "narrow gauge railway", - "narrow gauge railroad" - ], - "name": "Narrow Gauge Rail" - }, - "railway/platform": { - "geometry": [ - "point", - "vertex", - "line", - "area" - ], - "tags": { - "railway": "platform" - }, - "name": "Railway Platform" - }, - "railway/rail": { - "icon": "railway-rail", - "geometry": [ - "line" - ], - "tags": { - "railway": "rail" - }, - "fields": [ - "structure", - "gauge", - "electrified" - ], - "terms": [], - "name": "Rail" - }, - "railway/station": { - "icon": "rail", - "fields": [ - "building_area" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "railway": "station" - }, - "terms": [ - "train station", - "station" - ], - "name": "Railway Station" - }, - "railway/subway": { - "icon": "railway-subway", - "fields": [ - "structure", - "gauge", - "electrified" - ], - "geometry": [ - "line" - ], - "tags": { - "railway": "subway" - }, - "terms": [], - "name": "Subway" - }, - "railway/subway_entrance": { - "icon": "rail-metro", - "geometry": [ - "point" - ], - "tags": { - "railway": "subway_entrance" - }, - "terms": [], - "name": "Subway Entrance" - }, - "railway/tram": { - "icon": "railway-light-rail", - "geometry": [ - "line" - ], - "tags": { - "railway": "tram" - }, - "fields": [ - "structure", - "gauge", - "electrified" - ], - "terms": [ - "streetcar" - ], - "name": "Tram" - }, - "relation": { - "name": "Relation", - "icon": "relation", - "tags": {}, - "geometry": [ - "relation" - ], - "fields": [ - "relation" - ] - }, - "route/ferry": { - "icon": "ferry", - "geometry": [ - "line" - ], - "tags": { - "route": "ferry" - }, - "name": "Ferry Route" - }, - "shop": { - "icon": "shop", - "fields": [ - "shop", - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "*" - }, - "terms": [], - "name": "Shop" - }, - "shop/alcohol": { - "icon": "alcohol-shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "alcohol" - }, - "terms": [ - "alcohol" - ], - "name": "Liquor Store" - }, - "shop/art": { - "icon": "art-gallery", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "art store", - "art gallery" - ], - "tags": { - "shop": "art" - }, - "name": "Art Shop" - }, - "shop/bakery": { - "icon": "bakery", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "bakery" - }, - "name": "Bakery" - }, - "shop/beauty": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "nail spa", - "spa", - "salon", - "tanning" - ], - "tags": { - "shop": "beauty" - }, - "name": "Beauty Shop" - }, - "shop/beverages": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "beverages" - }, - "name": "Beverage Store" - }, - "shop/bicycle": { - "icon": "bicycle", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "bicycle" - }, - "name": "Bicycle Shop" - }, - "shop/bookmaker": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "bookmaker" - }, - "name": "Bookmaker" - }, - "shop/books": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "books" - }, - "name": "Bookstore" - }, - "shop/boutique": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "boutique" - }, - "name": "Boutique" - }, - "shop/butcher": { - "icon": "slaughterhouse", - "fields": [ - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [], - "tags": { - "shop": "butcher" - }, - "name": "Butcher" - }, - "shop/car": { - "icon": "car", - "fields": [ - "address", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "car" - }, - "name": "Car Dealership" - }, - "shop/car_parts": { - "icon": "car", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "car_parts" - }, - "name": "Car Parts Store" - }, - "shop/car_repair": { - "icon": "car", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "car_repair" - }, - "name": "Car Repair Shop" - }, - "shop/chemist": { - "icon": "chemist", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "chemist" - }, - "name": "Chemist" - }, - "shop/clothes": { - "icon": "clothing-store", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "clothes" - }, - "name": "Clothing Store" - }, - "shop/computer": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "computer" - }, - "name": "Computer Store" - }, - "shop/confectionery": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "confectionery" - }, - "name": "Confectionery" - }, - "shop/convenience": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "convenience" - }, - "name": "Convenience Store" - }, - "shop/deli": { - "icon": "restaurant", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "deli" - }, - "name": "Deli" - }, - "shop/department_store": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "department_store" - }, - "name": "Department Store" - }, - "shop/doityourself": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "doityourself" - }, - "name": "DIY Store" - }, - "shop/dry_cleaning": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "dry_cleaning" - }, - "name": "Dry Cleaners" - }, - "shop/electronics": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "electronics" - }, - "name": "Electronics Store" - }, - "shop/farm": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "farm" - }, - "terms": [ - "farm shop", - "farm stand" - ], - "name": "Produce Stand" - }, - "shop/fishmonger": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "fishmonger" - }, - "name": "Fishmonger", - "searchable": false - }, - "shop/florist": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "florist" - }, - "name": "Florist" - }, - "shop/funeral_directors": { - "icon": "cemetery", - "fields": [ - "address", - "building_area", - "religion", - "denomination" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "funeral_directors" - }, - "terms": [ - "undertaker", - "funeral parlour", - "funeral parlor", - "memorial home" - ], - "name": "Funeral Home" - }, - "shop/furniture": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "furniture" - }, - "name": "Furniture Store" - }, - "shop/garden_centre": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "garden centre" - ], - "tags": { - "shop": "garden_centre" - }, - "name": "Garden Center" - }, - "shop/gift": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "gift" - }, - "name": "Gift Shop" - }, - "shop/greengrocer": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "greengrocer" - }, - "name": "Greengrocer" - }, - "shop/hairdresser": { - "icon": "hairdresser", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "hairdresser" - }, - "name": "Hairdresser" - }, - "shop/hardware": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "hardware" - }, - "name": "Hardware Store" - }, - "shop/hifi": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "hifi" - }, - "name": "Hifi Store" - }, - "shop/jewelry": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "jewelry" - }, - "name": "Jeweler" - }, - "shop/kiosk": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "kiosk" - }, - "name": "Kiosk" - }, - "shop/laundry": { - "icon": "laundry", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "laundry" - }, - "name": "Laundry" - }, - "shop/locksmith": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "keys" - ], - "tags": { - "shop": "locksmith" - }, - "name": "Locksmith" - }, - "shop/lottery": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "lottery" - }, - "name": "Lottery Shop" - }, - "shop/mall": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "mall" - }, - "name": "Mall" - }, - "shop/mobile_phone": { - "icon": "mobilephone", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "mobile_phone" - }, - "name": "Mobile Phone Store" - }, - "shop/motorcycle": { - "icon": "scooter", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "motorcycle" - }, - "name": "Motorcycle Dealership" - }, - "shop/music": { - "icon": "music", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "music" - }, - "name": "Music Store" - }, - "shop/newsagent": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "newsagent" - }, - "name": "Newsagent" - }, - "shop/optician": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "optician" - }, - "name": "Optician" - }, - "shop/outdoor": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "outdoor" - }, - "name": "Outdoor Store" - }, - "shop/pet": { - "icon": "dog-park", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "pet" - }, - "name": "Pet Store" - }, - "shop/photo": { - "icon": "camera", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "photo" - }, - "name": "Photography Store" - }, - "shop/seafood": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "seafood" - }, - "terms": [ - "fishmonger" - ], - "name": "Seafood Shop" - }, - "shop/shoes": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "shoes" - }, - "name": "Shoe Store" - }, - "shop/sports": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "sports" - }, - "name": "Sporting Goods Store" - }, - "shop/stationery": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "stationery" - }, - "name": "Stationery Store" - }, - "shop/supermarket": { - "icon": "grocery", - "fields": [ - "operator", - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "bazaar", - "boutique", - "chain", - "co-op", - "cut-rate store", - "discount store", - "five-and-dime", - "flea market", - "galleria", - "grocery store", - "mall", - "mart", - "outlet", - "outlet store", - "shop", - "shopping center", - "shopping centre", - "shopping plaza", - "stand", - "store", - "supermarket", - "thrift shop" - ], - "tags": { - "shop": "supermarket" - }, - "name": "Supermarket" - }, - "shop/toys": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "toys" - }, - "name": "Toy Store" - }, - "shop/travel_agency": { - "icon": "suitcase", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "travel_agency" - }, - "name": "Travel Agency" - }, - "shop/tyres": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "tyres" - }, - "name": "Tire Store" - }, - "shop/vacant": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "vacant" - }, - "name": "Vacant Shop" - }, - "shop/variety_store": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "variety_store" - }, - "name": "Variety Store" - }, - "shop/video": { - "icon": "shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "video" - }, - "name": "Video Store" - }, - "shop/wine": { - "icon": "alcohol-shop", - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "shop": "wine" - }, - "terms": [ - "winery" - ], - "name": "Wine Shop" - }, - "tourism": { - "fields": [ - "tourism" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "tourism": "*" - }, - "name": "Tourism" - }, - "tourism/alpine_hut": { - "icon": "lodging", - "fields": [ - "operator", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "tourism": "alpine_hut" - }, - "name": "Alpine Hut" - }, - "tourism/artwork": { - "fields": [ - "artwork_type", - "artist" - ], - "icon": "art-gallery", - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "tourism": "artwork" - }, - "terms": [ - "mural", - "sculpture", - "statue" - ], - "name": "Artwork" - }, - "tourism/attraction": { - "icon": "monument", - "fields": [ - "operator", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "tourism": "attraction" - }, - "name": "Tourist Attraction" - }, - "tourism/camp_site": { - "icon": "campsite", - "fields": [ - "operator", - "address", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "camping" - ], - "tags": { - "tourism": "camp_site" - }, - "name": "Camp Site" - }, - "tourism/caravan_site": { - "fields": [ - "operator", - "address", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "tourism": "caravan_site" - }, - "name": "RV Park" - }, - "tourism/chalet": { - "icon": "lodging", - "fields": [ - "operator", - "building_area", - "address", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "tourism": "chalet" - }, - "name": "Chalet" - }, - "tourism/guest_house": { - "icon": "lodging", - "fields": [ - "operator", - "address", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "tourism": "guest_house" - }, - "terms": [ - "B&B", - "Bed & Breakfast", - "Bed and Breakfast" - ], - "name": "Guest House" - }, - "tourism/hostel": { - "icon": "lodging", - "fields": [ - "operator", - "building_area", - "address", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "tourism": "hostel" - }, - "name": "Hostel" - }, - "tourism/hotel": { - "icon": "lodging", - "fields": [ - "operator", - "building_area", - "address", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [], - "tags": { - "tourism": "hotel" - }, - "name": "Hotel" - }, - "tourism/information": { - "fields": [ - "information", - "building_area", - "address", - "operator" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "tourism": "information" - }, - "name": "Information" - }, - "tourism/motel": { - "icon": "lodging", - "fields": [ - "operator", - "building_area", - "address", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "tourism": "motel" - }, - "name": "Motel" - }, - "tourism/museum": { - "icon": "museum", - "fields": [ - "operator", - "building_area", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [ - "exhibition", - "exhibits archive", - "foundation", - "gallery", - "hall", - "institution", - "library", - "menagerie", - "repository", - "salon", - "storehouse", - "treasury", - "vault" - ], - "tags": { - "tourism": "museum" - }, - "name": "Museum" - }, - "tourism/picnic_site": { - "icon": "park", - "fields": [ - "operator", - "address", - "smoking" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "terms": [], - "tags": { - "tourism": "picnic_site" - }, - "name": "Picnic Site" - }, - "tourism/theme_park": { - "fields": [ - "operator", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "tourism": "theme_park" - }, - "name": "Theme Park" - }, - "tourism/viewpoint": { - "geometry": [ - "point", - "vertex" - ], - "tags": { - "tourism": "viewpoint" - }, - "name": "Viewpoint" - }, - "tourism/zoo": { - "icon": "zoo", - "fields": [ - "operator", - "address" - ], - "geometry": [ - "point", - "vertex", - "area" - ], - "tags": { - "tourism": "zoo" - }, - "name": "Zoo" - }, - "type/boundary": { - "geometry": [ - "relation" - ], - "tags": { - "type": "boundary" - }, - "name": "Boundary", - "icon": "boundary", - "fields": [ - "boundary" - ] - }, - "type/boundary/administrative": { - "name": "Administrative Boundary", - "geometry": [ - "relation" - ], - "tags": { - "type": "boundary", - "boundary": "administrative" - }, - "fields": [ - "admin_level" - ], - "icon": "boundary" - }, - "type/multipolygon": { - "geometry": [ - "area", - "relation" - ], - "tags": { - "type": "multipolygon" - }, - "removeTags": {}, - "name": "Multipolygon", - "icon": "multipolygon", - "searchable": false, - "matchScore": 0.1 - }, - "type/restriction": { - "geometry": [ - "relation" - ], - "tags": { - "type": "restriction" - }, - "name": "Restriction", - "icon": "restriction", - "fields": [ - "restriction" - ] - }, - "type/route": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route" - }, - "name": "Route", - "icon": "route", - "fields": [ - "route", - "ref" - ] - }, - "type/route/bicycle": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route", - "route": "bicycle" - }, - "name": "Cycle Route", - "icon": "route-bicycle", - "fields": [ - "ref", - "network" - ] - }, - "type/route/bus": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route", - "route": "bus" - }, - "name": "Bus Route", - "icon": "route-bus", - "fields": [ - "ref", - "operator", - "network" - ] - }, - "type/route/detour": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route", - "route": "detour" - }, - "name": "Detour Route", - "icon": "route-detour", - "fields": [ - "ref" - ] - }, - "type/route/ferry": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route", - "route": "ferry" - }, - "name": "Ferry Route", - "icon": "route-ferry", - "fields": [ - "ref", - "operator", - "network" - ] - }, - "type/route/foot": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route", - "route": "foot" - }, - "name": "Foot Route", - "icon": "route-foot", - "fields": [ - "ref", - "operator", - "network" - ] - }, - "type/route/hiking": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route", - "route": "hiking" - }, - "name": "Hiking Route", - "icon": "route-foot", - "fields": [ - "ref", - "operator", - "network" - ] - }, - "type/route/pipeline": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route", - "route": "pipeline" - }, - "name": "Pipeline Route", - "icon": "route-pipeline", - "fields": [ - "ref", - "operator" - ] - }, - "type/route/power": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route", - "route": "power" - }, - "name": "Power Route", - "icon": "route-power", - "fields": [ - "ref", - "operator" - ] - }, - "type/route/road": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route", - "route": "road" - }, - "name": "Road Route", - "icon": "route-road", - "fields": [ - "ref" - ] - }, - "type/route/train": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route", - "route": "train" - }, - "name": "Train Route", - "icon": "route-train", - "fields": [ - "ref", - "operator" - ] - }, - "type/route/tram": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route", - "route": "tram" - }, - "name": "Tram Route", - "icon": "route-tram", - "fields": [ - "ref", - "operator" - ] - }, - "type/route_master": { - "geometry": [ - "relation" - ], - "tags": { - "type": "route_master" - }, - "name": "Route Master", - "icon": "route-master", - "fields": [ - "route_master", - "ref", - "operator", - "network" - ] - }, - "vertex": { - "name": "Other", - "tags": {}, - "geometry": [ - "vertex" - ], - "matchScore": 0.1 - }, - "waterway": { - "fields": [ - "waterway" - ], - "geometry": [ - "point", - "vertex", - "line", - "area" - ], - "tags": { - "waterway": "*" - }, - "name": "Waterway" - }, - "waterway/canal": { - "icon": "waterway-canal", - "fields": [ - "width" - ], - "geometry": [ - "line" - ], - "tags": { - "waterway": "canal" - }, - "name": "Canal" - }, - "waterway/dam": { - "icon": "dam", - "geometry": [ - "point", - "vertex", - "line", - "area" - ], - "tags": { - "waterway": "dam" - }, - "name": "Dam" - }, - "waterway/ditch": { - "icon": "waterway-ditch", - "fields": [ - "tunnel" - ], - "geometry": [ - "line" - ], - "tags": { - "waterway": "ditch" - }, - "name": "Ditch" - }, - "waterway/drain": { - "icon": "waterway-stream", - "fields": [ - "tunnel" - ], - "geometry": [ - "line" - ], - "tags": { - "waterway": "drain" - }, - "name": "Drain" - }, - "waterway/river": { - "icon": "waterway-river", - "fields": [ - "tunnel", - "width" - ], - "geometry": [ - "line" - ], - "terms": [ - "beck", - "branch", - "brook", - "course", - "creek", - "estuary", - "rill", - "rivulet", - "run", - "runnel", - "stream", - "tributary", - "watercourse" - ], - "tags": { - "waterway": "river" - }, - "name": "River" - }, - "waterway/riverbank": { - "icon": "water", - "geometry": [ - "area" - ], - "tags": { - "waterway": "riverbank" - }, - "name": "Riverbank" - }, - "waterway/stream": { - "icon": "waterway-stream", - "fields": [ - "tunnel", - "width" - ], - "geometry": [ - "line" - ], - "terms": [ - "beck", - "branch", - "brook", - "burn", - "course", - "creek", - "current", - "drift", - "flood", - "flow", - "freshet", - "race", - "rill", - "rindle", - "rivulet", - "run", - "runnel", - "rush", - "spate", - "spritz", - "surge", - "tide", - "torrent", - "tributary", - "watercourse" - ], - "tags": { - "waterway": "stream" - }, - "name": "Stream" - }, - "waterway/weir": { - "icon": "dam", - "geometry": [ - "vertex", - "line" - ], - "tags": { - "waterway": "weir" - }, - "name": "Weir" - }, - "amenity/fuel/76": { - "tags": { - "name": "76", - "amenity": "fuel" - }, - "name": "76", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Neste": { - "tags": { - "name": "Neste", - "amenity": "fuel" - }, - "name": "Neste", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/BP": { - "tags": { - "name": "BP", - "amenity": "fuel" - }, - "name": "BP", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Shell": { - "tags": { - "name": "Shell", - "amenity": "fuel" - }, - "name": "Shell", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Agip": { - "tags": { - "name": "Agip", - "amenity": "fuel" - }, - "name": "Agip", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Migrol": { - "tags": { - "name": "Migrol", - "amenity": "fuel" - }, - "name": "Migrol", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Avia": { - "tags": { - "name": "Avia", - "amenity": "fuel" - }, - "name": "Avia", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Texaco": { - "tags": { - "name": "Texaco", - "amenity": "fuel" - }, - "name": "Texaco", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Total": { - "tags": { - "name": "Total", - "amenity": "fuel" - }, - "name": "Total", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Statoil": { - "tags": { - "name": "Statoil", - "amenity": "fuel" - }, - "name": "Statoil", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Esso": { - "tags": { - "name": "Esso", - "amenity": "fuel" - }, - "name": "Esso", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Jet": { - "tags": { - "name": "Jet", - "amenity": "fuel" - }, - "name": "Jet", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Avanti": { - "tags": { - "name": "Avanti", - "amenity": "fuel" - }, - "name": "Avanti", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Sainsbury's": { - "tags": { - "name": "Sainsbury's", - "amenity": "fuel" - }, - "name": "Sainsbury's", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/OMV": { - "tags": { - "name": "OMV", - "amenity": "fuel" - }, - "name": "OMV", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Aral": { - "tags": { - "name": "Aral", - "amenity": "fuel" - }, - "name": "Aral", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Tesco": { - "tags": { - "name": "Tesco", - "amenity": "fuel" - }, - "name": "Tesco", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/JET": { - "tags": { - "name": "JET", - "amenity": "fuel" - }, - "name": "JET", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Morrisons": { - "tags": { - "name": "Morrisons", - "amenity": "fuel" - }, - "name": "Morrisons", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/United": { - "tags": { - "name": "United", - "amenity": "fuel" - }, - "name": "United", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Canadian Tire": { - "tags": { - "name": "Canadian Tire", - "amenity": "fuel" - }, - "name": "Canadian Tire", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Mobil": { - "tags": { - "name": "Mobil", - "amenity": "fuel" - }, - "name": "Mobil", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Caltex": { - "tags": { - "name": "Caltex", - "amenity": "fuel" - }, - "name": "Caltex", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Sunoco": { - "tags": { - "name": "Sunoco", - "amenity": "fuel" - }, - "name": "Sunoco", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Q8": { - "tags": { - "name": "Q8", - "amenity": "fuel" - }, - "name": "Q8", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/ABC": { - "tags": { - "name": "ABC", - "amenity": "fuel" - }, - "name": "ABC", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/ARAL": { - "tags": { - "name": "ARAL", - "amenity": "fuel" - }, - "name": "ARAL", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/CEPSA": { - "tags": { - "name": "CEPSA", - "amenity": "fuel" - }, - "name": "CEPSA", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/BFT": { - "tags": { - "name": "BFT", - "amenity": "fuel" - }, - "name": "BFT", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Petron": { - "tags": { - "name": "Petron", - "amenity": "fuel" - }, - "name": "Petron", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Intermarché": { - "tags": { - "name": "Intermarché", - "amenity": "fuel" - }, - "name": "Intermarché", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Total Access": { - "tags": { - "name": "Total Access", - "amenity": "fuel" - }, - "name": "Total Access", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Super U": { - "tags": { - "name": "Super U", - "amenity": "fuel" - }, - "name": "Super U", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Auchan": { - "tags": { - "name": "Auchan", - "amenity": "fuel" - }, - "name": "Auchan", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Elf": { - "tags": { - "name": "Elf", - "amenity": "fuel" - }, - "name": "Elf", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Carrefour": { - "tags": { - "name": "Carrefour", - "amenity": "fuel" - }, - "name": "Carrefour", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Station Service E. Leclerc": { - "tags": { - "name": "Station Service E. Leclerc", - "amenity": "fuel" - }, - "name": "Station Service E. Leclerc", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Shell Express": { - "tags": { - "name": "Shell Express", - "amenity": "fuel" - }, - "name": "Shell Express", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Hess": { - "tags": { - "name": "Hess", - "amenity": "fuel" - }, - "name": "Hess", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Flying V": { - "tags": { - "name": "Flying V", - "amenity": "fuel" - }, - "name": "Flying V", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/bft": { - "tags": { - "name": "bft", - "amenity": "fuel" - }, - "name": "bft", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Gulf": { - "tags": { - "name": "Gulf", - "amenity": "fuel" - }, - "name": "Gulf", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/PTT": { - "tags": { - "name": "PTT", - "amenity": "fuel" - }, - "name": "PTT", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/St1": { - "tags": { - "name": "St1", - "amenity": "fuel" - }, - "name": "St1", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Teboil": { - "tags": { - "name": "Teboil", - "amenity": "fuel" - }, - "name": "Teboil", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/HEM": { - "tags": { - "name": "HEM", - "amenity": "fuel" - }, - "name": "HEM", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/GALP": { - "tags": { - "name": "GALP", - "amenity": "fuel" - }, - "name": "GALP", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/OK": { - "tags": { - "name": "OK", - "amenity": "fuel" - }, - "name": "OK", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/ÖMV": { - "tags": { - "name": "ÖMV", - "amenity": "fuel" - }, - "name": "ÖMV", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Tinq": { - "tags": { - "name": "Tinq", - "amenity": "fuel" - }, - "name": "Tinq", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/OKQ8": { - "tags": { - "name": "OKQ8", - "amenity": "fuel" - }, - "name": "OKQ8", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Repsol": { - "tags": { - "name": "Repsol", - "amenity": "fuel" - }, - "name": "Repsol", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Westfalen": { - "tags": { - "name": "Westfalen", - "amenity": "fuel" - }, - "name": "Westfalen", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Esso Express": { - "tags": { - "name": "Esso Express", - "amenity": "fuel" - }, - "name": "Esso Express", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Raiffeisenbank": { - "tags": { - "name": "Raiffeisenbank", - "amenity": "fuel" - }, - "name": "Raiffeisenbank", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Tamoil": { - "tags": { - "name": "Tamoil", - "amenity": "fuel" - }, - "name": "Tamoil", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Engen": { - "tags": { - "name": "Engen", - "amenity": "fuel" - }, - "name": "Engen", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Sasol": { - "tags": { - "name": "Sasol", - "amenity": "fuel" - }, - "name": "Sasol", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Topaz": { - "tags": { - "name": "Topaz", - "amenity": "fuel" - }, - "name": "Topaz", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/LPG": { - "tags": { - "name": "LPG", - "amenity": "fuel" - }, - "name": "LPG", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Coop": { - "tags": { - "name": "Coop", - "amenity": "fuel" - }, - "name": "Coop", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Orlen": { - "tags": { - "name": "Orlen", - "amenity": "fuel" - }, - "name": "Orlen", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Oilibya": { - "tags": { - "name": "Oilibya", - "amenity": "fuel" - }, - "name": "Oilibya", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Tango": { - "tags": { - "name": "Tango", - "amenity": "fuel" - }, - "name": "Tango", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Star": { - "tags": { - "name": "Star", - "amenity": "fuel" - }, - "name": "Star", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Петрол": { - "tags": { - "name": "Петрол", - "amenity": "fuel" - }, - "name": "Петрол", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Cepsa": { - "tags": { - "name": "Cepsa", - "amenity": "fuel" - }, - "name": "Cepsa", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/OIL!": { - "tags": { - "name": "OIL!", - "amenity": "fuel" - }, - "name": "OIL!", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Ultramar": { - "tags": { - "name": "Ultramar", - "amenity": "fuel" - }, - "name": "Ultramar", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Irving": { - "tags": { - "name": "Irving", - "amenity": "fuel" - }, - "name": "Irving", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Lukoil": { - "tags": { - "name": "Lukoil", - "amenity": "fuel" - }, - "name": "Lukoil", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Petro-Canada": { - "tags": { - "name": "Petro-Canada", - "amenity": "fuel" - }, - "name": "Petro-Canada", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/7-Eleven": { - "tags": { - "name": "7-Eleven", - "amenity": "fuel" - }, - "name": "7-Eleven", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Agrola": { - "tags": { - "name": "Agrola", - "amenity": "fuel" - }, - "name": "Agrola", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Husky": { - "tags": { - "name": "Husky", - "amenity": "fuel" - }, - "name": "Husky", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Slovnaft": { - "tags": { - "name": "Slovnaft", - "amenity": "fuel" - }, - "name": "Slovnaft", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Sheetz": { - "tags": { - "name": "Sheetz", - "amenity": "fuel" - }, - "name": "Sheetz", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Mol": { - "tags": { - "name": "Mol", - "amenity": "fuel" - }, - "name": "Mol", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Petronas": { - "tags": { - "name": "Petronas", - "amenity": "fuel" - }, - "name": "Petronas", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Газпромнефть": { - "tags": { - "name": "Газпромнефть", - "amenity": "fuel" - }, - "name": "Газпромнефть", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Лукойл": { - "tags": { - "name": "Лукойл", - "amenity": "fuel" - }, - "name": "Лукойл", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Elan": { - "tags": { - "name": "Elan", - "amenity": "fuel" - }, - "name": "Elan", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Роснефть": { - "tags": { - "name": "Роснефть", - "amenity": "fuel" - }, - "name": "Роснефть", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Turmöl": { - "tags": { - "name": "Turmöl", - "amenity": "fuel" - }, - "name": "Turmöl", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Neste A24": { - "tags": { - "name": "Neste A24", - "amenity": "fuel" - }, - "name": "Neste A24", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Marathon": { - "tags": { - "name": "Marathon", - "amenity": "fuel" - }, - "name": "Marathon", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Valero": { - "tags": { - "name": "Valero", - "amenity": "fuel" - }, - "name": "Valero", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Eni": { - "tags": { - "name": "Eni", - "amenity": "fuel" - }, - "name": "Eni", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Chevron": { - "tags": { - "name": "Chevron", - "amenity": "fuel" - }, - "name": "Chevron", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/ТНК": { - "tags": { - "name": "ТНК", - "amenity": "fuel" - }, - "name": "ТНК", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/REPSOL": { - "tags": { - "name": "REPSOL", - "amenity": "fuel" - }, - "name": "REPSOL", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/MOL": { - "tags": { - "name": "MOL", - "amenity": "fuel" - }, - "name": "MOL", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Bliska": { - "tags": { - "name": "Bliska", - "amenity": "fuel" - }, - "name": "Bliska", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Api": { - "tags": { - "name": "Api", - "amenity": "fuel" - }, - "name": "Api", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Arco": { - "tags": { - "name": "Arco", - "amenity": "fuel" - }, - "name": "Arco", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Pemex": { - "tags": { - "name": "Pemex", - "amenity": "fuel" - }, - "name": "Pemex", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Exxon": { - "tags": { - "name": "Exxon", - "amenity": "fuel" - }, - "name": "Exxon", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Coles Express": { - "tags": { - "name": "Coles Express", - "amenity": "fuel" - }, - "name": "Coles Express", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Petrom": { - "tags": { - "name": "Petrom", - "amenity": "fuel" - }, - "name": "Petrom", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/PETRONOR": { - "tags": { - "name": "PETRONOR", - "amenity": "fuel" - }, - "name": "PETRONOR", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Rompetrol": { - "tags": { - "name": "Rompetrol", - "amenity": "fuel" - }, - "name": "Rompetrol", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Lotos": { - "tags": { - "name": "Lotos", - "amenity": "fuel" - }, - "name": "Lotos", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/ОМВ": { - "tags": { - "name": "ОМВ", - "amenity": "fuel" - }, - "name": "ОМВ", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/BR": { - "tags": { - "name": "BR", - "amenity": "fuel" - }, - "name": "BR", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Copec": { - "tags": { - "name": "Copec", - "amenity": "fuel" - }, - "name": "Copec", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Petrobras": { - "tags": { - "name": "Petrobras", - "amenity": "fuel" - }, - "name": "Petrobras", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Liberty": { - "tags": { - "name": "Liberty", - "amenity": "fuel" - }, - "name": "Liberty", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/IP": { - "tags": { - "name": "IP", - "amenity": "fuel" - }, - "name": "IP", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Erg": { - "tags": { - "name": "Erg", - "amenity": "fuel" - }, - "name": "Erg", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Eneos": { - "tags": { - "name": "Eneos", - "amenity": "fuel" - }, - "name": "Eneos", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Citgo": { - "tags": { - "name": "Citgo", - "amenity": "fuel" - }, - "name": "Citgo", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Metano": { - "tags": { - "name": "Metano", - "amenity": "fuel" - }, - "name": "Metano", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Сургутнефтегаз": { - "tags": { - "name": "Сургутнефтегаз", - "amenity": "fuel" - }, - "name": "Сургутнефтегаз", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/EKO": { - "tags": { - "name": "EKO", - "amenity": "fuel" - }, - "name": "EKO", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Eko": { - "tags": { - "name": "Eko", - "amenity": "fuel" - }, - "name": "Eko", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Indipend.": { - "tags": { - "name": "Indipend.", - "amenity": "fuel" - }, - "name": "Indipend.", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/IES": { - "tags": { - "name": "IES", - "amenity": "fuel" - }, - "name": "IES", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/TotalErg": { - "tags": { - "name": "TotalErg", - "amenity": "fuel" - }, - "name": "TotalErg", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Cenex": { - "tags": { - "name": "Cenex", - "amenity": "fuel" - }, - "name": "Cenex", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/ПТК": { - "tags": { - "name": "ПТК", - "amenity": "fuel" - }, - "name": "ПТК", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/HP": { - "tags": { - "name": "HP", - "amenity": "fuel" - }, - "name": "HP", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Phillips 66": { - "tags": { - "name": "Phillips 66", - "amenity": "fuel" - }, - "name": "Phillips 66", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/CARREFOUR": { - "tags": { - "name": "CARREFOUR", - "amenity": "fuel" - }, - "name": "CARREFOUR", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/ERG": { - "tags": { - "name": "ERG", - "amenity": "fuel" - }, - "name": "ERG", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Speedway": { - "tags": { - "name": "Speedway", - "amenity": "fuel" - }, - "name": "Speedway", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Benzina": { - "tags": { - "name": "Benzina", - "amenity": "fuel" - }, - "name": "Benzina", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Татнефть": { - "tags": { - "name": "Татнефть", - "amenity": "fuel" - }, - "name": "Татнефть", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Terpel": { - "tags": { - "name": "Terpel", - "amenity": "fuel" - }, - "name": "Terpel", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/WOG": { - "tags": { - "name": "WOG", - "amenity": "fuel" - }, - "name": "WOG", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Seaoil": { - "tags": { - "name": "Seaoil", - "amenity": "fuel" - }, - "name": "Seaoil", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/АЗС": { - "tags": { - "name": "АЗС", - "amenity": "fuel" - }, - "name": "АЗС", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Kwik Trip": { - "tags": { - "name": "Kwik Trip", - "amenity": "fuel" - }, - "name": "Kwik Trip", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Wawa": { - "tags": { - "name": "Wawa", - "amenity": "fuel" - }, - "name": "Wawa", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Pertamina": { - "tags": { - "name": "Pertamina", - "amenity": "fuel" - }, - "name": "Pertamina", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/COSMO": { - "tags": { - "name": "COSMO", - "amenity": "fuel" - }, - "name": "COSMO", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Z": { - "tags": { - "name": "Z", - "amenity": "fuel" - }, - "name": "Z", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Indian Oil": { - "tags": { - "name": "Indian Oil", - "amenity": "fuel" - }, - "name": "Indian Oil", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/АГЗС": { - "tags": { - "name": "АГЗС", - "amenity": "fuel" - }, - "name": "АГЗС", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/INA": { - "tags": { - "name": "INA", - "amenity": "fuel" - }, - "name": "INA", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/JOMO": { - "tags": { - "name": "JOMO", - "amenity": "fuel" - }, - "name": "JOMO", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Holiday": { - "tags": { - "name": "Holiday", - "amenity": "fuel" - }, - "name": "Holiday", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/YPF": { - "tags": { - "name": "YPF", - "amenity": "fuel" - }, - "name": "YPF", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/IDEMITSU": { - "tags": { - "name": "IDEMITSU", - "amenity": "fuel" - }, - "name": "IDEMITSU", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/ENEOS": { - "tags": { - "name": "ENEOS", - "amenity": "fuel" - }, - "name": "ENEOS", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Stacja paliw": { - "tags": { - "name": "Stacja paliw", - "amenity": "fuel" - }, - "name": "Stacja paliw", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Bharat Petroleum": { - "tags": { - "name": "Bharat Petroleum", - "amenity": "fuel" - }, - "name": "Bharat Petroleum", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/CAMPSA": { - "tags": { - "name": "CAMPSA", - "amenity": "fuel" - }, - "name": "CAMPSA", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Casey's General Store": { - "tags": { - "name": "Casey's General Store", - "amenity": "fuel" - }, - "name": "Casey's General Store", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Башнефть": { - "tags": { - "name": "Башнефть", - "amenity": "fuel" - }, - "name": "Башнефть", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Kangaroo": { - "tags": { - "name": "Kangaroo", - "amenity": "fuel" - }, - "name": "Kangaroo", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/コスモ石油 (COSMO)": { - "tags": { - "name": "コスモ石油 (COSMO)", - "amenity": "fuel" - }, - "name": "コスモ石油 (COSMO)", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/MEROIL": { - "tags": { - "name": "MEROIL", - "amenity": "fuel" - }, - "name": "MEROIL", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/1-2-3": { - "tags": { - "name": "1-2-3", - "amenity": "fuel" - }, - "name": "1-2-3", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/出光": { - "tags": { - "name": "出光", - "name:en": "IDEMITSU", - "amenity": "fuel" - }, - "name": "出光", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/НК Альянс": { - "tags": { - "name": "НК Альянс", - "amenity": "fuel" - }, - "name": "НК Альянс", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Sinclair": { - "tags": { - "name": "Sinclair", - "amenity": "fuel" - }, - "name": "Sinclair", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Conoco": { - "tags": { - "name": "Conoco", - "amenity": "fuel" - }, - "name": "Conoco", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/SPBU": { - "tags": { - "name": "SPBU", - "amenity": "fuel" - }, - "name": "SPBU", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Макпетрол": { - "tags": { - "name": "Макпетрол", - "amenity": "fuel" - }, - "name": "Макпетрол", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Circle K": { - "tags": { - "name": "Circle K", - "amenity": "fuel" - }, - "name": "Circle K", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Posto Ipiranga": { - "tags": { - "name": "Posto Ipiranga", - "amenity": "fuel" - }, - "name": "Posto Ipiranga", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Posto Shell": { - "tags": { - "name": "Posto Shell", - "amenity": "fuel" - }, - "name": "Posto Shell", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Phoenix": { - "tags": { - "name": "Phoenix", - "amenity": "fuel" - }, - "name": "Phoenix", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Ipiranga": { - "tags": { - "name": "Ipiranga", - "amenity": "fuel" - }, - "name": "Ipiranga", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/OKKO": { - "tags": { - "name": "OKKO", - "amenity": "fuel" - }, - "name": "OKKO", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/ОККО": { - "tags": { - "name": "ОККО", - "amenity": "fuel" - }, - "name": "ОККО", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/บางจาก": { - "tags": { - "name": "บางจาก", - "amenity": "fuel" - }, - "name": "บางจาก", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/QuikTrip": { - "tags": { - "name": "QuikTrip", - "amenity": "fuel" - }, - "name": "QuikTrip", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Stewart's": { - "tags": { - "name": "Stewart's", - "amenity": "fuel" - }, - "name": "Stewart's", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Posto BR": { - "tags": { - "name": "Posto BR", - "amenity": "fuel" - }, - "name": "Posto BR", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/ป ต ท": { - "tags": { - "name": "ป ต ท", - "amenity": "fuel" - }, - "name": "ป ต ท", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/ปตท": { - "tags": { - "name": "ปตท", - "amenity": "fuel" - }, - "name": "ปตท", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/ANP": { - "tags": { - "name": "ANP", - "amenity": "fuel" - }, - "name": "ANP", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Kum & Go": { - "tags": { - "name": "Kum & Go", - "amenity": "fuel" - }, - "name": "Kum & Go", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Petrolimex": { - "tags": { - "name": "Petrolimex", - "amenity": "fuel" - }, - "name": "Petrolimex", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Sokimex": { - "tags": { - "name": "Sokimex", - "amenity": "fuel" - }, - "name": "Sokimex", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Tela": { - "tags": { - "name": "Tela", - "amenity": "fuel" - }, - "name": "Tela", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Posto": { - "tags": { - "name": "Posto", - "amenity": "fuel" - }, - "name": "Posto", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/H-E-B": { - "tags": { - "name": "H-E-B", - "amenity": "fuel" - }, - "name": "H-E-B", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Укрнафта": { - "tags": { - "name": "Укрнафта", - "amenity": "fuel" - }, - "name": "Укрнафта", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Татнефтепродукт": { - "tags": { - "name": "Татнефтепродукт", - "amenity": "fuel" - }, - "name": "Татнефтепродукт", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Afriquia": { - "tags": { - "name": "Afriquia", - "amenity": "fuel" - }, - "name": "Afriquia", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/Murphy USA": { - "tags": { - "name": "Murphy USA", - "amenity": "fuel" - }, - "name": "Murphy USA", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/昭和シェル (Showa-shell)": { - "tags": { - "name": "昭和シェル (Showa-shell)", - "amenity": "fuel" - }, - "name": "昭和シェル (Showa-shell)", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/エネオス": { - "tags": { - "name": "エネオス", - "amenity": "fuel" - }, - "name": "エネオス", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/fuel/CNG": { - "tags": { - "name": "CNG", - "amenity": "fuel" - }, - "name": "CNG", - "icon": "fuel", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "address", - "building_area" - ], - "suggestion": true - }, - "amenity/pub/Kings Arms": { - "tags": { - "name": "Kings Arms", - "amenity": "pub" - }, - "name": "Kings Arms", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Ship": { - "tags": { - "name": "The Ship", - "amenity": "pub" - }, - "name": "The Ship", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The White Horse": { - "tags": { - "name": "The White Horse", - "amenity": "pub" - }, - "name": "The White Horse", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The White Hart": { - "tags": { - "name": "The White Hart", - "amenity": "pub" - }, - "name": "The White Hart", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/Royal Oak": { - "tags": { - "name": "Royal Oak", - "amenity": "pub" - }, - "name": "Royal Oak", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Red Lion": { - "tags": { - "name": "The Red Lion", - "amenity": "pub" - }, - "name": "The Red Lion", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Kings Arms": { - "tags": { - "name": "The Kings Arms", - "amenity": "pub" - }, - "name": "The Kings Arms", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Star": { - "tags": { - "name": "The Star", - "amenity": "pub" - }, - "name": "The Star", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Anchor": { - "tags": { - "name": "The Anchor", - "amenity": "pub" - }, - "name": "The Anchor", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Cross Keys": { - "tags": { - "name": "The Cross Keys", - "amenity": "pub" - }, - "name": "The Cross Keys", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Wheatsheaf": { - "tags": { - "name": "The Wheatsheaf", - "amenity": "pub" - }, - "name": "The Wheatsheaf", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Crown Inn": { - "tags": { - "name": "The Crown Inn", - "amenity": "pub" - }, - "name": "The Crown Inn", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Kings Head": { - "tags": { - "name": "The Kings Head", - "amenity": "pub" - }, - "name": "The Kings Head", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Castle": { - "tags": { - "name": "The Castle", - "amenity": "pub" - }, - "name": "The Castle", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Railway": { - "tags": { - "name": "The Railway", - "amenity": "pub" - }, - "name": "The Railway", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The White Lion": { - "tags": { - "name": "The White Lion", - "amenity": "pub" - }, - "name": "The White Lion", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Bell": { - "tags": { - "name": "The Bell", - "amenity": "pub" - }, - "name": "The Bell", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Bull": { - "tags": { - "name": "The Bull", - "amenity": "pub" - }, - "name": "The Bull", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Plough": { - "tags": { - "name": "The Plough", - "amenity": "pub" - }, - "name": "The Plough", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The George": { - "tags": { - "name": "The George", - "amenity": "pub" - }, - "name": "The George", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Royal Oak": { - "tags": { - "name": "The Royal Oak", - "amenity": "pub" - }, - "name": "The Royal Oak", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Fox": { - "tags": { - "name": "The Fox", - "amenity": "pub" - }, - "name": "The Fox", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/Prince of Wales": { - "tags": { - "name": "Prince of Wales", - "amenity": "pub" - }, - "name": "Prince of Wales", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Rising Sun": { - "tags": { - "name": "The Rising Sun", - "amenity": "pub" - }, - "name": "The Rising Sun", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Prince of Wales": { - "tags": { - "name": "The Prince of Wales", - "amenity": "pub" - }, - "name": "The Prince of Wales", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Crown": { - "tags": { - "name": "The Crown", - "amenity": "pub" - }, - "name": "The Crown", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Chequers": { - "tags": { - "name": "The Chequers", - "amenity": "pub" - }, - "name": "The Chequers", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Swan": { - "tags": { - "name": "The Swan", - "amenity": "pub" - }, - "name": "The Swan", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/Rose and Crown": { - "tags": { - "name": "Rose and Crown", - "amenity": "pub" - }, - "name": "Rose and Crown", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Victoria": { - "tags": { - "name": "The Victoria", - "amenity": "pub" - }, - "name": "The Victoria", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/New Inn": { - "tags": { - "name": "New Inn", - "amenity": "pub" - }, - "name": "New Inn", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/Royal Hotel": { - "tags": { - "name": "Royal Hotel", - "amenity": "pub" - }, - "name": "Royal Hotel", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/Red Lion": { - "tags": { - "name": "Red Lion", - "amenity": "pub" - }, - "name": "Red Lion", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/Cross Keys": { - "tags": { - "name": "Cross Keys", - "amenity": "pub" - }, - "name": "Cross Keys", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Greyhound": { - "tags": { - "name": "The Greyhound", - "amenity": "pub" - }, - "name": "The Greyhound", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Black Horse": { - "tags": { - "name": "The Black Horse", - "amenity": "pub" - }, - "name": "The Black Horse", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The New Inn": { - "tags": { - "name": "The New Inn", - "amenity": "pub" - }, - "name": "The New Inn", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/Kings Head": { - "tags": { - "name": "Kings Head", - "amenity": "pub" - }, - "name": "Kings Head", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Albion": { - "tags": { - "name": "The Albion", - "amenity": "pub" - }, - "name": "The Albion", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Angel": { - "tags": { - "name": "The Angel", - "amenity": "pub" - }, - "name": "The Angel", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Queens Head": { - "tags": { - "name": "The Queens Head", - "amenity": "pub" - }, - "name": "The Queens Head", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/The Ship Inn": { - "tags": { - "name": "The Ship Inn", - "amenity": "pub" - }, - "name": "The Ship Inn", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/Rose & Crown": { - "tags": { - "name": "Rose & Crown", - "amenity": "pub" - }, - "name": "Rose & Crown", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/Queens Head": { - "tags": { - "name": "Queens Head", - "amenity": "pub" - }, - "name": "Queens Head", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/pub/Irish Pub": { - "tags": { - "name": "Irish Pub", - "amenity": "pub" - }, - "name": "Irish Pub", - "icon": "beer", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Quick": { - "tags": { - "name": "Quick", - "amenity": "fast_food" - }, - "name": "Quick", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/McDonald's": { - "tags": { - "name": "McDonald's", - "cuisine": "burger", - "amenity": "fast_food" - }, - "name": "McDonald's", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Burger King": { - "tags": { - "name": "Burger King", - "cuisine": "burger", - "amenity": "fast_food" - }, - "name": "Burger King", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Ali Baba": { - "tags": { - "name": "Ali Baba", - "amenity": "fast_food" - }, - "name": "Ali Baba", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Hungry Jacks": { - "tags": { - "name": "Hungry Jacks", - "cuisine": "burger", - "amenity": "fast_food" - }, - "name": "Hungry Jacks", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Red Rooster": { - "tags": { - "name": "Red Rooster", - "amenity": "fast_food" - }, - "name": "Red Rooster", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/KFC": { - "tags": { - "name": "KFC", - "cuisine": "chicken", - "amenity": "fast_food" - }, - "name": "KFC", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Domino's Pizza": { - "tags": { - "name": "Domino's Pizza", - "cuisine": "pizza", - "amenity": "fast_food" - }, - "name": "Domino's Pizza", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Chowking": { - "tags": { - "name": "Chowking", - "amenity": "fast_food" - }, - "name": "Chowking", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Jollibee": { - "tags": { - "name": "Jollibee", - "amenity": "fast_food" - }, - "name": "Jollibee", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Hesburger": { - "tags": { - "name": "Hesburger", - "amenity": "fast_food" - }, - "name": "Hesburger", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/肯德基": { - "tags": { - "name": "肯德基", - "amenity": "fast_food" - }, - "name": "肯德基", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Wendy's": { - "tags": { - "name": "Wendy's", - "cuisine": "burger", - "amenity": "fast_food" - }, - "name": "Wendy's", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Tim Hortons": { - "tags": { - "name": "Tim Hortons", - "amenity": "fast_food" - }, - "name": "Tim Hortons", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Steers": { - "tags": { - "name": "Steers", - "amenity": "fast_food" - }, - "name": "Steers", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Hardee's": { - "tags": { - "name": "Hardee's", - "cuisine": "burger", - "amenity": "fast_food" - }, - "name": "Hardee's", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Arby's": { - "tags": { - "name": "Arby's", - "amenity": "fast_food" - }, - "name": "Arby's", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/A&W": { - "tags": { - "name": "A&W", - "amenity": "fast_food" - }, - "name": "A&W", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Dairy Queen": { - "tags": { - "name": "Dairy Queen", - "amenity": "fast_food" - }, - "name": "Dairy Queen", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Hallo Pizza": { - "tags": { - "name": "Hallo Pizza", - "amenity": "fast_food" - }, - "name": "Hallo Pizza", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Fish & Chips": { - "tags": { - "name": "Fish & Chips", - "amenity": "fast_food" - }, - "name": "Fish & Chips", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Harvey's": { - "tags": { - "name": "Harvey's", - "amenity": "fast_food" - }, - "name": "Harvey's", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/麥當勞": { - "tags": { - "name": "麥當勞", - "amenity": "fast_food" - }, - "name": "麥當勞", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Pizza Pizza": { - "tags": { - "name": "Pizza Pizza", - "amenity": "fast_food" - }, - "name": "Pizza Pizza", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Kotipizza": { - "tags": { - "name": "Kotipizza", - "amenity": "fast_food" - }, - "name": "Kotipizza", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Jack in the Box": { - "tags": { - "name": "Jack in the Box", - "cuisine": "burger", - "amenity": "fast_food" - }, - "name": "Jack in the Box", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Istanbul": { - "tags": { - "name": "Istanbul", - "amenity": "fast_food" - }, - "name": "Istanbul", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Kochlöffel": { - "tags": { - "name": "Kochlöffel", - "amenity": "fast_food" - }, - "name": "Kochlöffel", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Döner": { - "tags": { - "name": "Döner", - "amenity": "fast_food" - }, - "name": "Döner", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Telepizza": { - "tags": { - "name": "Telepizza", - "amenity": "fast_food" - }, - "name": "Telepizza", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Sibylla": { - "tags": { - "name": "Sibylla", - "amenity": "fast_food" - }, - "name": "Sibylla", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Carl's Jr.": { - "tags": { - "name": "Carl's Jr.", - "cuisine": "burger", - "amenity": "fast_food" - }, - "name": "Carl's Jr.", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Quiznos": { - "tags": { - "name": "Quiznos", - "cuisine": "sandwich", - "amenity": "fast_food" - }, - "name": "Quiznos", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Wimpy": { - "tags": { - "name": "Wimpy", - "amenity": "fast_food" - }, - "name": "Wimpy", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Sonic": { - "tags": { - "name": "Sonic", - "cuisine": "burger", - "amenity": "fast_food" - }, - "name": "Sonic", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Taco Bell": { - "tags": { - "name": "Taco Bell", - "amenity": "fast_food" - }, - "name": "Taco Bell", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Pizza Nova": { - "tags": { - "name": "Pizza Nova", - "amenity": "fast_food" - }, - "name": "Pizza Nova", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Papa John's": { - "tags": { - "name": "Papa John's", - "cuisine": "pizza", - "amenity": "fast_food" - }, - "name": "Papa John's", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Nordsee": { - "tags": { - "name": "Nordsee", - "amenity": "fast_food" - }, - "name": "Nordsee", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Mr. Sub": { - "tags": { - "name": "Mr. Sub", - "amenity": "fast_food" - }, - "name": "Mr. Sub", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Kebab": { - "tags": { - "name": "Kebab", - "amenity": "fast_food" - }, - "name": "Kebab", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Макдоналдс": { - "tags": { - "name": "Макдоналдс", - "name:en": "McDonald's", - "amenity": "fast_food" - }, - "name": "Макдоналдс", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Asia Imbiss": { - "tags": { - "name": "Asia Imbiss", - "amenity": "fast_food" - }, - "name": "Asia Imbiss", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Imbiss": { - "tags": { - "name": "Imbiss", - "amenity": "fast_food" - }, - "name": "Imbiss", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Chipotle": { - "tags": { - "name": "Chipotle", - "cuisine": "mexican", - "amenity": "fast_food" - }, - "name": "Chipotle", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/マクドナルド": { - "tags": { - "name": "マクドナルド", - "name:en": "McDonald's", - "cuisine": "burger", - "amenity": "fast_food" - }, - "name": "マクドナルド", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/In-N-Out Burger": { - "tags": { - "name": "In-N-Out Burger", - "amenity": "fast_food" - }, - "name": "In-N-Out Burger", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Jimmy John's": { - "tags": { - "name": "Jimmy John's", - "amenity": "fast_food" - }, - "name": "Jimmy John's", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Jamba Juice": { - "tags": { - "name": "Jamba Juice", - "amenity": "fast_food" - }, - "name": "Jamba Juice", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Робин Сдобин": { - "tags": { - "name": "Робин Сдобин", - "amenity": "fast_food" - }, - "name": "Робин Сдобин", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Baskin Robbins": { - "tags": { - "name": "Baskin Robbins", - "amenity": "fast_food" - }, - "name": "Baskin Robbins", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/ケンタッキーフライドチキン": { - "tags": { - "name": "ケンタッキーフライドチキン", - "name:en": "KFC", - "cuisine": "chicken", - "amenity": "fast_food" - }, - "name": "ケンタッキーフライドチキン", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/吉野家": { - "tags": { - "name": "吉野家", - "amenity": "fast_food" - }, - "name": "吉野家", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Taco Time": { - "tags": { - "name": "Taco Time", - "amenity": "fast_food" - }, - "name": "Taco Time", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/松屋": { - "tags": { - "name": "松屋", - "name:en": "Matsuya", - "amenity": "fast_food" - }, - "name": "松屋", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Little Caesars": { - "tags": { - "name": "Little Caesars", - "amenity": "fast_food" - }, - "name": "Little Caesars", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/El Pollo Loco": { - "tags": { - "name": "El Pollo Loco", - "amenity": "fast_food" - }, - "name": "El Pollo Loco", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Del Taco": { - "tags": { - "name": "Del Taco", - "amenity": "fast_food" - }, - "name": "Del Taco", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/White Castle": { - "tags": { - "name": "White Castle", - "amenity": "fast_food" - }, - "name": "White Castle", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Boston Market": { - "tags": { - "name": "Boston Market", - "amenity": "fast_food" - }, - "name": "Boston Market", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Chick-fil-A": { - "tags": { - "name": "Chick-fil-A", - "cuisine": "chicken", - "amenity": "fast_food" - }, - "name": "Chick-fil-A", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Panda Express": { - "tags": { - "name": "Panda Express", - "amenity": "fast_food" - }, - "name": "Panda Express", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Whataburger": { - "tags": { - "name": "Whataburger", - "amenity": "fast_food" - }, - "name": "Whataburger", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Taco John's": { - "tags": { - "name": "Taco John's", - "amenity": "fast_food" - }, - "name": "Taco John's", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Теремок": { - "tags": { - "name": "Теремок", - "amenity": "fast_food" - }, - "name": "Теремок", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Culver's": { - "tags": { - "name": "Culver's", - "amenity": "fast_food" - }, - "name": "Culver's", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Five Guys": { - "tags": { - "name": "Five Guys", - "amenity": "fast_food" - }, - "name": "Five Guys", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Church's Chicken": { - "tags": { - "name": "Church's Chicken", - "amenity": "fast_food" - }, - "name": "Church's Chicken", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Popeye's": { - "tags": { - "name": "Popeye's", - "cuisine": "chicken", - "amenity": "fast_food" - }, - "name": "Popeye's", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Long John Silver's": { - "tags": { - "name": "Long John Silver's", - "amenity": "fast_food" - }, - "name": "Long John Silver's", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Pollo Campero": { - "tags": { - "name": "Pollo Campero", - "amenity": "fast_food" - }, - "name": "Pollo Campero", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Zaxby's": { - "tags": { - "name": "Zaxby's", - "amenity": "fast_food" - }, - "name": "Zaxby's", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/すき家": { - "tags": { - "name": "すき家", - "name:en": "SUKIYA", - "amenity": "fast_food" - }, - "name": "すき家", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/モスバーガー": { - "tags": { - "name": "モスバーガー", - "name:en": "MOS BURGER", - "amenity": "fast_food" - }, - "name": "モスバーガー", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/Русский Аппетит": { - "tags": { - "name": "Русский Аппетит", - "amenity": "fast_food" - }, - "name": "Русский Аппетит", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/fast_food/なか卯": { - "tags": { - "name": "なか卯", - "amenity": "fast_food" - }, - "name": "なか卯", - "icon": "fast-food", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Pizza Hut": { - "tags": { - "name": "Pizza Hut", - "amenity": "restaurant" - }, - "name": "Pizza Hut", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Little Chef": { - "tags": { - "name": "Little Chef", - "amenity": "restaurant" - }, - "name": "Little Chef", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Adler": { - "tags": { - "name": "Adler", - "amenity": "restaurant" - }, - "name": "Adler", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Zur Krone": { - "tags": { - "name": "Zur Krone", - "amenity": "restaurant" - }, - "name": "Zur Krone", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Deutsches Haus": { - "tags": { - "name": "Deutsches Haus", - "amenity": "restaurant" - }, - "name": "Deutsches Haus", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Krone": { - "tags": { - "name": "Krone", - "amenity": "restaurant" - }, - "name": "Krone", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Akropolis": { - "tags": { - "name": "Akropolis", - "amenity": "restaurant" - }, - "name": "Akropolis", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Schützenhaus": { - "tags": { - "name": "Schützenhaus", - "amenity": "restaurant" - }, - "name": "Schützenhaus", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Kreuz": { - "tags": { - "name": "Kreuz", - "amenity": "restaurant" - }, - "name": "Kreuz", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Waldschänke": { - "tags": { - "name": "Waldschänke", - "amenity": "restaurant" - }, - "name": "Waldschänke", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/La Piazza": { - "tags": { - "name": "La Piazza", - "amenity": "restaurant" - }, - "name": "La Piazza", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Lamm": { - "tags": { - "name": "Lamm", - "amenity": "restaurant" - }, - "name": "Lamm", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Zur Sonne": { - "tags": { - "name": "Zur Sonne", - "amenity": "restaurant" - }, - "name": "Zur Sonne", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Zur Linde": { - "tags": { - "name": "Zur Linde", - "amenity": "restaurant" - }, - "name": "Zur Linde", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Poseidon": { - "tags": { - "name": "Poseidon", - "amenity": "restaurant" - }, - "name": "Poseidon", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Shanghai": { - "tags": { - "name": "Shanghai", - "amenity": "restaurant" - }, - "name": "Shanghai", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Red Lobster": { - "tags": { - "name": "Red Lobster", - "amenity": "restaurant" - }, - "name": "Red Lobster", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Zum Löwen": { - "tags": { - "name": "Zum Löwen", - "amenity": "restaurant" - }, - "name": "Zum Löwen", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Swiss Chalet": { - "tags": { - "name": "Swiss Chalet", - "amenity": "restaurant" - }, - "name": "Swiss Chalet", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Olympia": { - "tags": { - "name": "Olympia", - "amenity": "restaurant" - }, - "name": "Olympia", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Wagamama": { - "tags": { - "name": "Wagamama", - "amenity": "restaurant" - }, - "name": "Wagamama", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Frankie & Benny's": { - "tags": { - "name": "Frankie & Benny's", - "amenity": "restaurant" - }, - "name": "Frankie & Benny's", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Hooters": { - "tags": { - "name": "Hooters", - "amenity": "restaurant" - }, - "name": "Hooters", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Sternen": { - "tags": { - "name": "Sternen", - "amenity": "restaurant" - }, - "name": "Sternen", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Hirschen": { - "tags": { - "name": "Hirschen", - "amenity": "restaurant" - }, - "name": "Hirschen", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Denny's": { - "tags": { - "name": "Denny's", - "amenity": "restaurant" - }, - "name": "Denny's", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Athen": { - "tags": { - "name": "Athen", - "amenity": "restaurant" - }, - "name": "Athen", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Sonne": { - "tags": { - "name": "Sonne", - "amenity": "restaurant" - }, - "name": "Sonne", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Hirsch": { - "tags": { - "name": "Hirsch", - "amenity": "restaurant" - }, - "name": "Hirsch", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Ratskeller": { - "tags": { - "name": "Ratskeller", - "amenity": "restaurant" - }, - "name": "Ratskeller", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/La Cantina": { - "tags": { - "name": "La Cantina", - "amenity": "restaurant" - }, - "name": "La Cantina", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Gasthaus Krone": { - "tags": { - "name": "Gasthaus Krone", - "amenity": "restaurant" - }, - "name": "Gasthaus Krone", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/El Greco": { - "tags": { - "name": "El Greco", - "amenity": "restaurant" - }, - "name": "El Greco", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Gasthof zur Post": { - "tags": { - "name": "Gasthof zur Post", - "amenity": "restaurant" - }, - "name": "Gasthof zur Post", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Nando's": { - "tags": { - "name": "Nando's", - "amenity": "restaurant" - }, - "name": "Nando's", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Löwen": { - "tags": { - "name": "Löwen", - "amenity": "restaurant" - }, - "name": "Löwen", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/La Pataterie": { - "tags": { - "name": "La Pataterie", - "amenity": "restaurant" - }, - "name": "La Pataterie", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Bella Napoli": { - "tags": { - "name": "Bella Napoli", - "amenity": "restaurant" - }, - "name": "Bella Napoli", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Pizza Express": { - "tags": { - "name": "Pizza Express", - "amenity": "restaurant" - }, - "name": "Pizza Express", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Mandarin": { - "tags": { - "name": "Mandarin", - "amenity": "restaurant" - }, - "name": "Mandarin", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Hong Kong": { - "tags": { - "name": "Hong Kong", - "amenity": "restaurant" - }, - "name": "Hong Kong", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Zizzi": { - "tags": { - "name": "Zizzi", - "amenity": "restaurant" - }, - "name": "Zizzi", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Cracker Barrel": { - "tags": { - "name": "Cracker Barrel", - "amenity": "restaurant" - }, - "name": "Cracker Barrel", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Rhodos": { - "tags": { - "name": "Rhodos", - "amenity": "restaurant" - }, - "name": "Rhodos", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Lindenhof": { - "tags": { - "name": "Lindenhof", - "amenity": "restaurant" - }, - "name": "Lindenhof", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Milano": { - "tags": { - "name": "Milano", - "amenity": "restaurant" - }, - "name": "Milano", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Dolce Vita": { - "tags": { - "name": "Dolce Vita", - "amenity": "restaurant" - }, - "name": "Dolce Vita", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Kirchenwirt": { - "tags": { - "name": "Kirchenwirt", - "amenity": "restaurant" - }, - "name": "Kirchenwirt", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Kantine": { - "tags": { - "name": "Kantine", - "amenity": "restaurant" - }, - "name": "Kantine", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Ochsen": { - "tags": { - "name": "Ochsen", - "amenity": "restaurant" - }, - "name": "Ochsen", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Spur": { - "tags": { - "name": "Spur", - "amenity": "restaurant" - }, - "name": "Spur", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Mykonos": { - "tags": { - "name": "Mykonos", - "amenity": "restaurant" - }, - "name": "Mykonos", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Lotus": { - "tags": { - "name": "Lotus", - "amenity": "restaurant" - }, - "name": "Lotus", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Applebee's": { - "tags": { - "name": "Applebee's", - "amenity": "restaurant" - }, - "name": "Applebee's", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Flunch": { - "tags": { - "name": "Flunch", - "amenity": "restaurant" - }, - "name": "Flunch", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Zur Post": { - "tags": { - "name": "Zur Post", - "amenity": "restaurant" - }, - "name": "Zur Post", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/China Town": { - "tags": { - "name": "China Town", - "amenity": "restaurant" - }, - "name": "China Town", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/La Dolce Vita": { - "tags": { - "name": "La Dolce Vita", - "amenity": "restaurant" - }, - "name": "La Dolce Vita", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Waffle House": { - "tags": { - "name": "Waffle House", - "amenity": "restaurant" - }, - "name": "Waffle House", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Delphi": { - "tags": { - "name": "Delphi", - "amenity": "restaurant" - }, - "name": "Delphi", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Linde": { - "tags": { - "name": "Linde", - "amenity": "restaurant" - }, - "name": "Linde", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Outback Steakhouse": { - "tags": { - "name": "Outback Steakhouse", - "amenity": "restaurant" - }, - "name": "Outback Steakhouse", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Dionysos": { - "tags": { - "name": "Dionysos", - "amenity": "restaurant" - }, - "name": "Dionysos", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Kelsey's": { - "tags": { - "name": "Kelsey's", - "amenity": "restaurant" - }, - "name": "Kelsey's", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Boston Pizza": { - "tags": { - "name": "Boston Pizza", - "amenity": "restaurant" - }, - "name": "Boston Pizza", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Bella Italia": { - "tags": { - "name": "Bella Italia", - "amenity": "restaurant" - }, - "name": "Bella Italia", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Sizzler": { - "tags": { - "name": "Sizzler", - "amenity": "restaurant" - }, - "name": "Sizzler", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Grüner Baum": { - "tags": { - "name": "Grüner Baum", - "amenity": "restaurant" - }, - "name": "Grüner Baum", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Taj Mahal": { - "tags": { - "name": "Taj Mahal", - "amenity": "restaurant" - }, - "name": "Taj Mahal", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Rössli": { - "tags": { - "name": "Rössli", - "amenity": "restaurant" - }, - "name": "Rössli", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Traube": { - "tags": { - "name": "Traube", - "amenity": "restaurant" - }, - "name": "Traube", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Adria": { - "tags": { - "name": "Adria", - "amenity": "restaurant" - }, - "name": "Adria", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Red Robin": { - "tags": { - "name": "Red Robin", - "amenity": "restaurant" - }, - "name": "Red Robin", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Roma": { - "tags": { - "name": "Roma", - "amenity": "restaurant" - }, - "name": "Roma", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/San Marco": { - "tags": { - "name": "San Marco", - "amenity": "restaurant" - }, - "name": "San Marco", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Hellas": { - "tags": { - "name": "Hellas", - "amenity": "restaurant" - }, - "name": "Hellas", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/La Perla": { - "tags": { - "name": "La Perla", - "amenity": "restaurant" - }, - "name": "La Perla", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Vips": { - "tags": { - "name": "Vips", - "amenity": "restaurant" - }, - "name": "Vips", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Panera Bread": { - "tags": { - "name": "Panera Bread", - "amenity": "restaurant" - }, - "name": "Panera Bread", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Da Vinci": { - "tags": { - "name": "Da Vinci", - "amenity": "restaurant" - }, - "name": "Da Vinci", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Hippopotamus": { - "tags": { - "name": "Hippopotamus", - "amenity": "restaurant" - }, - "name": "Hippopotamus", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Prezzo": { - "tags": { - "name": "Prezzo", - "amenity": "restaurant" - }, - "name": "Prezzo", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Courtepaille": { - "tags": { - "name": "Courtepaille", - "amenity": "restaurant" - }, - "name": "Courtepaille", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Hard Rock Cafe": { - "tags": { - "name": "Hard Rock Cafe", - "amenity": "restaurant" - }, - "name": "Hard Rock Cafe", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Panorama": { - "tags": { - "name": "Panorama", - "amenity": "restaurant" - }, - "name": "Panorama", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/デニーズ": { - "tags": { - "name": "デニーズ", - "amenity": "restaurant" - }, - "name": "デニーズ", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Sportheim": { - "tags": { - "name": "Sportheim", - "amenity": "restaurant" - }, - "name": "Sportheim", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/餃子の王将": { - "tags": { - "name": "餃子の王将", - "amenity": "restaurant" - }, - "name": "餃子の王将", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Bären": { - "tags": { - "name": "Bären", - "amenity": "restaurant" - }, - "name": "Bären", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Alte Post": { - "tags": { - "name": "Alte Post", - "amenity": "restaurant" - }, - "name": "Alte Post", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Pizzeria Roma": { - "tags": { - "name": "Pizzeria Roma", - "amenity": "restaurant" - }, - "name": "Pizzeria Roma", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/China Garden": { - "tags": { - "name": "China Garden", - "amenity": "restaurant" - }, - "name": "China Garden", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Vapiano": { - "tags": { - "name": "Vapiano", - "amenity": "restaurant" - }, - "name": "Vapiano", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Mamma Mia": { - "tags": { - "name": "Mamma Mia", - "amenity": "restaurant" - }, - "name": "Mamma Mia", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Schwarzer Adler": { - "tags": { - "name": "Schwarzer Adler", - "amenity": "restaurant" - }, - "name": "Schwarzer Adler", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/IHOP": { - "tags": { - "name": "IHOP", - "amenity": "restaurant" - }, - "name": "IHOP", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Chili's": { - "tags": { - "name": "Chili's", - "amenity": "restaurant" - }, - "name": "Chili's", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Asia": { - "tags": { - "name": "Asia", - "amenity": "restaurant" - }, - "name": "Asia", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Olive Garden": { - "tags": { - "name": "Olive Garden", - "amenity": "restaurant" - }, - "name": "Olive Garden", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/TGI Friday's": { - "tags": { - "name": "TGI Friday's", - "amenity": "restaurant" - }, - "name": "TGI Friday's", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Friendly's": { - "tags": { - "name": "Friendly's", - "amenity": "restaurant" - }, - "name": "Friendly's", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Buffalo Grill": { - "tags": { - "name": "Buffalo Grill", - "amenity": "restaurant" - }, - "name": "Buffalo Grill", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Texas Roadhouse": { - "tags": { - "name": "Texas Roadhouse", - "amenity": "restaurant" - }, - "name": "Texas Roadhouse", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/ガスト": { - "tags": { - "name": "ガスト", - "name:en": "Gusto", - "amenity": "restaurant" - }, - "name": "ガスト", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Sakura": { - "tags": { - "name": "Sakura", - "amenity": "restaurant" - }, - "name": "Sakura", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Mensa": { - "tags": { - "name": "Mensa", - "amenity": "restaurant" - }, - "name": "Mensa", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/The Keg": { - "tags": { - "name": "The Keg", - "amenity": "restaurant" - }, - "name": "The Keg", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/サイゼリヤ": { - "tags": { - "name": "サイゼリヤ", - "amenity": "restaurant" - }, - "name": "サイゼリヤ", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/La Strada": { - "tags": { - "name": "La Strada", - "amenity": "restaurant" - }, - "name": "La Strada", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Village Inn": { - "tags": { - "name": "Village Inn", - "amenity": "restaurant" - }, - "name": "Village Inn", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Buffalo Wild Wings": { - "tags": { - "name": "Buffalo Wild Wings", - "amenity": "restaurant" - }, - "name": "Buffalo Wild Wings", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Peking": { - "tags": { - "name": "Peking", - "amenity": "restaurant" - }, - "name": "Peking", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Round Table Pizza": { - "tags": { - "name": "Round Table Pizza", - "amenity": "restaurant" - }, - "name": "Round Table Pizza", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/California Pizza Kitchen": { - "tags": { - "name": "California Pizza Kitchen", - "amenity": "restaurant" - }, - "name": "California Pizza Kitchen", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Якитория": { - "tags": { - "name": "Якитория", - "amenity": "restaurant" - }, - "name": "Якитория", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Golden Corral": { - "tags": { - "name": "Golden Corral", - "amenity": "restaurant" - }, - "name": "Golden Corral", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Perkins": { - "tags": { - "name": "Perkins", - "amenity": "restaurant" - }, - "name": "Perkins", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Ruby Tuesday": { - "tags": { - "name": "Ruby Tuesday", - "amenity": "restaurant" - }, - "name": "Ruby Tuesday", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Shari's": { - "tags": { - "name": "Shari's", - "amenity": "restaurant" - }, - "name": "Shari's", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Bob Evans": { - "tags": { - "name": "Bob Evans", - "amenity": "restaurant" - }, - "name": "Bob Evans", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/바다횟집 (Bada Fish Restaurant)": { - "tags": { - "name": "바다횟집 (Bada Fish Restaurant)", - "amenity": "restaurant" - }, - "name": "바다횟집 (Bada Fish Restaurant)", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Mang Inasal": { - "tags": { - "name": "Mang Inasal", - "amenity": "restaurant" - }, - "name": "Mang Inasal", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Евразия": { - "tags": { - "name": "Евразия", - "amenity": "restaurant" - }, - "name": "Евразия", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/ジョナサン": { - "tags": { - "name": "ジョナサン", - "amenity": "restaurant" - }, - "name": "ジョナサン", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/restaurant/Longhorn Steakhouse": { - "tags": { - "name": "Longhorn Steakhouse", - "amenity": "restaurant" - }, - "name": "Longhorn Steakhouse", - "icon": "restaurant", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "building_area", - "address", - "opening_hours", - "capacity", - "smoking" - ], - "suggestion": true - }, - "amenity/bank/Chase": { - "tags": { - "name": "Chase", - "amenity": "bank" - }, - "name": "Chase", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Commonwealth Bank": { - "tags": { - "name": "Commonwealth Bank", - "amenity": "bank" - }, - "name": "Commonwealth Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Citibank": { - "tags": { - "name": "Citibank", - "amenity": "bank" - }, - "name": "Citibank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/HSBC": { - "tags": { - "name": "HSBC", - "amenity": "bank" - }, - "name": "HSBC", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Barclays": { - "tags": { - "name": "Barclays", - "amenity": "bank" - }, - "name": "Barclays", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Westpac": { - "tags": { - "name": "Westpac", - "amenity": "bank" - }, - "name": "Westpac", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/NAB": { - "tags": { - "name": "NAB", - "amenity": "bank" - }, - "name": "NAB", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/ANZ": { - "tags": { - "name": "ANZ", - "amenity": "bank" - }, - "name": "ANZ", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Lloyds Bank": { - "tags": { - "name": "Lloyds Bank", - "amenity": "bank" - }, - "name": "Lloyds Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Landbank": { - "tags": { - "name": "Landbank", - "amenity": "bank" - }, - "name": "Landbank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Sparkasse": { - "tags": { - "name": "Sparkasse", - "amenity": "bank" - }, - "name": "Sparkasse", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/UCPB": { - "tags": { - "name": "UCPB", - "amenity": "bank" - }, - "name": "UCPB", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/PNB": { - "tags": { - "name": "PNB", - "amenity": "bank" - }, - "name": "PNB", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Metrobank": { - "tags": { - "name": "Metrobank", - "amenity": "bank" - }, - "name": "Metrobank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BDO": { - "tags": { - "name": "BDO", - "amenity": "bank" - }, - "name": "BDO", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Volksbank": { - "tags": { - "name": "Volksbank", - "amenity": "bank" - }, - "name": "Volksbank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BPI": { - "tags": { - "name": "BPI", - "amenity": "bank" - }, - "name": "BPI", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Postbank": { - "tags": { - "name": "Postbank", - "amenity": "bank" - }, - "name": "Postbank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/NatWest": { - "tags": { - "name": "NatWest", - "amenity": "bank" - }, - "name": "NatWest", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Yorkshire Bank": { - "tags": { - "name": "Yorkshire Bank", - "amenity": "bank" - }, - "name": "Yorkshire Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/ABSA": { - "tags": { - "name": "ABSA", - "amenity": "bank" - }, - "name": "ABSA", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Standard Bank": { - "tags": { - "name": "Standard Bank", - "amenity": "bank" - }, - "name": "Standard Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/FNB": { - "tags": { - "name": "FNB", - "amenity": "bank" - }, - "name": "FNB", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Deutsche Bank": { - "tags": { - "name": "Deutsche Bank", - "amenity": "bank" - }, - "name": "Deutsche Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/SEB": { - "tags": { - "name": "SEB", - "amenity": "bank" - }, - "name": "SEB", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Commerzbank": { - "tags": { - "name": "Commerzbank", - "amenity": "bank" - }, - "name": "Commerzbank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Targobank": { - "tags": { - "name": "Targobank", - "amenity": "bank" - }, - "name": "Targobank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/ABN AMRO": { - "tags": { - "name": "ABN AMRO", - "amenity": "bank" - }, - "name": "ABN AMRO", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Handelsbanken": { - "tags": { - "name": "Handelsbanken", - "amenity": "bank" - }, - "name": "Handelsbanken", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Swedbank": { - "tags": { - "name": "Swedbank", - "amenity": "bank" - }, - "name": "Swedbank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Kreissparkasse": { - "tags": { - "name": "Kreissparkasse", - "amenity": "bank" - }, - "name": "Kreissparkasse", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/UniCredit Bank": { - "tags": { - "name": "UniCredit Bank", - "amenity": "bank" - }, - "name": "UniCredit Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Monte dei Paschi di Siena": { - "tags": { - "name": "Monte dei Paschi di Siena", - "amenity": "bank" - }, - "name": "Monte dei Paschi di Siena", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Caja Rural": { - "tags": { - "name": "Caja Rural", - "amenity": "bank" - }, - "name": "Caja Rural", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Dresdner Bank": { - "tags": { - "name": "Dresdner Bank", - "amenity": "bank" - }, - "name": "Dresdner Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Sparda-Bank": { - "tags": { - "name": "Sparda-Bank", - "amenity": "bank" - }, - "name": "Sparda-Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/VÚB": { - "tags": { - "name": "VÚB", - "amenity": "bank" - }, - "name": "VÚB", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Slovenská sporiteľňa": { - "tags": { - "name": "Slovenská sporiteľňa", - "amenity": "bank" - }, - "name": "Slovenská sporiteľňa", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bank of Montreal": { - "tags": { - "name": "Bank of Montreal", - "amenity": "bank" - }, - "name": "Bank of Montreal", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/KBC": { - "tags": { - "name": "KBC", - "amenity": "bank" - }, - "name": "KBC", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Royal Bank of Scotland": { - "tags": { - "name": "Royal Bank of Scotland", - "amenity": "bank" - }, - "name": "Royal Bank of Scotland", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/TSB": { - "tags": { - "name": "TSB", - "amenity": "bank" - }, - "name": "TSB", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/US Bank": { - "tags": { - "name": "US Bank", - "amenity": "bank" - }, - "name": "US Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/HypoVereinsbank": { - "tags": { - "name": "HypoVereinsbank", - "amenity": "bank" - }, - "name": "HypoVereinsbank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bank Austria": { - "tags": { - "name": "Bank Austria", - "amenity": "bank" - }, - "name": "Bank Austria", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/ING": { - "tags": { - "name": "ING", - "amenity": "bank" - }, - "name": "ING", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Erste Bank": { - "tags": { - "name": "Erste Bank", - "amenity": "bank" - }, - "name": "Erste Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/CIBC": { - "tags": { - "name": "CIBC", - "amenity": "bank" - }, - "name": "CIBC", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Scotiabank": { - "tags": { - "name": "Scotiabank", - "amenity": "bank" - }, - "name": "Scotiabank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Caisse d'Épargne": { - "tags": { - "name": "Caisse d'Épargne", - "amenity": "bank" - }, - "name": "Caisse d'Épargne", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Santander": { - "tags": { - "name": "Santander", - "amenity": "bank" - }, - "name": "Santander", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bank of Scotland": { - "tags": { - "name": "Bank of Scotland", - "amenity": "bank" - }, - "name": "Bank of Scotland", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/TD Canada Trust": { - "tags": { - "name": "TD Canada Trust", - "amenity": "bank" - }, - "name": "TD Canada Trust", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BMO": { - "tags": { - "name": "BMO", - "amenity": "bank" - }, - "name": "BMO", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Danske Bank": { - "tags": { - "name": "Danske Bank", - "amenity": "bank" - }, - "name": "Danske Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/OTP": { - "tags": { - "name": "OTP", - "amenity": "bank" - }, - "name": "OTP", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Crédit Agricole": { - "tags": { - "name": "Crédit Agricole", - "amenity": "bank" - }, - "name": "Crédit Agricole", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/LCL": { - "tags": { - "name": "LCL", - "amenity": "bank" - }, - "name": "LCL", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/VR-Bank": { - "tags": { - "name": "VR-Bank", - "amenity": "bank" - }, - "name": "VR-Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/ČSOB": { - "tags": { - "name": "ČSOB", - "amenity": "bank" - }, - "name": "ČSOB", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Česká spořitelna": { - "tags": { - "name": "Česká spořitelna", - "amenity": "bank" - }, - "name": "Česká spořitelna", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BNP": { - "tags": { - "name": "BNP", - "amenity": "bank" - }, - "name": "BNP", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Royal Bank": { - "tags": { - "name": "Royal Bank", - "amenity": "bank" - }, - "name": "Royal Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Nationwide": { - "tags": { - "name": "Nationwide", - "amenity": "bank" - }, - "name": "Nationwide", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Halifax": { - "tags": { - "name": "Halifax", - "amenity": "bank" - }, - "name": "Halifax", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BAWAG PSK": { - "tags": { - "name": "BAWAG PSK", - "amenity": "bank" - }, - "name": "BAWAG PSK", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/National Bank": { - "tags": { - "name": "National Bank", - "amenity": "bank" - }, - "name": "National Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Nedbank": { - "tags": { - "name": "Nedbank", - "amenity": "bank" - }, - "name": "Nedbank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/First National Bank": { - "tags": { - "name": "First National Bank", - "amenity": "bank" - }, - "name": "First National Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Nordea": { - "tags": { - "name": "Nordea", - "amenity": "bank" - }, - "name": "Nordea", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Rabobank": { - "tags": { - "name": "Rabobank", - "amenity": "bank" - }, - "name": "Rabobank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Sparkasse KölnBonn": { - "tags": { - "name": "Sparkasse KölnBonn", - "amenity": "bank" - }, - "name": "Sparkasse KölnBonn", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Tatra banka": { - "tags": { - "name": "Tatra banka", - "amenity": "bank" - }, - "name": "Tatra banka", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Berliner Sparkasse": { - "tags": { - "name": "Berliner Sparkasse", - "amenity": "bank" - }, - "name": "Berliner Sparkasse", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Berliner Volksbank": { - "tags": { - "name": "Berliner Volksbank", - "amenity": "bank" - }, - "name": "Berliner Volksbank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Wells Fargo": { - "tags": { - "name": "Wells Fargo", - "amenity": "bank" - }, - "name": "Wells Fargo", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Credit Suisse": { - "tags": { - "name": "Credit Suisse", - "amenity": "bank" - }, - "name": "Credit Suisse", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Société Générale": { - "tags": { - "name": "Société Générale", - "amenity": "bank" - }, - "name": "Société Générale", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Osuuspankki": { - "tags": { - "name": "Osuuspankki", - "amenity": "bank" - }, - "name": "Osuuspankki", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Sparkasse Aachen": { - "tags": { - "name": "Sparkasse Aachen", - "amenity": "bank" - }, - "name": "Sparkasse Aachen", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Hamburger Sparkasse": { - "tags": { - "name": "Hamburger Sparkasse", - "amenity": "bank" - }, - "name": "Hamburger Sparkasse", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Cassa di Risparmio del Veneto": { - "tags": { - "name": "Cassa di Risparmio del Veneto", - "amenity": "bank" - }, - "name": "Cassa di Risparmio del Veneto", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BNP Paribas": { - "tags": { - "name": "BNP Paribas", - "amenity": "bank" - }, - "name": "BNP Paribas", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banque Populaire": { - "tags": { - "name": "Banque Populaire", - "amenity": "bank" - }, - "name": "Banque Populaire", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BNP Paribas Fortis": { - "tags": { - "name": "BNP Paribas Fortis", - "amenity": "bank" - }, - "name": "BNP Paribas Fortis", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco Popular": { - "tags": { - "name": "Banco Popular", - "amenity": "bank" - }, - "name": "Banco Popular", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bancaja": { - "tags": { - "name": "Bancaja", - "amenity": "bank" - }, - "name": "Bancaja", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banesto": { - "tags": { - "name": "Banesto", - "amenity": "bank" - }, - "name": "Banesto", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/La Caixa": { - "tags": { - "name": "La Caixa", - "amenity": "bank" - }, - "name": "La Caixa", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Santander Consumer Bank": { - "tags": { - "name": "Santander Consumer Bank", - "amenity": "bank" - }, - "name": "Santander Consumer Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BRD": { - "tags": { - "name": "BRD", - "amenity": "bank" - }, - "name": "BRD", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BCR": { - "tags": { - "name": "BCR", - "amenity": "bank" - }, - "name": "BCR", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banca Transilvania": { - "tags": { - "name": "Banca Transilvania", - "amenity": "bank" - }, - "name": "Banca Transilvania", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BW-Bank": { - "tags": { - "name": "BW-Bank", - "amenity": "bank" - }, - "name": "BW-Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Komerční banka": { - "tags": { - "name": "Komerční banka", - "amenity": "bank" - }, - "name": "Komerční banka", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco Pastor": { - "tags": { - "name": "Banco Pastor", - "amenity": "bank" - }, - "name": "Banco Pastor", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Stadtsparkasse": { - "tags": { - "name": "Stadtsparkasse", - "amenity": "bank" - }, - "name": "Stadtsparkasse", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Ulster Bank": { - "tags": { - "name": "Ulster Bank", - "amenity": "bank" - }, - "name": "Ulster Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Sberbank": { - "tags": { - "name": "Sberbank", - "amenity": "bank" - }, - "name": "Sberbank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/CIC": { - "tags": { - "name": "CIC", - "amenity": "bank" - }, - "name": "CIC", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bancpost": { - "tags": { - "name": "Bancpost", - "amenity": "bank" - }, - "name": "Bancpost", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Caja Madrid": { - "tags": { - "name": "Caja Madrid", - "amenity": "bank" - }, - "name": "Caja Madrid", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Maybank": { - "tags": { - "name": "Maybank", - "amenity": "bank" - }, - "name": "Maybank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/中国银行": { - "tags": { - "name": "中国银行", - "amenity": "bank" - }, - "name": "中国银行", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Unicredit Banca": { - "tags": { - "name": "Unicredit Banca", - "amenity": "bank" - }, - "name": "Unicredit Banca", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Crédit Mutuel": { - "tags": { - "name": "Crédit Mutuel", - "amenity": "bank" - }, - "name": "Crédit Mutuel", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BBVA": { - "tags": { - "name": "BBVA", - "amenity": "bank" - }, - "name": "BBVA", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Intesa San Paolo": { - "tags": { - "name": "Intesa San Paolo", - "amenity": "bank" - }, - "name": "Intesa San Paolo", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/TD Bank": { - "tags": { - "name": "TD Bank", - "amenity": "bank" - }, - "name": "TD Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Belfius": { - "tags": { - "name": "Belfius", - "amenity": "bank" - }, - "name": "Belfius", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bank of America": { - "tags": { - "name": "Bank of America", - "amenity": "bank" - }, - "name": "Bank of America", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/RBC": { - "tags": { - "name": "RBC", - "amenity": "bank" - }, - "name": "RBC", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Alpha Bank": { - "tags": { - "name": "Alpha Bank", - "amenity": "bank" - }, - "name": "Alpha Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Сбербанк": { - "tags": { - "name": "Сбербанк", - "amenity": "bank" - }, - "name": "Сбербанк", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Россельхозбанк": { - "tags": { - "name": "Россельхозбанк", - "amenity": "bank" - }, - "name": "Россельхозбанк", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Crédit du Nord": { - "tags": { - "name": "Crédit du Nord", - "amenity": "bank" - }, - "name": "Crédit du Nord", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BancoEstado": { - "tags": { - "name": "BancoEstado", - "amenity": "bank" - }, - "name": "BancoEstado", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Millennium Bank": { - "tags": { - "name": "Millennium Bank", - "amenity": "bank" - }, - "name": "Millennium Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/State Bank of India": { - "tags": { - "name": "State Bank of India", - "amenity": "bank" - }, - "name": "State Bank of India", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Беларусбанк": { - "tags": { - "name": "Беларусбанк", - "amenity": "bank" - }, - "name": "Беларусбанк", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/ING Bank Śląski": { - "tags": { - "name": "ING Bank Śląski", - "amenity": "bank" - }, - "name": "ING Bank Śląski", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Caixa Geral de Depósitos": { - "tags": { - "name": "Caixa Geral de Depósitos", - "amenity": "bank" - }, - "name": "Caixa Geral de Depósitos", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Kreissparkasse Köln": { - "tags": { - "name": "Kreissparkasse Köln", - "amenity": "bank" - }, - "name": "Kreissparkasse Köln", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco BCI": { - "tags": { - "name": "Banco BCI", - "amenity": "bank" - }, - "name": "Banco BCI", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco de Chile": { - "tags": { - "name": "Banco de Chile", - "amenity": "bank" - }, - "name": "Banco de Chile", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/ВТБ24": { - "tags": { - "name": "ВТБ24", - "amenity": "bank" - }, - "name": "ВТБ24", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/UBS": { - "tags": { - "name": "UBS", - "amenity": "bank" - }, - "name": "UBS", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/PKO BP": { - "tags": { - "name": "PKO BP", - "amenity": "bank" - }, - "name": "PKO BP", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Chinabank": { - "tags": { - "name": "Chinabank", - "amenity": "bank" - }, - "name": "Chinabank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/PSBank": { - "tags": { - "name": "PSBank", - "amenity": "bank" - }, - "name": "PSBank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Union Bank": { - "tags": { - "name": "Union Bank", - "amenity": "bank" - }, - "name": "Union Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/China Bank": { - "tags": { - "name": "China Bank", - "amenity": "bank" - }, - "name": "China Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/RCBC": { - "tags": { - "name": "RCBC", - "amenity": "bank" - }, - "name": "RCBC", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Unicaja": { - "tags": { - "name": "Unicaja", - "amenity": "bank" - }, - "name": "Unicaja", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BBK": { - "tags": { - "name": "BBK", - "amenity": "bank" - }, - "name": "BBK", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Ibercaja": { - "tags": { - "name": "Ibercaja", - "amenity": "bank" - }, - "name": "Ibercaja", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/RBS": { - "tags": { - "name": "RBS", - "amenity": "bank" - }, - "name": "RBS", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Commercial Bank of Ceylon PLC": { - "tags": { - "name": "Commercial Bank of Ceylon PLC", - "amenity": "bank" - }, - "name": "Commercial Bank of Ceylon PLC", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bank of Ireland": { - "tags": { - "name": "Bank of Ireland", - "amenity": "bank" - }, - "name": "Bank of Ireland", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BNL": { - "tags": { - "name": "BNL", - "amenity": "bank" - }, - "name": "BNL", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco Santander": { - "tags": { - "name": "Banco Santander", - "amenity": "bank" - }, - "name": "Banco Santander", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco Itaú": { - "tags": { - "name": "Banco Itaú", - "amenity": "bank" - }, - "name": "Banco Itaú", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/AIB": { - "tags": { - "name": "AIB", - "amenity": "bank" - }, - "name": "AIB", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BZ WBK": { - "tags": { - "name": "BZ WBK", - "amenity": "bank" - }, - "name": "BZ WBK", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco do Brasil": { - "tags": { - "name": "Banco do Brasil", - "amenity": "bank" - }, - "name": "Banco do Brasil", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Caixa Econômica Federal": { - "tags": { - "name": "Caixa Econômica Federal", - "amenity": "bank" - }, - "name": "Caixa Econômica Federal", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Fifth Third Bank": { - "tags": { - "name": "Fifth Third Bank", - "amenity": "bank" - }, - "name": "Fifth Third Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banca Popolare di Vicenza": { - "tags": { - "name": "Banca Popolare di Vicenza", - "amenity": "bank" - }, - "name": "Banca Popolare di Vicenza", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Wachovia": { - "tags": { - "name": "Wachovia", - "amenity": "bank" - }, - "name": "Wachovia", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/OLB": { - "tags": { - "name": "OLB", - "amenity": "bank" - }, - "name": "OLB", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/みずほ銀行": { - "tags": { - "name": "みずほ銀行", - "amenity": "bank" - }, - "name": "みずほ銀行", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BES": { - "tags": { - "name": "BES", - "amenity": "bank" - }, - "name": "BES", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/ICICI Bank": { - "tags": { - "name": "ICICI Bank", - "amenity": "bank" - }, - "name": "ICICI Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/HDFC Bank": { - "tags": { - "name": "HDFC Bank", - "amenity": "bank" - }, - "name": "HDFC Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/La Banque Postale": { - "tags": { - "name": "La Banque Postale", - "amenity": "bank" - }, - "name": "La Banque Postale", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Pekao SA": { - "tags": { - "name": "Pekao SA", - "amenity": "bank" - }, - "name": "Pekao SA", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Oberbank": { - "tags": { - "name": "Oberbank", - "amenity": "bank" - }, - "name": "Oberbank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bradesco": { - "tags": { - "name": "Bradesco", - "amenity": "bank" - }, - "name": "Bradesco", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Oldenburgische Landesbank": { - "tags": { - "name": "Oldenburgische Landesbank", - "amenity": "bank" - }, - "name": "Oldenburgische Landesbank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bendigo Bank": { - "tags": { - "name": "Bendigo Bank", - "amenity": "bank" - }, - "name": "Bendigo Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Argenta": { - "tags": { - "name": "Argenta", - "amenity": "bank" - }, - "name": "Argenta", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/AXA": { - "tags": { - "name": "AXA", - "amenity": "bank" - }, - "name": "AXA", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Axis Bank": { - "tags": { - "name": "Axis Bank", - "amenity": "bank" - }, - "name": "Axis Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco Nación": { - "tags": { - "name": "Banco Nación", - "amenity": "bank" - }, - "name": "Banco Nación", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/GE Money Bank": { - "tags": { - "name": "GE Money Bank", - "amenity": "bank" - }, - "name": "GE Money Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Альфа-Банк": { - "tags": { - "name": "Альфа-Банк", - "amenity": "bank" - }, - "name": "Альфа-Банк", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Белагропромбанк": { - "tags": { - "name": "Белагропромбанк", - "amenity": "bank" - }, - "name": "Белагропромбанк", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Caja Círculo": { - "tags": { - "name": "Caja Círculo", - "amenity": "bank" - }, - "name": "Caja Círculo", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco Galicia": { - "tags": { - "name": "Banco Galicia", - "amenity": "bank" - }, - "name": "Banco Galicia", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Eurobank": { - "tags": { - "name": "Eurobank", - "amenity": "bank" - }, - "name": "Eurobank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banca Intesa": { - "tags": { - "name": "Banca Intesa", - "amenity": "bank" - }, - "name": "Banca Intesa", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Canara Bank": { - "tags": { - "name": "Canara Bank", - "amenity": "bank" - }, - "name": "Canara Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Cajamar": { - "tags": { - "name": "Cajamar", - "amenity": "bank" - }, - "name": "Cajamar", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banamex": { - "tags": { - "name": "Banamex", - "amenity": "bank" - }, - "name": "Banamex", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Crédit Mutuel de Bretagne": { - "tags": { - "name": "Crédit Mutuel de Bretagne", - "amenity": "bank" - }, - "name": "Crédit Mutuel de Bretagne", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Davivienda": { - "tags": { - "name": "Davivienda", - "amenity": "bank" - }, - "name": "Davivienda", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bank Spółdzielczy": { - "tags": { - "name": "Bank Spółdzielczy", - "amenity": "bank" - }, - "name": "Bank Spółdzielczy", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Credit Agricole": { - "tags": { - "name": "Credit Agricole", - "amenity": "bank" - }, - "name": "Credit Agricole", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bankinter": { - "tags": { - "name": "Bankinter", - "amenity": "bank" - }, - "name": "Bankinter", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banque Nationale": { - "tags": { - "name": "Banque Nationale", - "amenity": "bank" - }, - "name": "Banque Nationale", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bank of the West": { - "tags": { - "name": "Bank of the West", - "amenity": "bank" - }, - "name": "Bank of the West", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Key Bank": { - "tags": { - "name": "Key Bank", - "amenity": "bank" - }, - "name": "Key Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Western Union": { - "tags": { - "name": "Western Union", - "amenity": "bank" - }, - "name": "Western Union", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Citizens Bank": { - "tags": { - "name": "Citizens Bank", - "amenity": "bank" - }, - "name": "Citizens Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/ПриватБанк": { - "tags": { - "name": "ПриватБанк", - "amenity": "bank" - }, - "name": "ПриватБанк", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Security Bank": { - "tags": { - "name": "Security Bank", - "amenity": "bank" - }, - "name": "Security Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Millenium Bank": { - "tags": { - "name": "Millenium Bank", - "amenity": "bank" - }, - "name": "Millenium Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bankia": { - "tags": { - "name": "Bankia", - "amenity": "bank" - }, - "name": "Bankia", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/三菱東京UFJ銀行": { - "tags": { - "name": "三菱東京UFJ銀行", - "amenity": "bank" - }, - "name": "三菱東京UFJ銀行", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Caixa": { - "tags": { - "name": "Caixa", - "amenity": "bank" - }, - "name": "Caixa", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco de Costa Rica": { - "tags": { - "name": "Banco de Costa Rica", - "amenity": "bank" - }, - "name": "Banco de Costa Rica", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/SunTrust Bank": { - "tags": { - "name": "SunTrust Bank", - "amenity": "bank" - }, - "name": "SunTrust Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Itaú": { - "tags": { - "name": "Itaú", - "amenity": "bank" - }, - "name": "Itaú", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/PBZ": { - "tags": { - "name": "PBZ", - "amenity": "bank" - }, - "name": "PBZ", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/中国工商银行": { - "tags": { - "name": "中国工商银行", - "amenity": "bank" - }, - "name": "中国工商银行", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bancolombia": { - "tags": { - "name": "Bancolombia", - "amenity": "bank" - }, - "name": "Bancolombia", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Райффайзен Банк Аваль": { - "tags": { - "name": "Райффайзен Банк Аваль", - "amenity": "bank" - }, - "name": "Райффайзен Банк Аваль", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bancomer": { - "tags": { - "name": "Bancomer", - "amenity": "bank" - }, - "name": "Bancomer", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banorte": { - "tags": { - "name": "Banorte", - "amenity": "bank" - }, - "name": "Banorte", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Alior Bank": { - "tags": { - "name": "Alior Bank", - "amenity": "bank" - }, - "name": "Alior Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BOC": { - "tags": { - "name": "BOC", - "amenity": "bank" - }, - "name": "BOC", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Банк Москвы": { - "tags": { - "name": "Банк Москвы", - "amenity": "bank" - }, - "name": "Банк Москвы", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/ВТБ": { - "tags": { - "name": "ВТБ", - "amenity": "bank" - }, - "name": "ВТБ", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Getin Bank": { - "tags": { - "name": "Getin Bank", - "amenity": "bank" - }, - "name": "Getin Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Caja Duero": { - "tags": { - "name": "Caja Duero", - "amenity": "bank" - }, - "name": "Caja Duero", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Regions Bank": { - "tags": { - "name": "Regions Bank", - "amenity": "bank" - }, - "name": "Regions Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Росбанк": { - "tags": { - "name": "Росбанк", - "amenity": "bank" - }, - "name": "Росбанк", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco Estado": { - "tags": { - "name": "Banco Estado", - "amenity": "bank" - }, - "name": "Banco Estado", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BCI": { - "tags": { - "name": "BCI", - "amenity": "bank" - }, - "name": "BCI", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/SunTrust": { - "tags": { - "name": "SunTrust", - "amenity": "bank" - }, - "name": "SunTrust", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/PNC Bank": { - "tags": { - "name": "PNC Bank", - "amenity": "bank" - }, - "name": "PNC Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/신한은행": { - "tags": { - "name": "신한은행", - "name:en": "Sinhan Bank", - "amenity": "bank" - }, - "name": "신한은행", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/우리은행": { - "tags": { - "name": "우리은행", - "name:en": "Uri Bank", - "amenity": "bank" - }, - "name": "우리은행", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/국민은행": { - "tags": { - "name": "국민은행", - "name:en": "Gungmin Bank", - "amenity": "bank" - }, - "name": "국민은행", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/중소기업은행": { - "tags": { - "name": "중소기업은행", - "name:en": "Industrial Bank of Korea", - "amenity": "bank" - }, - "name": "중소기업은행", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/광주은행": { - "tags": { - "name": "광주은행", - "name:en": "Gwangju Bank", - "amenity": "bank" - }, - "name": "광주은행", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Газпромбанк": { - "tags": { - "name": "Газпромбанк", - "amenity": "bank" - }, - "name": "Газпромбанк", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/M&T Bank": { - "tags": { - "name": "M&T Bank", - "amenity": "bank" - }, - "name": "M&T Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Caja de Burgos": { - "tags": { - "name": "Caja de Burgos", - "amenity": "bank" - }, - "name": "Caja de Burgos", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Santander Totta": { - "tags": { - "name": "Santander Totta", - "amenity": "bank" - }, - "name": "Santander Totta", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/УкрСиббанк": { - "tags": { - "name": "УкрСиббанк", - "amenity": "bank" - }, - "name": "УкрСиббанк", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Ощадбанк": { - "tags": { - "name": "Ощадбанк", - "amenity": "bank" - }, - "name": "Ощадбанк", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Уралсиб": { - "tags": { - "name": "Уралсиб", - "amenity": "bank" - }, - "name": "Уралсиб", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/りそな銀行": { - "tags": { - "name": "りそな銀行", - "name:en": "Mizuho Bank", - "amenity": "bank" - }, - "name": "りそな銀行", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Ecobank": { - "tags": { - "name": "Ecobank", - "amenity": "bank" - }, - "name": "Ecobank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Cajero Automatico Bancared": { - "tags": { - "name": "Cajero Automatico Bancared", - "amenity": "bank" - }, - "name": "Cajero Automatico Bancared", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Промсвязьбанк": { - "tags": { - "name": "Промсвязьбанк", - "amenity": "bank" - }, - "name": "Промсвязьбанк", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/三井住友銀行": { - "tags": { - "name": "三井住友銀行", - "amenity": "bank" - }, - "name": "三井住友銀行", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco Provincia": { - "tags": { - "name": "Banco Provincia", - "amenity": "bank" - }, - "name": "Banco Provincia", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/BB&T": { - "tags": { - "name": "BB&T", - "amenity": "bank" - }, - "name": "BB&T", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Возрождение": { - "tags": { - "name": "Возрождение", - "amenity": "bank" - }, - "name": "Возрождение", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Capital One": { - "tags": { - "name": "Capital One", - "amenity": "bank" - }, - "name": "Capital One", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/横浜銀行": { - "tags": { - "name": "横浜銀行", - "amenity": "bank" - }, - "name": "横浜銀行", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bank Mandiri": { - "tags": { - "name": "Bank Mandiri", - "amenity": "bank" - }, - "name": "Bank Mandiri", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco de la Nación": { - "tags": { - "name": "Banco de la Nación", - "amenity": "bank" - }, - "name": "Banco de la Nación", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco G&T Continental": { - "tags": { - "name": "Banco G&T Continental", - "amenity": "bank" - }, - "name": "Banco G&T Continental", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Peoples Bank": { - "tags": { - "name": "Peoples Bank", - "amenity": "bank" - }, - "name": "Peoples Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/工商银行": { - "tags": { - "name": "工商银行", - "amenity": "bank" - }, - "name": "工商银行", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Совкомбанк": { - "tags": { - "name": "Совкомбанк", - "amenity": "bank" - }, - "name": "Совкомбанк", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Provincial": { - "tags": { - "name": "Provincial", - "amenity": "bank" - }, - "name": "Provincial", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco de Desarrollo Banrural": { - "tags": { - "name": "Banco de Desarrollo Banrural", - "amenity": "bank" - }, - "name": "Banco de Desarrollo Banrural", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banco Bradesco": { - "tags": { - "name": "Banco Bradesco", - "amenity": "bank" - }, - "name": "Banco Bradesco", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bicentenario": { - "tags": { - "name": "Bicentenario", - "amenity": "bank" - }, - "name": "Bicentenario", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/ლიბერთი ბანკი": { - "tags": { - "name": "ლიბერთი ბანკი", - "name:en": "Liberty Bank", - "amenity": "bank" - }, - "name": "ლიბერთი ბანკი", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Banesco": { - "tags": { - "name": "Banesco", - "amenity": "bank" - }, - "name": "Banesco", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Mercantil": { - "tags": { - "name": "Mercantil", - "amenity": "bank" - }, - "name": "Mercantil", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Bank BRI": { - "tags": { - "name": "Bank BRI", - "amenity": "bank" - }, - "name": "Bank BRI", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/Del Tesoro": { - "tags": { - "name": "Del Tesoro", - "amenity": "bank" - }, - "name": "Del Tesoro", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/하나은행": { - "tags": { - "name": "하나은행", - "amenity": "bank" - }, - "name": "하나은행", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/CityCommerce Bank": { - "tags": { - "name": "CityCommerce Bank", - "amenity": "bank" - }, - "name": "CityCommerce Bank", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/bank/De Venezuela": { - "tags": { - "name": "De Venezuela", - "amenity": "bank" - }, - "name": "De Venezuela", - "icon": "bank", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "atm", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/car_rental/Europcar": { - "tags": { - "name": "Europcar", - "amenity": "car_rental" - }, - "name": "Europcar", - "icon": "car", - "geometry": [ - "point", - "area" - ], - "fields": [ - "operator" - ], - "suggestion": true - }, - "amenity/car_rental/Budget": { - "tags": { - "name": "Budget", - "amenity": "car_rental" - }, - "name": "Budget", - "icon": "car", - "geometry": [ - "point", - "area" - ], - "fields": [ - "operator" - ], - "suggestion": true - }, - "amenity/car_rental/Sixt": { - "tags": { - "name": "Sixt", - "amenity": "car_rental" - }, - "name": "Sixt", - "icon": "car", - "geometry": [ - "point", - "area" - ], - "fields": [ - "operator" - ], - "suggestion": true - }, - "amenity/car_rental/Avis": { - "tags": { - "name": "Avis", - "amenity": "car_rental" - }, - "name": "Avis", - "icon": "car", - "geometry": [ - "point", - "area" - ], - "fields": [ - "operator" - ], - "suggestion": true - }, - "amenity/car_rental/Hertz": { - "tags": { - "name": "Hertz", - "amenity": "car_rental" - }, - "name": "Hertz", - "icon": "car", - "geometry": [ - "point", - "area" - ], - "fields": [ - "operator" - ], - "suggestion": true - }, - "amenity/car_rental/Enterprise": { - "tags": { - "name": "Enterprise", - "amenity": "car_rental" - }, - "name": "Enterprise", - "icon": "car", - "geometry": [ - "point", - "area" - ], - "fields": [ - "operator" - ], - "suggestion": true - }, - "amenity/car_rental/stadtmobil CarSharing-Station": { - "tags": { - "name": "stadtmobil CarSharing-Station", - "amenity": "car_rental" - }, - "name": "stadtmobil CarSharing-Station", - "icon": "car", - "geometry": [ - "point", - "area" - ], - "fields": [ - "operator" - ], - "suggestion": true - }, - "amenity/pharmacy/Rowlands Pharmacy": { - "tags": { - "name": "Rowlands Pharmacy", - "amenity": "pharmacy" - }, - "name": "Rowlands Pharmacy", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Boots": { - "tags": { - "name": "Boots", - "amenity": "pharmacy" - }, - "name": "Boots", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Marien-Apotheke": { - "tags": { - "name": "Marien-Apotheke", - "amenity": "pharmacy" - }, - "name": "Marien-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Mercury Drug": { - "tags": { - "name": "Mercury Drug", - "amenity": "pharmacy" - }, - "name": "Mercury Drug", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Löwen-Apotheke": { - "tags": { - "name": "Löwen-Apotheke", - "amenity": "pharmacy" - }, - "name": "Löwen-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Superdrug": { - "tags": { - "name": "Superdrug", - "amenity": "pharmacy" - }, - "name": "Superdrug", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Sonnen-Apotheke": { - "tags": { - "name": "Sonnen-Apotheke", - "amenity": "pharmacy" - }, - "name": "Sonnen-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Rathaus-Apotheke": { - "tags": { - "name": "Rathaus-Apotheke", - "amenity": "pharmacy" - }, - "name": "Rathaus-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Engel-Apotheke": { - "tags": { - "name": "Engel-Apotheke", - "amenity": "pharmacy" - }, - "name": "Engel-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Hirsch-Apotheke": { - "tags": { - "name": "Hirsch-Apotheke", - "amenity": "pharmacy" - }, - "name": "Hirsch-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Stern-Apotheke": { - "tags": { - "name": "Stern-Apotheke", - "amenity": "pharmacy" - }, - "name": "Stern-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Lloyds Pharmacy": { - "tags": { - "name": "Lloyds Pharmacy", - "amenity": "pharmacy" - }, - "name": "Lloyds Pharmacy", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Rosen-Apotheke": { - "tags": { - "name": "Rosen-Apotheke", - "amenity": "pharmacy" - }, - "name": "Rosen-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Stadt-Apotheke": { - "tags": { - "name": "Stadt-Apotheke", - "amenity": "pharmacy" - }, - "name": "Stadt-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Markt-Apotheke": { - "tags": { - "name": "Markt-Apotheke", - "amenity": "pharmacy" - }, - "name": "Markt-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Аптека": { - "tags": { - "name": "Аптека", - "amenity": "pharmacy" - }, - "name": "Аптека", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Pharmasave": { - "tags": { - "name": "Pharmasave", - "amenity": "pharmacy" - }, - "name": "Pharmasave", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Brunnen-Apotheke": { - "tags": { - "name": "Brunnen-Apotheke", - "amenity": "pharmacy" - }, - "name": "Brunnen-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Shoppers Drug Mart": { - "tags": { - "name": "Shoppers Drug Mart", - "amenity": "pharmacy" - }, - "name": "Shoppers Drug Mart", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Apotheke am Markt": { - "tags": { - "name": "Apotheke am Markt", - "amenity": "pharmacy" - }, - "name": "Apotheke am Markt", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Alte Apotheke": { - "tags": { - "name": "Alte Apotheke", - "amenity": "pharmacy" - }, - "name": "Alte Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Neue Apotheke": { - "tags": { - "name": "Neue Apotheke", - "amenity": "pharmacy" - }, - "name": "Neue Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Gintarinė vaistinė": { - "tags": { - "name": "Gintarinė vaistinė", - "amenity": "pharmacy" - }, - "name": "Gintarinė vaistinė", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Rats-Apotheke": { - "tags": { - "name": "Rats-Apotheke", - "amenity": "pharmacy" - }, - "name": "Rats-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Adler Apotheke": { - "tags": { - "name": "Adler Apotheke", - "amenity": "pharmacy" - }, - "name": "Adler Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Pharmacie Centrale": { - "tags": { - "name": "Pharmacie Centrale", - "amenity": "pharmacy" - }, - "name": "Pharmacie Centrale", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Walgreens": { - "tags": { - "name": "Walgreens", - "amenity": "pharmacy" - }, - "name": "Walgreens", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Rite Aid": { - "tags": { - "name": "Rite Aid", - "amenity": "pharmacy" - }, - "name": "Rite Aid", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Apotheke": { - "tags": { - "name": "Apotheke", - "amenity": "pharmacy" - }, - "name": "Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Linden-Apotheke": { - "tags": { - "name": "Linden-Apotheke", - "amenity": "pharmacy" - }, - "name": "Linden-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Bahnhof-Apotheke": { - "tags": { - "name": "Bahnhof-Apotheke", - "amenity": "pharmacy" - }, - "name": "Bahnhof-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Burg-Apotheke": { - "tags": { - "name": "Burg-Apotheke", - "amenity": "pharmacy" - }, - "name": "Burg-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Jean Coutu": { - "tags": { - "name": "Jean Coutu", - "amenity": "pharmacy" - }, - "name": "Jean Coutu", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Pharmaprix": { - "tags": { - "name": "Pharmaprix", - "amenity": "pharmacy" - }, - "name": "Pharmaprix", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Farmacias Ahumada": { - "tags": { - "name": "Farmacias Ahumada", - "amenity": "pharmacy" - }, - "name": "Farmacias Ahumada", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Farmacia Comunale": { - "tags": { - "name": "Farmacia Comunale", - "amenity": "pharmacy" - }, - "name": "Farmacia Comunale", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Farmacias Cruz Verde": { - "tags": { - "name": "Farmacias Cruz Verde", - "amenity": "pharmacy" - }, - "name": "Farmacias Cruz Verde", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Cruz Verde": { - "tags": { - "name": "Cruz Verde", - "amenity": "pharmacy" - }, - "name": "Cruz Verde", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Hubertus Apotheke": { - "tags": { - "name": "Hubertus Apotheke", - "amenity": "pharmacy" - }, - "name": "Hubertus Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/CVS": { - "tags": { - "name": "CVS", - "amenity": "pharmacy" - }, - "name": "CVS", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Farmacias SalcoBrand": { - "tags": { - "name": "Farmacias SalcoBrand", - "amenity": "pharmacy" - }, - "name": "Farmacias SalcoBrand", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Фармация": { - "tags": { - "name": "Фармация", - "amenity": "pharmacy" - }, - "name": "Фармация", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Bären-Apotheke": { - "tags": { - "name": "Bären-Apotheke", - "amenity": "pharmacy" - }, - "name": "Bären-Apotheke", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Clicks": { - "tags": { - "name": "Clicks", - "amenity": "pharmacy" - }, - "name": "Clicks", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/セイジョー": { - "tags": { - "name": "セイジョー", - "amenity": "pharmacy" - }, - "name": "セイジョー", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/マツモトキヨシ": { - "tags": { - "name": "マツモトキヨシ", - "amenity": "pharmacy" - }, - "name": "マツモトキヨシ", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Dr. Max": { - "tags": { - "name": "Dr. Max", - "amenity": "pharmacy" - }, - "name": "Dr. Max", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Вита": { - "tags": { - "name": "Вита", - "amenity": "pharmacy" - }, - "name": "Вита", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Радуга": { - "tags": { - "name": "Радуга", - "amenity": "pharmacy" - }, - "name": "Радуга", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/サンドラッグ": { - "tags": { - "name": "サンドラッグ", - "amenity": "pharmacy" - }, - "name": "サンドラッグ", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Apteka": { - "tags": { - "name": "Apteka", - "amenity": "pharmacy" - }, - "name": "Apteka", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Первая помощь": { - "tags": { - "name": "Первая помощь", - "amenity": "pharmacy" - }, - "name": "Первая помощь", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Ригла": { - "tags": { - "name": "Ригла", - "amenity": "pharmacy" - }, - "name": "Ригла", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Имплозия": { - "tags": { - "name": "Имплозия", - "amenity": "pharmacy" - }, - "name": "Имплозия", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Kinney Drugs": { - "tags": { - "name": "Kinney Drugs", - "amenity": "pharmacy" - }, - "name": "Kinney Drugs", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Классика": { - "tags": { - "name": "Классика", - "amenity": "pharmacy" - }, - "name": "Классика", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Ljekarna": { - "tags": { - "name": "Ljekarna", - "amenity": "pharmacy" - }, - "name": "Ljekarna", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/SalcoBrand": { - "tags": { - "name": "SalcoBrand", - "amenity": "pharmacy" - }, - "name": "SalcoBrand", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Аптека 36,6": { - "tags": { - "name": "Аптека 36,6", - "amenity": "pharmacy" - }, - "name": "Аптека 36,6", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Фармакор": { - "tags": { - "name": "Фармакор", - "amenity": "pharmacy" - }, - "name": "Фармакор", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/スギ薬局": { - "tags": { - "name": "スギ薬局", - "amenity": "pharmacy" - }, - "name": "スギ薬局", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Аптечный пункт": { - "tags": { - "name": "Аптечный пункт", - "amenity": "pharmacy" - }, - "name": "Аптечный пункт", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Невис": { - "tags": { - "name": "Невис", - "amenity": "pharmacy" - }, - "name": "Невис", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/トモズ (Tomod's)": { - "tags": { - "name": "トモズ (Tomod's)", - "amenity": "pharmacy" - }, - "name": "トモズ (Tomod's)", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Eurovaistinė": { - "tags": { - "name": "Eurovaistinė", - "amenity": "pharmacy" - }, - "name": "Eurovaistinė", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Farmacity": { - "tags": { - "name": "Farmacity", - "amenity": "pharmacy" - }, - "name": "Farmacity", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/аптека": { - "tags": { - "name": "аптека", - "amenity": "pharmacy" - }, - "name": "аптека", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/The Generics Pharmacy": { - "tags": { - "name": "The Generics Pharmacy", - "amenity": "pharmacy" - }, - "name": "The Generics Pharmacy", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Farmatodo": { - "tags": { - "name": "Farmatodo", - "amenity": "pharmacy" - }, - "name": "Farmatodo", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Duane Reade": { - "tags": { - "name": "Duane Reade", - "amenity": "pharmacy" - }, - "name": "Duane Reade", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Фармленд": { - "tags": { - "name": "Фармленд", - "amenity": "pharmacy" - }, - "name": "Фармленд", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/ドラッグてらしま (Drug Terashima)": { - "tags": { - "name": "ドラッグてらしま (Drug Terashima)", - "amenity": "pharmacy" - }, - "name": "ドラッグてらしま (Drug Terashima)", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Арніка": { - "tags": { - "name": "Арніка", - "amenity": "pharmacy" - }, - "name": "Арніка", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/ავერსი (Aversi)": { - "tags": { - "name": "ავერსი (Aversi)", - "amenity": "pharmacy" - }, - "name": "ავერსი (Aversi)", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/pharmacy/Farmahorro": { - "tags": { - "name": "Farmahorro", - "amenity": "pharmacy" - }, - "name": "Farmahorro", - "icon": "pharmacy", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address", - "opening_hours" - ], - "suggestion": true - }, - "amenity/cafe/Starbucks": { - "tags": { - "name": "Starbucks", - "cuisine": "coffee_shop", - "amenity": "cafe" - }, - "name": "Starbucks", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Cafeteria": { - "tags": { - "name": "Cafeteria", - "amenity": "cafe" - }, - "name": "Cafeteria", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Costa": { - "tags": { - "name": "Costa", - "amenity": "cafe" - }, - "name": "Costa", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Caffè Nero": { - "tags": { - "name": "Caffè Nero", - "amenity": "cafe" - }, - "name": "Caffè Nero", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Кафе": { - "tags": { - "name": "Кафе", - "amenity": "cafe" - }, - "name": "Кафе", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Café Central": { - "tags": { - "name": "Café Central", - "amenity": "cafe" - }, - "name": "Café Central", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Second Cup": { - "tags": { - "name": "Second Cup", - "amenity": "cafe" - }, - "name": "Second Cup", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Eisdiele": { - "tags": { - "name": "Eisdiele", - "amenity": "cafe" - }, - "name": "Eisdiele", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Dunkin Donuts": { - "tags": { - "name": "Dunkin Donuts", - "cuisine": "donut", - "amenity": "cafe" - }, - "name": "Dunkin Donuts", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Espresso House": { - "tags": { - "name": "Espresso House", - "amenity": "cafe" - }, - "name": "Espresso House", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Segafredo": { - "tags": { - "name": "Segafredo", - "amenity": "cafe" - }, - "name": "Segafredo", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Coffee Time": { - "tags": { - "name": "Coffee Time", - "amenity": "cafe" - }, - "name": "Coffee Time", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Cafe Coffee Day": { - "tags": { - "name": "Cafe Coffee Day", - "amenity": "cafe" - }, - "name": "Cafe Coffee Day", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Eiscafe Venezia": { - "tags": { - "name": "Eiscafe Venezia", - "amenity": "cafe" - }, - "name": "Eiscafe Venezia", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/スターバックス": { - "tags": { - "name": "スターバックス", - "name:en": "Starbucks", - "amenity": "cafe" - }, - "name": "スターバックス", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Шоколадница": { - "tags": { - "name": "Шоколадница", - "amenity": "cafe" - }, - "name": "Шоколадница", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Pret A Manger": { - "tags": { - "name": "Pret A Manger", - "amenity": "cafe" - }, - "name": "Pret A Manger", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Столовая": { - "tags": { - "name": "Столовая", - "amenity": "cafe" - }, - "name": "Столовая", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/ドトール": { - "tags": { - "name": "ドトール", - "name:en": "DOUTOR", - "amenity": "cafe" - }, - "name": "ドトール", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Tchibo": { - "tags": { - "name": "Tchibo", - "amenity": "cafe" - }, - "name": "Tchibo", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Кофе Хауз": { - "tags": { - "name": "Кофе Хауз", - "amenity": "cafe" - }, - "name": "Кофе Хауз", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Caribou Coffee": { - "tags": { - "name": "Caribou Coffee", - "amenity": "cafe" - }, - "name": "Caribou Coffee", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Уют": { - "tags": { - "name": "Уют", - "amenity": "cafe" - }, - "name": "Уют", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Шашлычная": { - "tags": { - "name": "Шашлычная", - "amenity": "cafe" - }, - "name": "Шашлычная", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/คาเฟ่ อเมซอน": { - "tags": { - "name": "คาเฟ่ อเมซอน", - "amenity": "cafe" - }, - "name": "คาเฟ่ อเมซอน", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Traveler's Coffee": { - "tags": { - "name": "Traveler's Coffee", - "amenity": "cafe" - }, - "name": "Traveler's Coffee", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/カフェ・ド・クリエ": { - "tags": { - "name": "カフェ・ド・クリエ", - "name:en": "Cafe de CRIE", - "amenity": "cafe" - }, - "name": "カフェ・ド・クリエ", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "amenity/cafe/Cafe Amazon": { - "tags": { - "name": "Cafe Amazon", - "amenity": "cafe" - }, - "name": "Cafe Amazon", - "icon": "cafe", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "cuisine", - "internet_access", - "building_area", - "address", - "opening_hours", - "smoking" - ], - "suggestion": true - }, - "shop/supermarket/Budgens": { - "tags": { - "name": "Budgens", - "shop": "supermarket" - }, - "name": "Budgens", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Interspar": { - "tags": { - "name": "Interspar", - "shop": "supermarket" - }, - "name": "Interspar", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Merkur": { - "tags": { - "name": "Merkur", - "shop": "supermarket" - }, - "name": "Merkur", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Lidl": { - "tags": { - "name": "Lidl", - "shop": "supermarket" - }, - "name": "Lidl", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/EDEKA": { - "tags": { - "name": "EDEKA", - "shop": "supermarket" - }, - "name": "EDEKA", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Coles": { - "tags": { - "name": "Coles", - "shop": "supermarket" - }, - "name": "Coles", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Iceland": { - "tags": { - "name": "Iceland", - "shop": "supermarket" - }, - "name": "Iceland", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Woolworths": { - "tags": { - "name": "Woolworths", - "shop": "supermarket" - }, - "name": "Woolworths", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Zielpunkt": { - "tags": { - "name": "Zielpunkt", - "shop": "supermarket" - }, - "name": "Zielpunkt", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Nahkauf": { - "tags": { - "name": "Nahkauf", - "shop": "supermarket" - }, - "name": "Nahkauf", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Billa": { - "tags": { - "name": "Billa", - "shop": "supermarket" - }, - "name": "Billa", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Kaufland": { - "tags": { - "name": "Kaufland", - "shop": "supermarket" - }, - "name": "Kaufland", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Plus": { - "tags": { - "name": "Plus", - "shop": "supermarket" - }, - "name": "Plus", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/ALDI": { - "tags": { - "name": "ALDI", - "shop": "supermarket" - }, - "name": "ALDI", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Checkers": { - "tags": { - "name": "Checkers", - "shop": "supermarket" - }, - "name": "Checkers", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Tesco Metro": { - "tags": { - "name": "Tesco Metro", - "shop": "supermarket" - }, - "name": "Tesco Metro", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/NP": { - "tags": { - "name": "NP", - "shop": "supermarket" - }, - "name": "NP", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Penny": { - "tags": { - "name": "Penny", - "shop": "supermarket" - }, - "name": "Penny", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Norma": { - "tags": { - "name": "Norma", - "shop": "supermarket" - }, - "name": "Norma", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Asda": { - "tags": { - "name": "Asda", - "shop": "supermarket" - }, - "name": "Asda", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Netto": { - "tags": { - "name": "Netto", - "shop": "supermarket" - }, - "name": "Netto", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/REWE": { - "tags": { - "name": "REWE", - "shop": "supermarket" - }, - "name": "REWE", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Rewe": { - "tags": { - "name": "Rewe", - "shop": "supermarket" - }, - "name": "Rewe", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Aldi Süd": { - "tags": { - "name": "Aldi Süd", - "shop": "supermarket" - }, - "name": "Aldi Süd", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Real": { - "tags": { - "name": "Real", - "shop": "supermarket" - }, - "name": "Real", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Tesco Express": { - "tags": { - "name": "Tesco Express", - "shop": "supermarket" - }, - "name": "Tesco Express", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/King Soopers": { - "tags": { - "name": "King Soopers", - "shop": "supermarket" - }, - "name": "King Soopers", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Kiwi": { - "tags": { - "name": "Kiwi", - "shop": "supermarket" - }, - "name": "Kiwi", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Edeka": { - "tags": { - "name": "Edeka", - "shop": "supermarket" - }, - "name": "Edeka", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Pick n Pay": { - "tags": { - "name": "Pick n Pay", - "shop": "supermarket" - }, - "name": "Pick n Pay", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/ICA": { - "tags": { - "name": "ICA", - "shop": "supermarket" - }, - "name": "ICA", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Tengelmann": { - "tags": { - "name": "Tengelmann", - "shop": "supermarket" - }, - "name": "Tengelmann", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Waitrose": { - "tags": { - "name": "Waitrose", - "shop": "supermarket" - }, - "name": "Waitrose", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Spar": { - "tags": { - "name": "Spar", - "shop": "supermarket" - }, - "name": "Spar", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Hofer": { - "tags": { - "name": "Hofer", - "shop": "supermarket" - }, - "name": "Hofer", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/M-Preis": { - "tags": { - "name": "M-Preis", - "shop": "supermarket" - }, - "name": "M-Preis", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/LIDL": { - "tags": { - "name": "LIDL", - "shop": "supermarket" - }, - "name": "LIDL", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/tegut": { - "tags": { - "name": "tegut", - "shop": "supermarket" - }, - "name": "tegut", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Sainsbury's Local": { - "tags": { - "name": "Sainsbury's Local", - "shop": "supermarket" - }, - "name": "Sainsbury's Local", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/E-Center": { - "tags": { - "name": "E-Center", - "shop": "supermarket" - }, - "name": "E-Center", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Aldi Nord": { - "tags": { - "name": "Aldi Nord", - "shop": "supermarket" - }, - "name": "Aldi Nord", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/nahkauf": { - "tags": { - "name": "nahkauf", - "shop": "supermarket" - }, - "name": "nahkauf", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Meijer": { - "tags": { - "name": "Meijer", - "shop": "supermarket" - }, - "name": "Meijer", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Safeway": { - "tags": { - "name": "Safeway", - "shop": "supermarket" - }, - "name": "Safeway", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Costco": { - "tags": { - "name": "Costco", - "shop": "supermarket" - }, - "name": "Costco", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Albert": { - "tags": { - "name": "Albert", - "shop": "supermarket" - }, - "name": "Albert", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Jumbo": { - "tags": { - "name": "Jumbo", - "shop": "supermarket" - }, - "name": "Jumbo", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Shoprite": { - "tags": { - "name": "Shoprite", - "shop": "supermarket" - }, - "name": "Shoprite", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/MPreis": { - "tags": { - "name": "MPreis", - "shop": "supermarket" - }, - "name": "MPreis", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Penny Market": { - "tags": { - "name": "Penny Market", - "shop": "supermarket" - }, - "name": "Penny Market", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Tesco Extra": { - "tags": { - "name": "Tesco Extra", - "shop": "supermarket" - }, - "name": "Tesco Extra", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Albert Heijn": { - "tags": { - "name": "Albert Heijn", - "shop": "supermarket" - }, - "name": "Albert Heijn", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/IGA": { - "tags": { - "name": "IGA", - "shop": "supermarket" - }, - "name": "IGA", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Metro": { - "tags": { - "name": "Metro", - "shop": "supermarket" - }, - "name": "Metro", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Neukauf": { - "tags": { - "name": "Neukauf", - "shop": "supermarket" - }, - "name": "Neukauf", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Migros": { - "tags": { - "name": "Migros", - "shop": "supermarket" - }, - "name": "Migros", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Marktkauf": { - "tags": { - "name": "Marktkauf", - "shop": "supermarket" - }, - "name": "Marktkauf", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Delikatesy Centrum": { - "tags": { - "name": "Delikatesy Centrum", - "shop": "supermarket" - }, - "name": "Delikatesy Centrum", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/C1000": { - "tags": { - "name": "C1000", - "shop": "supermarket" - }, - "name": "C1000", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Hoogvliet": { - "tags": { - "name": "Hoogvliet", - "shop": "supermarket" - }, - "name": "Hoogvliet", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/COOP": { - "tags": { - "name": "COOP", - "shop": "supermarket" - }, - "name": "COOP", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Food Basics": { - "tags": { - "name": "Food Basics", - "shop": "supermarket" - }, - "name": "Food Basics", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Casino": { - "tags": { - "name": "Casino", - "shop": "supermarket" - }, - "name": "Casino", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Penny Markt": { - "tags": { - "name": "Penny Markt", - "shop": "supermarket" - }, - "name": "Penny Markt", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Giant": { - "tags": { - "name": "Giant", - "shop": "supermarket" - }, - "name": "Giant", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/COOP Jednota": { - "tags": { - "name": "COOP Jednota", - "shop": "supermarket" - }, - "name": "COOP Jednota", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Rema 1000": { - "tags": { - "name": "Rema 1000", - "shop": "supermarket" - }, - "name": "Rema 1000", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Kaufpark": { - "tags": { - "name": "Kaufpark", - "shop": "supermarket" - }, - "name": "Kaufpark", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/ALDI SÜD": { - "tags": { - "name": "ALDI SÜD", - "shop": "supermarket" - }, - "name": "ALDI SÜD", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Simply Market": { - "tags": { - "name": "Simply Market", - "shop": "supermarket" - }, - "name": "Simply Market", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Konzum": { - "tags": { - "name": "Konzum", - "shop": "supermarket" - }, - "name": "Konzum", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Carrefour Express": { - "tags": { - "name": "Carrefour Express", - "shop": "supermarket" - }, - "name": "Carrefour Express", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Eurospar": { - "tags": { - "name": "Eurospar", - "shop": "supermarket" - }, - "name": "Eurospar", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Mercator": { - "tags": { - "name": "Mercator", - "shop": "supermarket" - }, - "name": "Mercator", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Famila": { - "tags": { - "name": "Famila", - "shop": "supermarket" - }, - "name": "Famila", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Hemköp": { - "tags": { - "name": "Hemköp", - "shop": "supermarket" - }, - "name": "Hemköp", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/real,-": { - "tags": { - "name": "real,-", - "shop": "supermarket" - }, - "name": "real,-", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Markant": { - "tags": { - "name": "Markant", - "shop": "supermarket" - }, - "name": "Markant", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Volg": { - "tags": { - "name": "Volg", - "shop": "supermarket" - }, - "name": "Volg", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Leader Price": { - "tags": { - "name": "Leader Price", - "shop": "supermarket" - }, - "name": "Leader Price", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Treff 3000": { - "tags": { - "name": "Treff 3000", - "shop": "supermarket" - }, - "name": "Treff 3000", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/SuperBrugsen": { - "tags": { - "name": "SuperBrugsen", - "shop": "supermarket" - }, - "name": "SuperBrugsen", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Kaiser's": { - "tags": { - "name": "Kaiser's", - "shop": "supermarket" - }, - "name": "Kaiser's", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/K+K": { - "tags": { - "name": "K+K", - "shop": "supermarket" - }, - "name": "K+K", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Unimarkt": { - "tags": { - "name": "Unimarkt", - "shop": "supermarket" - }, - "name": "Unimarkt", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Carrefour City": { - "tags": { - "name": "Carrefour City", - "shop": "supermarket" - }, - "name": "Carrefour City", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Sobeys": { - "tags": { - "name": "Sobeys", - "shop": "supermarket" - }, - "name": "Sobeys", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/S-Market": { - "tags": { - "name": "S-Market", - "shop": "supermarket" - }, - "name": "S-Market", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Combi": { - "tags": { - "name": "Combi", - "shop": "supermarket" - }, - "name": "Combi", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Denner": { - "tags": { - "name": "Denner", - "shop": "supermarket" - }, - "name": "Denner", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Konsum": { - "tags": { - "name": "Konsum", - "shop": "supermarket" - }, - "name": "Konsum", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Franprix": { - "tags": { - "name": "Franprix", - "shop": "supermarket" - }, - "name": "Franprix", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Monoprix": { - "tags": { - "name": "Monoprix", - "shop": "supermarket" - }, - "name": "Monoprix", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Diska": { - "tags": { - "name": "Diska", - "shop": "supermarket" - }, - "name": "Diska", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/PENNY": { - "tags": { - "name": "PENNY", - "shop": "supermarket" - }, - "name": "PENNY", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Dia": { - "tags": { - "name": "Dia", - "shop": "supermarket" - }, - "name": "Dia", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Giant Eagle": { - "tags": { - "name": "Giant Eagle", - "shop": "supermarket" - }, - "name": "Giant Eagle", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/NORMA": { - "tags": { - "name": "NORMA", - "shop": "supermarket" - }, - "name": "NORMA", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/AD Delhaize": { - "tags": { - "name": "AD Delhaize", - "shop": "supermarket" - }, - "name": "AD Delhaize", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Mercadona": { - "tags": { - "name": "Mercadona", - "shop": "supermarket" - }, - "name": "Mercadona", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Consum": { - "tags": { - "name": "Consum", - "shop": "supermarket" - }, - "name": "Consum", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Carrefour Market": { - "tags": { - "name": "Carrefour Market", - "shop": "supermarket" - }, - "name": "Carrefour Market", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Whole Foods": { - "tags": { - "name": "Whole Foods", - "shop": "supermarket" - }, - "name": "Whole Foods", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Pam": { - "tags": { - "name": "Pam", - "shop": "supermarket" - }, - "name": "Pam", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/sky": { - "tags": { - "name": "sky", - "shop": "supermarket" - }, - "name": "sky", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Despar": { - "tags": { - "name": "Despar", - "shop": "supermarket" - }, - "name": "Despar", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Eroski": { - "tags": { - "name": "Eroski", - "shop": "supermarket" - }, - "name": "Eroski", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Costcutter": { - "tags": { - "name": "Costcutter", - "shop": "supermarket" - }, - "name": "Costcutter", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Maxi": { - "tags": { - "name": "Maxi", - "shop": "supermarket" - }, - "name": "Maxi", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Colruyt": { - "tags": { - "name": "Colruyt", - "shop": "supermarket" - }, - "name": "Colruyt", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/The Co-operative": { - "tags": { - "name": "The Co-operative", - "shop": "supermarket" - }, - "name": "The Co-operative", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Delhaize": { - "tags": { - "name": "Delhaize", - "shop": "supermarket" - }, - "name": "Delhaize", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/CBA": { - "tags": { - "name": "CBA", - "shop": "supermarket" - }, - "name": "CBA", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Shopi": { - "tags": { - "name": "Shopi", - "shop": "supermarket" - }, - "name": "Shopi", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Walmart": { - "tags": { - "name": "Walmart", - "shop": "supermarket" - }, - "name": "Walmart", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Kroger": { - "tags": { - "name": "Kroger", - "shop": "supermarket" - }, - "name": "Kroger", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Albertsons": { - "tags": { - "name": "Albertsons", - "shop": "supermarket" - }, - "name": "Albertsons", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Trader Joe's": { - "tags": { - "name": "Trader Joe's", - "shop": "supermarket" - }, - "name": "Trader Joe's", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Feneberg": { - "tags": { - "name": "Feneberg", - "shop": "supermarket" - }, - "name": "Feneberg", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/denn's Biomarkt": { - "tags": { - "name": "denn's Biomarkt", - "shop": "supermarket" - }, - "name": "denn's Biomarkt", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/dm": { - "tags": { - "name": "dm", - "shop": "supermarket" - }, - "name": "dm", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Kvickly": { - "tags": { - "name": "Kvickly", - "shop": "supermarket" - }, - "name": "Kvickly", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Makro": { - "tags": { - "name": "Makro", - "shop": "supermarket" - }, - "name": "Makro", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Dico": { - "tags": { - "name": "Dico", - "shop": "supermarket" - }, - "name": "Dico", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Nah & Frisch": { - "tags": { - "name": "Nah & Frisch", - "shop": "supermarket" - }, - "name": "Nah & Frisch", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Champion": { - "tags": { - "name": "Champion", - "shop": "supermarket" - }, - "name": "Champion", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/ICA Supermarket": { - "tags": { - "name": "ICA Supermarket", - "shop": "supermarket" - }, - "name": "ICA Supermarket", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Fakta": { - "tags": { - "name": "Fakta", - "shop": "supermarket" - }, - "name": "Fakta", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Магнит": { - "tags": { - "name": "Магнит", - "shop": "supermarket" - }, - "name": "Магнит", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Caprabo": { - "tags": { - "name": "Caprabo", - "shop": "supermarket" - }, - "name": "Caprabo", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Famiglia Cooperativa": { - "tags": { - "name": "Famiglia Cooperativa", - "shop": "supermarket" - }, - "name": "Famiglia Cooperativa", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Народная 7Я семьЯ": { - "tags": { - "name": "Народная 7Я семьЯ", - "shop": "supermarket" - }, - "name": "Народная 7Я семьЯ", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Esselunga": { - "tags": { - "name": "Esselunga", - "shop": "supermarket" - }, - "name": "Esselunga", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Maxima": { - "tags": { - "name": "Maxima", - "shop": "supermarket" - }, - "name": "Maxima", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Petit Casino": { - "tags": { - "name": "Petit Casino", - "shop": "supermarket" - }, - "name": "Petit Casino", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Wasgau": { - "tags": { - "name": "Wasgau", - "shop": "supermarket" - }, - "name": "Wasgau", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Pingo Doce": { - "tags": { - "name": "Pingo Doce", - "shop": "supermarket" - }, - "name": "Pingo Doce", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Match": { - "tags": { - "name": "Match", - "shop": "supermarket" - }, - "name": "Match", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Profi": { - "tags": { - "name": "Profi", - "shop": "supermarket" - }, - "name": "Profi", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Lider": { - "tags": { - "name": "Lider", - "shop": "supermarket" - }, - "name": "Lider", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Unimarc": { - "tags": { - "name": "Unimarc", - "shop": "supermarket" - }, - "name": "Unimarc", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Co-operative Food": { - "tags": { - "name": "Co-operative Food", - "shop": "supermarket" - }, - "name": "Co-operative Food", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Santa Isabel": { - "tags": { - "name": "Santa Isabel", - "shop": "supermarket" - }, - "name": "Santa Isabel", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Седьмой континент": { - "tags": { - "name": "Седьмой континент", - "shop": "supermarket" - }, - "name": "Седьмой континент", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/HIT": { - "tags": { - "name": "HIT", - "shop": "supermarket" - }, - "name": "HIT", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Rimi": { - "tags": { - "name": "Rimi", - "shop": "supermarket" - }, - "name": "Rimi", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Conad": { - "tags": { - "name": "Conad", - "shop": "supermarket" - }, - "name": "Conad", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Фуршет": { - "tags": { - "name": "Фуршет", - "shop": "supermarket" - }, - "name": "Фуршет", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Willys": { - "tags": { - "name": "Willys", - "shop": "supermarket" - }, - "name": "Willys", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Farmfoods": { - "tags": { - "name": "Farmfoods", - "shop": "supermarket" - }, - "name": "Farmfoods", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/U Express": { - "tags": { - "name": "U Express", - "shop": "supermarket" - }, - "name": "U Express", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Фора": { - "tags": { - "name": "Фора", - "shop": "supermarket" - }, - "name": "Фора", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Dunnes Stores": { - "tags": { - "name": "Dunnes Stores", - "shop": "supermarket" - }, - "name": "Dunnes Stores", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Сільпо": { - "tags": { - "name": "Сільпо", - "shop": "supermarket" - }, - "name": "Сільпо", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/マルエツ": { - "tags": { - "name": "マルエツ", - "shop": "supermarket" - }, - "name": "マルエツ", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Piggly Wiggly": { - "tags": { - "name": "Piggly Wiggly", - "shop": "supermarket" - }, - "name": "Piggly Wiggly", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Crai": { - "tags": { - "name": "Crai", - "shop": "supermarket" - }, - "name": "Crai", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/El Árbol": { - "tags": { - "name": "El Árbol", - "shop": "supermarket" - }, - "name": "El Árbol", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Centre Commercial E. Leclerc": { - "tags": { - "name": "Centre Commercial E. Leclerc", - "shop": "supermarket" - }, - "name": "Centre Commercial E. Leclerc", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Foodland": { - "tags": { - "name": "Foodland", - "shop": "supermarket" - }, - "name": "Foodland", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Super Brugsen": { - "tags": { - "name": "Super Brugsen", - "shop": "supermarket" - }, - "name": "Super Brugsen", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Дикси": { - "tags": { - "name": "Дикси", - "shop": "supermarket" - }, - "name": "Дикси", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Пятёрочка": { - "tags": { - "name": "Пятёрочка", - "shop": "supermarket" - }, - "name": "Пятёрочка", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Publix": { - "tags": { - "name": "Publix", - "shop": "supermarket" - }, - "name": "Publix", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Føtex": { - "tags": { - "name": "Føtex", - "shop": "supermarket" - }, - "name": "Føtex", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/coop": { - "tags": { - "name": "coop", - "shop": "supermarket" - }, - "name": "coop", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Fressnapf": { - "tags": { - "name": "Fressnapf", - "shop": "supermarket" - }, - "name": "Fressnapf", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Coop Konsum": { - "tags": { - "name": "Coop Konsum", - "shop": "supermarket" - }, - "name": "Coop Konsum", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Carrefour Contact": { - "tags": { - "name": "Carrefour Contact", - "shop": "supermarket" - }, - "name": "Carrefour Contact", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/SPAR": { - "tags": { - "name": "SPAR", - "shop": "supermarket" - }, - "name": "SPAR", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/No Frills": { - "tags": { - "name": "No Frills", - "shop": "supermarket" - }, - "name": "No Frills", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Plodine": { - "tags": { - "name": "Plodine", - "shop": "supermarket" - }, - "name": "Plodine", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/ADEG": { - "tags": { - "name": "ADEG", - "shop": "supermarket" - }, - "name": "ADEG", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Minipreço": { - "tags": { - "name": "Minipreço", - "shop": "supermarket" - }, - "name": "Minipreço", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Biedronka": { - "tags": { - "name": "Biedronka", - "shop": "supermarket" - }, - "name": "Biedronka", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/The Co-operative Food": { - "tags": { - "name": "The Co-operative Food", - "shop": "supermarket" - }, - "name": "The Co-operative Food", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Eurospin": { - "tags": { - "name": "Eurospin", - "shop": "supermarket" - }, - "name": "Eurospin", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Семья": { - "tags": { - "name": "Семья", - "shop": "supermarket" - }, - "name": "Семья", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Gadis": { - "tags": { - "name": "Gadis", - "shop": "supermarket" - }, - "name": "Gadis", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Евроопт": { - "tags": { - "name": "Евроопт", - "shop": "supermarket" - }, - "name": "Евроопт", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Centra": { - "tags": { - "name": "Centra", - "shop": "supermarket" - }, - "name": "Centra", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Квартал": { - "tags": { - "name": "Квартал", - "shop": "supermarket" - }, - "name": "Квартал", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/New World": { - "tags": { - "name": "New World", - "shop": "supermarket" - }, - "name": "New World", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Countdown": { - "tags": { - "name": "Countdown", - "shop": "supermarket" - }, - "name": "Countdown", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Reliance Fresh": { - "tags": { - "name": "Reliance Fresh", - "shop": "supermarket" - }, - "name": "Reliance Fresh", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Stokrotka": { - "tags": { - "name": "Stokrotka", - "shop": "supermarket" - }, - "name": "Stokrotka", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Coop Jednota": { - "tags": { - "name": "Coop Jednota", - "shop": "supermarket" - }, - "name": "Coop Jednota", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Fred Meyer": { - "tags": { - "name": "Fred Meyer", - "shop": "supermarket" - }, - "name": "Fred Meyer", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Irma": { - "tags": { - "name": "Irma", - "shop": "supermarket" - }, - "name": "Irma", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Continente": { - "tags": { - "name": "Continente", - "shop": "supermarket" - }, - "name": "Continente", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Price Chopper": { - "tags": { - "name": "Price Chopper", - "shop": "supermarket" - }, - "name": "Price Chopper", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Game": { - "tags": { - "name": "Game", - "shop": "supermarket" - }, - "name": "Game", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Soriana": { - "tags": { - "name": "Soriana", - "shop": "supermarket" - }, - "name": "Soriana", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Alimerka": { - "tags": { - "name": "Alimerka", - "shop": "supermarket" - }, - "name": "Alimerka", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Piotr i Paweł": { - "tags": { - "name": "Piotr i Paweł", - "shop": "supermarket" - }, - "name": "Piotr i Paweł", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Перекресток": { - "tags": { - "name": "Перекресток", - "shop": "supermarket" - }, - "name": "Перекресток", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Maxima X": { - "tags": { - "name": "Maxima X", - "shop": "supermarket" - }, - "name": "Maxima X", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Карусель": { - "tags": { - "name": "Карусель", - "shop": "supermarket" - }, - "name": "Карусель", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/ALDI Nord": { - "tags": { - "name": "ALDI Nord", - "shop": "supermarket" - }, - "name": "ALDI Nord", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Condis": { - "tags": { - "name": "Condis", - "shop": "supermarket" - }, - "name": "Condis", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Sam's Club": { - "tags": { - "name": "Sam's Club", - "shop": "supermarket" - }, - "name": "Sam's Club", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Копейка": { - "tags": { - "name": "Копейка", - "shop": "supermarket" - }, - "name": "Копейка", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Géant Casino": { - "tags": { - "name": "Géant Casino", - "shop": "supermarket" - }, - "name": "Géant Casino", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/ASDA": { - "tags": { - "name": "ASDA", - "shop": "supermarket" - }, - "name": "ASDA", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Intermarche": { - "tags": { - "name": "Intermarche", - "shop": "supermarket" - }, - "name": "Intermarche", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Stop & Shop": { - "tags": { - "name": "Stop & Shop", - "shop": "supermarket" - }, - "name": "Stop & Shop", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Food Lion": { - "tags": { - "name": "Food Lion", - "shop": "supermarket" - }, - "name": "Food Lion", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Harris Teeter": { - "tags": { - "name": "Harris Teeter", - "shop": "supermarket" - }, - "name": "Harris Teeter", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Foodworks": { - "tags": { - "name": "Foodworks", - "shop": "supermarket" - }, - "name": "Foodworks", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Polo Market": { - "tags": { - "name": "Polo Market", - "shop": "supermarket" - }, - "name": "Polo Market", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Лента": { - "tags": { - "name": "Лента", - "shop": "supermarket" - }, - "name": "Лента", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/西友 (SEIYU)": { - "tags": { - "name": "西友 (SEIYU)", - "shop": "supermarket" - }, - "name": "西友 (SEIYU)", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Атак": { - "tags": { - "name": "Атак", - "shop": "supermarket" - }, - "name": "Атак", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Полушка": { - "tags": { - "name": "Полушка", - "shop": "supermarket" - }, - "name": "Полушка", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Extra": { - "tags": { - "name": "Extra", - "shop": "supermarket" - }, - "name": "Extra", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Lewiatan": { - "tags": { - "name": "Lewiatan", - "shop": "supermarket" - }, - "name": "Lewiatan", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Sigma": { - "tags": { - "name": "Sigma", - "shop": "supermarket" - }, - "name": "Sigma", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/АТБ": { - "tags": { - "name": "АТБ", - "shop": "supermarket" - }, - "name": "АТБ", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Społem": { - "tags": { - "name": "Społem", - "shop": "supermarket" - }, - "name": "Społem", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Bodega Aurrera": { - "tags": { - "name": "Bodega Aurrera", - "shop": "supermarket" - }, - "name": "Bodega Aurrera", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Tesco Lotus": { - "tags": { - "name": "Tesco Lotus", - "shop": "supermarket" - }, - "name": "Tesco Lotus", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Мария-Ра": { - "tags": { - "name": "Мария-Ра", - "shop": "supermarket" - }, - "name": "Мария-Ра", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Магнолия": { - "tags": { - "name": "Магнолия", - "shop": "supermarket" - }, - "name": "Магнолия", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Магазин": { - "tags": { - "name": "Магазин", - "shop": "supermarket" - }, - "name": "Магазин", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Монетка": { - "tags": { - "name": "Монетка", - "shop": "supermarket" - }, - "name": "Монетка", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Hy-Vee": { - "tags": { - "name": "Hy-Vee", - "shop": "supermarket" - }, - "name": "Hy-Vee", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Walmart Supercenter": { - "tags": { - "name": "Walmart Supercenter", - "shop": "supermarket" - }, - "name": "Walmart Supercenter", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Hannaford": { - "tags": { - "name": "Hannaford", - "shop": "supermarket" - }, - "name": "Hannaford", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Wegmans": { - "tags": { - "name": "Wegmans", - "shop": "supermarket" - }, - "name": "Wegmans", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/業務スーパー": { - "tags": { - "name": "業務スーパー", - "shop": "supermarket" - }, - "name": "業務スーパー", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Norfa XL": { - "tags": { - "name": "Norfa XL", - "shop": "supermarket" - }, - "name": "Norfa XL", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/ヨークマート (YorkMart)": { - "tags": { - "name": "ヨークマート (YorkMart)", - "shop": "supermarket" - }, - "name": "ヨークマート (YorkMart)", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/supermarket/Leclerc Drive": { - "tags": { - "name": "Leclerc Drive", - "shop": "supermarket" - }, - "name": "Leclerc Drive", - "icon": "grocery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "operator", - "building_area", - "address" - ], - "suggestion": true - }, - "shop/electronics/Media Markt": { - "tags": { - "name": "Media Markt", - "shop": "electronics" - }, - "name": "Media Markt", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/electronics/Maplin": { - "tags": { - "name": "Maplin", - "shop": "electronics" - }, - "name": "Maplin", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/electronics/Best Buy": { - "tags": { - "name": "Best Buy", - "shop": "electronics" - }, - "name": "Best Buy", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/electronics/Future Shop": { - "tags": { - "name": "Future Shop", - "shop": "electronics" - }, - "name": "Future Shop", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/electronics/Saturn": { - "tags": { - "name": "Saturn", - "shop": "electronics" - }, - "name": "Saturn", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/electronics/Currys": { - "tags": { - "name": "Currys", - "shop": "electronics" - }, - "name": "Currys", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/electronics/Radio Shack": { - "tags": { - "name": "Radio Shack", - "shop": "electronics" - }, - "name": "Radio Shack", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/electronics/Euronics": { - "tags": { - "name": "Euronics", - "shop": "electronics" - }, - "name": "Euronics", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/electronics/Expert": { - "tags": { - "name": "Expert", - "shop": "electronics" - }, - "name": "Expert", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/electronics/Эльдорадо": { - "tags": { - "name": "Эльдорадо", - "shop": "electronics" - }, - "name": "Эльдорадо", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/electronics/Darty": { - "tags": { - "name": "Darty", - "shop": "electronics" - }, - "name": "Darty", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/electronics/М.Видео": { - "tags": { - "name": "М.Видео", - "shop": "electronics" - }, - "name": "М.Видео", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/electronics/ヤマダ電機": { - "tags": { - "name": "ヤマダ電機", - "shop": "electronics" - }, - "name": "ヤマダ電機", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/McColl's": { - "tags": { - "name": "McColl's", - "shop": "convenience" - }, - "name": "McColl's", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/One Stop": { - "tags": { - "name": "One Stop", - "shop": "convenience" - }, - "name": "One Stop", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Londis": { - "tags": { - "name": "Londis", - "shop": "convenience" - }, - "name": "Londis", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Sale": { - "tags": { - "name": "Sale", - "shop": "convenience" - }, - "name": "Sale", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Siwa": { - "tags": { - "name": "Siwa", - "shop": "convenience" - }, - "name": "Siwa", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Mac's": { - "tags": { - "name": "Mac's", - "shop": "convenience" - }, - "name": "Mac's", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Alepa": { - "tags": { - "name": "Alepa", - "shop": "convenience" - }, - "name": "Alepa", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Hasty Market": { - "tags": { - "name": "Hasty Market", - "shop": "convenience" - }, - "name": "Hasty Market", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/K-Market": { - "tags": { - "name": "K-Market", - "shop": "convenience" - }, - "name": "K-Market", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Valintatalo": { - "tags": { - "name": "Valintatalo", - "shop": "convenience" - }, - "name": "Valintatalo", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/セブンイレブン": { - "tags": { - "name": "セブンイレブン", - "name:en": "7-Eleven", - "shop": "convenience" - }, - "name": "セブンイレブン", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/ローソン": { - "tags": { - "name": "ローソン", - "name:en": "LAWSON", - "shop": "convenience" - }, - "name": "ローソン", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Mace": { - "tags": { - "name": "Mace", - "shop": "convenience" - }, - "name": "Mace", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Mini Market": { - "tags": { - "name": "Mini Market", - "shop": "convenience" - }, - "name": "Mini Market", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Nisa Local": { - "tags": { - "name": "Nisa Local", - "shop": "convenience" - }, - "name": "Nisa Local", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Dorfladen": { - "tags": { - "name": "Dorfladen", - "shop": "convenience" - }, - "name": "Dorfladen", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Продукты": { - "tags": { - "name": "Продукты", - "shop": "convenience" - }, - "name": "Продукты", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Mini Stop": { - "tags": { - "name": "Mini Stop", - "shop": "convenience" - }, - "name": "Mini Stop", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/LAWSON": { - "tags": { - "name": "LAWSON", - "shop": "convenience" - }, - "name": "LAWSON", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/デイリーヤマザキ": { - "tags": { - "name": "デイリーヤマザキ", - "shop": "convenience" - }, - "name": "デイリーヤマザキ", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Надежда": { - "tags": { - "name": "Надежда", - "shop": "convenience" - }, - "name": "Надежда", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Nisa": { - "tags": { - "name": "Nisa", - "shop": "convenience" - }, - "name": "Nisa", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Premier": { - "tags": { - "name": "Premier", - "shop": "convenience" - }, - "name": "Premier", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/ミニストップ": { - "tags": { - "name": "ミニストップ", - "name:en": "MINISTOP", - "shop": "convenience" - }, - "name": "ミニストップ", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/サンクス": { - "tags": { - "name": "サンクス", - "name:en": "sunkus", - "shop": "convenience" - }, - "name": "サンクス", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/スリーエフ": { - "tags": { - "name": "スリーエフ", - "shop": "convenience" - }, - "name": "スリーエフ", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/8 à Huit": { - "tags": { - "name": "8 à Huit", - "shop": "convenience" - }, - "name": "8 à Huit", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Å»abka": { - "tags": { - "name": "Å»abka", - "shop": "convenience" - }, - "name": "Å»abka", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Almacen": { - "tags": { - "name": "Almacen", - "shop": "convenience" - }, - "name": "Almacen", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Vival": { - "tags": { - "name": "Vival", - "shop": "convenience" - }, - "name": "Vival", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/FamilyMart": { - "tags": { - "name": "FamilyMart", - "shop": "convenience" - }, - "name": "FamilyMart", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/ファミリーマート": { - "tags": { - "name": "ファミリーマート", - "name:en": "FamilyMart", - "shop": "convenience" - }, - "name": "ファミリーマート", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Sunkus": { - "tags": { - "name": "Sunkus", - "shop": "convenience" - }, - "name": "Sunkus", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/セブンイレブン(Seven-Eleven)": { - "tags": { - "name": "セブンイレブン(Seven-Eleven)", - "shop": "convenience" - }, - "name": "セブンイレブン(Seven-Eleven)", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Jednota": { - "tags": { - "name": "Jednota", - "shop": "convenience" - }, - "name": "Jednota", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Гастроном": { - "tags": { - "name": "Гастроном", - "shop": "convenience" - }, - "name": "Гастроном", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Sklep spożywczy": { - "tags": { - "name": "Sklep spożywczy", - "shop": "convenience" - }, - "name": "Sklep spożywczy", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/サークルK": { - "tags": { - "name": "サークルK", - "name:en": "Circle K", - "shop": "convenience" - }, - "name": "サークルK", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Proxi": { - "tags": { - "name": "Proxi", - "shop": "convenience" - }, - "name": "Proxi", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Универсам": { - "tags": { - "name": "Универсам", - "shop": "convenience" - }, - "name": "Универсам", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Groszek": { - "tags": { - "name": "Groszek", - "shop": "convenience" - }, - "name": "Groszek", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Select": { - "tags": { - "name": "Select", - "shop": "convenience" - }, - "name": "Select", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Večerka": { - "tags": { - "name": "Večerka", - "shop": "convenience" - }, - "name": "Večerka", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Potraviny": { - "tags": { - "name": "Potraviny", - "shop": "convenience" - }, - "name": "Potraviny", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Смак": { - "tags": { - "name": "Смак", - "shop": "convenience" - }, - "name": "Смак", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Эконом": { - "tags": { - "name": "Эконом", - "shop": "convenience" - }, - "name": "Эконом", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Березка": { - "tags": { - "name": "Березка", - "shop": "convenience" - }, - "name": "Березка", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Cumberland Farms": { - "tags": { - "name": "Cumberland Farms", - "shop": "convenience" - }, - "name": "Cumberland Farms", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Tesco Lotus Express": { - "tags": { - "name": "Tesco Lotus Express", - "shop": "convenience" - }, - "name": "Tesco Lotus Express", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/24 часа": { - "tags": { - "name": "24 часа", - "shop": "convenience" - }, - "name": "24 часа", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Минимаркет": { - "tags": { - "name": "Минимаркет", - "shop": "convenience" - }, - "name": "Минимаркет", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Oxxo": { - "tags": { - "name": "Oxxo", - "shop": "convenience" - }, - "name": "Oxxo", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/abc": { - "tags": { - "name": "abc", - "shop": "convenience" - }, - "name": "abc", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/7/11": { - "tags": { - "name": "7/11", - "shop": "convenience" - }, - "name": "7/11", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Продукти": { - "tags": { - "name": "Продукти", - "shop": "convenience" - }, - "name": "Продукти", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/ローソンストア100 (LAWSON STORE 100)": { - "tags": { - "name": "ローソンストア100 (LAWSON STORE 100)", - "shop": "convenience" - }, - "name": "ローソンストア100 (LAWSON STORE 100)", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/ローソンストア100": { - "tags": { - "name": "ローソンストア100", - "shop": "convenience" - }, - "name": "ローソンストア100", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/เซเว่นอีเลฟเว่น": { - "tags": { - "name": "เซเว่นอีเลฟเว่น", - "shop": "convenience" - }, - "name": "เซเว่นอีเลฟเว่น", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Spożywczy": { - "tags": { - "name": "Spożywczy", - "shop": "convenience" - }, - "name": "Spożywczy", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Фортуна": { - "tags": { - "name": "Фортуна", - "shop": "convenience" - }, - "name": "Фортуна", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Picard": { - "tags": { - "name": "Picard", - "shop": "convenience" - }, - "name": "Picard", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Four Square": { - "tags": { - "name": "Four Square", - "shop": "convenience" - }, - "name": "Four Square", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Визит": { - "tags": { - "name": "Визит", - "shop": "convenience" - }, - "name": "Визит", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Авоська": { - "tags": { - "name": "Авоська", - "shop": "convenience" - }, - "name": "Авоська", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Dollar General": { - "tags": { - "name": "Dollar General", - "shop": "convenience" - }, - "name": "Dollar General", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Studenac": { - "tags": { - "name": "Studenac", - "shop": "convenience" - }, - "name": "Studenac", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Central Convenience Store": { - "tags": { - "name": "Central Convenience Store", - "shop": "convenience" - }, - "name": "Central Convenience Store", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/продукты": { - "tags": { - "name": "продукты", - "shop": "convenience" - }, - "name": "продукты", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Кулинария": { - "tags": { - "name": "Кулинария", - "shop": "convenience" - }, - "name": "Кулинария", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/全家": { - "tags": { - "name": "全家", - "shop": "convenience" - }, - "name": "全家", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Мечта": { - "tags": { - "name": "Мечта", - "shop": "convenience" - }, - "name": "Мечта", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Epicerie": { - "tags": { - "name": "Epicerie", - "shop": "convenience" - }, - "name": "Epicerie", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Кировский": { - "tags": { - "name": "Кировский", - "shop": "convenience" - }, - "name": "Кировский", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Food Mart": { - "tags": { - "name": "Food Mart", - "shop": "convenience" - }, - "name": "Food Mart", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Delikatesy": { - "tags": { - "name": "Delikatesy", - "shop": "convenience" - }, - "name": "Delikatesy", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/ポプラ": { - "tags": { - "name": "ポプラ", - "shop": "convenience" - }, - "name": "ポプラ", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Продуктовый магазин": { - "tags": { - "name": "Продуктовый магазин", - "shop": "convenience" - }, - "name": "Продуктовый магазин", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Продуктовый": { - "tags": { - "name": "Продуктовый", - "shop": "convenience" - }, - "name": "Продуктовый", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/セイコーマート (Seicomart)": { - "tags": { - "name": "セイコーマート (Seicomart)", - "shop": "convenience" - }, - "name": "セイコーマート (Seicomart)", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Виктория": { - "tags": { - "name": "Виктория", - "shop": "convenience" - }, - "name": "Виктория", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Весна": { - "tags": { - "name": "Весна", - "shop": "convenience" - }, - "name": "Весна", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Mini Market Non-Stop": { - "tags": { - "name": "Mini Market Non-Stop", - "shop": "convenience" - }, - "name": "Mini Market Non-Stop", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Копеечка": { - "tags": { - "name": "Копеечка", - "shop": "convenience" - }, - "name": "Копеечка", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Royal Farms": { - "tags": { - "name": "Royal Farms", - "shop": "convenience" - }, - "name": "Royal Farms", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Alfamart": { - "tags": { - "name": "Alfamart", - "shop": "convenience" - }, - "name": "Alfamart", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Indomaret": { - "tags": { - "name": "Indomaret", - "shop": "convenience" - }, - "name": "Indomaret", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/магазин": { - "tags": { - "name": "магазин", - "shop": "convenience" - }, - "name": "магазин", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/全家便利商店": { - "tags": { - "name": "全家便利商店", - "shop": "convenience" - }, - "name": "全家便利商店", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/მარკეტი (Market)": { - "tags": { - "name": "მარკეტი (Market)", - "shop": "convenience" - }, - "name": "მარკეტი (Market)", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/convenience/Stores": { - "tags": { - "name": "Stores", - "shop": "convenience" - }, - "name": "Stores", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/chemist/Müller": { - "tags": { - "name": "Müller", - "shop": "chemist" - }, - "name": "Müller", - "icon": "chemist", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/chemist/Schlecker": { - "tags": { - "name": "Schlecker", - "shop": "chemist" - }, - "name": "Schlecker", - "icon": "chemist", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/chemist/Etos": { - "tags": { - "name": "Etos", - "shop": "chemist" - }, - "name": "Etos", - "icon": "chemist", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/chemist/Bipa": { - "tags": { - "name": "Bipa", - "shop": "chemist" - }, - "name": "Bipa", - "icon": "chemist", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/chemist/Rossmann": { - "tags": { - "name": "Rossmann", - "shop": "chemist" - }, - "name": "Rossmann", - "icon": "chemist", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/chemist/DM Drogeriemarkt": { - "tags": { - "name": "DM Drogeriemarkt", - "shop": "chemist" - }, - "name": "DM Drogeriemarkt", - "icon": "chemist", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/chemist/Ihr Platz": { - "tags": { - "name": "Ihr Platz", - "shop": "chemist" - }, - "name": "Ihr Platz", - "icon": "chemist", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/chemist/Douglas": { - "tags": { - "name": "Douglas", - "shop": "chemist" - }, - "name": "Douglas", - "icon": "chemist", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/chemist/Kruidvat": { - "tags": { - "name": "Kruidvat", - "shop": "chemist" - }, - "name": "Kruidvat", - "icon": "chemist", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Peugeot": { - "tags": { - "name": "Peugeot", - "shop": "car_repair" - }, - "name": "Peugeot", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Kwik Fit": { - "tags": { - "name": "Kwik Fit", - "shop": "car_repair" - }, - "name": "Kwik Fit", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/ATU": { - "tags": { - "name": "ATU", - "shop": "car_repair" - }, - "name": "ATU", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Kwik-Fit": { - "tags": { - "name": "Kwik-Fit", - "shop": "car_repair" - }, - "name": "Kwik-Fit", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Midas": { - "tags": { - "name": "Midas", - "shop": "car_repair" - }, - "name": "Midas", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Feu Vert": { - "tags": { - "name": "Feu Vert", - "shop": "car_repair" - }, - "name": "Feu Vert", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Norauto": { - "tags": { - "name": "Norauto", - "shop": "car_repair" - }, - "name": "Norauto", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Speedy": { - "tags": { - "name": "Speedy", - "shop": "car_repair" - }, - "name": "Speedy", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Автозапчасти": { - "tags": { - "name": "Автозапчасти", - "shop": "car_repair" - }, - "name": "Автозапчасти", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Renault": { - "tags": { - "name": "Renault", - "shop": "car_repair" - }, - "name": "Renault", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Pit Stop": { - "tags": { - "name": "Pit Stop", - "shop": "car_repair" - }, - "name": "Pit Stop", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Jiffy Lube": { - "tags": { - "name": "Jiffy Lube", - "shop": "car_repair" - }, - "name": "Jiffy Lube", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Шиномонтаж": { - "tags": { - "name": "Шиномонтаж", - "shop": "car_repair" - }, - "name": "Шиномонтаж", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/СТО": { - "tags": { - "name": "СТО", - "shop": "car_repair" - }, - "name": "СТО", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/O'Reilly Auto Parts": { - "tags": { - "name": "O'Reilly Auto Parts", - "shop": "car_repair" - }, - "name": "O'Reilly Auto Parts", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Carglass": { - "tags": { - "name": "Carglass", - "shop": "car_repair" - }, - "name": "Carglass", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/шиномонтаж": { - "tags": { - "name": "шиномонтаж", - "shop": "car_repair" - }, - "name": "шиномонтаж", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Citroen": { - "tags": { - "name": "Citroen", - "shop": "car_repair" - }, - "name": "Citroen", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Euromaster": { - "tags": { - "name": "Euromaster", - "shop": "car_repair" - }, - "name": "Euromaster", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Firestone": { - "tags": { - "name": "Firestone", - "shop": "car_repair" - }, - "name": "Firestone", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/AutoZone": { - "tags": { - "name": "AutoZone", - "shop": "car_repair" - }, - "name": "AutoZone", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Автосервис": { - "tags": { - "name": "Автосервис", - "shop": "car_repair" - }, - "name": "Автосервис", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Advance Auto Parts": { - "tags": { - "name": "Advance Auto Parts", - "shop": "car_repair" - }, - "name": "Advance Auto Parts", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car_repair/Roady": { - "tags": { - "name": "Roady", - "shop": "car_repair" - }, - "name": "Roady", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/furniture/IKEA": { - "tags": { - "name": "IKEA", - "shop": "furniture" - }, - "name": "IKEA", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/furniture/Jysk": { - "tags": { - "name": "Jysk", - "shop": "furniture" - }, - "name": "Jysk", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/furniture/Roller": { - "tags": { - "name": "Roller", - "shop": "furniture" - }, - "name": "Roller", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/furniture/Dänisches Bettenlager": { - "tags": { - "name": "Dänisches Bettenlager", - "shop": "furniture" - }, - "name": "Dänisches Bettenlager", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/furniture/Conforama": { - "tags": { - "name": "Conforama", - "shop": "furniture" - }, - "name": "Conforama", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/furniture/Matratzen Concord": { - "tags": { - "name": "Matratzen Concord", - "shop": "furniture" - }, - "name": "Matratzen Concord", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/furniture/Мебель": { - "tags": { - "name": "Мебель", - "shop": "furniture" - }, - "name": "Мебель", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/furniture/But": { - "tags": { - "name": "But", - "shop": "furniture" - }, - "name": "But", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Hornbach": { - "tags": { - "name": "Hornbach", - "shop": "doityourself" - }, - "name": "Hornbach", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/B&Q": { - "tags": { - "name": "B&Q", - "shop": "doityourself" - }, - "name": "B&Q", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Hubo": { - "tags": { - "name": "Hubo", - "shop": "doityourself" - }, - "name": "Hubo", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Mr Bricolage": { - "tags": { - "name": "Mr Bricolage", - "shop": "doityourself" - }, - "name": "Mr Bricolage", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Gamma": { - "tags": { - "name": "Gamma", - "shop": "doityourself" - }, - "name": "Gamma", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/OBI": { - "tags": { - "name": "OBI", - "shop": "doityourself" - }, - "name": "OBI", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Lowes": { - "tags": { - "name": "Lowes", - "shop": "doityourself" - }, - "name": "Lowes", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Wickes": { - "tags": { - "name": "Wickes", - "shop": "doityourself" - }, - "name": "Wickes", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Hagebau": { - "tags": { - "name": "Hagebau", - "shop": "doityourself" - }, - "name": "Hagebau", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Max Bahr": { - "tags": { - "name": "Max Bahr", - "shop": "doityourself" - }, - "name": "Max Bahr", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Castorama": { - "tags": { - "name": "Castorama", - "shop": "doityourself" - }, - "name": "Castorama", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Rona": { - "tags": { - "name": "Rona", - "shop": "doityourself" - }, - "name": "Rona", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Home Depot": { - "tags": { - "name": "Home Depot", - "shop": "doityourself" - }, - "name": "Home Depot", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Toom Baumarkt": { - "tags": { - "name": "Toom Baumarkt", - "shop": "doityourself" - }, - "name": "Toom Baumarkt", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Homebase": { - "tags": { - "name": "Homebase", - "shop": "doityourself" - }, - "name": "Homebase", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Baumax": { - "tags": { - "name": "Baumax", - "shop": "doityourself" - }, - "name": "Baumax", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Lagerhaus": { - "tags": { - "name": "Lagerhaus", - "shop": "doityourself" - }, - "name": "Lagerhaus", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Bauhaus": { - "tags": { - "name": "Bauhaus", - "shop": "doityourself" - }, - "name": "Bauhaus", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Leroy Merlin": { - "tags": { - "name": "Leroy Merlin", - "shop": "doityourself" - }, - "name": "Leroy Merlin", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Hellweg": { - "tags": { - "name": "Hellweg", - "shop": "doityourself" - }, - "name": "Hellweg", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Brico": { - "tags": { - "name": "Brico", - "shop": "doityourself" - }, - "name": "Brico", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Bricomarché": { - "tags": { - "name": "Bricomarché", - "shop": "doityourself" - }, - "name": "Bricomarché", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Toom": { - "tags": { - "name": "Toom", - "shop": "doityourself" - }, - "name": "Toom", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Hagebaumarkt": { - "tags": { - "name": "Hagebaumarkt", - "shop": "doityourself" - }, - "name": "Hagebaumarkt", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Praktiker": { - "tags": { - "name": "Praktiker", - "shop": "doityourself" - }, - "name": "Praktiker", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Menards": { - "tags": { - "name": "Menards", - "shop": "doityourself" - }, - "name": "Menards", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Weldom": { - "tags": { - "name": "Weldom", - "shop": "doityourself" - }, - "name": "Weldom", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Bunnings Warehouse": { - "tags": { - "name": "Bunnings Warehouse", - "shop": "doityourself" - }, - "name": "Bunnings Warehouse", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Ace Hardware": { - "tags": { - "name": "Ace Hardware", - "shop": "doityourself" - }, - "name": "Ace Hardware", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Home Hardware": { - "tags": { - "name": "Home Hardware", - "shop": "doityourself" - }, - "name": "Home Hardware", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Хозтовары": { - "tags": { - "name": "Хозтовары", - "shop": "doityourself" - }, - "name": "Хозтовары", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Стройматериалы": { - "tags": { - "name": "Стройматериалы", - "shop": "doityourself" - }, - "name": "Стройматериалы", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Bricorama": { - "tags": { - "name": "Bricorama", - "shop": "doityourself" - }, - "name": "Bricorama", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/doityourself/Point P": { - "tags": { - "name": "Point P", - "shop": "doityourself" - }, - "name": "Point P", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/stationery/Staples": { - "tags": { - "name": "Staples", - "shop": "stationery" - }, - "name": "Staples", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/stationery/McPaper": { - "tags": { - "name": "McPaper", - "shop": "stationery" - }, - "name": "McPaper", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/stationery/Office Depot": { - "tags": { - "name": "Office Depot", - "shop": "stationery" - }, - "name": "Office Depot", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/stationery/Канцтовары": { - "tags": { - "name": "Канцтовары", - "shop": "stationery" - }, - "name": "Канцтовары", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Skoda": { - "tags": { - "name": "Skoda", - "shop": "car" - }, - "name": "Skoda", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/BMW": { - "tags": { - "name": "BMW", - "shop": "car" - }, - "name": "BMW", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Mercedes-Benz": { - "tags": { - "name": "Mercedes-Benz", - "shop": "car" - }, - "name": "Mercedes-Benz", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Volvo": { - "tags": { - "name": "Volvo", - "shop": "car" - }, - "name": "Volvo", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Volkswagen": { - "tags": { - "name": "Volkswagen", - "shop": "car" - }, - "name": "Volkswagen", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Mazda": { - "tags": { - "name": "Mazda", - "shop": "car" - }, - "name": "Mazda", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Mitsubishi": { - "tags": { - "name": "Mitsubishi", - "shop": "car" - }, - "name": "Mitsubishi", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Fiat": { - "tags": { - "name": "Fiat", - "shop": "car" - }, - "name": "Fiat", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Opel": { - "tags": { - "name": "Opel", - "shop": "car" - }, - "name": "Opel", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Audi": { - "tags": { - "name": "Audi", - "shop": "car" - }, - "name": "Audi", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Toyota": { - "tags": { - "name": "Toyota", - "shop": "car" - }, - "name": "Toyota", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Nissan": { - "tags": { - "name": "Nissan", - "shop": "car" - }, - "name": "Nissan", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Suzuki": { - "tags": { - "name": "Suzuki", - "shop": "car" - }, - "name": "Suzuki", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Honda": { - "tags": { - "name": "Honda", - "shop": "car" - }, - "name": "Honda", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Hyundai": { - "tags": { - "name": "Hyundai", - "shop": "car" - }, - "name": "Hyundai", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Subaru": { - "tags": { - "name": "Subaru", - "shop": "car" - }, - "name": "Subaru", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Chevrolet": { - "tags": { - "name": "Chevrolet", - "shop": "car" - }, - "name": "Chevrolet", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/car/Автомагазин": { - "tags": { - "name": "Автомагазин", - "shop": "car" - }, - "name": "Автомагазин", - "icon": "car", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Matalan": { - "tags": { - "name": "Matalan", - "shop": "clothes" - }, - "name": "Matalan", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/KiK": { - "tags": { - "name": "KiK", - "shop": "clothes" - }, - "name": "KiK", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/H&M": { - "tags": { - "name": "H&M", - "shop": "clothes" - }, - "name": "H&M", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Urban Outfitters": { - "tags": { - "name": "Urban Outfitters", - "shop": "clothes" - }, - "name": "Urban Outfitters", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Vögele": { - "tags": { - "name": "Vögele", - "shop": "clothes" - }, - "name": "Vögele", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Zeeman": { - "tags": { - "name": "Zeeman", - "shop": "clothes" - }, - "name": "Zeeman", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Takko": { - "tags": { - "name": "Takko", - "shop": "clothes" - }, - "name": "Takko", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/C&A": { - "tags": { - "name": "C&A", - "shop": "clothes" - }, - "name": "C&A", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Zara": { - "tags": { - "name": "Zara", - "shop": "clothes" - }, - "name": "Zara", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Vero Moda": { - "tags": { - "name": "Vero Moda", - "shop": "clothes" - }, - "name": "Vero Moda", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/NKD": { - "tags": { - "name": "NKD", - "shop": "clothes" - }, - "name": "NKD", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Ernsting's family": { - "tags": { - "name": "Ernsting's family", - "shop": "clothes" - }, - "name": "Ernsting's family", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Winners": { - "tags": { - "name": "Winners", - "shop": "clothes" - }, - "name": "Winners", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/River Island": { - "tags": { - "name": "River Island", - "shop": "clothes" - }, - "name": "River Island", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Next": { - "tags": { - "name": "Next", - "shop": "clothes" - }, - "name": "Next", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Gap": { - "tags": { - "name": "Gap", - "shop": "clothes" - }, - "name": "Gap", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Adidas": { - "tags": { - "name": "Adidas", - "shop": "clothes" - }, - "name": "Adidas", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Mr Price": { - "tags": { - "name": "Mr Price", - "shop": "clothes" - }, - "name": "Mr Price", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Pep": { - "tags": { - "name": "Pep", - "shop": "clothes" - }, - "name": "Pep", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Edgars": { - "tags": { - "name": "Edgars", - "shop": "clothes" - }, - "name": "Edgars", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Ackermans": { - "tags": { - "name": "Ackermans", - "shop": "clothes" - }, - "name": "Ackermans", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Truworths": { - "tags": { - "name": "Truworths", - "shop": "clothes" - }, - "name": "Truworths", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Ross": { - "tags": { - "name": "Ross", - "shop": "clothes" - }, - "name": "Ross", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Burton": { - "tags": { - "name": "Burton", - "shop": "clothes" - }, - "name": "Burton", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Dorothy Perkins": { - "tags": { - "name": "Dorothy Perkins", - "shop": "clothes" - }, - "name": "Dorothy Perkins", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Deichmann": { - "tags": { - "name": "Deichmann", - "shop": "clothes" - }, - "name": "Deichmann", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Lindex": { - "tags": { - "name": "Lindex", - "shop": "clothes" - }, - "name": "Lindex", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/s.Oliver": { - "tags": { - "name": "s.Oliver", - "shop": "clothes" - }, - "name": "s.Oliver", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Cecil": { - "tags": { - "name": "Cecil", - "shop": "clothes" - }, - "name": "Cecil", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Dress Barn": { - "tags": { - "name": "Dress Barn", - "shop": "clothes" - }, - "name": "Dress Barn", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Old Navy": { - "tags": { - "name": "Old Navy", - "shop": "clothes" - }, - "name": "Old Navy", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Jack & Jones": { - "tags": { - "name": "Jack & Jones", - "shop": "clothes" - }, - "name": "Jack & Jones", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Pimkie": { - "tags": { - "name": "Pimkie", - "shop": "clothes" - }, - "name": "Pimkie", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Esprit": { - "tags": { - "name": "Esprit", - "shop": "clothes" - }, - "name": "Esprit", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Primark": { - "tags": { - "name": "Primark", - "shop": "clothes" - }, - "name": "Primark", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Bonita": { - "tags": { - "name": "Bonita", - "shop": "clothes" - }, - "name": "Bonita", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Mexx": { - "tags": { - "name": "Mexx", - "shop": "clothes" - }, - "name": "Mexx", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Gerry Weber": { - "tags": { - "name": "Gerry Weber", - "shop": "clothes" - }, - "name": "Gerry Weber", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Tally Weijl": { - "tags": { - "name": "Tally Weijl", - "shop": "clothes" - }, - "name": "Tally Weijl", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Mango": { - "tags": { - "name": "Mango", - "shop": "clothes" - }, - "name": "Mango", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/TK Maxx": { - "tags": { - "name": "TK Maxx", - "shop": "clothes" - }, - "name": "TK Maxx", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Benetton": { - "tags": { - "name": "Benetton", - "shop": "clothes" - }, - "name": "Benetton", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Ulla Popken": { - "tags": { - "name": "Ulla Popken", - "shop": "clothes" - }, - "name": "Ulla Popken", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/AWG": { - "tags": { - "name": "AWG", - "shop": "clothes" - }, - "name": "AWG", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Tommy Hilfiger": { - "tags": { - "name": "Tommy Hilfiger", - "shop": "clothes" - }, - "name": "Tommy Hilfiger", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/New Yorker": { - "tags": { - "name": "New Yorker", - "shop": "clothes" - }, - "name": "New Yorker", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Orsay": { - "tags": { - "name": "Orsay", - "shop": "clothes" - }, - "name": "Orsay", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Jeans Fritz": { - "tags": { - "name": "Jeans Fritz", - "shop": "clothes" - }, - "name": "Jeans Fritz", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Charles Vögele": { - "tags": { - "name": "Charles Vögele", - "shop": "clothes" - }, - "name": "Charles Vögele", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/New Look": { - "tags": { - "name": "New Look", - "shop": "clothes" - }, - "name": "New Look", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Lacoste": { - "tags": { - "name": "Lacoste", - "shop": "clothes" - }, - "name": "Lacoste", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Etam": { - "tags": { - "name": "Etam", - "shop": "clothes" - }, - "name": "Etam", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Kiabi": { - "tags": { - "name": "Kiabi", - "shop": "clothes" - }, - "name": "Kiabi", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Jack Wolfskin": { - "tags": { - "name": "Jack Wolfskin", - "shop": "clothes" - }, - "name": "Jack Wolfskin", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/American Apparel": { - "tags": { - "name": "American Apparel", - "shop": "clothes" - }, - "name": "American Apparel", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Men's Wearhouse": { - "tags": { - "name": "Men's Wearhouse", - "shop": "clothes" - }, - "name": "Men's Wearhouse", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Intimissimi": { - "tags": { - "name": "Intimissimi", - "shop": "clothes" - }, - "name": "Intimissimi", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/United Colors of Benetton": { - "tags": { - "name": "United Colors of Benetton", - "shop": "clothes" - }, - "name": "United Colors of Benetton", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Jules": { - "tags": { - "name": "Jules", - "shop": "clothes" - }, - "name": "Jules", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Second Hand": { - "tags": { - "name": "Second Hand", - "shop": "clothes" - }, - "name": "Second Hand", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/AOKI": { - "tags": { - "name": "AOKI", - "shop": "clothes" - }, - "name": "AOKI", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Calzedonia": { - "tags": { - "name": "Calzedonia", - "shop": "clothes" - }, - "name": "Calzedonia", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/洋服の青山": { - "tags": { - "name": "洋服の青山", - "shop": "clothes" - }, - "name": "洋服の青山", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Levi's": { - "tags": { - "name": "Levi's", - "shop": "clothes" - }, - "name": "Levi's", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Celio": { - "tags": { - "name": "Celio", - "shop": "clothes" - }, - "name": "Celio", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/TJ Maxx": { - "tags": { - "name": "TJ Maxx", - "shop": "clothes" - }, - "name": "TJ Maxx", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Promod": { - "tags": { - "name": "Promod", - "shop": "clothes" - }, - "name": "Promod", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Street One": { - "tags": { - "name": "Street One", - "shop": "clothes" - }, - "name": "Street One", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/ユニクロ": { - "tags": { - "name": "ユニクロ", - "shop": "clothes" - }, - "name": "ユニクロ", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Banana Republic": { - "tags": { - "name": "Banana Republic", - "shop": "clothes" - }, - "name": "Banana Republic", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Одежда": { - "tags": { - "name": "Одежда", - "shop": "clothes" - }, - "name": "Одежда", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Marshalls": { - "tags": { - "name": "Marshalls", - "shop": "clothes" - }, - "name": "Marshalls", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/La Halle": { - "tags": { - "name": "La Halle", - "shop": "clothes" - }, - "name": "La Halle", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/Peacocks": { - "tags": { - "name": "Peacocks", - "shop": "clothes" - }, - "name": "Peacocks", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/clothes/しまむら": { - "tags": { - "name": "しまむら", - "shop": "clothes" - }, - "name": "しまむら", - "icon": "clothing-store", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/books/Bruna": { - "tags": { - "name": "Bruna", - "shop": "books" - }, - "name": "Bruna", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/books/Waterstones": { - "tags": { - "name": "Waterstones", - "shop": "books" - }, - "name": "Waterstones", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/books/Libro": { - "tags": { - "name": "Libro", - "shop": "books" - }, - "name": "Libro", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/books/Barnes & Noble": { - "tags": { - "name": "Barnes & Noble", - "shop": "books" - }, - "name": "Barnes & Noble", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/books/Weltbild": { - "tags": { - "name": "Weltbild", - "shop": "books" - }, - "name": "Weltbild", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/books/Thalia": { - "tags": { - "name": "Thalia", - "shop": "books" - }, - "name": "Thalia", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/books/Книги": { - "tags": { - "name": "Книги", - "shop": "books" - }, - "name": "Книги", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/Debenhams": { - "tags": { - "name": "Debenhams", - "shop": "department_store" - }, - "name": "Debenhams", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/Karstadt": { - "tags": { - "name": "Karstadt", - "shop": "department_store" - }, - "name": "Karstadt", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/Kmart": { - "tags": { - "name": "Kmart", - "shop": "department_store" - }, - "name": "Kmart", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/Target": { - "tags": { - "name": "Target", - "shop": "department_store" - }, - "name": "Target", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/Galeria Kaufhof": { - "tags": { - "name": "Galeria Kaufhof", - "shop": "department_store" - }, - "name": "Galeria Kaufhof", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/Marks & Spencer": { - "tags": { - "name": "Marks & Spencer", - "shop": "department_store" - }, - "name": "Marks & Spencer", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/Big W": { - "tags": { - "name": "Big W", - "shop": "department_store" - }, - "name": "Big W", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/Woolworth": { - "tags": { - "name": "Woolworth", - "shop": "department_store" - }, - "name": "Woolworth", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/Универмаг": { - "tags": { - "name": "Универмаг", - "shop": "department_store" - }, - "name": "Универмаг", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/Sears": { - "tags": { - "name": "Sears", - "shop": "department_store" - }, - "name": "Sears", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/Kohl's": { - "tags": { - "name": "Kohl's", - "shop": "department_store" - }, - "name": "Kohl's", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/Macy's": { - "tags": { - "name": "Macy's", - "shop": "department_store" - }, - "name": "Macy's", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/department_store/JCPenney": { - "tags": { - "name": "JCPenney", - "shop": "department_store" - }, - "name": "JCPenney", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/alcohol/Alko": { - "tags": { - "name": "Alko", - "shop": "alcohol" - }, - "name": "Alko", - "icon": "alcohol-shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/alcohol/The Beer Store": { - "tags": { - "name": "The Beer Store", - "shop": "alcohol" - }, - "name": "The Beer Store", - "icon": "alcohol-shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/alcohol/Systembolaget": { - "tags": { - "name": "Systembolaget", - "shop": "alcohol" - }, - "name": "Systembolaget", - "icon": "alcohol-shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/alcohol/LCBO": { - "tags": { - "name": "LCBO", - "shop": "alcohol" - }, - "name": "LCBO", - "icon": "alcohol-shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/alcohol/Ароматный мир": { - "tags": { - "name": "Ароматный мир", - "shop": "alcohol" - }, - "name": "Ароматный мир", - "icon": "alcohol-shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/alcohol/Bargain Booze": { - "tags": { - "name": "Bargain Booze", - "shop": "alcohol" - }, - "name": "Bargain Booze", - "icon": "alcohol-shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/alcohol/Nicolas": { - "tags": { - "name": "Nicolas", - "shop": "alcohol" - }, - "name": "Nicolas", - "icon": "alcohol-shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/alcohol/BWS": { - "tags": { - "name": "BWS", - "shop": "alcohol" - }, - "name": "BWS", - "icon": "alcohol-shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/alcohol/Botilleria": { - "tags": { - "name": "Botilleria", - "shop": "alcohol" - }, - "name": "Botilleria", - "icon": "alcohol-shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/alcohol/SAQ": { - "tags": { - "name": "SAQ", - "shop": "alcohol" - }, - "name": "SAQ", - "icon": "alcohol-shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/alcohol/Gall & Gall": { - "tags": { - "name": "Gall & Gall", - "shop": "alcohol" - }, - "name": "Gall & Gall", - "icon": "alcohol-shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/alcohol/Живое пиво": { - "tags": { - "name": "Живое пиво", - "shop": "alcohol" - }, - "name": "Живое пиво", - "icon": "alcohol-shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Kamps": { - "tags": { - "name": "Kamps", - "shop": "bakery" - }, - "name": "Kamps", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Banette": { - "tags": { - "name": "Banette", - "shop": "bakery" - }, - "name": "Banette", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Bäckerei Schmidt": { - "tags": { - "name": "Bäckerei Schmidt", - "shop": "bakery" - }, - "name": "Bäckerei Schmidt", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Anker": { - "tags": { - "name": "Anker", - "shop": "bakery" - }, - "name": "Anker", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Hofpfisterei": { - "tags": { - "name": "Hofpfisterei", - "shop": "bakery" - }, - "name": "Hofpfisterei", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Greggs": { - "tags": { - "name": "Greggs", - "shop": "bakery" - }, - "name": "Greggs", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Oebel": { - "tags": { - "name": "Oebel", - "shop": "bakery" - }, - "name": "Oebel", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Boulangerie": { - "tags": { - "name": "Boulangerie", - "shop": "bakery" - }, - "name": "Boulangerie", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Stadtbäckerei": { - "tags": { - "name": "Stadtbäckerei", - "shop": "bakery" - }, - "name": "Stadtbäckerei", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Steinecke": { - "tags": { - "name": "Steinecke", - "shop": "bakery" - }, - "name": "Steinecke", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Ihle": { - "tags": { - "name": "Ihle", - "shop": "bakery" - }, - "name": "Ihle", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Goldilocks": { - "tags": { - "name": "Goldilocks", - "shop": "bakery" - }, - "name": "Goldilocks", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Dat Backhus": { - "tags": { - "name": "Dat Backhus", - "shop": "bakery" - }, - "name": "Dat Backhus", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/K&U": { - "tags": { - "name": "K&U", - "shop": "bakery" - }, - "name": "K&U", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Der Beck": { - "tags": { - "name": "Der Beck", - "shop": "bakery" - }, - "name": "Der Beck", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Thürmann": { - "tags": { - "name": "Thürmann", - "shop": "bakery" - }, - "name": "Thürmann", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Backwerk": { - "tags": { - "name": "Backwerk", - "shop": "bakery" - }, - "name": "Backwerk", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Bäcker": { - "tags": { - "name": "Bäcker", - "shop": "bakery" - }, - "name": "Bäcker", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Schäfer's": { - "tags": { - "name": "Schäfer's", - "shop": "bakery" - }, - "name": "Schäfer's", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Panaderia": { - "tags": { - "name": "Panaderia", - "shop": "bakery" - }, - "name": "Panaderia", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Goeken backen": { - "tags": { - "name": "Goeken backen", - "shop": "bakery" - }, - "name": "Goeken backen", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Stadtbäckerei Junge": { - "tags": { - "name": "Stadtbäckerei Junge", - "shop": "bakery" - }, - "name": "Stadtbäckerei Junge", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Boulangerie Patisserie": { - "tags": { - "name": "Boulangerie Patisserie", - "shop": "bakery" - }, - "name": "Boulangerie Patisserie", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Paul": { - "tags": { - "name": "Paul", - "shop": "bakery" - }, - "name": "Paul", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Хлеб": { - "tags": { - "name": "Хлеб", - "shop": "bakery" - }, - "name": "Хлеб", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Piekarnia": { - "tags": { - "name": "Piekarnia", - "shop": "bakery" - }, - "name": "Piekarnia", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Пекарня": { - "tags": { - "name": "Пекарня", - "shop": "bakery" - }, - "name": "Пекарня", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/bakery/Кулиничи": { - "tags": { - "name": "Кулиничи", - "shop": "bakery" - }, - "name": "Кулиничи", - "icon": "bakery", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/sports/Sports Direct": { - "tags": { - "name": "Sports Direct", - "shop": "sports" - }, - "name": "Sports Direct", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/sports/Decathlon": { - "tags": { - "name": "Decathlon", - "shop": "sports" - }, - "name": "Decathlon", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/sports/Intersport": { - "tags": { - "name": "Intersport", - "shop": "sports" - }, - "name": "Intersport", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/sports/Sports Authority": { - "tags": { - "name": "Sports Authority", - "shop": "sports" - }, - "name": "Sports Authority", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/sports/Спортмастер": { - "tags": { - "name": "Спортмастер", - "shop": "sports" - }, - "name": "Спортмастер", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/sports/Sport 2000": { - "tags": { - "name": "Sport 2000", - "shop": "sports" - }, - "name": "Sport 2000", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/sports/Dick's Sporting Goods": { - "tags": { - "name": "Dick's Sporting Goods", - "shop": "sports" - }, - "name": "Dick's Sporting Goods", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/variety_store/Tedi": { - "tags": { - "name": "Tedi", - "shop": "variety_store" - }, - "name": "Tedi", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/variety_store/Dollarama": { - "tags": { - "name": "Dollarama", - "shop": "variety_store" - }, - "name": "Dollarama", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/variety_store/Family Dollar": { - "tags": { - "name": "Family Dollar", - "shop": "variety_store" - }, - "name": "Family Dollar", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/variety_store/Dollar Tree": { - "tags": { - "name": "Dollar Tree", - "shop": "variety_store" - }, - "name": "Dollar Tree", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/pet/PetSmart": { - "tags": { - "name": "PetSmart", - "shop": "pet" - }, - "name": "PetSmart", - "icon": "dog-park", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/pet/Das Futterhaus": { - "tags": { - "name": "Das Futterhaus", - "shop": "pet" - }, - "name": "Das Futterhaus", - "icon": "dog-park", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/pet/Pets at Home": { - "tags": { - "name": "Pets at Home", - "shop": "pet" - }, - "name": "Pets at Home", - "icon": "dog-park", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/pet/Petco": { - "tags": { - "name": "Petco", - "shop": "pet" - }, - "name": "Petco", - "icon": "dog-park", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/pet/Зоомагазин": { - "tags": { - "name": "Зоомагазин", - "shop": "pet" - }, - "name": "Зоомагазин", - "icon": "dog-park", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Reno": { - "tags": { - "name": "Reno", - "shop": "shoes" - }, - "name": "Reno", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Ecco": { - "tags": { - "name": "Ecco", - "shop": "shoes" - }, - "name": "Ecco", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Clarks": { - "tags": { - "name": "Clarks", - "shop": "shoes" - }, - "name": "Clarks", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/La Halle aux Chaussures": { - "tags": { - "name": "La Halle aux Chaussures", - "shop": "shoes" - }, - "name": "La Halle aux Chaussures", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Brantano": { - "tags": { - "name": "Brantano", - "shop": "shoes" - }, - "name": "Brantano", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Geox": { - "tags": { - "name": "Geox", - "shop": "shoes" - }, - "name": "Geox", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Salamander": { - "tags": { - "name": "Salamander", - "shop": "shoes" - }, - "name": "Salamander", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Обувь": { - "tags": { - "name": "Обувь", - "shop": "shoes" - }, - "name": "Обувь", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Payless Shoe Source": { - "tags": { - "name": "Payless Shoe Source", - "shop": "shoes" - }, - "name": "Payless Shoe Source", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Famous Footwear": { - "tags": { - "name": "Famous Footwear", - "shop": "shoes" - }, - "name": "Famous Footwear", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Quick Schuh": { - "tags": { - "name": "Quick Schuh", - "shop": "shoes" - }, - "name": "Quick Schuh", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Shoe Zone": { - "tags": { - "name": "Shoe Zone", - "shop": "shoes" - }, - "name": "Shoe Zone", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Foot Locker": { - "tags": { - "name": "Foot Locker", - "shop": "shoes" - }, - "name": "Foot Locker", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/Bata": { - "tags": { - "name": "Bata", - "shop": "shoes" - }, - "name": "Bata", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/shoes/ЦентрОбувь": { - "tags": { - "name": "ЦентрОбувь", - "shop": "shoes" - }, - "name": "ЦентрОбувь", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/toys/La Grande Récré": { - "tags": { - "name": "La Grande Récré", - "shop": "toys" - }, - "name": "La Grande Récré", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/toys/Toys R Us": { - "tags": { - "name": "Toys R Us", - "shop": "toys" - }, - "name": "Toys R Us", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/toys/Intertoys": { - "tags": { - "name": "Intertoys", - "shop": "toys" - }, - "name": "Intertoys", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/toys/Детский мир": { - "tags": { - "name": "Детский мир", - "shop": "toys" - }, - "name": "Детский мир", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/toys/Игрушки": { - "tags": { - "name": "Игрушки", - "shop": "toys" - }, - "name": "Игрушки", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/travel_agency/Flight Centre": { - "tags": { - "name": "Flight Centre", - "shop": "travel_agency" - }, - "name": "Flight Centre", - "icon": "suitcase", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/travel_agency/Thomas Cook": { - "tags": { - "name": "Thomas Cook", - "shop": "travel_agency" - }, - "name": "Thomas Cook", - "icon": "suitcase", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/jewelry/Bijou Brigitte": { - "tags": { - "name": "Bijou Brigitte", - "shop": "jewelry" - }, - "name": "Bijou Brigitte", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/jewelry/Christ": { - "tags": { - "name": "Christ", - "shop": "jewelry" - }, - "name": "Christ", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/jewelry/Swarovski": { - "tags": { - "name": "Swarovski", - "shop": "jewelry" - }, - "name": "Swarovski", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/optician/Fielmann": { - "tags": { - "name": "Fielmann", - "shop": "optician" - }, - "name": "Fielmann", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/optician/Apollo Optik": { - "tags": { - "name": "Apollo Optik", - "shop": "optician" - }, - "name": "Apollo Optik", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/optician/Vision Express": { - "tags": { - "name": "Vision Express", - "shop": "optician" - }, - "name": "Vision Express", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/optician/Оптика": { - "tags": { - "name": "Оптика", - "shop": "optician" - }, - "name": "Оптика", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/optician/Optic 2000": { - "tags": { - "name": "Optic 2000", - "shop": "optician" - }, - "name": "Optic 2000", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/optician/Alain Afflelou": { - "tags": { - "name": "Alain Afflelou", - "shop": "optician" - }, - "name": "Alain Afflelou", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/optician/Specsavers": { - "tags": { - "name": "Specsavers", - "shop": "optician" - }, - "name": "Specsavers", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/optician/Krys": { - "tags": { - "name": "Krys", - "shop": "optician" - }, - "name": "Krys", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/optician/Atol": { - "tags": { - "name": "Atol", - "shop": "optician" - }, - "name": "Atol", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/video/Blockbuster": { - "tags": { - "name": "Blockbuster", - "shop": "video" - }, - "name": "Blockbuster", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/video/World of Video": { - "tags": { - "name": "World of Video", - "shop": "video" - }, - "name": "World of Video", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/Билайн": { - "tags": { - "name": "Билайн", - "shop": "mobile_phone" - }, - "name": "Билайн", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/ソフトバンクショップ (SoftBank shop)": { - "tags": { - "name": "ソフトバンクショップ (SoftBank shop)", - "shop": "mobile_phone" - }, - "name": "ソフトバンクショップ (SoftBank shop)", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/Vodafone": { - "tags": { - "name": "Vodafone", - "shop": "mobile_phone" - }, - "name": "Vodafone", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/O2": { - "tags": { - "name": "O2", - "shop": "mobile_phone" - }, - "name": "O2", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/Carphone Warehouse": { - "tags": { - "name": "Carphone Warehouse", - "shop": "mobile_phone" - }, - "name": "Carphone Warehouse", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/Orange": { - "tags": { - "name": "Orange", - "shop": "mobile_phone" - }, - "name": "Orange", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/Verizon Wireless": { - "tags": { - "name": "Verizon Wireless", - "shop": "mobile_phone" - }, - "name": "Verizon Wireless", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/Sprint": { - "tags": { - "name": "Sprint", - "shop": "mobile_phone" - }, - "name": "Sprint", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/T-Mobile": { - "tags": { - "name": "T-Mobile", - "shop": "mobile_phone" - }, - "name": "T-Mobile", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/МТС": { - "tags": { - "name": "МТС", - "shop": "mobile_phone" - }, - "name": "МТС", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/Евросеть": { - "tags": { - "name": "Евросеть", - "shop": "mobile_phone" - }, - "name": "Евросеть", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/Bell": { - "tags": { - "name": "Bell", - "shop": "mobile_phone" - }, - "name": "Bell", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/The Phone House": { - "tags": { - "name": "The Phone House", - "shop": "mobile_phone" - }, - "name": "The Phone House", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/SFR": { - "tags": { - "name": "SFR", - "shop": "mobile_phone" - }, - "name": "SFR", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/Связной": { - "tags": { - "name": "Связной", - "shop": "mobile_phone" - }, - "name": "Связной", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/Мегафон": { - "tags": { - "name": "Мегафон", - "shop": "mobile_phone" - }, - "name": "Мегафон", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/AT&T": { - "tags": { - "name": "AT&T", - "shop": "mobile_phone" - }, - "name": "AT&T", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/ドコモショップ (docomo shop)": { - "tags": { - "name": "ドコモショップ (docomo shop)", - "shop": "mobile_phone" - }, - "name": "ドコモショップ (docomo shop)", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/au": { - "tags": { - "name": "au", - "shop": "mobile_phone" - }, - "name": "au", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/Movistar": { - "tags": { - "name": "Movistar", - "shop": "mobile_phone" - }, - "name": "Movistar", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/mobile_phone/Bitė": { - "tags": { - "name": "Bitė", - "shop": "mobile_phone" - }, - "name": "Bitė", - "icon": "mobilephone", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/computer/PC World": { - "tags": { - "name": "PC World", - "shop": "computer" - }, - "name": "PC World", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/computer/DNS": { - "tags": { - "name": "DNS", - "shop": "computer" - }, - "name": "DNS", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/hairdresser/Klier": { - "tags": { - "name": "Klier", - "shop": "hairdresser" - }, - "name": "Klier", - "icon": "hairdresser", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/hairdresser/Supercuts": { - "tags": { - "name": "Supercuts", - "shop": "hairdresser" - }, - "name": "Supercuts", - "icon": "hairdresser", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/hairdresser/Hairkiller": { - "tags": { - "name": "Hairkiller", - "shop": "hairdresser" - }, - "name": "Hairkiller", - "icon": "hairdresser", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/hairdresser/Great Clips": { - "tags": { - "name": "Great Clips", - "shop": "hairdresser" - }, - "name": "Great Clips", - "icon": "hairdresser", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/hairdresser/Парикмахерская": { - "tags": { - "name": "Парикмахерская", - "shop": "hairdresser" - }, - "name": "Парикмахерская", - "icon": "hairdresser", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/hairdresser/Стиль": { - "tags": { - "name": "Стиль", - "shop": "hairdresser" - }, - "name": "Стиль", - "icon": "hairdresser", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/hairdresser/Fryzjer": { - "tags": { - "name": "Fryzjer", - "shop": "hairdresser" - }, - "name": "Fryzjer", - "icon": "hairdresser", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/hairdresser/Franck Provost": { - "tags": { - "name": "Franck Provost", - "shop": "hairdresser" - }, - "name": "Franck Provost", - "icon": "hairdresser", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/hairdresser/Салон красоты": { - "tags": { - "name": "Салон красоты", - "shop": "hairdresser" - }, - "name": "Салон красоты", - "icon": "hairdresser", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/hardware/1000 мелочей": { - "tags": { - "name": "1000 мелочей", - "shop": "hardware" - }, - "name": "1000 мелочей", - "icon": "shop", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - }, - "shop/motorcycle/Yamaha": { - "tags": { - "name": "Yamaha", - "shop": "motorcycle" - }, - "name": "Yamaha", - "icon": "scooter", - "geometry": [ - "point", - "vertex", - "area" - ], - "fields": [ - "address", - "building_area", - "opening_hours" - ], - "suggestion": true - } - }, - "defaults": { - "area": [ - "category-landuse", - "category-building", - "category-water-area", - "leisure/park", - "amenity/hospital", - "amenity/place_of_worship", - "amenity/cafe", - "amenity/restaurant", - "area" - ], - "line": [ - "category-road", - "category-rail", - "category-path", - "category-water-line", - "power/line", - "line" - ], - "point": [ - "leisure/park", - "amenity/hospital", - "amenity/place_of_worship", - "amenity/cafe", - "amenity/restaurant", - "amenity/bar", - "amenity/bank", - "shop/supermarket", - "point" - ], - "vertex": [ - "highway/crossing", - "railway/level_crossing", - "highway/traffic_signals", - "highway/turning_circle", - "highway/mini_roundabout", - "highway/motorway_junction", - "vertex" - ], - "relation": [ - "category-route", - "type/boundary", - "type/restriction", - "type/multipolygon", - "relation" - ] - }, - "categories": { - "category-building": { - "geometry": "area", - "name": "Building", - "icon": "building", - "members": [ - "building/house", - "building/apartments", - "building/commercial", - "building/industrial", - "building/residential", - "building" - ] - }, - "category-golf": { - "geometry": "area", - "name": "Golf", - "icon": "golf", - "members": [ - "golf/fairway", - "golf/green", - "golf/lateral_water_hazard", - "golf/rough", - "golf/bunker", - "golf/tee", - "golf/water_hazard" - ] - }, - "category-landuse": { - "geometry": "area", - "name": "Land Use", - "icon": "land-use", - "members": [ - "landuse/residential", - "landuse/industrial", - "landuse/commercial", - "landuse/retail", - "landuse/farm", - "landuse/farmyard", - "landuse/forest", - "landuse/meadow", - "landuse/cemetery", - "landuse/military" - ] - }, - "category-path": { - "geometry": "line", - "name": "Path", - "icon": "category-path", - "members": [ - "highway/footway", - "highway/cycleway", - "highway/bridleway", - "highway/path", - "highway/steps" - ] - }, - "category-rail": { - "geometry": "line", - "name": "Rail", - "icon": "category-rail", - "members": [ - "railway/rail", - "railway/subway", - "railway/tram", - "railway/monorail", - "railway/disused", - "railway/abandoned" - ] - }, - "category-road": { - "geometry": "line", - "name": "Road", - "icon": "category-roads", - "members": [ - "highway/residential", - "highway/motorway", - "highway/trunk", - "highway/primary", - "highway/secondary", - "highway/tertiary", - "highway/service", - "highway/motorway_link", - "highway/trunk_link", - "highway/primary_link", - "highway/secondary_link", - "highway/tertiary_link", - "highway/unclassified", - "highway/track", - "highway/road" - ] - }, - "category-route": { - "geometry": "relation", - "name": "Route", - "icon": "route", - "members": [ - "type/route/road", - "type/route/bicycle", - "type/route/foot", - "type/route/hiking", - "type/route/bus", - "type/route/train", - "type/route/tram", - "type/route/ferry", - "type/route/power", - "type/route/pipeline", - "type/route/detour", - "type/route_master", - "type/route" - ] - }, - "category-water-area": { - "geometry": "area", - "name": "Water", - "icon": "water", - "members": [ - "natural/water/lake", - "natural/water/pond", - "natural/water/reservoir", - "natural/water" - ] - }, - "category-water-line": { - "geometry": "line", - "name": "Water", - "icon": "category-water", - "members": [ - "waterway/river", - "waterway/stream", - "waterway/canal", - "waterway/ditch", - "waterway/drain" - ] - } - }, - "fields": { - "access": { - "keys": [ - "access", - "foot", - "motor_vehicle", - "bicycle", - "horse" - ], - "reference": { - "key": "access" - }, - "type": "access", - "label": "Access", - "placeholder": "Unknown", - "strings": { - "types": { - "access": "General", - "foot": "Foot", - "motor_vehicle": "Motor Vehicles", - "bicycle": "Bicycles", - "horse": "Horses" - }, - "options": { - "yes": { - "title": "Allowed", - "description": "Access permitted by law; a right of way" - }, - "no": { - "title": "Prohibited", - "description": "Access not permitted to the general public" - }, - "permissive": { - "title": "Permissive", - "description": "Access permitted until such time as the owner revokes the permission" - }, - "private": { - "title": "Private", - "description": "Access permitted only with permission of the owner on an individual basis" - }, - "designated": { - "title": "Designated", - "description": "Access permitted according to signs or specific local laws" - }, - "destination": { - "title": "Destination", - "description": "Access permitted only to reach a destination" - } - } - } - }, - "access_simple": { - "key": "access", - "type": "combo", - "label": "Access", - "options": [ - "public", - "permissive", - "private", - "customers" - ] - }, - "address": { - "type": "address", - "keys": [ - "addr:housenumber", - "addr:street", - "addr:city", - "addr:postcode" - ], - "reference": { - "key": "addr" - }, - "icon": "address", - "universal": true, - "label": "Address", - "strings": { - "placeholders": { - "number": "123", - "street": "Street", - "city": "City", - "postcode": "Postal code" - } - } - }, - "admin_level": { - "key": "admin_level", - "type": "number", - "label": "Admin Level" - }, - "aerialway": { - "key": "aerialway", - "type": "typeCombo", - "label": "Type" - }, - "aerialway/access": { - "key": "aerialway:access", - "type": "combo", - "options": [ - "entry", - "exit", - "both" - ], - "label": "Access" - }, - "aerialway/bubble": { - "key": "aerialway:bubble", - "type": "check", - "label": "Bubble" - }, - "aerialway/capacity": { - "key": "aerialway:capacity", - "type": "number", - "label": "Capacity (per hour)", - "placeholder": "500, 2500, 5000..." - }, - "aerialway/duration": { - "key": "aerialway:duration", - "type": "number", - "label": "Duration (minutes)", - "placeholder": "1, 2, 3..." - }, - "aerialway/heating": { - "key": "aerialway:heating", - "type": "check", - "label": "Heated" - }, - "aerialway/occupancy": { - "key": "aerialway:occupancy", - "type": "number", - "label": "Occupancy", - "placeholder": "2, 4, 8..." - }, - "aerialway/summer/access": { - "key": "aerialway:summer:access", - "type": "combo", - "options": [ - "entry", - "exit", - "both" - ], - "label": "Access (summer)" - }, - "aeroway": { - "key": "aeroway", - "type": "typeCombo", - "label": "Type" - }, - "amenity": { - "key": "amenity", - "type": "typeCombo", - "label": "Type" - }, - "artist": { - "key": "artist_name", - "type": "text", - "label": "Artist" - }, - "artwork_type": { - "key": "artwork_type", - "type": "combo", - "label": "Type" - }, - "atm": { - "key": "atm", - "type": "check", - "label": "ATM" - }, - "backrest": { - "key": "backrest", - "type": "check", - "label": "Backrest" - }, - "barrier": { - "key": "barrier", - "type": "typeCombo", - "label": "Type" - }, - "bicycle_parking": { - "key": "bicycle_parking", - "type": "combo", - "label": "Type" - }, - "boundary": { - "key": "boundary", - "type": "combo", - "label": "Type" - }, - "building": { - "key": "building", - "type": "typeCombo", - "label": "Building" - }, - "building_area": { - "key": "building", - "type": "defaultcheck", - "default": "yes", - "geometry": "area", - "label": "Building" - }, - "capacity": { - "key": "capacity", - "type": "number", - "label": "Capacity", - "placeholder": "50, 100, 200..." - }, - "cardinal_direction": { - "key": "direction", - "type": "combo", - "options": [ - "N", - "E", - "S", - "W", - "NE", - "SE", - "SW", - "NNE", - "ENE", - "ESE", - "SSE", - "SSW", - "WSW", - "WNW", - "NNW" - ], - "label": "Direction" - }, - "clock_direction": { - "key": "direction", - "type": "combo", - "options": [ - "clockwise", - "anticlockwise" - ], - "label": "Direction", - "strings": { - "options": { - "clockwise": "Clockwise", - "anticlockwise": "Counterclockwise" - } - } - }, - "collection_times": { - "key": "collection_times", - "type": "text", - "label": "Collection Times" - }, - "construction": { - "key": "construction", - "type": "combo", - "label": "Type" - }, - "country": { - "key": "country", - "type": "combo", - "label": "Country" - }, - "covered": { - "key": "covered", - "type": "check", - "label": "Covered" - }, - "crop": { - "key": "crop", - "type": "combo", - "label": "Crop" - }, - "crossing": { - "key": "crossing", - "type": "combo", - "label": "Type" - }, - "cuisine": { - "key": "cuisine", - "type": "combo", - "indexed": true, - "label": "Cuisine" - }, - "denomination": { - "key": "denomination", - "type": "combo", - "label": "Denomination" - }, - "denotation": { - "key": "denotation", - "type": "combo", - "label": "Denotation" - }, - "description": { - "key": "description", - "type": "textarea", - "label": "Description" - }, - "electrified": { - "key": "electrified", - "type": "combo", - "label": "Electrification", - "options": [ - "contact_line", - "rail", - "yes", - "no" - ] - }, - "elevation": { - "key": "ele", - "type": "number", - "icon": "elevation", - "universal": true, - "label": "Elevation" - }, - "emergency": { - "key": "emergency", - "type": "check", - "label": "Emergency" - }, - "entrance": { - "key": "entrance", - "type": "typeCombo", - "label": "Type" - }, - "fax": { - "key": "fax", - "type": "tel", - "label": "Fax", - "placeholder": "+31 42 123 4567" - }, - "fee": { - "key": "fee", - "type": "check", - "label": "Fee" - }, - "fire_hydrant/type": { - "key": "fire_hydrant:type", - "type": "combo", - "options": [ - "pillar", - "pond", - "underground", - "wall" - ], - "label": "Type" - }, - "fixme": { - "key": "fixme", - "type": "textarea", - "label": "Fix Me" - }, - "fuel": { - "key": "fuel", - "type": "combo", - "label": "Fuel" - }, - "fuel/biodiesel": { - "key": "fuel:biodiesel", - "type": "check", - "label": "Sells Biodiesel" - }, - "fuel/diesel": { - "key": "fuel:diesel", - "type": "check", - "label": "Sells Diesel" - }, - "fuel/e10": { - "key": "fuel:e10", - "type": "check", - "label": "Sells E10" - }, - "fuel/e85": { - "key": "fuel:e85", - "type": "check", - "label": "Sells E85" - }, - "fuel/lpg": { - "key": "fuel:lpg", - "type": "check", - "label": "Sells Propane" - }, - "fuel/octane_100": { - "key": "fuel:octane_100", - "type": "check", - "label": "Sells Racing Gasoline" - }, - "fuel/octane_91": { - "key": "fuel:octane_91", - "type": "check", - "label": "Sells Regular Gasoline" - }, - "fuel/octane_95": { - "key": "fuel:octane_95", - "type": "check", - "label": "Sells Midgrade Gasoline" - }, - "fuel/octane_98": { - "key": "fuel:octane_98", - "type": "check", - "label": "Sells Premium Gasoline" - }, - "gauge": { - "key": "gauge", - "type": "combo", - "label": "Gauge" - }, - "generator/method": { - "key": "generator:method", - "type": "combo", - "label": "Method" - }, - "generator/source": { - "key": "generator:source", - "type": "combo", - "label": "Source" - }, - "generator/type": { - "key": "generator:type", - "type": "combo", - "label": "Type" - }, - "golf_hole": { - "key": "ref", - "type": "text", - "label": "Reference", - "placeholder": "Hole number (1-18)" - }, - "handicap": { - "key": "handicap", - "type": "number", - "label": "Handicap", - "placeholder": "1-18" - }, - "highway": { - "key": "highway", - "type": "typeCombo", - "label": "Type" - }, - "historic": { - "key": "historic", - "type": "typeCombo", - "label": "Type" - }, - "hoops": { - "key": "hoops", - "type": "number", - "label": "Hoops", - "placeholder": "1, 2, 4..." - }, - "iata": { - "key": "iata", - "type": "text", - "label": "IATA" - }, - "icao": { - "key": "icao", - "type": "text", - "label": "ICAO" - }, - "incline": { - "key": "incline", - "type": "combo", - "label": "Incline" - }, - "information": { - "key": "information", - "type": "typeCombo", - "label": "Type" - }, - "internet_access": { - "key": "internet_access", - "type": "combo", - "options": [ - "yes", - "no", - "wlan", - "wired", - "terminal" - ], - "label": "Internet Access", - "strings": { - "options": { - "yes": "Yes", - "no": "No", - "wlan": "Wifi", - "wired": "Wired", - "terminal": "Terminal" - } - } - }, - "landuse": { - "key": "landuse", - "type": "typeCombo", - "label": "Type" - }, - "lanes": { - "key": "lanes", - "type": "number", - "label": "Lanes", - "placeholder": "1, 2, 3..." - }, - "layer": { - "key": "layer", - "type": "combo", - "label": "Layer" - }, - "leisure": { - "key": "leisure", - "type": "typeCombo", - "label": "Type" - }, - "length": { - "key": "length", - "type": "number", - "label": "Length (Meters)" - }, - "levels": { - "key": "building:levels", - "type": "number", - "label": "Levels", - "placeholder": "2, 4, 6..." - }, - "lit": { - "key": "lit", - "type": "check", - "label": "Lit" - }, - "location": { - "key": "location", - "type": "combo", - "label": "Location" - }, - "man_made": { - "key": "man_made", - "type": "typeCombo", - "label": "Type" - }, - "maxspeed": { - "key": "maxspeed", - "type": "maxspeed", - "label": "Speed Limit", - "placeholder": "40, 50, 60..." - }, - "name": { - "key": "name", - "type": "localized", - "label": "Name", - "placeholder": "Common name (if any)" - }, - "natural": { - "key": "natural", - "type": "typeCombo", - "label": "Natural" - }, - "network": { - "key": "network", - "type": "text", - "label": "Network" - }, - "note": { - "key": "note", - "type": "textarea", - "universal": true, - "icon": "note", - "label": "Note" - }, - "office": { - "key": "office", - "type": "typeCombo", - "label": "Type" - }, - "oneway": { - "key": "oneway", - "type": "check", - "label": "One Way" - }, - "oneway_yes": { - "key": "oneway", - "type": "check", - "default": "yes", - "label": "One Way" - }, - "opening_hours": { - "key": "opening_hours", - "type": "text", - "label": "Hours" - }, - "operator": { - "key": "operator", - "type": "text", - "label": "Operator" - }, - "par": { - "key": "par", - "type": "number", - "label": "Par", - "placeholder": "3, 4, 5..." - }, - "park_ride": { - "key": "park_ride", - "type": "check", - "label": "Park and Ride" - }, - "parking": { - "key": "parking", - "type": "combo", - "options": [ - "surface", - "multi-storey", - "underground", - "sheds", - "carports", - "garage_boxes", - "lane" - ], - "label": "Type" - }, - "phone": { - "key": "phone", - "type": "tel", - "icon": "telephone", - "universal": true, - "label": "Phone", - "placeholder": "+31 42 123 4567" - }, - "piste/difficulty": { - "key": "piste:difficulty", - "type": "combo", - "label": "Difficulty" - }, - "piste/grooming": { - "key": "piste:grooming", - "type": "combo", - "label": "Grooming" - }, - "piste/type": { - "key": "piste:type", - "type": "typeCombo", - "label": "Type" - }, - "place": { - "key": "place", - "type": "typeCombo", - "label": "Type" - }, - "population": { - "key": "population", - "type": "text", - "label": "Population" - }, - "power": { - "key": "power", - "type": "typeCombo", - "label": "Type" - }, - "railway": { - "key": "railway", - "type": "typeCombo", - "label": "Type" - }, - "recycling/cans": { - "key": "recycling:cans", - "type": "check", - "label": "Accepts Cans" - }, - "recycling/clothes": { - "key": "recycling:clothes", - "type": "check", - "label": "Accepts Clothes" - }, - "recycling/glass": { - "key": "recycling:glass", - "type": "check", - "label": "Accepts Glass" - }, - "recycling/paper": { - "key": "recycling:paper", - "type": "check", - "label": "Accepts Paper" - }, - "ref": { - "key": "ref", - "type": "text", - "label": "Reference" - }, - "relation": { - "key": "type", - "type": "combo", - "label": "Type" - }, - "religion": { - "key": "religion", - "type": "combo", - "options": [ - "christian", - "muslim", - "buddhist", - "jewish", - "hindu", - "shinto", - "taoist" - ], - "label": "Religion", - "strings": { - "options": { - "christian": "Christian", - "muslim": "Muslim", - "buddhist": "Buddhist", - "jewish": "Jewish", - "hindu": "Hindu", - "shinto": "Shinto", - "taoist": "Taoist" - } - } - }, - "restriction": { - "key": "restriction", - "type": "combo", - "label": "Type" - }, - "route": { - "key": "route", - "type": "combo", - "label": "Type" - }, - "route_master": { - "key": "route_master", - "type": "combo", - "label": "Type" - }, - "sac_scale": { - "key": "sac_scale", - "type": "combo", - "label": "Path Difficulty" - }, - "seasonal": { - "key": "seasonal", - "type": "check", - "label": "Seasonal" - }, - "service": { - "key": "service", - "type": "combo", - "options": [ - "parking_aisle", - "driveway", - "alley", - "drive-through", - "emergency_access" - ], - "label": "Type" - }, - "shelter": { - "key": "shelter", - "type": "check", - "label": "Shelter" - }, - "shelter_type": { - "key": "shelter_type", - "type": "combo", - "options": [ - "public_transport", - "picnic_shelter", - "weather_shelter", - "lean_to", - "basic_hut", - "field_shelter", - "rock_shelter" - ], - "label": "Type" - }, - "shop": { - "key": "shop", - "type": "typeCombo", - "label": "Type" - }, - "sloped_curb": { - "key": "sloped_curb", - "type": "combo", - "label": "Sloped Curb" - }, - "smoking": { - "key": "smoking", - "type": "combo", - "options": [ - "no", - "outside", - "separated", - "yes" - ], - "label": "Smoking" - }, - "social_facility_for": { - "key": "social_facility:for", - "type": "radio", - "label": "People served", - "placeholder": "Homeless, Disabled, Child, etc", - "options": [ - "abused", - "child", - "disabled", - "diseased", - "drug_addicted", - "homeless", - "juvenile", - "mental_health", - "migrant", - "orphan", - "senior", - "underprivileged", - "unemployed", - "victim" - ] - }, - "source": { - "key": "source", - "type": "text", - "icon": "source", - "universal": true, - "label": "Source" - }, - "sport": { - "key": "sport", - "type": "combo", - "label": "Sport" - }, - "sport_ice": { - "key": "sport", - "type": "combo", - "options": [ - "skating", - "hockey", - "multi", - "curling", - "ice_stock" - ], - "label": "Sport" - }, - "structure": { - "type": "radio", - "keys": [ - "bridge", - "tunnel", - "embankment", - "cutting", - "ford" - ], - "label": "Structure", - "placeholder": "Unknown", - "strings": { - "options": { - "bridge": "Bridge", - "tunnel": "Tunnel", - "embankment": "Embankment", - "cutting": "Cutting", - "ford": "Ford" - } - } - }, - "studio_type": { - "key": "type", - "type": "combo", - "options": [ - "audio", - "video" - ], - "label": "Type" - }, - "supervised": { - "key": "supervised", - "type": "check", - "label": "Supervised" - }, - "surface": { - "key": "surface", - "type": "combo", - "label": "Surface" - }, - "tactile_paving": { - "key": "tactile_paving", - "type": "check", - "label": "Tactile Paving" - }, - "toilets/disposal": { - "key": "toilets:disposal", - "type": "combo", - "label": "Disposal" - }, - "tourism": { - "key": "tourism", - "type": "typeCombo", - "label": "Type" - }, - "towertype": { - "key": "tower:type", - "type": "combo", - "label": "Tower type" - }, - "tracktype": { - "key": "tracktype", - "type": "combo", - "label": "Type" - }, - "trail_visibility": { - "key": "trail_visibility", - "type": "combo", - "label": "Trail Visibility" - }, - "tree_type": { - "key": "type", - "type": "combo", - "options": [ - "broad_leaved", - "conifer", - "palm" - ], - "label": "Type" - }, - "trees": { - "key": "trees", - "type": "combo", - "label": "Trees" - }, - "tunnel": { - "key": "tunnel", - "type": "combo", - "label": "Tunnel" - }, - "vending": { - "key": "vending", - "type": "combo", - "label": "Type of Goods" - }, - "water": { - "key": "water", - "type": "combo", - "label": "Type" - }, - "waterway": { - "key": "waterway", - "type": "typeCombo", - "label": "Type" - }, - "website": { - "key": "website", - "type": "url", - "icon": "website", - "placeholder": "http://example.com/", - "universal": true, - "label": "Website" - }, - "wetland": { - "key": "wetland", - "type": "combo", - "label": "Type" - }, - "wheelchair": { - "key": "wheelchair", - "type": "radio", - "options": [ - "yes", - "limited", - "no" - ], - "icon": "wheelchair", - "universal": true, - "label": "Wheelchair Access" - }, - "width": { - "key": "width", - "type": "number", - "label": "Width (Meters)" - }, - "wikipedia": { - "key": "wikipedia", - "type": "wikipedia", - "icon": "wikipedia", - "universal": true, - "label": "Wikipedia" - }, - "wood": { - "key": "wood", - "type": "combo", - "label": "Type" - } - } - }, - "imperial": { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "properties": { - "id": 0 - }, - "geometry": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ - -1.426496, - 50.639342 - ], - [ - -1.445953, - 50.648139 - ], - [ - -1.452789, - 50.654283 - ], - [ - -1.485951, - 50.669338 - ], - [ - -1.497426, - 50.672309 - ], - [ - -1.535146, - 50.669379 - ], - [ - -1.551503, - 50.665107 - ], - [ - -1.569488, - 50.658026 - ], - [ - -1.545318, - 50.686103 - ], - [ - -1.50593, - 50.707709 - ], - [ - -1.418691, - 50.733791 - ], - [ - -1.420888, - 50.730455 - ], - [ - -1.423451, - 50.7237 - ], - [ - -1.425364, - 50.72012 - ], - [ - -1.400868, - 50.721991 - ], - [ - -1.377553, - 50.734198 - ], - [ - -1.343495, - 50.761054 - ], - [ - -1.318512, - 50.772162 - ], - [ - -1.295766, - 50.773179 - ], - [ - -1.144276, - 50.733791 - ], - [ - -1.119537, - 50.734198 - ], - [ - -1.10912, - 50.732856 - ], - [ - -1.097035, - 50.726955 - ], - [ - -1.096425, - 50.724433 - ], - [ - -1.097646, - 50.71601 - ], - [ - -1.097035, - 50.713324 - ], - [ - -1.094228, - 50.712633 - ], - [ - -1.085561, - 50.714016 - ], - [ - -1.082753, - 50.713324 - ], - [ - -1.062327, - 50.692816 - ], - [ - -1.062327, - 50.685289 - ], - [ - -1.066965, - 50.685248 - ], - [ - -1.069651, - 50.683498 - ], - [ - -1.071889, - 50.680976 - ], - [ - -1.075307, - 50.678534 - ], - [ - -1.112701, - 50.671454 - ], - [ - -1.128651, - 50.666449 - ], - [ - -1.156361, - 50.650784 - ], - [ - -1.162221, - 50.645982 - ], - [ - -1.164703, - 50.640937 - ], - [ - -1.164666, - 50.639543 - ], - [ - -1.426496, - 50.639342 - ] - ] - ], - [ - [ - [ - -7.240314, - 55.050389 - ], - [ - -7.013736, - 55.1615 - ], - [ - -6.958913, - 55.20349 - ], - [ - -6.571562, - 55.268366 - ], - [ - -6.509633, - 55.31398 - ], - [ - -6.226158, - 55.344406 - ], - [ - -6.07105, - 55.25001 - ], - [ - -5.712696, - 55.017635 - ], - [ - -5.242021, - 54.415204 - ], - [ - -5.695554, - 54.14284 - ], - [ - -5.72473, - 54.07455 - ], - [ - -6.041633, - 54.006238 - ], - [ - -6.153953, - 54.054931 - ], - [ - -6.220539, - 54.098803 - ], - [ - -6.242502, - 54.099758 - ], - [ - -6.263661, - 54.104682 - ], - [ - -6.269887, - 54.097927 - ], - [ - -6.28465, - 54.105226 - ], - [ - -6.299585, - 54.104037 - ], - [ - -6.313796, - 54.099696 - ], - [ - -6.327128, - 54.097888 - ], - [ - -6.338962, - 54.102952 - ], - [ - -6.346662, - 54.109877 - ], - [ - -6.354827, - 54.110652 - ], - [ - -6.368108, - 54.097319 - ], - [ - -6.369348, - 54.091118 - ], - [ - -6.367643, - 54.083418 - ], - [ - -6.366919, - 54.075098 - ], - [ - -6.371157, - 54.066778 - ], - [ - -6.377513, - 54.063264 - ], - [ - -6.401026, - 54.060887 - ], - [ - -6.426761, - 54.05541 - ], - [ - -6.433892, - 54.055306 - ], - [ - -6.4403, - 54.057993 - ], - [ - -6.446243, - 54.062438 - ], - [ - -6.450222, - 54.066675 - ], - [ - -6.450894, - 54.068432 - ], - [ - -6.47854, - 54.067709 - ], - [ - -6.564013, - 54.04895 - ], - [ - -6.571868, - 54.049519 - ], - [ - -6.587164, - 54.053343 - ], - [ - -6.595071, - 54.052412 - ], - [ - -6.60029, - 54.04895 - ], - [ - -6.605217, - 54.044475 - ], - [ - -6.610987, - 54.039235 - ], - [ - -6.616465, - 54.037271 - ], - [ - -6.630624, - 54.041819 - ], - [ - -6.657289, - 54.061146 - ], - [ - -6.672534, - 54.068432 - ], - [ - -6.657082, - 54.091945 - ], - [ - -6.655791, - 54.103314 - ], - [ - -6.666436, - 54.114786 - ], - [ - -6.643957, - 54.131839 - ], - [ - -6.634552, - 54.150133 - ], - [ - -6.640339, - 54.168013 - ], - [ - -6.648448, - 54.173665 - ], - [ - -6.663025, - 54.183826 - ], - [ - -6.683954, - 54.194368 - ], - [ - -6.694651, - 54.197985 - ], - [ - -6.706537, - 54.198915 - ], - [ - -6.717234, - 54.195143 - ], - [ - -6.724779, - 54.188631 - ], - [ - -6.73284, - 54.183567 - ], - [ - -6.744777, - 54.184187 - ], - [ - -6.766481, - 54.192352 - ], - [ - -6.787824, - 54.202998 - ], - [ - -6.807358, - 54.21633 - ], - [ - -6.823946, - 54.23235 - ], - [ - -6.829733, - 54.242375 - ], - [ - -6.833196, - 54.25209 - ], - [ - -6.837743, - 54.260513 - ], - [ - -6.846683, - 54.266456 - ], - [ - -6.882185, - 54.277257 - ], - [ - -6.864667, - 54.282734 - ], - [ - -6.856657, - 54.292811 - ], - [ - -6.858414, - 54.307332 - ], - [ - -6.870015, - 54.326001 - ], - [ - -6.879705, - 54.341594 - ], - [ - -6.885957, - 54.345624 - ], - [ - -6.897895, - 54.346193 - ], - [ - -6.905956, - 54.349035 - ], - [ - -6.915051, - 54.365933 - ], - [ - -6.922028, - 54.372703 - ], - [ - -6.984091, - 54.403089 - ], - [ - -7.017836, - 54.413166 - ], - [ - -7.049255, - 54.411512 - ], - [ - -7.078504, - 54.394717 - ], - [ - -7.127028, - 54.349759 - ], - [ - -7.159894, - 54.335186 - ], - [ - -7.168059, - 54.335031 - ], - [ - -7.185629, - 54.336943 - ], - [ - -7.18947, - 54.335692 - ], - [ - -7.19245, - 54.334721 - ], - [ - -7.193949, - 54.329967 - ], - [ - -7.191468, - 54.323869 - ], - [ - -7.187644, - 54.318804 - ], - [ - -7.185009, - 54.317254 - ], - [ - -7.184647, - 54.316634 - ], - [ - -7.192399, - 54.307384 - ], - [ - -7.193691, - 54.307539 - ], - [ - -7.199168, - 54.303457 - ], - [ - -7.206661, - 54.304903 - ], - [ - -7.211467, - 54.30418 - ], - [ - -7.209038, - 54.293431 - ], - [ - -7.1755, - 54.283664 - ], - [ - -7.181495, - 54.269763 - ], - [ - -7.14589, - 54.25209 - ], - [ - -7.159739, - 54.24067 - ], - [ - -7.153331, - 54.224237 - ], - [ - -7.174725, - 54.216072 - ], - [ - -7.229502, - 54.207545 - ], - [ - -7.240871, - 54.202326 - ], - [ - -7.249088, - 54.197416 - ], - [ - -7.255496, - 54.190854 - ], - [ - -7.261128, - 54.18088 - ], - [ - -7.256322, - 54.176901 - ], - [ - -7.247021, - 54.17225 - ], - [ - -7.24578, - 54.166979 - ], - [ - -7.265366, - 54.16114 - ], - [ - -7.26087, - 54.151166 - ], - [ - -7.263505, - 54.140986 - ], - [ - -7.27074, - 54.132253 - ], - [ - -7.280042, - 54.126155 - ], - [ - -7.293788, - 54.122021 - ], - [ - -7.297353, - 54.125896 - ], - [ - -7.29632, - 54.134991 - ], - [ - -7.296423, - 54.146515 - ], - [ - -7.295028, - 54.155404 - ], - [ - -7.292134, - 54.162638 - ], - [ - -7.295545, - 54.165119 - ], - [ - -7.325982, - 54.154577 - ], - [ - -7.333165, - 54.149409 - ], - [ - -7.333165, - 54.142743 - ], - [ - -7.310324, - 54.114683 - ], - [ - -7.316489, - 54.11428 - ], - [ - -7.326964, - 54.113597 - ], - [ - -7.375488, - 54.123312 - ], - [ - -7.390216, - 54.121194 - ], - [ - -7.39466, - 54.121917 - ], - [ - -7.396624, - 54.126258 - ], - [ - -7.403962, - 54.135043 - ], - [ - -7.41223, - 54.136438 - ], - [ - -7.422255, - 54.135456 - ], - [ - -7.425769, - 54.136955 - ], - [ - -7.414659, - 54.145688 - ], - [ - -7.439619, - 54.146929 - ], - [ - -7.480753, - 54.127653 - ], - [ - -7.502302, - 54.125121 - ], - [ - -7.609014, - 54.139901 - ], - [ - -7.620796, - 54.144965 - ], - [ - -7.624052, - 54.153336 - ], - [ - -7.625706, - 54.162173 - ], - [ - -7.632682, - 54.168529 - ], - [ - -7.70477, - 54.200362 - ], - [ - -7.722599, - 54.202326 - ], - [ - -7.782078, - 54.2 - ], - [ - -7.836959, - 54.204341 - ], - [ - -7.856441, - 54.211421 - ], - [ - -7.86967, - 54.226872 - ], - [ - -7.873649, - 54.271055 - ], - [ - -7.880264, - 54.287023 - ], - [ - -7.894966, - 54.293586 - ], - [ - -7.93411, - 54.297049 - ], - [ - -7.942075, - 54.298873 - ], - [ - -7.950802, - 54.300873 - ], - [ - -7.96801, - 54.31219 - ], - [ - -7.981033, - 54.326556 - ], - [ - -8.002194, - 54.357923 - ], - [ - -8.03134, - 54.358027 - ], - [ - -8.05648, - 54.365882 - ], - [ - -8.079941, - 54.380196 - ], - [ - -8.122419, - 54.415233 - ], - [ - -8.146346, - 54.430736 - ], - [ - -8.156035, - 54.439055 - ], - [ - -8.158128, - 54.447117 - ], - [ - -8.161177, - 54.454817 - ], - [ - -8.173837, - 54.461741 - ], - [ - -8.168467, - 54.463477 - ], - [ - -8.15017, - 54.46939 - ], - [ - -8.097046, - 54.478588 - ], - [ - -8.072448, - 54.487063 - ], - [ - -8.060976, - 54.493316 - ], - [ - -8.05586, - 54.497553 - ], - [ - -8.043561, - 54.512229 - ], - [ - -8.023278, - 54.529696 - ], - [ - -8.002194, - 54.543442 - ], - [ - -7.926411, - 54.533055 - ], - [ - -7.887137, - 54.532125 - ], - [ - -7.848844, - 54.54091 - ], - [ - -7.749264, - 54.596152 - ], - [ - -7.707871, - 54.604162 - ], - [ - -7.707944, - 54.604708 - ], - [ - -7.707951, - 54.604763 - ], - [ - -7.710558, - 54.624264 - ], - [ - -7.721204, - 54.625866 - ], - [ - -7.736758, - 54.619251 - ], - [ - -7.753553, - 54.614497 - ], - [ - -7.769159, - 54.618011 - ], - [ - -7.801199, - 54.634806 - ], - [ - -7.814996, - 54.639457 - ], - [ - -7.822541, - 54.638113 - ], - [ - -7.838044, - 54.63124 - ], - [ - -7.846416, - 54.631447 - ], - [ - -7.85427, - 54.636408 - ], - [ - -7.864347, - 54.649069 - ], - [ - -7.872771, - 54.652221 - ], - [ - -7.890082, - 54.655063 - ], - [ - -7.906619, - 54.661316 - ], - [ - -7.914835, - 54.671651 - ], - [ - -7.907135, - 54.686689 - ], - [ - -7.913233, - 54.688653 - ], - [ - -7.929666, - 54.696714 - ], - [ - -7.880109, - 54.711029 - ], - [ - -7.845899, - 54.731027 - ], - [ - -7.832153, - 54.730614 - ], - [ - -7.803576, - 54.716145 - ], - [ - -7.770503, - 54.706016 - ], - [ - -7.736603, - 54.707463 - ], - [ - -7.70229, - 54.718883 - ], - [ - -7.667512, - 54.738779 - ], - [ - -7.649683, - 54.744877 - ], - [ - -7.61537, - 54.739347 - ], - [ - -7.585398, - 54.744722 - ], - [ - -7.566639, - 54.738675 - ], - [ - -7.556149, - 54.738365 - ], - [ - -7.543075, - 54.741673 - ], - [ - -7.543023, - 54.743791 - ], - [ - -7.548398, - 54.747202 - ], - [ - -7.551705, - 54.754695 - ], - [ - -7.549741, - 54.779603 - ], - [ - -7.543385, - 54.793091 - ], - [ - -7.470831, - 54.845284 - ], - [ - -7.45507, - 54.863009 - ], - [ - -7.444735, - 54.884455 - ], - [ - -7.444735, - 54.894893 - ], - [ - -7.448972, - 54.920318 - ], - [ - -7.445251, - 54.932152 - ], - [ - -7.436983, - 54.938301 - ], - [ - -7.417139, - 54.943056 - ], - [ - -7.415755, - 54.944372 - ], - [ - -7.408665, - 54.951117 - ], - [ - -7.407424, - 54.959437 - ], - [ - -7.413109, - 54.984965 - ], - [ - -7.409078, - 54.992045 - ], - [ - -7.403755, - 54.99313 - ], - [ - -7.40112, - 54.994836 - ], - [ - -7.405254, - 55.003569 - ], - [ - -7.376987, - 55.02889 - ], - [ - -7.366962, - 55.035557 - ], - [ - -7.355024, - 55.040931 - ], - [ - -7.291152, - 55.046615 - ], - [ - -7.282987, - 55.051835 - ], - [ - -7.275288, - 55.058863 - ], - [ - -7.266503, - 55.065167 - ], - [ - -7.247097, - 55.069328 - ], - [ - -7.2471, - 55.069322 - ], - [ - -7.256744, - 55.050686 - ], - [ - -7.240956, - 55.050279 - ], - [ - -7.240314, - 55.050389 - ] - ] - ], - [ - [ - [ - -13.688588, - 57.596259 - ], - [ - -13.690419, - 57.596259 - ], - [ - -13.691314, - 57.596503 - ], - [ - -13.691314, - 57.597154 - ], - [ - -13.690419, - 57.597805 - ], - [ - -13.688588, - 57.597805 - ], - [ - -13.687652, - 57.597154 - ], - [ - -13.687652, - 57.596869 - ], - [ - -13.688588, - 57.596259 - ] - ] - ], - [ - [ - [ - -4.839121, - 54.469789 - ], - [ - -4.979941, - 54.457977 - ], - [ - -5.343644, - 54.878637 - ], - [ - -5.308469, - 55.176452 - ], - [ - -6.272566, - 55.418443 - ], - [ - -8.690528, - 57.833706 - ], - [ - -6.344705, - 59.061083 - ], - [ - -4.204785, - 58.63305 - ], - [ - -2.31566, - 60.699068 - ], - [ - -1.695335, - 60.76432 - ], - [ - -1.58092, - 60.866001 - ], - [ - -0.17022, - 60.897204 - ], - [ - -0.800508, - 59.770037 - ], - [ - -1.292368, - 57.732574 - ], - [ - -1.850077, - 55.766368 - ], - [ - -1.73054, - 55.782219 - ], - [ - 1.892395, - 52.815229 - ], - [ - 1.742775, - 51.364209 - ], - [ - 1.080173, - 50.847526 - ], - [ - 0.000774, - 50.664982 - ], - [ - -0.162997, - 50.752401 - ], - [ - -0.725152, - 50.731879 - ], - [ - -0.768853, - 50.741516 - ], - [ - -0.770985, - 50.736884 - ], - [ - -0.789947, - 50.730048 - ], - [ - -0.812815, - 50.734768 - ], - [ - -0.877742, - 50.761156 - ], - [ - -0.942879, - 50.758338 - ], - [ - -0.992581, - 50.737379 - ], - [ - -1.18513, - 50.766989 - ], - [ - -1.282741, - 50.792353 - ], - [ - -1.375004, - 50.772063 - ], - [ - -1.523427, - 50.719605 - ], - [ - -1.630649, - 50.695128 - ], - [ - -1.663617, - 50.670508 - ], - [ - -1.498021, - 50.40831 - ], - [ - -4.097427, - 49.735486 - ], - [ - -6.825199, - 49.700905 - ], - [ - -5.541541, - 51.446591 - ], - [ - -6.03361, - 51.732369 - ], - [ - -4.791746, - 52.635365 - ], - [ - -4.969244, - 52.637413 - ], - [ - -5.049473, - 53.131209 - ], - [ - -4.787393, - 53.409491 - ], - [ - -4.734148, - 53.424866 - ], - [ - -4.917096, - 53.508212 - ], - [ - -4.839121, - 54.469789 - ] - ] - ] - ] - } - }, - { - "type": "Feature", - "properties": { - "id": 0 - }, - "geometry": { - "type": "MultiPolygon", - "coordinates": [ - [ - [ - [ - -157.018938, - 19.300864 - ], - [ - -179.437336, - 27.295312 - ], - [ - -179.480084, - 28.991459 - ], - [ - -168.707465, - 26.30325 - ], - [ - -163.107414, - 24.60499 - ], - [ - -153.841679, - 20.079306 - ], - [ - -154.233846, - 19.433391 - ], - [ - -153.61725, - 18.900587 - ], - [ - -154.429471, - 18.171036 - ], - [ - -156.780638, - 18.718492 - ], - [ - -157.018938, - 19.300864 - ] - ] - ], - [ - [ - [ - -78.91269, - 43.037032 - ], - [ - -78.964351, - 42.976393 - ], - [ - -78.981718, - 42.979043 - ], - [ - -78.998055, - 42.991111 - ], - [ - -79.01189, - 43.004358 - ], - [ - -79.022046, - 43.010539 - ], - [ - -79.023076, - 43.017015 - ], - [ - -79.00983, - 43.050867 - ], - [ - -79.011449, - 43.065291 - ], - [ - -78.993051, - 43.066174 - ], - [ - -78.975536, - 43.069707 - ], - [ - -78.958905, - 43.070884 - ], - [ - -78.943304, - 43.065291 - ], - [ - -78.917399, - 43.058521 - ], - [ - -78.908569, - 43.049396 - ], - [ - -78.91269, - 43.037032 - ] - ] - ], - [ - [ - [ - -123.03529, - 48.992515 - ], - [ - -123.035308, - 48.992499 - ], - [ - -123.045277, - 48.984361 - ], - [ - -123.08849, - 48.972235 - ], - [ - -123.089345, - 48.987982 - ], - [ - -123.090484, - 48.992499 - ], - [ - -123.090488, - 48.992515 - ], - [ - -123.035306, - 48.992515 - ], - [ - -123.03529, - 48.992515 - ] - ] - ], - [ - [ - [ - -103.837038, - 29.279906 - ], - [ - -103.864121, - 29.281366 - ], - [ - -103.928122, - 29.293019 - ], - [ - -104.01915, - 29.32033 - ], - [ - -104.057313, - 29.339037 - ], - [ - -104.105424, - 29.385675 - ], - [ - -104.139789, - 29.400584 - ], - [ - -104.161648, - 29.416759 - ], - [ - -104.194514, - 29.448927 - ], - [ - -104.212291, - 29.484661 - ], - [ - -104.218698, - 29.489829 - ], - [ - -104.227148, - 29.493033 - ], - [ - -104.251022, - 29.508588 - ], - [ - -104.267171, - 29.526571 - ], - [ - -104.292751, - 29.532824 - ], - [ - -104.320604, - 29.532255 - ], - [ - -104.338484, - 29.524013 - ], - [ - -104.349026, - 29.537578 - ], - [ - -104.430443, - 29.582795 - ], - [ - -104.437832, - 29.58543 - ], - [ - -104.444008, - 29.589203 - ], - [ - -104.448555, - 29.597678 - ], - [ - -104.452069, - 29.607109 - ], - [ - -104.455222, - 29.613387 - ], - [ - -104.469381, - 29.625402 - ], - [ - -104.516639, - 29.654315 - ], - [ - -104.530824, - 29.667906 - ], - [ - -104.535036, - 29.677802 - ], - [ - -104.535191, - 29.687853 - ], - [ - -104.537103, - 29.702116 - ], - [ - -104.543666, - 29.71643 - ], - [ - -104.561391, - 29.745421 - ], - [ - -104.570279, - 29.787511 - ], - [ - -104.583586, - 29.802575 - ], - [ - -104.601207, - 29.81477 - ], - [ - -104.619682, - 29.833064 - ], - [ - -104.623764, - 29.841487 - ], - [ - -104.637588, - 29.887996 - ], - [ - -104.656346, - 29.908201 - ], - [ - -104.660635, - 29.918433 - ], - [ - -104.663478, - 29.923084 - ], - [ - -104.676526, - 29.93683 - ], - [ - -104.680479, - 29.942308 - ], - [ - -104.682469, - 29.952126 - ], - [ - -104.680117, - 29.967784 - ], - [ - -104.680479, - 29.976466 - ], - [ - -104.699108, - 30.03145 - ], - [ - -104.701589, - 30.055324 - ], - [ - -104.698592, - 30.075271 - ], - [ - -104.684639, - 30.111135 - ], - [ - -104.680479, - 30.134131 - ], - [ - -104.67867, - 30.170356 - ], - [ - -104.681564, - 30.192939 - ], - [ - -104.695853, - 30.208441 - ], - [ - -104.715231, - 30.243995 - ], - [ - -104.724585, - 30.252211 - ], - [ - -104.742155, - 30.25986 - ], - [ - -104.74939, - 30.264459 - ], - [ - -104.761689, - 30.284199 - ], - [ - -104.774143, - 30.311588 - ], - [ - -104.788767, - 30.335927 - ], - [ - -104.807732, - 30.346418 - ], - [ - -104.8129, - 30.350707 - ], - [ - -104.814967, - 30.360577 - ], - [ - -104.816001, - 30.371997 - ], - [ - -104.818274, - 30.380524 - ], - [ - -104.824269, - 30.38719 - ], - [ - -104.83755, - 30.394063 - ], - [ - -104.844939, - 30.40104 - ], - [ - -104.853259, - 30.41215 - ], - [ - -104.855016, - 30.417473 - ], - [ - -104.853621, - 30.423984 - ], - [ - -104.852432, - 30.438867 - ], - [ - -104.854655, - 30.448737 - ], - [ - -104.864473, - 30.462018 - ], - [ - -104.866695, - 30.473025 - ], - [ - -104.865248, - 30.479898 - ], - [ - -104.859615, - 30.491112 - ], - [ - -104.859254, - 30.497261 - ], - [ - -104.863026, - 30.502377 - ], - [ - -104.879718, - 30.510852 - ], - [ - -104.882146, - 30.520929 - ], - [ - -104.884007, - 30.541858 - ], - [ - -104.886591, - 30.551883 - ], - [ - -104.898166, - 30.569401 - ], - [ - -104.928242, - 30.599529 - ], - [ - -104.93434, - 30.610536 - ], - [ - -104.941057, - 30.61405 - ], - [ - -104.972735, - 30.618029 - ], - [ - -104.98276, - 30.620716 - ], - [ - -104.989117, - 30.629553 - ], - [ - -104.991649, - 30.640301 - ], - [ - -104.992941, - 30.651464 - ], - [ - -104.995783, - 30.661747 - ], - [ - -105.008495, - 30.676992 - ], - [ - -105.027977, - 30.690117 - ], - [ - -105.049475, - 30.699264 - ], - [ - -105.06813, - 30.702675 - ], - [ - -105.087043, - 30.709806 - ], - [ - -105.133604, - 30.757917 - ], - [ - -105.140425, - 30.750476 - ], - [ - -105.153241, - 30.763188 - ], - [ - -105.157788, - 30.76572 - ], - [ - -105.160889, - 30.764118 - ], - [ - -105.162698, - 30.774919 - ], - [ - -105.167297, - 30.781171 - ], - [ - -105.17479, - 30.783962 - ], - [ - -105.185125, - 30.784634 - ], - [ - -105.195306, - 30.787941 - ], - [ - -105.204917, - 30.80241 - ], - [ - -105.2121, - 30.805718 - ], - [ - -105.21825, - 30.806803 - ], - [ - -105.229257, - 30.810214 - ], - [ - -105.232874, - 30.809128 - ], - [ - -105.239851, - 30.801532 - ], - [ - -105.243985, - 30.799103 - ], - [ - -105.249049, - 30.798845 - ], - [ - -105.259488, - 30.802979 - ], - [ - -105.265844, - 30.808405 - ], - [ - -105.270753, - 30.814348 - ], - [ - -105.277006, - 30.819412 - ], - [ - -105.334315, - 30.843803 - ], - [ - -105.363771, - 30.850366 - ], - [ - -105.376173, - 30.859565 - ], - [ - -105.41555, - 30.902456 - ], - [ - -105.496682, - 30.95651 - ], - [ - -105.530789, - 30.991701 - ], - [ - -105.555955, - 31.002605 - ], - [ - -105.565722, - 31.016661 - ], - [ - -105.578641, - 31.052163 - ], - [ - -105.59094, - 31.071438 - ], - [ - -105.605875, - 31.081928 - ], - [ - -105.623496, - 31.090351 - ], - [ - -105.643805, - 31.103684 - ], - [ - -105.668042, - 31.127869 - ], - [ - -105.675225, - 31.131951 - ], - [ - -105.692278, - 31.137635 - ], - [ - -105.76819, - 31.18001 - ], - [ - -105.777854, - 31.192722 - ], - [ - -105.78483, - 31.211016 - ], - [ - -105.861983, - 31.288376 - ], - [ - -105.880147, - 31.300881 - ], - [ - -105.896994, - 31.305997 - ], - [ - -105.897149, - 31.309511 - ], - [ - -105.908802, - 31.317004 - ], - [ - -105.928052, - 31.326461 - ], - [ - -105.934563, - 31.335504 - ], - [ - -105.941772, - 31.352351 - ], - [ - -105.948515, - 31.361239 - ], - [ - -105.961202, - 31.371006 - ], - [ - -106.004739, - 31.396948 - ], - [ - -106.021147, - 31.402167 - ], - [ - -106.046261, - 31.404648 - ], - [ - -106.065304, - 31.410952 - ], - [ - -106.099385, - 31.428884 - ], - [ - -106.141113, - 31.439167 - ], - [ - -106.164316, - 31.447797 - ], - [ - -106.174471, - 31.460251 - ], - [ - -106.209249, - 31.477305 - ], - [ - -106.215424, - 31.483919 - ], - [ - -106.21744, - 31.488725 - ], - [ - -106.218731, - 31.494616 - ], - [ - -106.222891, - 31.50459 - ], - [ - -106.232658, - 31.519938 - ], - [ - -106.274749, - 31.562622 - ], - [ - -106.286298, - 31.580141 - ], - [ - -106.312292, - 31.648612 - ], - [ - -106.331309, - 31.68215 - ], - [ - -106.35849, - 31.717548 - ], - [ - -106.39177, - 31.745919 - ], - [ - -106.428951, - 31.758476 - ], - [ - -106.473135, - 31.755065 - ], - [ - -106.492797, - 31.759044 - ], - [ - -106.501425, - 31.766344 - ], - [ - -106.506052, - 31.770258 - ], - [ - -106.517189, - 31.773824 - ], - [ - -106.558969, - 31.773876 - ], - [ - -106.584859, - 31.773927 - ], - [ - -106.610697, - 31.773979 - ], - [ - -106.636587, - 31.774082 - ], - [ - -106.662477, - 31.774134 - ], - [ - -106.688315, - 31.774237 - ], - [ - -106.714205, - 31.774237 - ], - [ - -106.740095, - 31.774289 - ], - [ - -106.765933, - 31.774392 - ], - [ - -106.791823, - 31.774444 - ], - [ - -106.817713, - 31.774496 - ], - [ - -106.843603, - 31.774547 - ], - [ - -106.869441, - 31.774599 - ], - [ - -106.895331, - 31.774702 - ], - [ - -106.921221, - 31.774702 - ], - [ - -106.947111, - 31.774754 - ], - [ - -106.973001, - 31.774857 - ], - [ - -106.998891, - 31.774909 - ], - [ - -107.02478, - 31.774961 - ], - [ - -107.05067, - 31.775013 - ], - [ - -107.076509, - 31.775064 - ], - [ - -107.102398, - 31.775168 - ], - [ - -107.128288, - 31.775168 - ], - [ - -107.154127, - 31.775219 - ], - [ - -107.180016, - 31.775374 - ], - [ - -107.205906, - 31.775374 - ], - [ - -107.231796, - 31.775426 - ], - [ - -107.257634, - 31.775478 - ], - [ - -107.283524, - 31.775529 - ], - [ - -107.309414, - 31.775633 - ], - [ - -107.335252, - 31.775684 - ], - [ - -107.361142, - 31.775788 - ], - [ - -107.387032, - 31.775788 - ], - [ - -107.412896, - 31.775839 - ], - [ - -107.438786, - 31.775943 - ], - [ - -107.464676, - 31.775994 - ], - [ - -107.490566, - 31.776098 - ], - [ - -107.516404, - 31.776149 - ], - [ - -107.542294, - 31.776201 - ], - [ - -107.568184, - 31.776253 - ], - [ - -107.594074, - 31.776304 - ], - [ - -107.619964, - 31.776408 - ], - [ - -107.645854, - 31.776459 - ], - [ - -107.671744, - 31.776459 - ], - [ - -107.697633, - 31.776563 - ], - [ - -107.723472, - 31.776614 - ], - [ - -107.749362, - 31.776666 - ], - [ - -107.775251, - 31.776718 - ], - [ - -107.801141, - 31.77677 - ], - [ - -107.82698, - 31.776873 - ], - [ - -107.852869, - 31.776925 - ], - [ - -107.878759, - 31.776925 - ], - [ - -107.904598, - 31.777028 - ], - [ - -107.930487, - 31.77708 - ], - [ - -107.956377, - 31.777131 - ], - [ - -107.982216, - 31.777183 - ], - [ - -108.008105, - 31.777235 - ], - [ - -108.033995, - 31.777338 - ], - [ - -108.059885, - 31.77739 - ], - [ - -108.085723, - 31.77739 - ], - [ - -108.111613, - 31.777545 - ], - [ - -108.137503, - 31.777545 - ], - [ - -108.163341, - 31.777648 - ], - [ - -108.189283, - 31.7777 - ], - [ - -108.215121, - 31.777751 - ], - [ - -108.215121, - 31.770723 - ], - [ - -108.215121, - 31.763695 - ], - [ - -108.215121, - 31.756667 - ], - [ - -108.215121, - 31.749639 - ], - [ - -108.215121, - 31.74256 - ], - [ - -108.215121, - 31.735583 - ], - [ - -108.215121, - 31.728555 - ], - [ - -108.215121, - 31.721476 - ], - [ - -108.215121, - 31.714396 - ], - [ - -108.215121, - 31.70742 - ], - [ - -108.215121, - 31.700392 - ], - [ - -108.215121, - 31.693312 - ], - [ - -108.215121, - 31.686284 - ], - [ - -108.215121, - 31.679256 - ], - [ - -108.215121, - 31.672176 - ], - [ - -108.21507, - 31.665148 - ], - [ - -108.215018, - 31.658172 - ], - [ - -108.215018, - 31.651092 - ], - [ - -108.215018, - 31.644064 - ], - [ - -108.215018, - 31.637036 - ], - [ - -108.215018, - 31.630008 - ], - [ - -108.215018, - 31.62298 - ], - [ - -108.215018, - 31.615952 - ], - [ - -108.215018, - 31.608873 - ], - [ - -108.215018, - 31.601845 - ], - [ - -108.215018, - 31.594817 - ], - [ - -108.215018, - 31.587789 - ], - [ - -108.215018, - 31.580761 - ], - [ - -108.215018, - 31.573733 - ], - [ - -108.215018, - 31.566653 - ], - [ - -108.215018, - 31.559625 - ], - [ - -108.214966, - 31.552597 - ], - [ - -108.214966, - 31.545569 - ], - [ - -108.214966, - 31.538489 - ], - [ - -108.214966, - 31.531461 - ], - [ - -108.214966, - 31.524485 - ], - [ - -108.214966, - 31.517405 - ], - [ - -108.214966, - 31.510378 - ], - [ - -108.214966, - 31.503401 - ], - [ - -108.214966, - 31.496322 - ], - [ - -108.214966, - 31.489242 - ], - [ - -108.214966, - 31.482214 - ], - [ - -108.214966, - 31.475238 - ], - [ - -108.214966, - 31.468158 - ], - [ - -108.214966, - 31.46113 - ], - [ - -108.214966, - 31.454102 - ], - [ - -108.214966, - 31.447074 - ], - [ - -108.214915, - 31.440046 - ], - [ - -108.214863, - 31.432966 - ], - [ - -108.214863, - 31.425938 - ], - [ - -108.214863, - 31.41891 - ], - [ - -108.214863, - 31.411882 - ], - [ - -108.214863, - 31.404803 - ], - [ - -108.214863, - 31.397826 - ], - [ - -108.214863, - 31.390798 - ], - [ - -108.214863, - 31.383719 - ], - [ - -108.214863, - 31.376639 - ], - [ - -108.214863, - 31.369663 - ], - [ - -108.214863, - 31.362635 - ], - [ - -108.214863, - 31.355555 - ], - [ - -108.214863, - 31.348527 - ], - [ - -108.214863, - 31.341551 - ], - [ - -108.214863, - 31.334471 - ], - [ - -108.214811, - 31.327443 - ], - [ - -108.257573, - 31.327391 - ], - [ - -108.300336, - 31.327391 - ], - [ - -108.34302, - 31.327391 - ], - [ - -108.385731, - 31.327391 - ], - [ - -108.428442, - 31.327391 - ], - [ - -108.471152, - 31.327391 - ], - [ - -108.513837, - 31.327391 - ], - [ - -108.556547, - 31.327391 - ], - [ - -108.59931, - 31.327391 - ], - [ - -108.64202, - 31.327391 - ], - [ - -108.684757, - 31.327391 - ], - [ - -108.727467, - 31.327391 - ], - [ - -108.770178, - 31.327391 - ], - [ - -108.812914, - 31.327391 - ], - [ - -108.855625, - 31.327391 - ], - [ - -108.898335, - 31.327391 - ], - [ - -108.941046, - 31.327391 - ], - [ - -108.968282, - 31.327391 - ], - [ - -108.983731, - 31.327391 - ], - [ - -109.026493, - 31.327391 - ], - [ - -109.04743, - 31.327391 - ], - [ - -109.069203, - 31.327391 - ], - [ - -109.111914, - 31.327391 - ], - [ - -109.154599, - 31.327391 - ], - [ - -109.197361, - 31.327391 - ], - [ - -109.240072, - 31.32734 - ], - [ - -109.282782, - 31.32734 - ], - [ - -109.325519, - 31.32734 - ], - [ - -109.368229, - 31.32734 - ], - [ - -109.410914, - 31.32734 - ], - [ - -109.45365, - 31.32734 - ], - [ - -109.496387, - 31.32734 - ], - [ - -109.539071, - 31.32734 - ], - [ - -109.581808, - 31.32734 - ], - [ - -109.624493, - 31.32734 - ], - [ - -109.667177, - 31.32734 - ], - [ - -109.709965, - 31.32734 - ], - [ - -109.75265, - 31.32734 - ], - [ - -109.795335, - 31.32734 - ], - [ - -109.838123, - 31.32734 - ], - [ - -109.880808, - 31.32734 - ], - [ - -109.923596, - 31.327288 - ], - [ - -109.96628, - 31.327236 - ], - [ - -110.008965, - 31.327236 - ], - [ - -110.051702, - 31.327236 - ], - [ - -110.094386, - 31.327236 - ], - [ - -110.137071, - 31.327236 - ], - [ - -110.179807, - 31.327236 - ], - [ - -110.222544, - 31.327236 - ], - [ - -110.265229, - 31.327236 - ], - [ - -110.308017, - 31.327236 - ], - [ - -110.350753, - 31.327236 - ], - [ - -110.39349, - 31.327236 - ], - [ - -110.436174, - 31.327236 - ], - [ - -110.478859, - 31.327236 - ], - [ - -110.521595, - 31.327236 - ], - [ - -110.56428, - 31.327236 - ], - [ - -110.606965, - 31.327236 - ], - [ - -110.649727, - 31.327236 - ], - [ - -110.692438, - 31.327236 - ], - [ - -110.7352, - 31.327236 - ], - [ - -110.777885, - 31.327236 - ], - [ - -110.820595, - 31.327236 - ], - [ - -110.863358, - 31.327236 - ], - [ - -110.906068, - 31.327236 - ], - [ - -110.948753, - 31.327185 - ], - [ - -111.006269, - 31.327185 - ], - [ - -111.067118, - 31.333644 - ], - [ - -111.094455, - 31.342532 - ], - [ - -111.145924, - 31.359069 - ], - [ - -111.197446, - 31.375554 - ], - [ - -111.248864, - 31.392142 - ], - [ - -111.300333, - 31.40873 - ], - [ - -111.351803, - 31.425318 - ], - [ - -111.403299, - 31.441855 - ], - [ - -111.454768, - 31.458339 - ], - [ - -111.506238, - 31.474979 - ], - [ - -111.915464, - 31.601431 - ], - [ - -112.324715, - 31.727987 - ], - [ - -112.733967, - 31.854543 - ], - [ - -113.143218, - 31.981046 - ], - [ - -113.552444, - 32.107602 - ], - [ - -113.961696, - 32.234132 - ], - [ - -114.370921, - 32.360687 - ], - [ - -114.780147, - 32.487243 - ], - [ - -114.816785, - 32.498534 - ], - [ - -114.819373, - 32.499363 - ], - [ - -114.822108, - 32.50024 - ], - [ - -114.809447, - 32.511324 - ], - [ - -114.795546, - 32.552226 - ], - [ - -114.794203, - 32.574111 - ], - [ - -114.802678, - 32.594497 - ], - [ - -114.786813, - 32.621033 - ], - [ - -114.781542, - 32.628061 - ], - [ - -114.758804, - 32.64483 - ], - [ - -114.751156, - 32.65222 - ], - [ - -114.739477, - 32.669066 - ], - [ - -114.731209, - 32.686636 - ], - [ - -114.723871, - 32.711519 - ], - [ - -114.724284, - 32.712835 - ], - [ - -114.724285, - 32.712836 - ], - [ - -114.764541, - 32.709839 - ], - [ - -114.838076, - 32.704206 - ], - [ - -114.911612, - 32.698703 - ], - [ - -114.985199, - 32.693122 - ], - [ - -115.058734, - 32.687567 - ], - [ - -115.13227, - 32.681986 - ], - [ - -115.205806, - 32.676456 - ], - [ - -115.27929, - 32.670823 - ], - [ - -115.352851, - 32.665346 - ], - [ - -115.426386, - 32.659765 - ], - [ - -115.499922, - 32.654209 - ], - [ - -115.573535, - 32.648654 - ], - [ - -115.647019, - 32.643073 - ], - [ - -115.720529, - 32.637518 - ], - [ - -115.794064, - 32.631963 - ], - [ - -115.8676, - 32.626408 - ], - [ - -115.941213, - 32.620827 - ], - [ - -116.014748, - 32.615271 - ], - [ - -116.088232, - 32.609664 - ], - [ - -116.161742, - 32.604161 - ], - [ - -116.235329, - 32.598554 - ], - [ - -116.308891, - 32.593025 - ], - [ - -116.382426, - 32.587469 - ], - [ - -116.455962, - 32.581888 - ], - [ - -116.529472, - 32.576333 - ], - [ - -116.603007, - 32.570804 - ], - [ - -116.676543, - 32.565223 - ], - [ - -116.750104, - 32.559667 - ], - [ - -116.82364, - 32.554086 - ], - [ - -116.897201, - 32.548531 - ], - [ - -116.970737, - 32.542976 - ], - [ - -117.044221, - 32.537421 - ], - [ - -117.125121, - 32.531669 - ], - [ - -117.125969, - 32.538258 - ], - [ - -117.239623, - 32.531308 - ], - [ - -120.274098, - 32.884264 - ], - [ - -121.652736, - 34.467248 - ], - [ - -124.367265, - 37.662798 - ], - [ - -126.739806, - 41.37928 - ], - [ - -126.996297, - 45.773888 - ], - [ - -124.770704, - 48.44258 - ], - [ - -123.734053, - 48.241906 - ], - [ - -123.1663, - 48.27837 - ], - [ - -123.193018, - 48.501035 - ], - [ - -123.176987, - 48.65482 - ], - [ - -122.912481, - 48.753561 - ], - [ - -122.899122, - 48.897797 - ], - [ - -122.837671, - 48.97502 - ], - [ - -122.743986, - 48.980582 - ], - [ - -122.753, - 48.992499 - ], - [ - -122.753012, - 48.992515 - ], - [ - -122.653258, - 48.992515 - ], - [ - -122.433375, - 48.992515 - ], - [ - -122.213517, - 48.992515 - ], - [ - -121.993763, - 48.992515 - ], - [ - -121.773958, - 48.992515 - ], - [ - -121.554152, - 48.992515 - ], - [ - -121.33432, - 48.992515 - ], - [ - -121.114515, - 48.992515 - ], - [ - -95.396937, - 48.99267 - ], - [ - -95.177106, - 48.99267 - ], - [ - -95.168527, - 48.995047 - ], - [ - -95.161887, - 49.001145 - ], - [ - -95.159329, - 49.01179 - ], - [ - -95.159665, - 49.10951 - ], - [ - -95.160027, - 49.223353 - ], - [ - -95.160337, - 49.313012 - ], - [ - -95.160569, - 49.369494 - ], - [ - -95.102821, - 49.35394 - ], - [ - -94.982518, - 49.356162 - ], - [ - -94.926087, - 49.345568 - ], - [ - -94.856195, - 49.318283 - ], - [ - -94.839142, - 49.308878 - ], - [ - -94.827256, - 49.292858 - ], - [ - -94.819892, - 49.252034 - ], - [ - -94.810358, - 49.229606 - ], - [ - -94.806121, - 49.210899 - ], - [ - -94.811185, - 49.166561 - ], - [ - -94.803743, - 49.146407 - ], - [ - -94.792039, - 49.12646 - ], - [ - -94.753772, - 49.026156 - ], - [ - -94.711217, - 48.914586 - ], - [ - -94.711734, - 48.862755 - ], - [ - -94.712147, - 48.842446 - ], - [ - -94.713284, - 48.823843 - ], - [ - -94.710907, - 48.807513 - ], - [ - -94.701786, - 48.790098 - ], - [ - -94.688893, - 48.778832 - ], - [ - -94.592852, - 48.726433 - ], - [ - -94.519161, - 48.70447 - ], - [ - -94.4795, - 48.700698 - ], - [ - -94.311577, - 48.713927 - ], - [ - -94.292586, - 48.711912 - ], - [ - -94.284034, - 48.709069 - ], - [ - -94.274499, - 48.704108 - ], - [ - -94.265482, - 48.697752 - ], - [ - -94.258454, - 48.690828 - ], - [ - -94.255767, - 48.683541 - ], - [ - -94.252459, - 48.662405 - ], - [ - -94.251038, - 48.65729 - ], - [ - -94.23215, - 48.652019 - ], - [ - -94.03485, - 48.643311 - ], - [ - -93.874885, - 48.636206 - ], - [ - -93.835741, - 48.617137 - ], - [ - -93.809386, - 48.543576 - ], - [ - -93.778664, - 48.519468 - ], - [ - -93.756779, - 48.516549 - ], - [ - -93.616297, - 48.531302 - ], - [ - -93.599889, - 48.526341 - ], - [ - -93.566584, - 48.538279 - ], - [ - -93.491756, - 48.542309 - ], - [ - -93.459924, - 48.557399 - ], - [ - -93.45225, - 48.572721 - ], - [ - -93.453774, - 48.586958 - ], - [ - -93.451475, - 48.597422 - ], - [ - -93.417316, - 48.604114 - ], - [ - -93.385716, - 48.614863 - ], - [ - -93.25774, - 48.630314 - ], - [ - -93.131701, - 48.62463 - ], - [ - -92.97972, - 48.61768 - ], - [ - -92.955588, - 48.612228 - ], - [ - -92.884197, - 48.579878 - ], - [ - -92.72555, - 48.548692 - ], - [ - -92.648604, - 48.536263 - ], - [ - -92.630181, - 48.519468 - ], - [ - -92.627468, - 48.502777 - ], - [ - -92.646743, - 48.497428 - ], - [ - -92.691366, - 48.489858 - ], - [ - -92.710641, - 48.482882 - ], - [ - -92.718909, - 48.459782 - ], - [ - -92.704052, - 48.445158 - ], - [ - -92.677129, - 48.441747 - ], - [ - -92.657053, - 48.438233 - ], - [ - -92.570521, - 48.446656 - ], - [ - -92.526932, - 48.445623 - ], - [ - -92.490629, - 48.433117 - ], - [ - -92.474532, - 48.410483 - ], - [ - -92.467581, - 48.394282 - ], - [ - -92.467064, - 48.353225 - ], - [ - -92.462465, - 48.329299 - ], - [ - -92.451381, - 48.312685 - ], - [ - -92.41823, - 48.282041 - ], - [ - -92.38464, - 48.232406 - ], - [ - -92.371851, - 48.222587 - ], - [ - -92.353815, - 48.222897 - ], - [ - -92.327874, - 48.229435 - ], - [ - -92.303663, - 48.239279 - ], - [ - -92.291029, - 48.249562 - ], - [ - -92.292062, - 48.270336 - ], - [ - -92.301416, - 48.290645 - ], - [ - -92.303095, - 48.310928 - ], - [ - -92.281598, - 48.33178 - ], - [ - -92.259118, - 48.339635 - ], - [ - -92.154732, - 48.350125 - ], - [ - -92.070499, - 48.346714 - ], - [ - -92.043421, - 48.334596 - ], - [ - -92.030114, - 48.313176 - ], - [ - -92.021355, - 48.287441 - ], - [ - -92.007997, - 48.262482 - ], - [ - -91.992158, - 48.247909 - ], - [ - -91.975492, - 48.236566 - ], - [ - -91.957302, - 48.228323 - ], - [ - -91.852244, - 48.195974 - ], - [ - -91.764988, - 48.187344 - ], - [ - -91.744137, - 48.179593 - ], - [ - -91.727575, - 48.168327 - ], - [ - -91.695509, - 48.13758 - ], - [ - -91.716438, - 48.112051 - ], - [ - -91.692512, - 48.097866 - ], - [ - -91.618615, - 48.089572 - ], - [ - -91.597479, - 48.090399 - ], - [ - -91.589676, - 48.088332 - ], - [ - -91.581098, - 48.080942 - ], - [ - -91.579806, - 48.070969 - ], - [ - -91.585129, - 48.06084 - ], - [ - -91.586989, - 48.052572 - ], - [ - -91.574845, - 48.048205 - ], - [ - -91.487098, - 48.053476 - ], - [ - -91.464722, - 48.048955 - ], - [ - -91.446274, - 48.040738 - ], - [ - -91.427929, - 48.036449 - ], - [ - -91.3654, - 48.057843 - ], - [ - -91.276362, - 48.064768 - ], - [ - -91.23807, - 48.082648 - ], - [ - -91.203963, - 48.107659 - ], - [ - -91.071103, - 48.170859 - ], - [ - -91.02816, - 48.184838 - ], - [ - -91.008109, - 48.194372 - ], - [ - -90.923153, - 48.227109 - ], - [ - -90.873802, - 48.234344 - ], - [ - -90.840678, - 48.220107 - ], - [ - -90.837939, - 48.210547 - ], - [ - -90.848843, - 48.198713 - ], - [ - -90.849721, - 48.189566 - ], - [ - -90.843003, - 48.176983 - ], - [ - -90.83427, - 48.171789 - ], - [ - -90.823883, - 48.168327 - ], - [ - -90.812307, - 48.160989 - ], - [ - -90.803057, - 48.147166 - ], - [ - -90.796701, - 48.117064 - ], - [ - -90.786469, - 48.10045 - ], - [ - -90.750347, - 48.083991 - ], - [ - -90.701307, - 48.08456 - ], - [ - -90.611079, - 48.103499 - ], - [ - -90.586843, - 48.104817 - ], - [ - -90.573872, - 48.097892 - ], - [ - -90.562194, - 48.088849 - ], - [ - -90.542014, - 48.083733 - ], - [ - -90.531601, - 48.08456 - ], - [ - -90.501887, - 48.094275 - ], - [ - -90.490493, - 48.096239 - ], - [ - -90.483465, - 48.094482 - ], - [ - -90.477858, - 48.091536 - ], - [ - -90.470623, - 48.089882 - ], - [ - -90.178625, - 48.116444 - ], - [ - -90.120386, - 48.115359 - ], - [ - -90.073257, - 48.101199 - ], - [ - -90.061036, - 48.091019 - ], - [ - -90.008222, - 48.029731 - ], - [ - -89.995329, - 48.018595 - ], - [ - -89.980317, - 48.010094 - ], - [ - -89.92045, - 47.98746 - ], - [ - -89.902441, - 47.985909 - ], - [ - -89.803454, - 48.013763 - ], - [ - -89.780975, - 48.017199 - ], - [ - -89.763302, - 48.017303 - ], - [ - -89.745964, - 48.013763 - ], - [ - -89.724596, - 48.005908 - ], - [ - -89.712788, - 48.003376 - ], - [ - -89.678656, - 48.008699 - ], - [ - -89.65659, - 48.007975 - ], - [ - -89.593105, - 47.996503 - ], - [ - -89.581753, - 47.996333 - ], - [ - -89.586724, - 47.992938 - ], - [ - -89.310872, - 47.981097 - ], - [ - -89.072861, - 48.046842 - ], - [ - -88.49789, - 48.212841 - ], - [ - -88.286621, - 48.156675 - ], - [ - -85.939935, - 47.280501 - ], - [ - -84.784644, - 46.770068 - ], - [ - -84.516909, - 46.435083 - ], - [ - -84.489712, - 46.446652 - ], - [ - -84.491052, - 46.457658 - ], - [ - -84.478301, - 46.466467 - ], - [ - -84.465408, - 46.478172 - ], - [ - -84.448096, - 46.489722 - ], - [ - -84.42324, - 46.511581 - ], - [ - -84.389702, - 46.520262 - ], - [ - -84.352469, - 46.522743 - ], - [ - -84.30534, - 46.501607 - ], - [ - -84.242011, - 46.526464 - ], - [ - -84.197285, - 46.546359 - ], - [ - -84.147676, - 46.541346 - ], - [ - -84.110443, - 46.526464 - ], - [ - -84.158812, - 46.433343 - ], - [ - -84.147676, - 46.399882 - ], - [ - -84.129046, - 46.375026 - ], - [ - -84.10543, - 46.347741 - ], - [ - -84.105944, - 46.346374 - ], - [ - -84.117195, - 46.347157 - ], - [ - -84.117489, - 46.338326 - ], - [ - -84.122361, - 46.331922 - ], - [ - -84.112061, - 46.287102 - ], - [ - -84.092672, - 46.227469 - ], - [ - -84.111983, - 46.20337 - ], - [ - -84.015118, - 46.149712 - ], - [ - -83.957038, - 46.045736 - ], - [ - -83.676821, - 46.15388 - ], - [ - -83.429449, - 46.086221 - ], - [ - -83.523049, - 45.892052 - ], - [ - -83.574563, - 45.890259 - ], - [ - -82.551615, - 44.857931 - ], - [ - -82.655591, - 43.968545 - ], - [ - -82.440632, - 43.096285 - ], - [ - -82.460131, - 43.084392 - ], - [ - -82.458894, - 43.083247 - ], - [ - -82.431813, - 43.039387 - ], - [ - -82.424748, - 43.02408 - ], - [ - -82.417242, - 43.01731 - ], - [ - -82.416369, - 43.01742 - ], - [ - -82.416412, - 43.017143 - ], - [ - -82.414603, - 42.983243 - ], - [ - -82.430442, - 42.951307 - ], - [ - -82.453179, - 42.918983 - ], - [ - -82.464781, - 42.883637 - ], - [ - -82.468036, - 42.863974 - ], - [ - -82.482325, - 42.835113 - ], - [ - -82.485271, - 42.818524 - ], - [ - -82.473618, - 42.798164 - ], - [ - -82.470982, - 42.790568 - ], - [ - -82.471344, - 42.779845 - ], - [ - -82.476951, - 42.761474 - ], - [ - -82.48341, - 42.719254 - ], - [ - -82.511264, - 42.646675 - ], - [ - -82.526224, - 42.619906 - ], - [ - -82.549246, - 42.590941 - ], - [ - -82.575833, - 42.571795 - ], - [ - -82.608467, - 42.561098 - ], - [ - -82.644331, - 42.557817 - ], - [ - -82.644698, - 42.557533 - ], - [ - -82.644932, - 42.561634 - ], - [ - -82.637132, - 42.568405 - ], - [ - -82.60902, - 42.579296 - ], - [ - -82.616673, - 42.582828 - ], - [ - -82.636985, - 42.599607 - ], - [ - -82.625357, - 42.616092 - ], - [ - -82.629331, - 42.626394 - ], - [ - -82.638751, - 42.633459 - ], - [ - -82.644344, - 42.640524 - ], - [ - -82.644166, - 42.641056 - ], - [ - -82.716083, - 42.617461 - ], - [ - -82.777592, - 42.408506 - ], - [ - -82.888693, - 42.406093 - ], - [ - -82.889991, - 42.403266 - ], - [ - -82.905739, - 42.387665 - ], - [ - -82.923842, - 42.374419 - ], - [ - -82.937972, - 42.366176 - ], - [ - -82.947686, - 42.363527 - ], - [ - -82.979624, - 42.359406 - ], - [ - -83.042618, - 42.340861 - ], - [ - -83.061899, - 42.32732 - ], - [ - -83.081622, - 42.30907 - ], - [ - -83.11342, - 42.279619 - ], - [ - -83.145306, - 42.066968 - ], - [ - -83.177398, - 41.960666 - ], - [ - -83.21512, - 41.794493 - ], - [ - -82.219051, - 41.516445 - ], - [ - -80.345329, - 42.13344 - ], - [ - -80.316455, - 42.123137 - ], - [ - -79.270266, - 42.591872 - ], - [ - -79.221058, - 42.582892 - ], - [ - -78.871842, - 42.860012 - ], - [ - -78.875011, - 42.867184 - ], - [ - -78.896205, - 42.897209 - ], - [ - -78.901651, - 42.908101 - ], - [ - -78.90901, - 42.952255 - ], - [ - -78.913426, - 42.957848 - ], - [ - -78.932118, - 42.9708 - ], - [ - -78.936386, - 42.979631 - ], - [ - -78.927997, - 43.002003 - ], - [ - -78.893114, - 43.029379 - ], - [ - -78.887963, - 43.051456 - ], - [ - -78.914897, - 43.076477 - ], - [ - -79.026167, - 43.086485 - ], - [ - -79.065231, - 43.10573 - ], - [ - -79.065273, - 43.105897 - ], - [ - -79.065738, - 43.120237 - ], - [ - -79.061423, - 43.130288 - ], - [ - -79.055583, - 43.138427 - ], - [ - -79.051604, - 43.146851 - ], - [ - -79.04933, - 43.159847 - ], - [ - -79.048607, - 43.170622 - ], - [ - -79.053775, - 43.260358 - ], - [ - -79.058425, - 43.277799 - ], - [ - -79.058631, - 43.2782 - ], - [ - -78.990696, - 43.286947 - ], - [ - -78.862059, - 43.324332 - ], - [ - -78.767813, - 43.336418 - ], - [ - -78.516117, - 43.50645 - ], - [ - -76.363317, - 43.943219 - ], - [ - -76.396746, - 44.106667 - ], - [ - -76.364697, - 44.111631 - ], - [ - -76.366146, - 44.117349 - ], - [ - -76.357462, - 44.131478 - ], - [ - -76.183493, - 44.223025 - ], - [ - -76.162644, - 44.229888 - ], - [ - -76.176117, - 44.30795 - ], - [ - -76.046414, - 44.354817 - ], - [ - -75.928746, - 44.391137 - ], - [ - -75.852508, - 44.381639 - ], - [ - -75.849095, - 44.386103 - ], - [ - -75.847623, - 44.392579 - ], - [ - -75.84674, - 44.398172 - ], - [ - -75.845415, - 44.40141 - ], - [ - -75.780803, - 44.432318 - ], - [ - -75.770205, - 44.446153 - ], - [ - -75.772266, - 44.463815 - ], - [ - -75.779184, - 44.48236 - ], - [ - -75.791496, - 44.496513 - ], - [ - -75.791183, - 44.496768 - ], - [ - -75.754622, - 44.527567 - ], - [ - -75.69969, - 44.581673 - ], - [ - -75.578199, - 44.661513 - ], - [ - -75.455958, - 44.741766 - ], - [ - -75.341831, - 44.816749 - ], - [ - -75.270233, - 44.863774 - ], - [ - -75.129647, - 44.925166 - ], - [ - -75.075594, - 44.935501 - ], - [ - -75.058721, - 44.941031 - ], - [ - -75.0149, - 44.96599 - ], - [ - -74.998647, - 44.972398 - ], - [ - -74.940201, - 44.987746 - ], - [ - -74.903744, - 45.005213 - ], - [ - -74.88651, - 45.009398 - ], - [ - -74.868474, - 45.010122 - ], - [ - -74.741557, - 44.998857 - ], - [ - -74.712961, - 44.999254 - ], - [ - -74.695875, - 44.99803 - ], - [ - -74.596114, - 44.998495 - ], - [ - -74.496352, - 44.999012 - ], - [ - -74.197146, - 45.000458 - ], - [ - -71.703551, - 45.012757 - ], - [ - -71.603816, - 45.013274 - ], - [ - -71.505848, - 45.013731 - ], - [ - -71.50408, - 45.013739 - ], - [ - -71.506613, - 45.037045 - ], - [ - -71.504752, - 45.052962 - ], - [ - -71.497259, - 45.066553 - ], - [ - -71.45659, - 45.110994 - ], - [ - -71.451215, - 45.121691 - ], - [ - -71.445996, - 45.140295 - ], - [ - -71.441604, - 45.150682 - ], - [ - -71.413026, - 45.186184 - ], - [ - -71.406567, - 45.204942 - ], - [ - -71.42269, - 45.217189 - ], - [ - -71.449045, - 45.226905 - ], - [ - -71.438813, - 45.233468 - ], - [ - -71.394888, - 45.241529 - ], - [ - -71.381245, - 45.250779 - ], - [ - -71.3521, - 45.278323 - ], - [ - -71.334323, - 45.28871 - ], - [ - -71.311534, - 45.294136 - ], - [ - -71.293396, - 45.292327 - ], - [ - -71.20937, - 45.254758 - ], - [ - -71.185133, - 45.248557 - ], - [ - -71.160329, - 45.245767 - ], - [ - -71.141725, - 45.252329 - ], - [ - -71.111029, - 45.287108 - ], - [ - -71.095242, - 45.300905 - ], - [ - -71.085553, - 45.304213 - ], - [ - -71.084952, - 45.304293 - ], - [ - -71.064211, - 45.307055 - ], - [ - -71.054418, - 45.310362 - ], - [ - -71.036667, - 45.323385 - ], - [ - -71.027598, - 45.33465 - ], - [ - -71.016539, - 45.343125 - ], - [ - -70.993155, - 45.347827 - ], - [ - -70.968118, - 45.34452 - ], - [ - -70.951608, - 45.332014 - ], - [ - -70.906908, - 45.246232 - ], - [ - -70.892412, - 45.234604 - ], - [ - -70.874351, - 45.245663 - ], - [ - -70.870605, - 45.255275 - ], - [ - -70.872491, - 45.274189 - ], - [ - -70.870243, - 45.283129 - ], - [ - -70.862621, - 45.290363 - ], - [ - -70.842389, - 45.301215 - ], - [ - -70.835258, - 45.309794 - ], - [ - -70.83208, - 45.328552 - ], - [ - -70.835465, - 45.373097 - ], - [ - -70.833837, - 45.393096 - ], - [ - -70.825982, - 45.410459 - ], - [ - -70.812986, - 45.42343 - ], - [ - -70.794873, - 45.430406 - ], - [ - -70.771877, - 45.430045 - ], - [ - -70.75255, - 45.422345 - ], - [ - -70.718004, - 45.397282 - ], - [ - -70.696739, - 45.388652 - ], - [ - -70.675785, - 45.388704 - ], - [ - -70.65359, - 45.395473 - ], - [ - -70.641316, - 45.408496 - ], - [ - -70.650257, - 45.427461 - ], - [ - -70.668162, - 45.439036 - ], - [ - -70.707385, - 45.4564 - ], - [ - -70.722836, - 45.470921 - ], - [ - -70.732009, - 45.491591 - ], - [ - -70.730329, - 45.507973 - ], - [ - -70.686792, - 45.572723 - ], - [ - -70.589614, - 45.651788 - ], - [ - -70.572406, - 45.662279 - ], - [ - -70.514735, - 45.681709 - ], - [ - -70.484763, - 45.699641 - ], - [ - -70.4728, - 45.703568 - ], - [ - -70.450424, - 45.703723 - ], - [ - -70.439132, - 45.705893 - ], - [ - -70.419315, - 45.716901 - ], - [ - -70.407351, - 45.731525 - ], - [ - -70.402442, - 45.749663 - ], - [ - -70.403941, - 45.771161 - ], - [ - -70.408282, - 45.781651 - ], - [ - -70.413682, - 45.787697 - ], - [ - -70.41717, - 45.793795 - ], - [ - -70.415232, - 45.804389 - ], - [ - -70.409935, - 45.810745 - ], - [ - -70.389807, - 45.825059 - ], - [ - -70.312654, - 45.867641 - ], - [ - -70.283173, - 45.890482 - ], - [ - -70.262528, - 45.923038 - ], - [ - -70.255939, - 45.948876 - ], - [ - -70.263148, - 45.956834 - ], - [ - -70.280434, - 45.959315 - ], - [ - -70.303947, - 45.968616 - ], - [ - -70.316298, - 45.982982 - ], - [ - -70.316892, - 45.999002 - ], - [ - -70.306143, - 46.035331 - ], - [ - -70.303637, - 46.038483 - ], - [ - -70.294309, - 46.044943 - ], - [ - -70.29201, - 46.048663 - ], - [ - -70.293017, - 46.054038 - ], - [ - -70.296092, - 46.057862 - ], - [ - -70.300795, - 46.061737 - ], - [ - -70.304774, - 46.065975 - ], - [ - -70.311362, - 46.071866 - ], - [ - -70.312629, - 46.079566 - ], - [ - -70.30033, - 46.089281 - ], - [ - -70.26444, - 46.106593 - ], - [ - -70.24948, - 46.120597 - ], - [ - -70.244002, - 46.141009 - ], - [ - -70.249247, - 46.162765 - ], - [ - -70.263329, - 46.183229 - ], - [ - -70.284801, - 46.191859 - ], - [ - -70.280899, - 46.211857 - ], - [ - -70.253407, - 46.251493 - ], - [ - -70.236173, - 46.288339 - ], - [ - -70.223693, - 46.300793 - ], - [ - -70.201886, - 46.305495 - ], - [ - -70.199509, - 46.315262 - ], - [ - -70.197028, - 46.336863 - ], - [ - -70.188398, - 46.358412 - ], - [ - -70.167418, - 46.368179 - ], - [ - -70.153052, - 46.372829 - ], - [ - -70.074323, - 46.419545 - ], - [ - -70.061817, - 46.445409 - ], - [ - -70.050086, - 46.511271 - ], - [ - -70.032723, - 46.609766 - ], - [ - -70.023628, - 46.661287 - ], - [ - -70.007763, - 46.704075 - ], - [ - -69.989961, - 46.721697 - ], - [ - -69.899708, - 46.811562 - ], - [ - -69.809403, - 46.901299 - ], - [ - -69.719099, - 46.991086 - ], - [ - -69.628794, - 47.080797 - ], - [ - -69.538464, - 47.17061 - ], - [ - -69.448159, - 47.260346 - ], - [ - -69.357906, - 47.350134 - ], - [ - -69.267628, - 47.439844 - ], - [ - -69.25091, - 47.452919 - ], - [ - -69.237268, - 47.45881 - ], - [ - -69.221972, - 47.459688 - ], - [ - -69.069655, - 47.431886 - ], - [ - -69.054023, - 47.418399 - ], - [ - -69.054333, - 47.389253 - ], - [ - -69.066193, - 47.32967 - ], - [ - -69.065134, - 47.296339 - ], - [ - -69.06356, - 47.290809 - ], - [ - -69.057486, - 47.269467 - ], - [ - -69.0402, - 47.249055 - ], - [ - -68.906229, - 47.190221 - ], - [ - -68.889718, - 47.190609 - ], - [ - -68.761819, - 47.23704 - ], - [ - -68.71779, - 47.245231 - ], - [ - -68.668801, - 47.243422 - ], - [ - -68.644203, - 47.245283 - ], - [ - -68.6256, - 47.255205 - ], - [ - -68.607926, - 47.269829 - ], - [ - -68.58524, - 47.28249 - ], - [ - -68.539662, - 47.299853 - ], - [ - -68.518009, - 47.304762 - ], - [ - -68.492016, - 47.307553 - ], - [ - -68.466746, - 47.305692 - ], - [ - -68.435327, - 47.291275 - ], - [ - -68.422563, - 47.293109 - ], - [ - -68.410212, - 47.297424 - ], - [ - -68.385614, - 47.301713 - ], - [ - -68.383392, - 47.307139 - ], - [ - -68.384839, - 47.315873 - ], - [ - -68.382049, - 47.32781 - ], - [ - -68.347839, - 47.358506 - ], - [ - -68.299728, - 47.367833 - ], - [ - -68.24645, - 47.360573 - ], - [ - -68.197047, - 47.341401 - ], - [ - -68.184335, - 47.333133 - ], - [ - -68.156068, - 47.306674 - ], - [ - -68.145061, - 47.301455 - ], - [ - -68.115398, - 47.292282 - ], - [ - -68.101446, - 47.286185 - ], - [ - -68.039382, - 47.245231 - ], - [ - -67.993184, - 47.223217 - ], - [ - -67.962436, - 47.197689 - ], - [ - -67.953703, - 47.18663 - ], - [ - -67.949982, - 47.172936 - ], - [ - -67.943419, - 47.164538 - ], - [ - -67.899132, - 47.138778 - ], - [ - -67.870607, - 47.107358 - ], - [ - -67.854742, - 47.09785 - ], - [ - -67.813556, - 47.081908 - ], - [ - -67.808699, - 47.075138 - ], - [ - -67.805185, - 47.035631 - ], - [ - -67.802549, - 46.901247 - ], - [ - -67.800017, - 46.766785 - ], - [ - -67.797433, - 46.632297 - ], - [ - -67.794849, - 46.497861 - ], - [ - -67.792317, - 46.363476 - ], - [ - -67.789733, - 46.229014 - ], - [ - -67.78715, - 46.094552 - ], - [ - -67.784566, - 45.960142 - ], - [ - -67.782757, - 45.95053 - ], - [ - -67.776556, - 45.942933 - ], - [ - -67.767461, - 45.935957 - ], - [ - -67.759658, - 45.928567 - ], - [ - -67.757849, - 45.919472 - ], - [ - -67.769425, - 45.903969 - ], - [ - -67.787356, - 45.890017 - ], - [ - -67.799242, - 45.875651 - ], - [ - -67.792627, - 45.858907 - ], - [ - -67.776091, - 45.840821 - ], - [ - -67.772835, - 45.828057 - ], - [ - -67.779863, - 45.815706 - ], - [ - -67.794126, - 45.799169 - ], - [ - -67.80627, - 45.781754 - ], - [ - -67.811127, - 45.76651 - ], - [ - -67.810816, - 45.762414 - ], - [ - -67.817811, - 45.754896 - ], - [ - -67.821785, - 45.740767 - ], - [ - -67.827673, - 45.739001 - ], - [ - -67.868884, - 45.744593 - ], - [ - -67.856815, - 45.723694 - ], - [ - -67.835768, - 45.703971 - ], - [ - -67.793821, - 45.676301 - ], - [ - -67.733034, - 45.651869 - ], - [ - -67.723173, - 45.645393 - ], - [ - -67.711546, - 45.642155 - ], - [ - -67.697564, - 45.64922 - ], - [ - -67.66695, - 45.620077 - ], - [ - -67.649435, - 45.611247 - ], - [ - -67.603073, - 45.605948 - ], - [ - -67.561862, - 45.596234 - ], - [ - -67.54052, - 45.593879 - ], - [ - -67.442056, - 45.603593 - ], - [ - -67.440939, - 45.604586 - ], - [ - -67.431306, - 45.597941 - ], - [ - -67.422107, - 45.568796 - ], - [ - -67.42619, - 45.533449 - ], - [ - -67.443036, - 45.522184 - ], - [ - -67.467531, - 45.508283 - ], - [ - -67.493214, - 45.493142 - ], - [ - -67.48231, - 45.455521 - ], - [ - -67.428825, - 45.38705 - ], - [ - -67.434561, - 45.350308 - ], - [ - -67.459056, - 45.318424 - ], - [ - -67.468668, - 45.301835 - ], - [ - -67.475024, - 45.282353 - ], - [ - -67.471303, - 45.266282 - ], - [ - -67.427585, - 45.236568 - ], - [ - -67.390533, - 45.193108 - ], - [ - -67.356272, - 45.165926 - ], - [ - -67.31922, - 45.153886 - ], - [ - -67.284648, - 45.169699 - ], - [ - -67.279584, - 45.179052 - ], - [ - -67.279222, - 45.187372 - ], - [ - -67.277207, - 45.195072 - ], - [ - -67.267336, - 45.202513 - ], - [ - -67.254986, - 45.205045 - ], - [ - -67.242428, - 45.202565 - ], - [ - -67.219071, - 45.192126 - ], - [ - -67.206166, - 45.189401 - ], - [ - -67.176015, - 45.178656 - ], - [ - -67.191274, - 45.180365 - ], - [ - -67.204376, - 45.178209 - ], - [ - -67.204724, - 45.177791 - ], - [ - -67.152423, - 45.148932 - ], - [ - -67.048033, - 45.043407 - ], - [ - -66.962727, - 45.047088 - ], - [ - -66.857192, - 44.968696 - ], - [ - -66.897268, - 44.817275 - ], - [ - -67.2159, - 44.593511 - ], - [ - -67.122366, - 44.423624 - ], - [ - -67.68447, - 44.192544 - ], - [ - -67.459678, - 40.781645 - ], - [ - -76.607854, - 32.495823 - ], - [ - -76.798479, - 32.713735 - ], - [ - -78.561892, - 29.037718 - ], - [ - -78.892446, - 29.039659 - ], - [ - -79.762295, - 26.719312 - ], - [ - -80.026352, - 24.932961 - ], - [ - -82.368794, - 23.994833 - ], - [ - -83.806281, - 29.068506 - ], - [ - -87.460772, - 29.089961 - ], - [ - -87.922646, - 28.666131 - ], - [ - -90.461001, - 28.246758 - ], - [ - -91.787336, - 29.11536 - ], - [ - -93.311871, - 29.12431 - ], - [ - -96.423449, - 26.057857 - ], - [ - -97.129057, - 25.991017 - ], - [ - -97.129509, - 25.966833 - ], - [ - -97.139358, - 25.965876 - ], - [ - -97.202171, - 25.960893 - ], - [ - -97.202176, - 25.960857 - ], - [ - -97.204941, - 25.960639 - ], - [ - -97.253051, - 25.963481 - ], - [ - -97.266358, - 25.960639 - ], - [ - -97.2692, - 25.944361 - ], - [ - -97.287649, - 25.928651 - ], - [ - -97.310981, - 25.922088 - ], - [ - -97.328447, - 25.933302 - ], - [ - -97.351107, - 25.918419 - ], - [ - -97.355112, - 25.912786 - ], - [ - -97.35227, - 25.894493 - ], - [ - -97.345165, - 25.871704 - ], - [ - -97.345733, - 25.852222 - ], - [ - -97.36599, - 25.843902 - ], - [ - -97.376015, - 25.846744 - ], - [ - -97.380124, - 25.853203 - ], - [ - -97.383121, - 25.860541 - ], - [ - -97.389891, - 25.865657 - ], - [ - -97.397823, - 25.865812 - ], - [ - -97.399476, - 25.861162 - ], - [ - -97.39989, - 25.855115 - ], - [ - -97.404179, - 25.851395 - ], - [ - -97.425418, - 25.854857 - ], - [ - -97.435727, - 25.869275 - ], - [ - -97.441309, - 25.884933 - ], - [ - -97.448259, - 25.892322 - ], - [ - -97.469421, - 25.892943 - ], - [ - -97.486319, - 25.895733 - ], - [ - -97.502209, - 25.901883 - ], - [ - -97.52027, - 25.912786 - ], - [ - -97.565177, - 25.954748 - ], - [ - -97.594322, - 25.966375 - ], - [ - -97.604787, - 25.979966 - ], - [ - -97.613055, - 25.995985 - ], - [ - -97.622641, - 26.00906 - ], - [ - -97.641451, - 26.022495 - ], - [ - -97.659874, - 26.03066 - ], - [ - -97.679614, - 26.034639 - ], - [ - -97.766948, - 26.039652 - ], - [ - -97.780306, - 26.043218 - ], - [ - -97.782321, - 26.058617 - ], - [ - -97.80201, - 26.063733 - ], - [ - -97.878181, - 26.063733 - ], - [ - -97.941666, - 26.056809 - ], - [ - -97.999233, - 26.064302 - ], - [ - -98.013057, - 26.063682 - ], - [ - -98.044166, - 26.048799 - ], - [ - -98.065457, - 26.042184 - ], - [ - -98.075146, - 26.046628 - ], - [ - -98.083311, - 26.070916 - ], - [ - -98.103103, - 26.074947 - ], - [ - -98.150232, - 26.063682 - ], - [ - -98.185062, - 26.065232 - ], - [ - -98.222656, - 26.075412 - ], - [ - -98.300429, - 26.111431 - ], - [ - -98.309809, - 26.121094 - ], - [ - -98.333037, - 26.15303 - ], - [ - -98.339264, - 26.159851 - ], - [ - -98.365774, - 26.160161 - ], - [ - -98.377272, - 26.163572 - ], - [ - -98.377272, - 26.173649 - ], - [ - -98.36934, - 26.19401 - ], - [ - -98.397193, - 26.201141 - ], - [ - -98.428845, - 26.217729 - ], - [ - -98.456544, - 26.225946 - ], - [ - -98.472383, - 26.207652 - ], - [ - -98.49295, - 26.230596 - ], - [ - -98.521527, - 26.240932 - ], - [ - -98.552791, - 26.248321 - ], - [ - -98.581627, - 26.262274 - ], - [ - -98.640564, - 26.24181 - ], - [ - -98.653663, - 26.244291 - ], - [ - -98.664696, - 26.250647 - ], - [ - -98.685289, - 26.268475 - ], - [ - -98.693325, - 26.270542 - ], - [ - -98.702239, - 26.271628 - ], - [ - -98.704255, - 26.27664 - ], - [ - -98.691465, - 26.290231 - ], - [ - -98.701413, - 26.299119 - ], - [ - -98.713169, - 26.303357 - ], - [ - -98.726217, - 26.30439 - ], - [ - -98.739911, - 26.303253 - ], - [ - -98.735932, - 26.320048 - ], - [ - -98.746397, - 26.332141 - ], - [ - -98.780839, - 26.351674 - ], - [ - -98.795851, - 26.368314 - ], - [ - -98.801329, - 26.372138 - ], - [ - -98.810295, - 26.372448 - ], - [ - -98.817323, - 26.368521 - ], - [ - -98.825023, - 26.366454 - ], - [ - -98.836081, - 26.372138 - ], - [ - -98.842334, - 26.365834 - ], - [ - -98.850835, - 26.364077 - ], - [ - -98.860524, - 26.366299 - ], - [ - -98.870214, - 26.372138 - ], - [ - -98.893029, - 26.367849 - ], - [ - -98.9299, - 26.39224 - ], - [ - -98.945377, - 26.378288 - ], - [ - -98.954136, - 26.393946 - ], - [ - -98.962844, - 26.399527 - ], - [ - -98.986951, - 26.400095 - ], - [ - -99.004056, - 26.393842 - ], - [ - -99.010515, - 26.392602 - ], - [ - -99.016432, - 26.394462 - ], - [ - -99.022995, - 26.403351 - ], - [ - -99.027878, - 26.406245 - ], - [ - -99.047645, - 26.406968 - ], - [ - -99.066351, - 26.404746 - ], - [ - -99.085498, - 26.40764 - ], - [ - -99.106427, - 26.423039 - ], - [ - -99.108907, - 26.434253 - ], - [ - -99.102525, - 26.446966 - ], - [ - -99.09374, - 26.459781 - ], - [ - -99.089373, - 26.47115 - ], - [ - -99.091492, - 26.484018 - ], - [ - -99.10299, - 26.512078 - ], - [ - -99.115108, - 26.525617 - ], - [ - -99.140946, - 26.531405 - ], - [ - -99.164873, - 26.540448 - ], - [ - -99.17128, - 26.563961 - ], - [ - -99.171548, - 26.56583 - ], - [ - -99.213953, - 26.568537 - ], - [ - -99.242801, - 26.579723 - ], - [ - -99.254575, - 26.6018 - ], - [ - -99.258844, - 26.614752 - ], - [ - -99.277683, - 26.638007 - ], - [ - -99.281951, - 26.649781 - ], - [ - -99.277389, - 26.657729 - ], - [ - -99.26635, - 26.653314 - ], - [ - -99.252662, - 26.644483 - ], - [ - -99.240299, - 26.639184 - ], - [ - -99.244861, - 26.652431 - ], - [ - -99.240299, - 26.697763 - ], - [ - -99.242507, - 26.713658 - ], - [ - -99.252368, - 26.743683 - ], - [ - -99.254575, - 26.75899 - ], - [ - -99.252368, - 26.799024 - ], - [ - -99.254575, - 26.810504 - ], - [ - -99.257666, - 26.813153 - ], - [ - -99.262229, - 26.814036 - ], - [ - -99.266497, - 26.817863 - ], - [ - -99.268263, - 26.827872 - ], - [ - -99.271649, - 26.832876 - ], - [ - -99.289458, - 26.84465 - ], - [ - -99.308444, - 26.830521 - ], - [ - -99.316539, - 26.822279 - ], - [ - -99.323457, - 26.810504 - ], - [ - -99.328166, - 26.797258 - ], - [ - -99.329197, - 26.789016 - ], - [ - -99.331699, - 26.78254 - ], - [ - -99.340383, - 26.77312 - ], - [ - -99.366728, - 26.761345 - ], - [ - -99.380269, - 26.777241 - ], - [ - -99.391896, - 26.796963 - ], - [ - -99.412207, - 26.796963 - ], - [ - -99.410883, - 26.808149 - ], - [ - -99.405437, - 26.818452 - ], - [ - -99.396606, - 26.824928 - ], - [ - -99.384979, - 26.824928 - ], - [ - -99.377178, - 26.816686 - ], - [ - -99.374823, - 26.804028 - ], - [ - -99.374234, - 26.791076 - ], - [ - -99.371291, - 26.783128 - ], - [ - -99.360694, - 26.780479 - ], - [ - -99.359369, - 26.790487 - ], - [ - -99.36452, - 26.810504 - ], - [ - -99.357897, - 26.822279 - ], - [ - -99.351274, - 26.83111 - ], - [ - -99.346123, - 26.840824 - ], - [ - -99.344062, - 26.855247 - ], - [ - -99.348772, - 26.899696 - ], - [ - -99.355101, - 26.920302 - ], - [ - -99.36452, - 26.934726 - ], - [ - -99.403377, - 26.952093 - ], - [ - -99.413974, - 26.964162 - ], - [ - -99.401758, - 26.985651 - ], - [ - -99.399991, - 26.999192 - ], - [ - -99.418831, - 27.007728 - ], - [ - -99.441938, - 27.013615 - ], - [ - -99.453271, - 27.019797 - ], - [ - -99.455332, - 27.025979 - ], - [ - -99.464751, - 27.039225 - ], - [ - -99.466959, - 27.047467 - ], - [ - -99.462544, - 27.057181 - ], - [ - -99.461635, - 27.056839 - ], - [ - -99.461728, - 27.056954 - ], - [ - -99.442039, - 27.089614 - ], - [ - -99.439404, - 27.098347 - ], - [ - -99.441419, - 27.107494 - ], - [ - -99.445734, - 27.114728 - ], - [ - -99.450178, - 27.120465 - ], - [ - -99.452452, - 27.125012 - ], - [ - -99.450333, - 27.145166 - ], - [ - -99.435786, - 27.188419 - ], - [ - -99.431988, - 27.207591 - ], - [ - -99.434029, - 27.22697 - ], - [ - -99.440902, - 27.244798 - ], - [ - -99.451832, - 27.26118 - ], - [ - -99.46612, - 27.276527 - ], - [ - -99.468963, - 27.278233 - ], - [ - -99.480409, - 27.283297 - ], - [ - -99.482941, - 27.286708 - ], - [ - -99.484879, - 27.294821 - ], - [ - -99.486584, - 27.297611 - ], - [ - -99.493199, - 27.30128 - ], - [ - -99.521362, - 27.311254 - ], - [ - -99.5148, - 27.321796 - ], - [ - -99.497591, - 27.338798 - ], - [ - -99.494026, - 27.348203 - ], - [ - -99.492889, - 27.358848 - ], - [ - -99.487721, - 27.37187 - ], - [ - -99.484621, - 27.391766 - ], - [ - -99.475706, - 27.414762 - ], - [ - -99.472916, - 27.426647 - ], - [ - -99.473639, - 27.463803 - ], - [ - -99.472916, - 27.468299 - ], - [ - -99.47643, - 27.48251 - ], - [ - -99.480409, - 27.490778 - ], - [ - -99.48829, - 27.494654 - ], - [ - -99.503689, - 27.495584 - ], - [ - -99.509503, - 27.500028 - ], - [ - -99.510071, - 27.510518 - ], - [ - -99.507074, - 27.533437 - ], - [ - -99.507203, - 27.57377 - ], - [ - -99.515006, - 27.588601 - ], - [ - -99.535031, - 27.604828 - ], - [ - -99.55503, - 27.613509 - ], - [ - -99.572264, - 27.61847 - ], - [ - -99.578232, - 27.622811 - ], - [ - -99.590247, - 27.642061 - ], - [ - -99.600169, - 27.646427 - ], - [ - -99.612442, - 27.643637 - ], - [ - -99.633526, - 27.633069 - ], - [ - -99.644869, - 27.632733 - ], - [ - -99.648642, - 27.636919 - ], - [ - -99.658693, - 27.654024 - ], - [ - -99.664739, - 27.659398 - ], - [ - -99.70037, - 27.659191 - ], - [ - -99.705692, - 27.66317 - ], - [ - -99.710674, - 27.670116 - ], - [ - -99.723056, - 27.687381 - ], - [ - -99.730652, - 27.691825 - ], - [ - -99.734037, - 27.702031 - ], - [ - -99.736311, - 27.713607 - ], - [ - -99.740445, - 27.722159 - ], - [ - -99.747344, - 27.726009 - ], - [ - -99.765198, - 27.731177 - ], - [ - -99.774577, - 27.735828 - ], - [ - -99.78685, - 27.748488 - ], - [ - -99.795428, - 27.761924 - ], - [ - -99.806963, - 27.771423 - ], - [ - -99.808167, - 27.772414 - ], - [ - -99.83292, - 27.776755 - ], - [ - -99.832971, - 27.782181 - ], - [ - -99.844779, - 27.793576 - ], - [ - -99.858241, - 27.803524 - ], - [ - -99.863357, - 27.804661 - ], - [ - -99.864727, - 27.814324 - ], - [ - -99.861858, - 27.83608 - ], - [ - -99.863357, - 27.845666 - ], - [ - -99.870928, - 27.854477 - ], - [ - -99.880204, - 27.859231 - ], - [ - -99.888007, - 27.864812 - ], - [ - -99.891288, - 27.876026 - ], - [ - -99.882684, - 27.89158 - ], - [ - -99.878808, - 27.901838 - ], - [ - -99.88134, - 27.906463 - ], - [ - -99.896766, - 27.912923 - ], - [ - -99.914336, - 27.928245 - ], - [ - -99.929916, - 27.946331 - ], - [ - -99.939683, - 27.961085 - ], - [ - -99.928289, - 27.975761 - ], - [ - -99.940717, - 27.983254 - ], - [ - -99.961852, - 27.987492 - ], - [ - -99.976606, - 27.992453 - ], - [ - -99.991127, - 28.007801 - ], - [ - -100.000584, - 28.02041 - ], - [ - -100.007457, - 28.033561 - ], - [ - -100.014123, - 28.050459 - ], - [ - -100.013503, - 28.056971 - ], - [ - -100.010506, - 28.063611 - ], - [ - -100.010196, - 28.068882 - ], - [ - -100.017585, - 28.070949 - ], - [ - -100.031538, - 28.081801 - ], - [ - -100.045077, - 28.095289 - ], - [ - -100.048023, - 28.102523 - ], - [ - -100.048901, - 28.115959 - ], - [ - -100.056498, - 28.137922 - ], - [ - -100.074895, - 28.154407 - ], - [ - -100.172873, - 28.198538 - ], - [ - -100.189203, - 28.201329 - ], - [ - -100.197626, - 28.207168 - ], - [ - -100.201192, - 28.220346 - ], - [ - -100.202949, - 28.234428 - ], - [ - -100.205946, - 28.242877 - ], - [ - -100.212819, - 28.245073 - ], - [ - -100.240724, - 28.249698 - ], - [ - -100.257932, - 28.260524 - ], - [ - -100.275089, - 28.277242 - ], - [ - -100.284339, - 28.296517 - ], - [ - -100.277931, - 28.314888 - ], - [ - -100.278551, - 28.331088 - ], - [ - -100.293899, - 28.353413 - ], - [ - -100.322631, - 28.386899 - ], - [ - -100.331675, - 28.422013 - ], - [ - -100.336326, - 28.458574 - ], - [ - -100.340201, - 28.464259 - ], - [ - -100.348315, - 28.470253 - ], - [ - -100.355549, - 28.478185 - ], - [ - -100.35679, - 28.489322 - ], - [ - -100.351622, - 28.496711 - ], - [ - -100.322631, - 28.510406 - ], - [ - -100.364024, - 28.524797 - ], - [ - -100.38423, - 28.537174 - ], - [ - -100.397769, - 28.557586 - ], - [ - -100.398751, - 28.568645 - ], - [ - -100.397097, - 28.592726 - ], - [ - -100.401438, - 28.60226 - ], - [ - -100.411463, - 28.609314 - ], - [ - -100.434821, - 28.619133 - ], - [ - -100.44619, - 28.626497 - ], - [ - -100.444898, - 28.643782 - ], - [ - -100.481381, - 28.686054 - ], - [ - -100.493939, - 28.708378 - ], - [ - -100.519054, - 28.804961 - ], - [ - -100.524996, - 28.814831 - ], - [ - -100.529285, - 28.819947 - ], - [ - -100.534453, - 28.830231 - ], - [ - -100.538639, - 28.835631 - ], - [ - -100.54515, - 28.83899 - ], - [ - -100.559671, - 28.839378 - ], - [ - -100.566234, - 28.842504 - ], - [ - -100.569696, - 28.84961 - ], - [ - -100.56334, - 28.86209 - ], - [ - -100.566234, - 28.869789 - ], - [ - -100.571763, - 28.8732 - ], - [ - -100.586543, - 28.879789 - ], - [ - -100.58954, - 28.883458 - ], - [ - -100.594966, - 28.899322 - ], - [ - -100.606955, - 28.910123 - ], - [ - -100.618841, - 28.917926 - ], - [ - -100.624318, - 28.924721 - ], - [ - -100.624783, - 28.93777 - ], - [ - -100.626696, - 28.948338 - ], - [ - -100.630778, - 28.956683 - ], - [ - -100.637909, - 28.962884 - ], - [ - -100.628918, - 28.98433 - ], - [ - -100.632793, - 29.005156 - ], - [ - -100.652224, - 29.044817 - ], - [ - -100.660854, - 29.102669 - ], - [ - -100.668967, - 29.116208 - ], - [ - -100.678165, - 29.119412 - ], - [ - -100.690826, - 29.121014 - ], - [ - -100.70204, - 29.12365 - ], - [ - -100.706846, - 29.130187 - ], - [ - -100.70974, - 29.135561 - ], - [ - -100.762501, - 29.173776 - ], - [ - -100.770098, - 29.187289 - ], - [ - -100.762088, - 29.208658 - ], - [ - -100.783172, - 29.243074 - ], - [ - -100.796143, - 29.257673 - ], - [ - -100.81609, - 29.270773 - ], - [ - -100.86389, - 29.290616 - ], - [ - -100.871797, - 29.296456 - ], - [ - -100.891227, - 29.318547 - ], - [ - -100.91474, - 29.337048 - ], - [ - -100.987397, - 29.366322 - ], - [ - -100.998301, - 29.372472 - ], - [ - -101.008068, - 29.380585 - ], - [ - -101.016232, - 29.390068 - ], - [ - -101.022175, - 29.40048 - ], - [ - -101.025948, - 29.414356 - ], - [ - -101.029617, - 29.442984 - ], - [ - -101.037782, - 29.460063 - ], - [ - -101.039026, - 29.460452 - ], - [ - -101.040188, - 29.457132 - ], - [ - -101.045487, - 29.451245 - ], - [ - -101.060205, - 29.449184 - ], - [ - -101.067711, - 29.45095 - ], - [ - -101.076101, - 29.453894 - ], - [ - -101.085962, - 29.454483 - ], - [ - -101.098031, - 29.449184 - ], - [ - -101.113043, - 29.466552 - ], - [ - -101.142774, - 29.475383 - ], - [ - -101.174124, - 29.475971 - ], - [ - -101.193699, - 29.469495 - ], - [ - -101.198703, - 29.473911 - ], - [ - -101.198851, - 29.476854 - ], - [ - -101.184132, - 29.497754 - ], - [ - -101.184868, - 29.512767 - ], - [ - -101.195171, - 29.521892 - ], - [ - -101.214157, - 29.518065 - ], - [ - -101.245213, - 29.493044 - ], - [ - -101.265818, - 29.487157 - ], - [ - -101.290545, - 29.49746 - ], - [ - -101.297315, - 29.503936 - ], - [ - -101.300995, - 29.512767 - ], - [ - -101.294372, - 29.520715 - ], - [ - -101.273177, - 29.524247 - ], - [ - -101.259195, - 29.533372 - ], - [ - -101.243888, - 29.554861 - ], - [ - -101.231966, - 29.580176 - ], - [ - -101.227845, - 29.599899 - ], - [ - -101.239178, - 29.616677 - ], - [ - -101.26052, - 29.613439 - ], - [ - -101.281272, - 29.597249 - ], - [ - -101.290545, - 29.575761 - ], - [ - -101.295255, - 29.570168 - ], - [ - -101.306146, - 29.574583 - ], - [ - -101.317626, - 29.584003 - ], - [ - -101.323955, - 29.592539 - ], - [ - -101.323661, - 29.603137 - ], - [ - -101.318804, - 29.616383 - ], - [ - -101.311445, - 29.628158 - ], - [ - -101.303497, - 29.634045 - ], - [ - -101.303669, - 29.631411 - ], - [ - -101.302727, - 29.633851 - ], - [ - -101.301073, - 29.649509 - ], - [ - -101.30978, - 29.654548 - ], - [ - -101.336239, - 29.654315 - ], - [ - -101.349029, - 29.660103 - ], - [ - -101.357684, - 29.667441 - ], - [ - -101.364351, - 29.676665 - ], - [ - -101.376624, - 29.700643 - ], - [ - -101.383368, - 29.718497 - ], - [ - -101.39962, - 29.740718 - ], - [ - -101.406545, - 29.752888 - ], - [ - -101.409309, - 29.765781 - ], - [ - -101.405098, - 29.778442 - ], - [ - -101.414012, - 29.774411 - ], - [ - -101.424218, - 29.771414 - ], - [ - -101.435096, - 29.770122 - ], - [ - -101.446103, - 29.771052 - ], - [ - -101.455689, - 29.77591 - ], - [ - -101.462433, - 29.788932 - ], - [ - -101.470908, - 29.791516 - ], - [ - -101.490286, - 29.785547 - ], - [ - -101.505763, - 29.773894 - ], - [ - -101.521809, - 29.765936 - ], - [ - -101.542893, - 29.771052 - ], - [ - -101.539689, - 29.779191 - ], - [ - -101.530516, - 29.796477 - ], - [ - -101.528604, - 29.801438 - ], - [ - -101.531912, - 29.811101 - ], - [ - -101.539172, - 29.817974 - ], - [ - -101.546458, - 29.820145 - ], - [ - -101.549766, - 29.815701 - ], - [ - -101.553977, - 29.796684 - ], - [ - -101.564907, - 29.786478 - ], - [ - -101.580281, - 29.781568 - ], - [ - -101.632216, - 29.775651 - ], - [ - -101.794531, - 29.795857 - ], - [ - -101.80298, - 29.801438 - ], - [ - -101.805978, - 29.811928 - ], - [ - -101.812695, - 29.812032 - ], - [ - -101.82409, - 29.805184 - ], - [ - -101.857602, - 29.805184 - ], - [ - -101.877524, - 29.810843 - ], - [ - -101.88742, - 29.81229 - ], - [ - -101.895455, - 29.808621 - ], - [ - -101.90238, - 29.803247 - ], - [ - -101.910881, - 29.799888 - ], - [ - -101.920157, - 29.798182 - ], - [ - -101.929613, - 29.797717 - ], - [ - -101.942662, - 29.803608 - ], - [ - -101.957054, - 29.814047 - ], - [ - -101.972246, - 29.818181 - ], - [ - -101.98793, - 29.805184 - ], - [ - -102.014595, - 29.810998 - ], - [ - -102.109344, - 29.80211 - ], - [ - -102.145647, - 29.815701 - ], - [ - -102.157248, - 29.824537 - ], - [ - -102.203679, - 29.846138 - ], - [ - -102.239775, - 29.849135 - ], - [ - -102.253444, - 29.855285 - ], - [ - -102.258276, - 29.873475 - ], - [ - -102.276181, - 29.869547 - ], - [ - -102.289023, - 29.878126 - ], - [ - -102.302175, - 29.889391 - ], - [ - -102.321011, - 29.893939 - ], - [ - -102.330235, - 29.888926 - ], - [ - -102.339769, - 29.870633 - ], - [ - -102.351061, - 29.866602 - ], - [ - -102.36323, - 29.864276 - ], - [ - -102.370723, - 29.857765 - ], - [ - -102.374547, - 29.848102 - ], - [ - -102.376589, - 29.821488 - ], - [ - -102.380051, - 29.811386 - ], - [ - -102.404132, - 29.780793 - ], - [ - -102.406096, - 29.777279 - ], - [ - -102.515288, - 29.784721 - ], - [ - -102.523066, - 29.782318 - ], - [ - -102.531127, - 29.769915 - ], - [ - -102.54154, - 29.762474 - ], - [ - -102.543349, - 29.760123 - ], - [ - -102.546578, - 29.757875 - ], - [ - -102.553141, - 29.756738 - ], - [ - -102.558309, - 29.759089 - ], - [ - -102.562882, - 29.769347 - ], - [ - -102.566758, - 29.771052 - ], - [ - -102.58531, - 29.764696 - ], - [ - -102.621225, - 29.747281 - ], - [ - -102.638743, - 29.743715 - ], - [ - -102.676054, - 29.74449 - ], - [ - -102.683469, - 29.743715 - ], - [ - -102.69104, - 29.736817 - ], - [ - -102.693624, - 29.729401 - ], - [ - -102.694709, - 29.720616 - ], - [ - -102.697758, - 29.709557 - ], - [ - -102.726748, - 29.664495 - ], - [ - -102.73127, - 29.650594 - ], - [ - -102.735507, - 29.649509 - ], - [ - -102.751656, - 29.622457 - ], - [ - -102.75176, - 29.620157 - ], - [ - -102.761346, - 29.603414 - ], - [ - -102.767598, - 29.59729 - ], - [ - -102.779665, - 29.592303 - ], - [ - -102.774084, - 29.579617 - ], - [ - -102.776461, - 29.575948 - ], - [ - -102.785892, - 29.571814 - ], - [ - -102.78075, - 29.558249 - ], - [ - -102.786512, - 29.550497 - ], - [ - -102.795478, - 29.54427 - ], - [ - -102.827311, - 29.470502 - ], - [ - -102.833951, - 29.461355 - ], - [ - -102.839067, - 29.45195 - ], - [ - -102.841134, - 29.438308 - ], - [ - -102.838705, - 29.426939 - ], - [ - -102.834984, - 29.415699 - ], - [ - -102.835191, - 29.403839 - ], - [ - -102.844545, - 29.390533 - ], - [ - -102.845578, - 29.384719 - ], - [ - -102.838033, - 29.370534 - ], - [ - -102.837672, - 29.366322 - ], - [ - -102.84656, - 29.361749 - ], - [ - -102.853872, - 29.361 - ], - [ - -102.859867, - 29.361155 - ], - [ - -102.864957, - 29.359527 - ], - [ - -102.876972, - 29.350871 - ], - [ - -102.883069, - 29.343766 - ], - [ - -102.885188, - 29.333379 - ], - [ - -102.885498, - 29.314801 - ], - [ - -102.899399, - 29.276095 - ], - [ - -102.899709, - 29.2639 - ], - [ - -102.892139, - 29.254391 - ], - [ - -102.867954, - 29.240387 - ], - [ - -102.858781, - 29.229147 - ], - [ - -102.869866, - 29.224781 - ], - [ - -102.896893, - 29.220285 - ], - [ - -102.942265, - 29.190209 - ], - [ - -102.947536, - 29.182018 - ], - [ - -102.969757, - 29.192845 - ], - [ - -102.988386, - 29.177135 - ], - [ - -103.015826, - 29.126776 - ], - [ - -103.024275, - 29.116157 - ], - [ - -103.032621, - 29.110214 - ], - [ - -103.072541, - 29.091404 - ], - [ - -103.080758, - 29.085203 - ], - [ - -103.085589, - 29.07572 - ], - [ - -103.091532, - 29.057866 - ], - [ - -103.095356, - 29.060294 - ], - [ - -103.104684, - 29.057866 - ], - [ - -103.109205, - 29.023372 - ], - [ - -103.122771, - 28.996474 - ], - [ - -103.147989, - 28.985105 - ], - [ - -103.187108, - 28.990221 - ], - [ - -103.241756, - 29.003502 - ], - [ - -103.301545, - 29.002365 - ], - [ - -103.316247, - 29.010065 - ], - [ - -103.311514, - 29.026043 - ], - [ - -103.309994, - 29.031175 - ], - [ - -103.3248, - 29.026808 - ], - [ - -103.330484, - 29.023733 - ], - [ - -103.342602, - 29.041226 - ], - [ - -103.351671, - 29.039417 - ], - [ - -103.360534, - 29.029831 - ], - [ - -103.372083, - 29.023733 - ], - [ - -103.38663, - 29.028798 - ], - [ - -103.414639, - 29.052414 - ], - [ - -103.423605, - 29.057866 - ], - [ - -103.435697, - 29.061121 - ], - [ - -103.478537, - 29.08205 - ], - [ - -103.529748, - 29.126776 - ], - [ - -103.535588, - 29.135122 - ], - [ - -103.538223, - 29.142408 - ], - [ - -103.541711, - 29.148816 - ], - [ - -103.550238, - 29.154656 - ], - [ - -103.558015, - 29.156206 - ], - [ - -103.58499, - 29.154656 - ], - [ - -103.673125, - 29.173569 - ], - [ - -103.702477, - 29.187858 - ], - [ - -103.749476, - 29.222972 - ], - [ - -103.759062, - 29.226848 - ], - [ - -103.770767, - 29.229845 - ], - [ - -103.777718, - 29.235297 - ], - [ - -103.769424, - 29.257543 - ], - [ - -103.774229, - 29.267517 - ], - [ - -103.78366, - 29.274803 - ], - [ - -103.794177, - 29.277594 - ], - [ - -103.837038, - 29.279906 - ] - ] - ], - [ - [ - [ - 178.301106, - 52.056551 - ], - [ - 179.595462, - 52.142083 - ], - [ - 179.825447, - 51.992849 - ], - [ - 179.661729, - 51.485763 - ], - [ - 179.723231, - 51.459963 - ], - [ - 179.408066, - 51.209841 - ], - [ - 178.411463, - 51.523605 - ], - [ - 177.698335, - 51.877899 - ], - [ - 177.16784, - 51.581866 - ], - [ - 176.487008, - 52.175325 - ], - [ - 174.484678, - 52.08716 - ], - [ - 172.866263, - 52.207379 - ], - [ - 172.825506, - 52.716846 - ], - [ - 172.747012, - 52.654022 - ], - [ - 172.08261, - 52.952695 - ], - [ - 172.942925, - 53.183013 - ], - [ - 173.029416, - 52.993628 - ], - [ - 173.127208, - 52.99494 - ], - [ - 173.143321, - 52.990383 - ], - [ - 173.175059, - 52.971747 - ], - [ - 173.182932, - 52.968373 - ], - [ - 176.45233, - 52.628178 - ], - [ - 176.468135, - 52.488358 - ], - [ - 177.900385, - 52.488358 - ], - [ - 178.007601, - 52.179677 - ], - [ - 178.301106, - 52.056551 - ] - ] - ], - [ - [ - [ - -168.899607, - 65.747626 - ], - [ - -168.909861, - 65.739569 - ], - [ - -168.926218, - 65.739895 - ], - [ - -168.942128, - 65.74372 - ], - [ - -168.951731, - 65.75316 - ], - [ - -168.942983, - 65.764716 - ], - [ - -168.920115, - 65.768866 - ], - [ - -168.907908, - 65.768297 - ], - [ - -168.902781, - 65.761542 - ], - [ - -168.899607, - 65.747626 - ] - ] - ], - [ - [ - [ - -131.160718, - 54.787192 - ], - [ - -132.853508, - 54.482536 - ], - [ - -134.77719, - 54.717786 - ], - [ - -142.6966, - 55.845503 - ], - [ - -142.861997, - 49.948308 - ], - [ - -155.675916, - 51.109976 - ], - [ - -164.492732, - 50.603976 - ], - [ - -164.691217, - 50.997975 - ], - [ - -171.246993, - 49.948308 - ], - [ - -171.215436, - 50.576636 - ], - [ - -173.341669, - 50.968826 - ], - [ - -173.362022, - 51.082198 - ], - [ - -177.799603, - 51.272899 - ], - [ - -179.155463, - 50.982285 - ], - [ - -179.476076, - 52.072632 - ], - [ - -177.11459, - 52.248701 - ], - [ - -177.146284, - 52.789384 - ], - [ - -174.777218, - 52.443779 - ], - [ - -174.773743, - 52.685853 - ], - [ - -173.653194, - 52.704099 - ], - [ - -173.790528, - 53.469081 - ], - [ - -171.063371, - 53.604473 - ], - [ - -170.777733, - 59.291898 - ], - [ - -174.324884, - 60.332184 - ], - [ - -171.736408, - 62.68026 - ], - [ - -172.315705, - 62.725352 - ], - [ - -171.995091, - 63.999658 - ], - [ - -168.501424, - 65.565173 - ], - [ - -168.714145, - 65.546708 - ], - [ - -168.853077, - 68.370871 - ], - [ - -161.115601, - 72.416214 - ], - [ - -146.132257, - 70.607941 - ], - [ - -140.692512, - 69.955349 - ], - [ - -141.145395, - 69.671641 - ], - [ - -141.015207, - 69.654202 - ], - [ - -141.006459, - 69.651272 - ], - [ - -141.005564, - 69.650946 - ], - [ - -141.005549, - 69.650941 - ], - [ - -141.005471, - 69.505164 - ], - [ - -141.001208, - 60.466879 - ], - [ - -141.001156, - 60.321074 - ], - [ - -140.994929, - 60.304382 - ], - [ - -140.979555, - 60.295804 - ], - [ - -140.909146, - 60.28366 - ], - [ - -140.768457, - 60.259269 - ], - [ - -140.660505, - 60.24051 - ], - [ - -140.533743, - 60.218548 - ], - [ - -140.518705, - 60.22387 - ], - [ - -140.506664, - 60.236324 - ], - [ - -140.475323, - 60.276477 - ], - [ - -140.462791, - 60.289138 - ], - [ - -140.447805, - 60.29446 - ], - [ - -140.424111, - 60.293168 - ], - [ - -140.32497, - 60.267537 - ], - [ - -140.169243, - 60.227229 - ], - [ - -140.01579, - 60.187387 - ], - [ - -139.967757, - 60.188369 - ], - [ - -139.916933, - 60.207851 - ], - [ - -139.826318, - 60.256478 - ], - [ - -139.728417, - 60.309033 - ], - [ - -139.679816, - 60.32681 - ], - [ - -139.628346, - 60.334096 - ], - [ - -139.517965, - 60.336732 - ], - [ - -139.413992, - 60.339212 - ], - [ - -139.262193, - 60.342778 - ], - [ - -139.101608, - 60.346602 - ], - [ - -139.079465, - 60.341021 - ], - [ - -139.06869, - 60.322056 - ], - [ - -139.073186, - 60.299835 - ], - [ - -139.113468, - 60.226816 - ], - [ - -139.149615, - 60.161187 - ], - [ - -139.183231, - 60.100157 - ], - [ - -139.182146, - 60.073389 - ], - [ - -139.112305, - 60.031376 - ], - [ - -139.060207, - 60.000059 - ], - [ - -139.051611, - 59.994892 - ], - [ - -139.003759, - 59.977219 - ], - [ - -138.842425, - 59.937686 - ], - [ - -138.742586, - 59.913192 - ], - [ - -138.704888, - 59.898464 - ], - [ - -138.697188, - 59.89371 - ], - [ - -138.692098, - 59.886888 - ], - [ - -138.654349, - 59.805498 - ], - [ - -138.63745, - 59.784052 - ], - [ - -138.59921, - 59.753822 - ], - [ - -138.488881, - 59.696357 - ], - [ - -138.363617, - 59.631142 - ], - [ - -138.219543, - 59.556004 - ], - [ - -138.067614, - 59.476991 - ], - [ - -137.91057, - 59.395187 - ], - [ - -137.758305, - 59.315915 - ], - [ - -137.611363, - 59.239331 - ], - [ - -137.594181, - 59.225275 - ], - [ - -137.582088, - 59.206568 - ], - [ - -137.5493, - 59.134531 - ], - [ - -137.521007, - 59.072364 - ], - [ - -137.484394, - 58.991904 - ], - [ - -137.507752, - 58.939969 - ], - [ - -137.50876, - 58.914906 - ], - [ - -137.486875, - 58.900075 - ], - [ - -137.453466, - 58.899145 - ], - [ - -137.423106, - 58.907723 - ], - [ - -137.338098, - 58.955472 - ], - [ - -137.2819, - 58.98715 - ], - [ - -137.172346, - 59.027148 - ], - [ - -137.062367, - 59.067572 - ], - [ - -137.047109, - 59.07331 - ], - [ - -136.942282, - 59.11107 - ], - [ - -136.840816, - 59.148174 - ], - [ - -136.785496, - 59.157217 - ], - [ - -136.671911, - 59.150809 - ], - [ - -136.613491, - 59.15422 - ], - [ - -136.569489, - 59.172152 - ], - [ - -136.484791, - 59.2538 - ], - [ - -136.483551, - 59.257469 - ], - [ - -136.466549, - 59.287803 - ], - [ - -136.467092, - 59.38449 - ], - [ - -136.467557, - 59.461643 - ], - [ - -136.415958, - 59.452238 - ], - [ - -136.36684, - 59.449551 - ], - [ - -136.319995, - 59.459059 - ], - [ - -136.275036, - 59.486448 - ], - [ - -136.244728, - 59.528202 - ], - [ - -136.258474, - 59.556107 - ], - [ - -136.29935, - 59.575745 - ], - [ - -136.350329, - 59.592384 - ], - [ - -136.2585, - 59.621582 - ], - [ - -136.145406, - 59.636826 - ], - [ - -136.02686, - 59.652846 - ], - [ - -135.923818, - 59.666747 - ], - [ - -135.830955, - 59.693257 - ], - [ - -135.641251, - 59.747362 - ], - [ - -135.482759, - 59.792475 - ], - [ - -135.465137, - 59.789685 - ], - [ - -135.404392, - 59.753305 - ], - [ - -135.345791, - 59.731032 - ], - [ - -135.259879, - 59.698218 - ], - [ - -135.221897, - 59.675273 - ], - [ - -135.192028, - 59.64711 - ], - [ - -135.157792, - 59.623287 - ], - [ - -135.106684, - 59.613158 - ], - [ - -135.087874, - 59.606544 - ], - [ - -135.032942, - 59.573109 - ], - [ - -135.018524, - 59.559363 - ], - [ - -135.016198, - 59.543447 - ], - [ - -135.01948, - 59.493166 - ], - [ - -135.023252, - 59.477146 - ], - [ - -135.037489, - 59.461591 - ], - [ - -135.078598, - 59.438337 - ], - [ - -135.095754, - 59.418855 - ], - [ - -134.993254, - 59.381906 - ], - [ - -135.00483, - 59.367127 - ], - [ - -135.014441, - 59.35152 - ], - [ - -135.016198, - 59.336173 - ], - [ - -134.979973, - 59.297415 - ], - [ - -134.95783, - 59.280982 - ], - [ - -134.932431, - 59.270647 - ], - [ - -134.839465, - 59.258141 - ], - [ - -134.74345, - 59.245119 - ], - [ - -134.70552, - 59.240106 - ], - [ - -134.692084, - 59.235249 - ], - [ - -134.68286, - 59.223001 - ], - [ - -134.671439, - 59.193752 - ], - [ - -134.66038, - 59.181298 - ], - [ - -134.610771, - 59.144556 - ], - [ - -134.582788, - 59.128847 - ], - [ - -134.556717, - 59.123059 - ], - [ - -134.509072, - 59.122801 - ], - [ - -134.477575, - 59.114946 - ], - [ - -134.451013, - 59.097893 - ], - [ - -134.398019, - 59.051952 - ], - [ - -134.387167, - 59.036863 - ], - [ - -134.385591, - 59.018828 - ], - [ - -134.399389, - 58.974954 - ], - [ - -134.343423, - 58.968857 - ], - [ - -134.329651, - 58.963017 - ], - [ - -134.320039, - 58.952682 - ], - [ - -134.32314, - 58.949168 - ], - [ - -134.330323, - 58.945344 - ], - [ - -134.333036, - 58.93413 - ], - [ - -134.327403, - 58.916457 - ], - [ - -134.316939, - 58.903796 - ], - [ - -134.22219, - 58.842714 - ], - [ - -134.108838, - 58.808246 - ], - [ - -133.983109, - 58.769902 - ], - [ - -133.87123, - 58.735899 - ], - [ - -133.831129, - 58.718019 - ], - [ - -133.796402, - 58.693421 - ], - [ - -133.700077, - 58.59937 - ], - [ - -133.626283, - 58.546402 - ], - [ - -133.547063, - 58.505577 - ], - [ - -133.463089, - 58.462221 - ], - [ - -133.392241, - 58.403878 - ], - [ - -133.43012, - 58.372097 - ], - [ - -133.41503, - 58.330549 - ], - [ - -133.374567, - 58.290965 - ], - [ - -133.257262, - 58.210298 - ], - [ - -133.165588, - 58.147305 - ], - [ - -133.142127, - 58.120588 - ], - [ - -133.094843, - 58.0331 - ], - [ - -133.075154, - 58.007882 - ], - [ - -132.99335, - 57.941917 - ], - [ - -132.917153, - 57.880499 - ], - [ - -132.83212, - 57.791564 - ], - [ - -132.70944, - 57.663303 - ], - [ - -132.629057, - 57.579277 - ], - [ - -132.552447, - 57.499075 - ], - [ - -132.455735, - 57.420992 - ], - [ - -132.362304, - 57.3457 - ], - [ - -132.304684, - 57.280355 - ], - [ - -132.230994, - 57.19682 - ], - [ - -132.276366, - 57.14889 - ], - [ - -132.34122, - 57.080393 - ], - [ - -132.16229, - 57.050317 - ], - [ - -132.031859, - 57.028406 - ], - [ - -132.107384, - 56.858753 - ], - [ - -131.871558, - 56.79346 - ], - [ - -131.865874, - 56.785708 - ], - [ - -131.872411, - 56.77297 - ], - [ - -131.882617, - 56.759146 - ], - [ - -131.887966, - 56.747958 - ], - [ - -131.886028, - 56.737055 - ], - [ - -131.880705, - 56.728838 - ], - [ - -131.864789, - 56.71349 - ], - [ - -131.838976, - 56.682278 - ], - [ - -131.830424, - 56.664759 - ], - [ - -131.826574, - 56.644606 - ], - [ - -131.832103, - 56.603368 - ], - [ - -131.825592, - 56.593343 - ], - [ - -131.799108, - 56.587658 - ], - [ - -131.692293, - 56.585074 - ], - [ - -131.585891, - 56.595048 - ], - [ - -131.560363, - 56.594066 - ], - [ - -131.536437, - 56.585229 - ], - [ - -131.491659, - 56.560166 - ], - [ - -131.345699, - 56.503271 - ], - [ - -131.215604, - 56.45255 - ], - [ - -131.100546, - 56.407669 - ], - [ - -131.016934, - 56.38705 - ], - [ - -130.839089, - 56.372452 - ], - [ - -130.760334, - 56.345192 - ], - [ - -130.645768, - 56.261942 - ], - [ - -130.602256, - 56.247059 - ], - [ - -130.495518, - 56.232434 - ], - [ - -130.47229, - 56.22489 - ], - [ - -130.458053, - 56.210653 - ], - [ - -130.427926, - 56.143964 - ], - [ - -130.418159, - 56.129702 - ], - [ - -130.403974, - 56.121898 - ], - [ - -130.290311, - 56.10097 - ], - [ - -130.243156, - 56.092391 - ], - [ - -130.211246, - 56.089962 - ], - [ - -130.116756, - 56.105646 - ], - [ - -130.094328, - 56.101486 - ], - [ - -130.071539, - 56.084123 - ], - [ - -130.039319, - 56.045521 - ], - [ - -130.026632, - 56.024101 - ], - [ - -130.01901, - 56.002216 - ], - [ - -130.014695, - 55.963252 - ], - [ - -130.016788, - 55.918913 - ], - [ - -130.019612, - 55.907978 - ], - [ - -130.019618, - 55.907952 - ], - [ - -130.022817, - 55.901353 - ], - [ - -130.049387, - 55.871405 - ], - [ - -130.104726, - 55.825263 - ], - [ - -130.136627, - 55.806464 - ], - [ - -130.148834, - 55.795356 - ], - [ - -130.163482, - 55.771145 - ], - [ - -130.167307, - 55.766262 - ], - [ - -130.170806, - 55.759833 - ], - [ - -130.173655, - 55.749498 - ], - [ - -130.170806, - 55.740953 - ], - [ - -130.163808, - 55.734565 - ], - [ - -130.160064, - 55.727118 - ], - [ - -130.167388, - 55.715399 - ], - [ - -130.155914, - 55.700141 - ], - [ - -130.142893, - 55.689521 - ], - [ - -130.131825, - 55.676581 - ], - [ - -130.126454, - 55.653998 - ], - [ - -130.12857, - 55.63642 - ], - [ - -130.135121, - 55.619127 - ], - [ - -130.153147, - 55.58511 - ], - [ - -130.148671, - 55.578192 - ], - [ - -130.146881, - 55.569322 - ], - [ - -130.146962, - 55.547187 - ], - [ - -130.112172, - 55.509345 - ], - [ - -130.101674, - 55.481147 - ], - [ - -130.095082, - 55.472113 - ], - [ - -130.065419, - 55.446112 - ], - [ - -130.057525, - 55.434882 - ], - [ - -130.052561, - 55.414008 - ], - [ - -130.054311, - 55.366645 - ], - [ - -130.05012, - 55.345445 - ], - [ - -130.039296, - 55.330756 - ], - [ - -129.989247, - 55.284003 - ], - [ - -130.031239, - 55.26435 - ], - [ - -130.050038, - 55.252875 - ], - [ - -130.067494, - 55.239 - ], - [ - -130.078236, - 55.233791 - ], - [ - -130.100494, - 55.230292 - ], - [ - -130.104726, - 55.225653 - ], - [ - -130.105702, - 55.211127 - ], - [ - -130.10912, - 55.200751 - ], - [ - -130.115793, - 55.191596 - ], - [ - -130.126454, - 55.180976 - ], - [ - -130.151967, - 55.163275 - ], - [ - -130.159983, - 55.153713 - ], - [ - -130.167592, - 55.129584 - ], - [ - -130.173695, - 55.117743 - ], - [ - -130.200266, - 55.104153 - ], - [ - -130.211781, - 55.084133 - ], - [ - -130.228871, - 55.04385 - ], - [ - -130.238678, - 55.03441 - ], - [ - -130.261342, - 55.022895 - ], - [ - -130.269846, - 55.016547 - ], - [ - -130.275706, - 55.006985 - ], - [ - -130.286366, - 54.983222 - ], - [ - -130.294342, - 54.971869 - ], - [ - -130.326568, - 54.952094 - ], - [ - -130.335561, - 54.938707 - ], - [ - -130.365387, - 54.907294 - ], - [ - -130.385243, - 54.896552 - ], - [ - -130.430816, - 54.881252 - ], - [ - -130.488759, - 54.844184 - ], - [ - -130.580312, - 54.806383 - ], - [ - -130.597485, - 54.803391 - ], - [ - -130.71074, - 54.733215 - ], - [ - -131.160718, - 54.787192 - ] - ] - ] - ] - } - } - ] - }, - "featureIcons": { - "circle-stroked": { - "12": [ - 42, - 0 - ], - "18": [ - 24, - 0 - ], - "24": [ - 0, - 0 - ] - }, - "circle": { - "12": [ - 96, - 0 - ], - "18": [ - 78, - 0 - ], - "24": [ - 54, - 0 - ] - }, - "square-stroked": { - "12": [ - 150, - 0 - ], - "18": [ - 132, - 0 - ], - "24": [ - 108, - 0 - ] - }, - "square": { - "12": [ - 204, - 0 - ], - "18": [ - 186, - 0 - ], - "24": [ - 162, - 0 - ] - }, - "triangle-stroked": { - "12": [ - 258, - 0 - ], - "18": [ - 240, - 0 - ], - "24": [ - 216, - 0 - ] - }, - "triangle": { - "12": [ - 42, - 24 - ], - "18": [ - 24, - 24 - ], - "24": [ - 0, - 24 - ] - }, - "star-stroked": { - "12": [ - 96, - 24 - ], - "18": [ - 78, - 24 - ], - "24": [ - 54, - 24 - ] - }, - "star": { - "12": [ - 150, - 24 - ], - "18": [ - 132, - 24 - ], - "24": [ - 108, - 24 - ] - }, - "cross": { - "12": [ - 204, - 24 - ], - "18": [ - 186, - 24 - ], - "24": [ - 162, - 24 - ] - }, - "marker-stroked": { - "12": [ - 258, - 24 - ], - "18": [ - 240, - 24 - ], - "24": [ - 216, - 24 - ] - }, - "marker": { - "12": [ - 42, - 48 - ], - "18": [ - 24, - 48 - ], - "24": [ - 0, - 48 - ] - }, - "religious-jewish": { - "12": [ - 96, - 48 - ], - "18": [ - 78, - 48 - ], - "24": [ - 54, - 48 - ] - }, - "religious-christian": { - "12": [ - 150, - 48 - ], - "18": [ - 132, - 48 - ], - "24": [ - 108, - 48 - ] - }, - "religious-muslim": { - "12": [ - 204, - 48 - ], - "18": [ - 186, - 48 - ], - "24": [ - 162, - 48 - ] - }, - "cemetery": { - "12": [ - 258, - 48 - ], - "18": [ - 240, - 48 - ], - "24": [ - 216, - 48 - ] - }, - "rocket": { - "12": [ - 42, - 72 - ], - "18": [ - 24, - 72 - ], - "24": [ - 0, - 72 - ] - }, - "airport": { - "12": [ - 96, - 72 - ], - "18": [ - 78, - 72 - ], - "24": [ - 54, - 72 - ] - }, - "heliport": { - "12": [ - 150, - 72 - ], - "18": [ - 132, - 72 - ], - "24": [ - 108, - 72 - ] - }, - "rail": { - "12": [ - 204, - 72 - ], - "18": [ - 186, - 72 - ], - "24": [ - 162, - 72 - ] - }, - "rail-metro": { - "12": [ - 258, - 72 - ], - "18": [ - 240, - 72 - ], - "24": [ - 216, - 72 - ] - }, - "rail-light": { - "12": [ - 42, - 96 - ], - "18": [ - 24, - 96 - ], - "24": [ - 0, - 96 - ] - }, - "bus": { - "12": [ - 96, - 96 - ], - "18": [ - 78, - 96 - ], - "24": [ - 54, - 96 - ] - }, - "fuel": { - "12": [ - 150, - 96 - ], - "18": [ - 132, - 96 - ], - "24": [ - 108, - 96 - ] - }, - "parking": { - "12": [ - 204, - 96 - ], - "18": [ - 186, - 96 - ], - "24": [ - 162, - 96 - ] - }, - "parking-garage": { - "12": [ - 258, - 96 - ], - "18": [ - 240, - 96 - ], - "24": [ - 216, - 96 - ] - }, - "airfield": { - "12": [ - 42, - 120 - ], - "18": [ - 24, - 120 - ], - "24": [ - 0, - 120 - ] - }, - "roadblock": { - "12": [ - 96, - 120 - ], - "18": [ - 78, - 120 - ], - "24": [ - 54, - 120 - ] - }, - "ferry": { - "12": [ - 150, - 120 - ], - "18": [ - 132, - 120 - ], - "24": [ - 108, - 120 - ], - "line": [ - 2240, - 25 - ] - }, - "harbor": { - "12": [ - 204, - 120 - ], - "18": [ - 186, - 120 - ], - "24": [ - 162, - 120 - ] - }, - "bicycle": { - "12": [ - 258, - 120 - ], - "18": [ - 240, - 120 - ], - "24": [ - 216, - 120 - ] - }, - "park": { - "12": [ - 42, - 144 - ], - "18": [ - 24, - 144 - ], - "24": [ - 0, - 144 - ] - }, - "park2": { - "12": [ - 96, - 144 - ], - "18": [ - 78, - 144 - ], - "24": [ - 54, - 144 - ] - }, - "museum": { - "12": [ - 150, - 144 - ], - "18": [ - 132, - 144 - ], - "24": [ - 108, - 144 - ] - }, - "lodging": { - "12": [ - 204, - 144 - ], - "18": [ - 186, - 144 - ], - "24": [ - 162, - 144 - ] - }, - "monument": { - "12": [ - 258, - 144 - ], - "18": [ - 240, - 144 - ], - "24": [ - 216, - 144 - ] - }, - "zoo": { - "12": [ - 42, - 168 - ], - "18": [ - 24, - 168 - ], - "24": [ - 0, - 168 - ] - }, - "garden": { - "12": [ - 96, - 168 - ], - "18": [ - 78, - 168 - ], - "24": [ - 54, - 168 - ] - }, - "campsite": { - "12": [ - 150, - 168 - ], - "18": [ - 132, - 168 - ], - "24": [ - 108, - 168 - ] - }, - "theatre": { - "12": [ - 204, - 168 - ], - "18": [ - 186, - 168 - ], - "24": [ - 162, - 168 - ] - }, - "art-gallery": { - "12": [ - 258, - 168 - ], - "18": [ - 240, - 168 - ], - "24": [ - 216, - 168 - ] - }, - "pitch": { - "12": [ - 42, - 192 - ], - "18": [ - 24, - 192 - ], - "24": [ - 0, - 192 - ] - }, - "soccer": { - "12": [ - 96, - 192 - ], - "18": [ - 78, - 192 - ], - "24": [ - 54, - 192 - ] - }, - "america-football": { - "12": [ - 150, - 192 - ], - "18": [ - 132, - 192 - ], - "24": [ - 108, - 192 - ] - }, - "tennis": { - "12": [ - 204, - 192 - ], - "18": [ - 186, - 192 - ], - "24": [ - 162, - 192 - ] - }, - "basketball": { - "12": [ - 258, - 192 - ], - "18": [ - 240, - 192 - ], - "24": [ - 216, - 192 - ] - }, - "baseball": { - "12": [ - 42, - 216 - ], - "18": [ - 24, - 216 - ], - "24": [ - 0, - 216 - ] - }, - "golf": { - "12": [ - 96, - 216 - ], - "18": [ - 78, - 216 - ], - "24": [ - 54, - 216 - ] - }, - "swimming": { - "12": [ - 150, - 216 - ], - "18": [ - 132, - 216 - ], - "24": [ - 108, - 216 - ] - }, - "cricket": { - "12": [ - 204, - 216 - ], - "18": [ - 186, - 216 - ], - "24": [ - 162, - 216 - ] - }, - "skiing": { - "12": [ - 258, - 216 - ], - "18": [ - 240, - 216 - ], - "24": [ - 216, - 216 - ] - }, - "school": { - "12": [ - 42, - 240 - ], - "18": [ - 24, - 240 - ], - "24": [ - 0, - 240 - ] - }, - "college": { - "12": [ - 96, - 240 - ], - "18": [ - 78, - 240 - ], - "24": [ - 54, - 240 - ] - }, - "library": { - "12": [ - 150, - 240 - ], - "18": [ - 132, - 240 - ], - "24": [ - 108, - 240 - ] - }, - "post": { - "12": [ - 204, - 240 - ], - "18": [ - 186, - 240 - ], - "24": [ - 162, - 240 - ] - }, - "fire-station": { - "12": [ - 258, - 240 - ], - "18": [ - 240, - 240 - ], - "24": [ - 216, - 240 - ] - }, - "town-hall": { - "12": [ - 42, - 264 - ], - "18": [ - 24, - 264 - ], - "24": [ - 0, - 264 - ] - }, - "police": { - "12": [ - 96, - 264 - ], - "18": [ - 78, - 264 - ], - "24": [ - 54, - 264 - ] - }, - "prison": { - "12": [ - 150, - 264 - ], - "18": [ - 132, - 264 - ], - "24": [ - 108, - 264 - ] - }, - "embassy": { - "12": [ - 204, - 264 - ], - "18": [ - 186, - 264 - ], - "24": [ - 162, - 264 - ] - }, - "beer": { - "12": [ - 258, - 264 - ], - "18": [ - 240, - 264 - ], - "24": [ - 216, - 264 - ] - }, - "restaurant": { - "12": [ - 42, - 288 - ], - "18": [ - 24, - 288 - ], - "24": [ - 0, - 288 - ] - }, - "cafe": { - "12": [ - 96, - 288 - ], - "18": [ - 78, - 288 - ], - "24": [ - 54, - 288 - ] - }, - "shop": { - "12": [ - 150, - 288 - ], - "18": [ - 132, - 288 - ], - "24": [ - 108, - 288 - ] - }, - "fast-food": { - "12": [ - 204, - 288 - ], - "18": [ - 186, - 288 - ], - "24": [ - 162, - 288 - ] - }, - "bar": { - "12": [ - 258, - 288 - ], - "18": [ - 240, - 288 - ], - "24": [ - 216, - 288 - ] - }, - "bank": { - "12": [ - 42, - 312 - ], - "18": [ - 24, - 312 - ], - "24": [ - 0, - 312 - ] - }, - "grocery": { - "12": [ - 96, - 312 - ], - "18": [ - 78, - 312 - ], - "24": [ - 54, - 312 - ] - }, - "cinema": { - "12": [ - 150, - 312 - ], - "18": [ - 132, - 312 - ], - "24": [ - 108, - 312 - ] - }, - "pharmacy": { - "12": [ - 204, - 312 - ], - "18": [ - 186, - 312 - ], - "24": [ - 162, - 312 - ] - }, - "hospital": { - "12": [ - 258, - 312 - ], - "18": [ - 240, - 312 - ], - "24": [ - 216, - 312 - ] - }, - "danger": { - "12": [ - 42, - 336 - ], - "18": [ - 24, - 336 - ], - "24": [ - 0, - 336 - ] - }, - "industrial": { - "12": [ - 96, - 336 - ], - "18": [ - 78, - 336 - ], - "24": [ - 54, - 336 - ] - }, - "warehouse": { - "12": [ - 150, - 336 - ], - "18": [ - 132, - 336 - ], - "24": [ - 108, - 336 - ] - }, - "commercial": { - "12": [ - 204, - 336 - ], - "18": [ - 186, - 336 - ], - "24": [ - 162, - 336 - ] - }, - "building": { - "12": [ - 258, - 336 - ], - "18": [ - 240, - 336 - ], - "24": [ - 216, - 336 - ] - }, - "place-of-worship": { - "12": [ - 42, - 360 - ], - "18": [ - 24, - 360 - ], - "24": [ - 0, - 360 - ] - }, - "alcohol-shop": { - "12": [ - 96, - 360 - ], - "18": [ - 78, - 360 - ], - "24": [ - 54, - 360 - ] - }, - "logging": { - "12": [ - 150, - 360 - ], - "18": [ - 132, - 360 - ], - "24": [ - 108, - 360 - ] - }, - "oil-well": { - "12": [ - 204, - 360 - ], - "18": [ - 186, - 360 - ], - "24": [ - 162, - 360 - ] - }, - "slaughterhouse": { - "12": [ - 258, - 360 - ], - "18": [ - 240, - 360 - ], - "24": [ - 216, - 360 - ] - }, - "dam": { - "12": [ - 42, - 384 - ], - "18": [ - 24, - 384 - ], - "24": [ - 0, - 384 - ] - }, - "water": { - "12": [ - 96, - 384 - ], - "18": [ - 78, - 384 - ], - "24": [ - 54, - 384 - ] - }, - "wetland": { - "12": [ - 150, - 384 - ], - "18": [ - 132, - 384 - ], - "24": [ - 108, - 384 - ] - }, - "disability": { - "12": [ - 204, - 384 - ], - "18": [ - 186, - 384 - ], - "24": [ - 162, - 384 - ] - }, - "telephone": { - "12": [ - 258, - 384 - ], - "18": [ - 240, - 384 - ], - "24": [ - 216, - 384 - ] - }, - "emergency-telephone": { - "12": [ - 42, - 408 - ], - "18": [ - 24, - 408 - ], - "24": [ - 0, - 408 - ] - }, - "toilets": { - "12": [ - 96, - 408 - ], - "18": [ - 78, - 408 - ], - "24": [ - 54, - 408 - ] - }, - "waste-basket": { - "12": [ - 150, - 408 - ], - "18": [ - 132, - 408 - ], - "24": [ - 108, - 408 - ] - }, - "music": { - "12": [ - 204, - 408 - ], - "18": [ - 186, - 408 - ], - "24": [ - 162, - 408 - ] - }, - "land-use": { - "12": [ - 258, - 408 - ], - "18": [ - 240, - 408 - ], - "24": [ - 216, - 408 - ] - }, - "city": { - "12": [ - 42, - 432 - ], - "18": [ - 24, - 432 - ], - "24": [ - 0, - 432 - ] - }, - "town": { - "12": [ - 96, - 432 - ], - "18": [ - 78, - 432 - ], - "24": [ - 54, - 432 - ] - }, - "village": { - "12": [ - 150, - 432 - ], - "18": [ - 132, - 432 - ], - "24": [ - 108, - 432 - ] - }, - "farm": { - "12": [ - 204, - 432 - ], - "18": [ - 186, - 432 - ], - "24": [ - 162, - 432 - ] - }, - "bakery": { - "12": [ - 258, - 432 - ], - "18": [ - 240, - 432 - ], - "24": [ - 216, - 432 - ] - }, - "dog-park": { - "12": [ - 42, - 456 - ], - "18": [ - 24, - 456 - ], - "24": [ - 0, - 456 - ] - }, - "lighthouse": { - "12": [ - 96, - 456 - ], - "18": [ - 78, - 456 - ], - "24": [ - 54, - 456 - ] - }, - "clothing-store": { - "12": [ - 150, - 456 - ], - "18": [ - 132, - 456 - ], - "24": [ - 108, - 456 - ] - }, - "polling-place": { - "12": [ - 204, - 456 - ], - "18": [ - 186, - 456 - ], - "24": [ - 162, - 456 - ] - }, - "playground": { - "12": [ - 258, - 456 - ], - "18": [ - 240, - 456 - ], - "24": [ - 216, - 456 - ] - }, - "entrance": { - "12": [ - 42, - 480 - ], - "18": [ - 24, - 480 - ], - "24": [ - 0, - 480 - ] - }, - "heart": { - "12": [ - 96, - 480 - ], - "18": [ - 78, - 480 - ], - "24": [ - 54, - 480 - ] - }, - "london-underground": { - "12": [ - 150, - 480 - ], - "18": [ - 132, - 480 - ], - "24": [ - 108, - 480 - ] - }, - "minefield": { - "12": [ - 204, - 480 - ], - "18": [ - 186, - 480 - ], - "24": [ - 162, - 480 - ] - }, - "rail-underground": { - "12": [ - 258, - 480 - ], - "18": [ - 240, - 480 - ], - "24": [ - 216, - 480 - ] - }, - "rail-above": { - "12": [ - 42, - 504 - ], - "18": [ - 24, - 504 - ], - "24": [ - 0, - 504 - ] - }, - "camera": { - "12": [ - 96, - 504 - ], - "18": [ - 78, - 504 - ], - "24": [ - 54, - 504 - ] - }, - "laundry": { - "12": [ - 150, - 504 - ], - "18": [ - 132, - 504 - ], - "24": [ - 108, - 504 - ] - }, - "car": { - "12": [ - 204, - 504 - ], - "18": [ - 186, - 504 - ], - "24": [ - 162, - 504 - ] - }, - "suitcase": { - "12": [ - 258, - 504 - ], - "18": [ - 240, - 504 - ], - "24": [ - 216, - 504 - ] - }, - "hairdresser": { - "12": [ - 42, - 528 - ], - "18": [ - 24, - 528 - ], - "24": [ - 0, - 528 - ] - }, - "chemist": { - "12": [ - 96, - 528 - ], - "18": [ - 78, - 528 - ], - "24": [ - 54, - 528 - ] - }, - "mobilephone": { - "12": [ - 150, - 528 - ], - "18": [ - 132, - 528 - ], - "24": [ - 108, - 528 - ] - }, - "scooter": { - "12": [ - 204, - 528 - ], - "18": [ - 186, - 528 - ], - "24": [ - 162, - 528 - ] - }, - "highway-motorway": { - "line": [ - 20, - 25 - ] - }, - "highway-trunk": { - "line": [ - 80, - 25 - ] - }, - "highway-primary": { - "line": [ - 140, - 25 - ] - }, - "highway-secondary": { - "line": [ - 200, - 25 - ] - }, - "highway-tertiary": { - "line": [ - 260, - 25 - ] - }, - "highway-motorway-link": { - "line": [ - 320, - 25 - ] - }, - "highway-trunk-link": { - "line": [ - 380, - 25 - ] - }, - "highway-primary-link": { - "line": [ - 440, - 25 - ] - }, - "highway-secondary-link": { - "line": [ - 500, - 25 - ] - }, - "highway-tertiary-link": { - "line": [ - 560, - 25 - ] - }, - "highway-residential": { - "line": [ - 620, - 25 - ] - }, - "highway-unclassified": { - "line": [ - 680, - 25 - ] - }, - "highway-service": { - "line": [ - 740, - 25 - ] - }, - "highway-road": { - "line": [ - 800, - 25 - ] - }, - "highway-track": { - "line": [ - 860, - 25 - ] - }, - "highway-living-street": { - "line": [ - 920, - 25 - ] - }, - "highway-path": { - "line": [ - 980, - 25 - ] - }, - "highway-cycleway": { - "line": [ - 1040, - 25 - ] - }, - "highway-footway": { - "line": [ - 1100, - 25 - ] - }, - "highway-bridleway": { - "line": [ - 1160, - 25 - ] - }, - "highway-steps": { - "line": [ - 1220, - 25 - ] - }, - "railway-rail": { - "line": [ - 1280, - 25 - ] - }, - "railway-disused": { - "line": [ - 1340, - 25 - ] - }, - "railway-abandoned": { - "line": [ - 1400, - 25 - ] - }, - "railway-subway": { - "line": [ - 1460, - 25 - ] - }, - "railway-light-rail": { - "line": [ - 1520, - 25 - ] - }, - "railway-monorail": { - "line": [ - 1580, - 25 - ] - }, - "waterway-river": { - "line": [ - 1640, - 25 - ] - }, - "waterway-stream": { - "line": [ - 1700, - 25 - ] - }, - "waterway-canal": { - "line": [ - 1760, - 25 - ] - }, - "waterway-ditch": { - "line": [ - 1820, - 25 - ] - }, - "power-line": { - "line": [ - 1880, - 25 - ] - }, - "other-line": { - "line": [ - 1940, - 25 - ] - }, - "category-roads": { - "line": [ - 2000, - 25 - ] - }, - "category-rail": { - "line": [ - 2060, - 25 - ] - }, - "category-path": { - "line": [ - 2120, - 25 - ] - }, - "category-water": { - "line": [ - 2180, - 25 - ] - }, - "pipeline": { - "line": [ - 2300, - 25 - ] - }, - "relation": { - "relation": [ - 20, - 25 - ] - }, - "restriction": { - "relation": [ - 80, - 25 - ] - }, - "multipolygon": { - "relation": [ - 140, - 25 - ] - }, - "boundary": { - "relation": [ - 200, - 25 - ] - }, - "route": { - "relation": [ - 260, - 25 - ] - }, - "route-road": { - "relation": [ - 320, - 25 - ] - }, - "route-bicycle": { - "relation": [ - 380, - 25 - ] - }, - "route-foot": { - "relation": [ - 440, - 25 - ] - }, - "route-bus": { - "relation": [ - 500, - 25 - ] - }, - "route-train": { - "relation": [ - 560, - 25 - ] - }, - "route-detour": { - "relation": [ - 620, - 25 - ] - }, - "route-tram": { - "relation": [ - 680, - 25 - ] - }, - "route-ferry": { - "relation": [ - 740, - 25 - ] - }, - "route-power": { - "relation": [ - 800, - 25 - ] - }, - "route-pipeline": { - "relation": [ - 860, - 25 - ] - }, - "route-master": { - "relation": [ - 920, - 25 - ] - } - }, - "operations": { - "icon-operation-delete": [ - 0, - 140 + "wikipedia": [ + [ + "Abkhazian", + "Аҧсшәа", + "ab" + ], + [ + "Achinese", + "Acèh", + "ace" + ], + [ + "Afrikaans", + "Afrikaans", + "af" + ], + [ + "Akan", + "Akan", + "ak" + ], + [ + "Alemannisch", + "Alemannisch", + "als" + ], + [ + "Amharic", + "አማርኛ", + "am" + ], + [ + "Aragonese", + "aragonés", + "an" + ], + [ + "Old English", + "Ænglisc", + "ang" + ], + [ + "Arabic", + "العربية", + "ar" + ], + [ + "Aramaic", + "ܐܪܡܝܐ", + "arc" + ], + [ + "Egyptian Arabic", + "مصرى", + "arz" + ], + [ + "Assamese", + "অসমীয়া", + "as" + ], + [ + "Asturian", + "asturianu", + "ast" + ], + [ + "Avaric", + "авар", + "av" + ], + [ + "Aymara", + "Aymar aru", + "ay" + ], + [ + "Azerbaijani", + "azərbaycanca", + "az" + ], + [ + "South Azerbaijani", + "تۆرکجه", + "azb" + ], + [ + "Bashkir", + "башҡортса", + "ba" + ], + [ + "Bavarian", + "Boarisch", + "bar" + ], + [ + "Samogitian", + "žemaitėška", + "bat-smg" + ], + [ + "Bikol Central", + "Bikol Central", + "bcl" + ], + [ + "Belarusian", + "беларуская", + "be" + ], + [ + "беларуская (тарашкевіца)‎", + "беларуская (тарашкевіца)‎", + "be-x-old" + ], + [ + "Bulgarian", + "български", + "bg" + ], + [ + "भोजपुरी", + "भोजपुरी", + "bh" + ], + [ + "Bislama", + "Bislama", + "bi" + ], + [ + "Banjar", + "Bahasa Banjar", + "bjn" + ], + [ + "Bambara", + "bamanankan", + "bm" + ], + [ + "Bengali", + "বাংলা", + "bn" + ], + [ + "Tibetan", + "བོད་ཡིག", + "bo" + ], + [ + "Bishnupriya", + "বিষ্ণুপ্রিয়া মণিপুরী", + "bpy" + ], + [ + "Breton", + "brezhoneg", + "br" + ], + [ + "Bosnian", + "bosanski", + "bs" + ], + [ + "Buginese", + "ᨅᨔ ᨕᨘᨁᨗ", + "bug" + ], + [ + "буряад", + "буряад", + "bxr" + ], + [ + "Catalan", + "català", + "ca" + ], + [ + "Chavacano de Zamboanga", + "Chavacano de Zamboanga", + "cbk-zam" + ], + [ + "Min Dong Chinese", + "Mìng-dĕ̤ng-ngṳ̄", + "cdo" + ], + [ + "Chechen", + "нохчийн", + "ce" + ], + [ + "Cebuano", + "Cebuano", + "ceb" + ], + [ + "Chamorro", + "Chamoru", + "ch" + ], + [ + "Cherokee", + "ᏣᎳᎩ", + "chr" + ], + [ + "Cheyenne", + "Tsetsêhestâhese", + "chy" + ], + [ + "Central Kurdish", + "کوردیی ناوەندی", + "ckb" + ], + [ + "Corsican", + "corsu", + "co" + ], + [ + "Cree", + "Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ", + "cr" + ], + [ + "Crimean Turkish", + "qırımtatarca", + "crh" + ], + [ + "Czech", + "čeština", + "cs" + ], + [ + "Kashubian", + "kaszëbsczi", + "csb" + ], + [ + "Church Slavic", + "словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ", + "cu" + ], + [ + "Chuvash", + "Чӑвашла", + "cv" + ], + [ + "Welsh", + "Cymraeg", + "cy" + ], + [ + "Danish", + "dansk", + "da" + ], + [ + "German", + "Deutsch", + "de" + ], + [ + "Zazaki", + "Zazaki", + "diq" + ], + [ + "Lower Sorbian", + "dolnoserbski", + "dsb" + ], + [ + "Divehi", + "ދިވެހިބަސް", + "dv" + ], + [ + "Dzongkha", + "ཇོང་ཁ", + "dz" + ], + [ + "Ewe", + "eʋegbe", + "ee" + ], + [ + "Greek", + "Ελληνικά", + "el" + ], + [ + "Emiliano-Romagnolo", + "emiliàn e rumagnòl", + "eml" + ], + [ + "English", + "English", + "en" + ], + [ + "Esperanto", + "Esperanto", + "eo" + ], + [ + "Spanish", + "español", + "es" + ], + [ + "Estonian", + "eesti", + "et" + ], + [ + "Basque", + "euskara", + "eu" + ], + [ + "Extremaduran", + "estremeñu", + "ext" + ], + [ + "Persian", + "فارسی", + "fa" + ], + [ + "Fulah", + "Fulfulde", + "ff" + ], + [ + "Finnish", + "suomi", + "fi" + ], + [ + "Võro", + "Võro", + "fiu-vro" + ], + [ + "Fijian", + "Na Vosa Vakaviti", + "fj" + ], + [ + "Faroese", + "føroyskt", + "fo" + ], + [ + "French", + "français", + "fr" + ], + [ + "Arpitan", + "arpetan", + "frp" + ], + [ + "Northern Frisian", + "Nordfriisk", + "frr" + ], + [ + "Friulian", + "furlan", + "fur" + ], + [ + "Western Frisian", + "Frysk", + "fy" + ], + [ + "Irish", + "Gaeilge", + "ga" + ], + [ + "Gagauz", + "Gagauz", + "gag" + ], + [ + "Gan Chinese", + "贛語", + "gan" + ], + [ + "Scottish Gaelic", + "Gàidhlig", + "gd" + ], + [ + "Galician", + "galego", + "gl" + ], + [ + "Gilaki", + "گیلکی", + "glk" + ], + [ + "Guarani", + "Avañe'ẽ", + "gn" + ], + [ + "Goan Konkani", + "गोवा कोंकणी / Gova Konknni", + "gom" + ], + [ + "Gothic", + "𐌲𐌿𐍄𐌹𐍃𐌺", + "got" + ], + [ + "Gujarati", + "ગુજરાતી", + "gu" + ], + [ + "Manx", + "Gaelg", + "gv" + ], + [ + "Hausa", + "Hausa", + "ha" + ], + [ + "Hakka Chinese", + "客家語/Hak-kâ-ngî", + "hak" + ], + [ + "Hawaiian", + "Hawai`i", + "haw" + ], + [ + "Hebrew", + "עברית", + "he" + ], + [ + "Hindi", + "हिन्दी", + "hi" + ], + [ + "Fiji Hindi", + "Fiji Hindi", + "hif" + ], + [ + "Croatian", + "hrvatski", + "hr" + ], + [ + "Upper Sorbian", + "hornjoserbsce", + "hsb" + ], + [ + "Haitian", + "Kreyòl ayisyen", + "ht" + ], + [ + "Hungarian", + "magyar", + "hu" + ], + [ + "Armenian", + "Հայերեն", + "hy" + ], + [ + "Interlingua", + "interlingua", + "ia" + ], + [ + "Indonesian", + "Bahasa Indonesia", + "id" + ], + [ + "Interlingue", + "Interlingue", + "ie" + ], + [ + "Igbo", + "Igbo", + "ig" + ], + [ + "Inupiaq", + "Iñupiak", + "ik" + ], + [ + "Iloko", + "Ilokano", + "ilo" + ], + [ + "Ido", + "Ido", + "io" + ], + [ + "Icelandic", + "íslenska", + "is" + ], + [ + "Italian", + "italiano", + "it" + ], + [ + "Inuktitut", + "ᐃᓄᒃᑎᑐᑦ/inuktitut", + "iu" + ], + [ + "Japanese", + "日本語", + "ja" + ], + [ + "Lojban", + "Lojban", + "jbo" + ], + [ + "Javanese", + "Basa Jawa", + "jv" + ], + [ + "Georgian", + "ქართული", + "ka" + ], + [ + "Kara-Kalpak", + "Qaraqalpaqsha", + "kaa" + ], + [ + "Kabyle", + "Taqbaylit", + "kab" + ], + [ + "Kabardian", + "Адыгэбзэ", + "kbd" + ], + [ + "Kongo", + "Kongo", + "kg" + ], + [ + "Kikuyu", + "Gĩkũyũ", + "ki" + ], + [ + "Kazakh", + "қазақша", + "kk" + ], + [ + "Kalaallisut", + "kalaallisut", + "kl" + ], + [ + "Khmer", + "ភាសាខ្មែរ", + "km" + ], + [ + "Kannada", + "ಕನ್ನಡ", + "kn" + ], + [ + "Korean", + "한국어", + "ko" + ], + [ + "Komi-Permyak", + "Перем Коми", + "koi" + ], + [ + "Karachay-Balkar", + "къарачай-малкъар", + "krc" + ], + [ + "Kashmiri", + "कॉशुर / کٲشُر", + "ks" + ], + [ + "Colognian", + "Ripoarisch", + "ksh" + ], + [ + "Kurdish", + "Kurdî", + "ku" + ], + [ + "Komi", + "коми", + "kv" + ], + [ + "Cornish", + "kernowek", + "kw" + ], + [ + "Kyrgyz", + "Кыргызча", + "ky" + ], + [ + "Latin", + "Latina", + "la" + ], + [ + "Ladino", + "Ladino", + "lad" + ], + [ + "Luxembourgish", + "Lëtzebuergesch", + "lb" + ], + [ + "лакку", + "лакку", + "lbe" + ], + [ + "Lezghian", + "лезги", + "lez" + ], + [ + "Ganda", + "Luganda", + "lg" + ], + [ + "Limburgish", + "Limburgs", + "li" + ], + [ + "Ligurian", + "Ligure", + "lij" + ], + [ + "Lombard", + "lumbaart", + "lmo" + ], + [ + "Lingala", + "lingála", + "ln" + ], + [ + "Lao", + "ລາວ", + "lo" + ], + [ + "Northern Luri", + "لۊری شومالی", + "lrc" + ], + [ + "Lithuanian", + "lietuvių", + "lt" + ], + [ + "Latgalian", + "latgaļu", + "ltg" + ], + [ + "Latvian", + "latviešu", + "lv" + ], + [ + "Maithili", + "मैथिली", + "mai" + ], + [ + "Basa Banyumasan", + "Basa Banyumasan", + "map-bms" + ], + [ + "Moksha", + "мокшень", + "mdf" + ], + [ + "Malagasy", + "Malagasy", + "mg" + ], + [ + "Eastern Mari", + "олык марий", + "mhr" + ], + [ + "Maori", + "Māori", + "mi" + ], + [ + "Minangkabau", + "Baso Minangkabau", + "min" + ], + [ + "Macedonian", + "македонски", + "mk" + ], + [ + "Malayalam", + "മലയാളം", + "ml" + ], + [ + "Mongolian", + "монгол", + "mn" + ], + [ + "Marathi", + "मराठी", + "mr" + ], + [ + "Western Mari", + "кырык мары", + "mrj" + ], + [ + "Malay", + "Bahasa Melayu", + "ms" + ], + [ + "Maltese", + "Malti", + "mt" + ], + [ + "Mirandese", + "Mirandés", + "mwl" + ], + [ + "Burmese", + "မြန်မာဘာသာ", + "my" + ], + [ + "Erzya", + "эрзянь", + "myv" + ], + [ + "Mazanderani", + "مازِرونی", + "mzn" + ], + [ + "Nauru", + "Dorerin Naoero", + "na" + ], + [ + "Nāhuatl", + "Nāhuatl", + "nah" + ], + [ + "Neapolitan", + "Napulitano", + "nap" + ], + [ + "Low German", + "Plattdüütsch", + "nds" + ], + [ + "Low Saxon (Netherlands)", + "Nedersaksies", + "nds-nl" + ], + [ + "Nepali", + "नेपाली", + "ne" + ], + [ + "Newari", + "नेपाल भाषा", + "new" + ], + [ + "Dutch", + "Nederlands", + "nl" + ], + [ + "Norwegian Nynorsk", + "norsk nynorsk", + "nn" + ], + [ + "Norwegian", + "norsk bokmål", + "no" + ], + [ + "Novial", + "Novial", + "nov" + ], + [ + "Nouormand", + "Nouormand", + "nrm" + ], + [ + "Northern Sotho", + "Sesotho sa Leboa", + "nso" + ], + [ + "Navajo", + "Diné bizaad", + "nv" + ], + [ + "Nyanja", + "Chi-Chewa", + "ny" + ], + [ + "Occitan", + "occitan", + "oc" + ], + [ + "Oromo", + "Oromoo", + "om" + ], + [ + "Oriya", + "ଓଡ଼ିଆ", + "or" + ], + [ + "Ossetic", + "Ирон", + "os" + ], + [ + "Punjabi", + "ਪੰਜਾਬੀ", + "pa" + ], + [ + "Pangasinan", + "Pangasinan", + "pag" + ], + [ + "Pampanga", + "Kapampangan", + "pam" + ], + [ + "Papiamento", + "Papiamentu", + "pap" + ], + [ + "Picard", + "Picard", + "pcd" + ], + [ + "Pennsylvania German", + "Deitsch", + "pdc" + ], + [ + "Palatine German", + "Pälzisch", + "pfl" + ], + [ + "Pali", + "पालि", + "pi" + ], + [ + "Norfuk / Pitkern", + "Norfuk / Pitkern", + "pih" + ], + [ + "Polish", + "polski", + "pl" + ], + [ + "Piedmontese", + "Piemontèis", + "pms" + ], + [ + "Western Punjabi", + "پنجابی", + "pnb" + ], + [ + "Pontic", + "Ποντιακά", + "pnt" + ], + [ + "Pashto", + "پښتو", + "ps" + ], + [ + "Portuguese", + "português", + "pt" + ], + [ + "Quechua", + "Runa Simi", + "qu" + ], + [ + "Romansh", + "rumantsch", + "rm" + ], + [ + "Romani", + "Romani", + "rmy" + ], + [ + "Rundi", + "Kirundi", + "rn" + ], + [ + "Romanian", + "română", + "ro" + ], + [ + "Aromanian", + "armãneashti", + "roa-rup" + ], + [ + "tarandíne", + "tarandíne", + "roa-tara" + ], + [ + "Russian", + "русский", + "ru" + ], + [ + "Rusyn", + "русиньскый", + "rue" + ], + [ + "Kinyarwanda", + "Kinyarwanda", + "rw" + ], + [ + "Sanskrit", + "संस्कृतम्", + "sa" + ], + [ + "Sakha", + "саха тыла", + "sah" + ], + [ + "Sardinian", + "sardu", + "sc" + ], + [ + "Sicilian", + "sicilianu", + "scn" + ], + [ + "Scots", + "Scots", + "sco" + ], + [ + "Sindhi", + "سنڌي", + "sd" + ], + [ + "Northern Sami", + "sámegiella", + "se" + ], + [ + "Sango", + "Sängö", + "sg" + ], + [ + "Serbo-Croatian", + "srpskohrvatski / српскохрватски", + "sh" + ], + [ + "Sinhala", + "සිංහල", + "si" + ], + [ + "Simple English", + "Simple English", + "simple" + ], + [ + "Slovak", + "slovenčina", + "sk" + ], + [ + "Slovenian", + "slovenščina", + "sl" + ], + [ + "Samoan", + "Gagana Samoa", + "sm" + ], + [ + "Shona", + "chiShona", + "sn" + ], + [ + "Somali", + "Soomaaliga", + "so" + ], + [ + "Albanian", + "shqip", + "sq" + ], + [ + "Serbian", + "српски / srpski", + "sr" + ], + [ + "Sranan Tongo", + "Sranantongo", + "srn" + ], + [ + "Swati", + "SiSwati", + "ss" + ], + [ + "Southern Sotho", + "Sesotho", + "st" ], - "icon-operation-circularize": [ - 20, - 140 + [ + "Saterland Frisian", + "Seeltersk", + "stq" + ], + [ + "Sundanese", + "Basa Sunda", + "su" + ], + [ + "Swedish", + "svenska", + "sv" + ], + [ + "Swahili", + "Kiswahili", + "sw" + ], + [ + "Silesian", + "ślůnski", + "szl" + ], + [ + "Tamil", + "தமிழ்", + "ta" + ], + [ + "Telugu", + "తెలుగు", + "te" + ], + [ + "Tetum", + "tetun", + "tet" + ], + [ + "Tajik", + "тоҷикӣ", + "tg" + ], + [ + "Thai", + "ไทย", + "th" + ], + [ + "Tigrinya", + "ትግርኛ", + "ti" + ], + [ + "Turkmen", + "Türkmençe", + "tk" + ], + [ + "Tagalog", + "Tagalog", + "tl" + ], + [ + "Tswana", + "Setswana", + "tn" ], - "icon-operation-straighten": [ - 40, - 140 + [ + "Tongan", + "lea faka-Tonga", + "to" + ], + [ + "Tok Pisin", + "Tok Pisin", + "tpi" + ], + [ + "Turkish", + "Türkçe", + "tr" + ], + [ + "Tsonga", + "Xitsonga", + "ts" + ], + [ + "Tatar", + "татарча/tatarça", + "tt" + ], + [ + "Tumbuka", + "chiTumbuka", + "tum" + ], + [ + "Twi", + "Twi", + "tw" + ], + [ + "Tahitian", + "reo tahiti", + "ty" + ], + [ + "Tuvinian", + "тыва дыл", + "tyv" + ], + [ + "Udmurt", + "удмурт", + "udm" + ], + [ + "Uyghur", + "ئۇيغۇرچە / Uyghurche", + "ug" + ], + [ + "Ukrainian", + "українська", + "uk" + ], + [ + "Urdu", + "اردو", + "ur" + ], + [ + "Uzbek", + "oʻzbekcha/ўзбекча", + "uz" + ], + [ + "Venda", + "Tshivenda", + "ve" ], - "icon-operation-split": [ - 60, - 140 + [ + "Venetian", + "vèneto", + "vec" ], - "icon-operation-disconnect": [ - 80, - 140 + [ + "Veps", + "vepsän kel’", + "vep" ], - "icon-operation-reverse": [ - 100, - 140 + [ + "Vietnamese", + "Tiếng Việt", + "vi" ], - "icon-operation-move": [ - 120, - 140 + [ + "West Flemish", + "West-Vlams", + "vls" ], - "icon-operation-merge": [ - 140, - 140 + [ + "Volapük", + "Volapük", + "vo" ], - "icon-operation-orthogonalize": [ - 160, - 140 + [ + "Walloon", + "walon", + "wa" ], - "icon-operation-rotate": [ - 180, - 140 + [ + "Waray", + "Winaray", + "war" ], - "icon-operation-simplify": [ - 200, - 140 + [ + "Wolof", + "Wolof", + "wo" ], - "icon-operation-continue": [ - 220, - 140 + [ + "Wu Chinese", + "吴语", + "wuu" ], - "icon-operation-disabled-delete": [ - 0, - 160 + [ + "Kalmyk", + "хальмг", + "xal" ], - "icon-operation-disabled-circularize": [ - 20, - 160 + [ + "Xhosa", + "isiXhosa", + "xh" ], - "icon-operation-disabled-straighten": [ - 40, - 160 + [ + "Mingrelian", + "მარგალური", + "xmf" ], - "icon-operation-disabled-split": [ - 60, - 160 + [ + "Yiddish", + "ייִדיש", + "yi" ], - "icon-operation-disabled-disconnect": [ - 80, - 160 + [ + "Yoruba", + "Yorùbá", + "yo" ], - "icon-operation-disabled-reverse": [ - 100, - 160 + [ + "Zhuang", + "Vahcuengh", + "za" ], - "icon-operation-disabled-move": [ - 120, - 160 + [ + "Zeelandic", + "Zeêuws", + "zea" ], - "icon-operation-disabled-merge": [ - 140, - 160 + [ + "Chinese", + "中文", + "zh" ], - "icon-operation-disabled-orthogonalize": [ - 160, - 160 + [ + "Classical Chinese", + "文言", + "zh-classical" ], - "icon-operation-disabled-rotate": [ - 180, - 160 + [ + "Chinese (Min Nan)", + "Bân-lâm-gú", + "zh-min-nan" ], - "icon-operation-disabled-simplify": [ - 200, - 160 + [ + "Cantonese", + "粵語", + "zh-yue" ], - "icon-operation-disabled-continue": [ - 220, - 160 + [ + "Zulu", + "isiZulu", + "zu" + ] + ], + "imperial": { + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "properties": { + "id": 0 + }, + "geometry": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + -1.426496, + 50.639342 + ], + [ + -1.445953, + 50.648139 + ], + [ + -1.452789, + 50.654283 + ], + [ + -1.485951, + 50.669338 + ], + [ + -1.497426, + 50.672309 + ], + [ + -1.535146, + 50.669379 + ], + [ + -1.551503, + 50.665107 + ], + [ + -1.569488, + 50.658026 + ], + [ + -1.545318, + 50.686103 + ], + [ + -1.50593, + 50.707709 + ], + [ + -1.418691, + 50.733791 + ], + [ + -1.420888, + 50.730455 + ], + [ + -1.423451, + 50.7237 + ], + [ + -1.425364, + 50.72012 + ], + [ + -1.400868, + 50.721991 + ], + [ + -1.377553, + 50.734198 + ], + [ + -1.343495, + 50.761054 + ], + [ + -1.318512, + 50.772162 + ], + [ + -1.295766, + 50.773179 + ], + [ + -1.144276, + 50.733791 + ], + [ + -1.119537, + 50.734198 + ], + [ + -1.10912, + 50.732856 + ], + [ + -1.097035, + 50.726955 + ], + [ + -1.096425, + 50.724433 + ], + [ + -1.097646, + 50.71601 + ], + [ + -1.097035, + 50.713324 + ], + [ + -1.094228, + 50.712633 + ], + [ + -1.085561, + 50.714016 + ], + [ + -1.082753, + 50.713324 + ], + [ + -1.062327, + 50.692816 + ], + [ + -1.062327, + 50.685289 + ], + [ + -1.066965, + 50.685248 + ], + [ + -1.069651, + 50.683498 + ], + [ + -1.071889, + 50.680976 + ], + [ + -1.075307, + 50.678534 + ], + [ + -1.112701, + 50.671454 + ], + [ + -1.128651, + 50.666449 + ], + [ + -1.156361, + 50.650784 + ], + [ + -1.162221, + 50.645982 + ], + [ + -1.164703, + 50.640937 + ], + [ + -1.164666, + 50.639543 + ], + [ + -1.426496, + 50.639342 + ] + ] + ], + [ + [ + [ + -7.240314, + 55.050389 + ], + [ + -7.013736, + 55.1615 + ], + [ + -6.958913, + 55.20349 + ], + [ + -6.571562, + 55.268366 + ], + [ + -6.509633, + 55.31398 + ], + [ + -6.226158, + 55.344406 + ], + [ + -6.07105, + 55.25001 + ], + [ + -5.712696, + 55.017635 + ], + [ + -5.242021, + 54.415204 + ], + [ + -5.695554, + 54.14284 + ], + [ + -5.72473, + 54.07455 + ], + [ + -6.041633, + 54.006238 + ], + [ + -6.153953, + 54.054931 + ], + [ + -6.220539, + 54.098803 + ], + [ + -6.242502, + 54.099758 + ], + [ + -6.263661, + 54.104682 + ], + [ + -6.269887, + 54.097927 + ], + [ + -6.28465, + 54.105226 + ], + [ + -6.299585, + 54.104037 + ], + [ + -6.313796, + 54.099696 + ], + [ + -6.327128, + 54.097888 + ], + [ + -6.338962, + 54.102952 + ], + [ + -6.346662, + 54.109877 + ], + [ + -6.354827, + 54.110652 + ], + [ + -6.368108, + 54.097319 + ], + [ + -6.369348, + 54.091118 + ], + [ + -6.367643, + 54.083418 + ], + [ + -6.366919, + 54.075098 + ], + [ + -6.371157, + 54.066778 + ], + [ + -6.377513, + 54.063264 + ], + [ + -6.401026, + 54.060887 + ], + [ + -6.426761, + 54.05541 + ], + [ + -6.433892, + 54.055306 + ], + [ + -6.4403, + 54.057993 + ], + [ + -6.446243, + 54.062438 + ], + [ + -6.450222, + 54.066675 + ], + [ + -6.450894, + 54.068432 + ], + [ + -6.47854, + 54.067709 + ], + [ + -6.564013, + 54.04895 + ], + [ + -6.571868, + 54.049519 + ], + [ + -6.587164, + 54.053343 + ], + [ + -6.595071, + 54.052412 + ], + [ + -6.60029, + 54.04895 + ], + [ + -6.605217, + 54.044475 + ], + [ + -6.610987, + 54.039235 + ], + [ + -6.616465, + 54.037271 + ], + [ + -6.630624, + 54.041819 + ], + [ + -6.657289, + 54.061146 + ], + [ + -6.672534, + 54.068432 + ], + [ + -6.657082, + 54.091945 + ], + [ + -6.655791, + 54.103314 + ], + [ + -6.666436, + 54.114786 + ], + [ + -6.643957, + 54.131839 + ], + [ + -6.634552, + 54.150133 + ], + [ + -6.640339, + 54.168013 + ], + [ + -6.648448, + 54.173665 + ], + [ + -6.663025, + 54.183826 + ], + [ + -6.683954, + 54.194368 + ], + [ + -6.694651, + 54.197985 + ], + [ + -6.706537, + 54.198915 + ], + [ + -6.717234, + 54.195143 + ], + [ + -6.724779, + 54.188631 + ], + [ + -6.73284, + 54.183567 + ], + [ + -6.744777, + 54.184187 + ], + [ + -6.766481, + 54.192352 + ], + [ + -6.787824, + 54.202998 + ], + [ + -6.807358, + 54.21633 + ], + [ + -6.823946, + 54.23235 + ], + [ + -6.829733, + 54.242375 + ], + [ + -6.833196, + 54.25209 + ], + [ + -6.837743, + 54.260513 + ], + [ + -6.846683, + 54.266456 + ], + [ + -6.882185, + 54.277257 + ], + [ + -6.864667, + 54.282734 + ], + [ + -6.856657, + 54.292811 + ], + [ + -6.858414, + 54.307332 + ], + [ + -6.870015, + 54.326001 + ], + [ + -6.879705, + 54.341594 + ], + [ + -6.885957, + 54.345624 + ], + [ + -6.897895, + 54.346193 + ], + [ + -6.905956, + 54.349035 + ], + [ + -6.915051, + 54.365933 + ], + [ + -6.922028, + 54.372703 + ], + [ + -6.984091, + 54.403089 + ], + [ + -7.017836, + 54.413166 + ], + [ + -7.049255, + 54.411512 + ], + [ + -7.078504, + 54.394717 + ], + [ + -7.127028, + 54.349759 + ], + [ + -7.159894, + 54.335186 + ], + [ + -7.168059, + 54.335031 + ], + [ + -7.185629, + 54.336943 + ], + [ + -7.18947, + 54.335692 + ], + [ + -7.19245, + 54.334721 + ], + [ + -7.193949, + 54.329967 + ], + [ + -7.191468, + 54.323869 + ], + [ + -7.187644, + 54.318804 + ], + [ + -7.185009, + 54.317254 + ], + [ + -7.184647, + 54.316634 + ], + [ + -7.192399, + 54.307384 + ], + [ + -7.193691, + 54.307539 + ], + [ + -7.199168, + 54.303457 + ], + [ + -7.206661, + 54.304903 + ], + [ + -7.211467, + 54.30418 + ], + [ + -7.209038, + 54.293431 + ], + [ + -7.1755, + 54.283664 + ], + [ + -7.181495, + 54.269763 + ], + [ + -7.14589, + 54.25209 + ], + [ + -7.159739, + 54.24067 + ], + [ + -7.153331, + 54.224237 + ], + [ + -7.174725, + 54.216072 + ], + [ + -7.229502, + 54.207545 + ], + [ + -7.240871, + 54.202326 + ], + [ + -7.249088, + 54.197416 + ], + [ + -7.255496, + 54.190854 + ], + [ + -7.261128, + 54.18088 + ], + [ + -7.256322, + 54.176901 + ], + [ + -7.247021, + 54.17225 + ], + [ + -7.24578, + 54.166979 + ], + [ + -7.265366, + 54.16114 + ], + [ + -7.26087, + 54.151166 + ], + [ + -7.263505, + 54.140986 + ], + [ + -7.27074, + 54.132253 + ], + [ + -7.280042, + 54.126155 + ], + [ + -7.293788, + 54.122021 + ], + [ + -7.297353, + 54.125896 + ], + [ + -7.29632, + 54.134991 + ], + [ + -7.296423, + 54.146515 + ], + [ + -7.295028, + 54.155404 + ], + [ + -7.292134, + 54.162638 + ], + [ + -7.295545, + 54.165119 + ], + [ + -7.325982, + 54.154577 + ], + [ + -7.333165, + 54.149409 + ], + [ + -7.333165, + 54.142743 + ], + [ + -7.310324, + 54.114683 + ], + [ + -7.316489, + 54.11428 + ], + [ + -7.326964, + 54.113597 + ], + [ + -7.375488, + 54.123312 + ], + [ + -7.390216, + 54.121194 + ], + [ + -7.39466, + 54.121917 + ], + [ + -7.396624, + 54.126258 + ], + [ + -7.403962, + 54.135043 + ], + [ + -7.41223, + 54.136438 + ], + [ + -7.422255, + 54.135456 + ], + [ + -7.425769, + 54.136955 + ], + [ + -7.414659, + 54.145688 + ], + [ + -7.439619, + 54.146929 + ], + [ + -7.480753, + 54.127653 + ], + [ + -7.502302, + 54.125121 + ], + [ + -7.609014, + 54.139901 + ], + [ + -7.620796, + 54.144965 + ], + [ + -7.624052, + 54.153336 + ], + [ + -7.625706, + 54.162173 + ], + [ + -7.632682, + 54.168529 + ], + [ + -7.70477, + 54.200362 + ], + [ + -7.722599, + 54.202326 + ], + [ + -7.782078, + 54.2 + ], + [ + -7.836959, + 54.204341 + ], + [ + -7.856441, + 54.211421 + ], + [ + -7.86967, + 54.226872 + ], + [ + -7.873649, + 54.271055 + ], + [ + -7.880264, + 54.287023 + ], + [ + -7.894966, + 54.293586 + ], + [ + -7.93411, + 54.297049 + ], + [ + -7.942075, + 54.298873 + ], + [ + -7.950802, + 54.300873 + ], + [ + -7.96801, + 54.31219 + ], + [ + -7.981033, + 54.326556 + ], + [ + -8.002194, + 54.357923 + ], + [ + -8.03134, + 54.358027 + ], + [ + -8.05648, + 54.365882 + ], + [ + -8.079941, + 54.380196 + ], + [ + -8.122419, + 54.415233 + ], + [ + -8.146346, + 54.430736 + ], + [ + -8.156035, + 54.439055 + ], + [ + -8.158128, + 54.447117 + ], + [ + -8.161177, + 54.454817 + ], + [ + -8.173837, + 54.461741 + ], + [ + -8.168467, + 54.463477 + ], + [ + -8.15017, + 54.46939 + ], + [ + -8.097046, + 54.478588 + ], + [ + -8.072448, + 54.487063 + ], + [ + -8.060976, + 54.493316 + ], + [ + -8.05586, + 54.497553 + ], + [ + -8.043561, + 54.512229 + ], + [ + -8.023278, + 54.529696 + ], + [ + -8.002194, + 54.543442 + ], + [ + -7.926411, + 54.533055 + ], + [ + -7.887137, + 54.532125 + ], + [ + -7.848844, + 54.54091 + ], + [ + -7.749264, + 54.596152 + ], + [ + -7.707871, + 54.604162 + ], + [ + -7.707944, + 54.604708 + ], + [ + -7.707951, + 54.604763 + ], + [ + -7.710558, + 54.624264 + ], + [ + -7.721204, + 54.625866 + ], + [ + -7.736758, + 54.619251 + ], + [ + -7.753553, + 54.614497 + ], + [ + -7.769159, + 54.618011 + ], + [ + -7.801199, + 54.634806 + ], + [ + -7.814996, + 54.639457 + ], + [ + -7.822541, + 54.638113 + ], + [ + -7.838044, + 54.63124 + ], + [ + -7.846416, + 54.631447 + ], + [ + -7.85427, + 54.636408 + ], + [ + -7.864347, + 54.649069 + ], + [ + -7.872771, + 54.652221 + ], + [ + -7.890082, + 54.655063 + ], + [ + -7.906619, + 54.661316 + ], + [ + -7.914835, + 54.671651 + ], + [ + -7.907135, + 54.686689 + ], + [ + -7.913233, + 54.688653 + ], + [ + -7.929666, + 54.696714 + ], + [ + -7.880109, + 54.711029 + ], + [ + -7.845899, + 54.731027 + ], + [ + -7.832153, + 54.730614 + ], + [ + -7.803576, + 54.716145 + ], + [ + -7.770503, + 54.706016 + ], + [ + -7.736603, + 54.707463 + ], + [ + -7.70229, + 54.718883 + ], + [ + -7.667512, + 54.738779 + ], + [ + -7.649683, + 54.744877 + ], + [ + -7.61537, + 54.739347 + ], + [ + -7.585398, + 54.744722 + ], + [ + -7.566639, + 54.738675 + ], + [ + -7.556149, + 54.738365 + ], + [ + -7.543075, + 54.741673 + ], + [ + -7.543023, + 54.743791 + ], + [ + -7.548398, + 54.747202 + ], + [ + -7.551705, + 54.754695 + ], + [ + -7.549741, + 54.779603 + ], + [ + -7.543385, + 54.793091 + ], + [ + -7.470831, + 54.845284 + ], + [ + -7.45507, + 54.863009 + ], + [ + -7.444735, + 54.884455 + ], + [ + -7.444735, + 54.894893 + ], + [ + -7.448972, + 54.920318 + ], + [ + -7.445251, + 54.932152 + ], + [ + -7.436983, + 54.938301 + ], + [ + -7.417139, + 54.943056 + ], + [ + -7.415755, + 54.944372 + ], + [ + -7.408665, + 54.951117 + ], + [ + -7.407424, + 54.959437 + ], + [ + -7.413109, + 54.984965 + ], + [ + -7.409078, + 54.992045 + ], + [ + -7.403755, + 54.99313 + ], + [ + -7.40112, + 54.994836 + ], + [ + -7.405254, + 55.003569 + ], + [ + -7.376987, + 55.02889 + ], + [ + -7.366962, + 55.035557 + ], + [ + -7.355024, + 55.040931 + ], + [ + -7.291152, + 55.046615 + ], + [ + -7.282987, + 55.051835 + ], + [ + -7.275288, + 55.058863 + ], + [ + -7.266503, + 55.065167 + ], + [ + -7.247097, + 55.069328 + ], + [ + -7.2471, + 55.069322 + ], + [ + -7.256744, + 55.050686 + ], + [ + -7.240956, + 55.050279 + ], + [ + -7.240314, + 55.050389 + ] + ] + ], + [ + [ + [ + -13.688588, + 57.596259 + ], + [ + -13.690419, + 57.596259 + ], + [ + -13.691314, + 57.596503 + ], + [ + -13.691314, + 57.597154 + ], + [ + -13.690419, + 57.597805 + ], + [ + -13.688588, + 57.597805 + ], + [ + -13.687652, + 57.597154 + ], + [ + -13.687652, + 57.596869 + ], + [ + -13.688588, + 57.596259 + ] + ] + ], + [ + [ + [ + -4.839121, + 54.469789 + ], + [ + -4.979941, + 54.457977 + ], + [ + -5.343644, + 54.878637 + ], + [ + -5.308469, + 55.176452 + ], + [ + -6.272566, + 55.418443 + ], + [ + -8.690528, + 57.833706 + ], + [ + -6.344705, + 59.061083 + ], + [ + -4.204785, + 58.63305 + ], + [ + -2.31566, + 60.699068 + ], + [ + -1.695335, + 60.76432 + ], + [ + -1.58092, + 60.866001 + ], + [ + -0.17022, + 60.897204 + ], + [ + -0.800508, + 59.770037 + ], + [ + -1.292368, + 57.732574 + ], + [ + -1.850077, + 55.766368 + ], + [ + -1.73054, + 55.782219 + ], + [ + 1.892395, + 52.815229 + ], + [ + 1.742775, + 51.364209 + ], + [ + 1.080173, + 50.847526 + ], + [ + 0.000774, + 50.664982 + ], + [ + -0.162997, + 50.752401 + ], + [ + -0.725152, + 50.731879 + ], + [ + -0.768853, + 50.741516 + ], + [ + -0.770985, + 50.736884 + ], + [ + -0.789947, + 50.730048 + ], + [ + -0.812815, + 50.734768 + ], + [ + -0.877742, + 50.761156 + ], + [ + -0.942879, + 50.758338 + ], + [ + -0.992581, + 50.737379 + ], + [ + -1.18513, + 50.766989 + ], + [ + -1.282741, + 50.792353 + ], + [ + -1.375004, + 50.772063 + ], + [ + -1.523427, + 50.719605 + ], + [ + -1.630649, + 50.695128 + ], + [ + -1.663617, + 50.670508 + ], + [ + -1.498021, + 50.40831 + ], + [ + -4.097427, + 49.735486 + ], + [ + -6.825199, + 49.700905 + ], + [ + -5.541541, + 51.446591 + ], + [ + -6.03361, + 51.732369 + ], + [ + -4.791746, + 52.635365 + ], + [ + -4.969244, + 52.637413 + ], + [ + -5.049473, + 53.131209 + ], + [ + -4.787393, + 53.409491 + ], + [ + -4.734148, + 53.424866 + ], + [ + -4.917096, + 53.508212 + ], + [ + -4.839121, + 54.469789 + ] + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "id": 0 + }, + "geometry": { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [ + -157.018938, + 19.300864 + ], + [ + -179.437336, + 27.295312 + ], + [ + -179.480084, + 28.991459 + ], + [ + -168.707465, + 26.30325 + ], + [ + -163.107414, + 24.60499 + ], + [ + -153.841679, + 20.079306 + ], + [ + -154.233846, + 19.433391 + ], + [ + -153.61725, + 18.900587 + ], + [ + -154.429471, + 18.171036 + ], + [ + -156.780638, + 18.718492 + ], + [ + -157.018938, + 19.300864 + ] + ] + ], + [ + [ + [ + -78.91269, + 43.037032 + ], + [ + -78.964351, + 42.976393 + ], + [ + -78.981718, + 42.979043 + ], + [ + -78.998055, + 42.991111 + ], + [ + -79.01189, + 43.004358 + ], + [ + -79.022046, + 43.010539 + ], + [ + -79.023076, + 43.017015 + ], + [ + -79.00983, + 43.050867 + ], + [ + -79.011449, + 43.065291 + ], + [ + -78.993051, + 43.066174 + ], + [ + -78.975536, + 43.069707 + ], + [ + -78.958905, + 43.070884 + ], + [ + -78.943304, + 43.065291 + ], + [ + -78.917399, + 43.058521 + ], + [ + -78.908569, + 43.049396 + ], + [ + -78.91269, + 43.037032 + ] + ] + ], + [ + [ + [ + -123.03529, + 48.992515 + ], + [ + -123.035308, + 48.992499 + ], + [ + -123.045277, + 48.984361 + ], + [ + -123.08849, + 48.972235 + ], + [ + -123.089345, + 48.987982 + ], + [ + -123.090484, + 48.992499 + ], + [ + -123.090488, + 48.992515 + ], + [ + -123.035306, + 48.992515 + ], + [ + -123.03529, + 48.992515 + ] + ] + ], + [ + [ + [ + -103.837038, + 29.279906 + ], + [ + -103.864121, + 29.281366 + ], + [ + -103.928122, + 29.293019 + ], + [ + -104.01915, + 29.32033 + ], + [ + -104.057313, + 29.339037 + ], + [ + -104.105424, + 29.385675 + ], + [ + -104.139789, + 29.400584 + ], + [ + -104.161648, + 29.416759 + ], + [ + -104.194514, + 29.448927 + ], + [ + -104.212291, + 29.484661 + ], + [ + -104.218698, + 29.489829 + ], + [ + -104.227148, + 29.493033 + ], + [ + -104.251022, + 29.508588 + ], + [ + -104.267171, + 29.526571 + ], + [ + -104.292751, + 29.532824 + ], + [ + -104.320604, + 29.532255 + ], + [ + -104.338484, + 29.524013 + ], + [ + -104.349026, + 29.537578 + ], + [ + -104.430443, + 29.582795 + ], + [ + -104.437832, + 29.58543 + ], + [ + -104.444008, + 29.589203 + ], + [ + -104.448555, + 29.597678 + ], + [ + -104.452069, + 29.607109 + ], + [ + -104.455222, + 29.613387 + ], + [ + -104.469381, + 29.625402 + ], + [ + -104.516639, + 29.654315 + ], + [ + -104.530824, + 29.667906 + ], + [ + -104.535036, + 29.677802 + ], + [ + -104.535191, + 29.687853 + ], + [ + -104.537103, + 29.702116 + ], + [ + -104.543666, + 29.71643 + ], + [ + -104.561391, + 29.745421 + ], + [ + -104.570279, + 29.787511 + ], + [ + -104.583586, + 29.802575 + ], + [ + -104.601207, + 29.81477 + ], + [ + -104.619682, + 29.833064 + ], + [ + -104.623764, + 29.841487 + ], + [ + -104.637588, + 29.887996 + ], + [ + -104.656346, + 29.908201 + ], + [ + -104.660635, + 29.918433 + ], + [ + -104.663478, + 29.923084 + ], + [ + -104.676526, + 29.93683 + ], + [ + -104.680479, + 29.942308 + ], + [ + -104.682469, + 29.952126 + ], + [ + -104.680117, + 29.967784 + ], + [ + -104.680479, + 29.976466 + ], + [ + -104.699108, + 30.03145 + ], + [ + -104.701589, + 30.055324 + ], + [ + -104.698592, + 30.075271 + ], + [ + -104.684639, + 30.111135 + ], + [ + -104.680479, + 30.134131 + ], + [ + -104.67867, + 30.170356 + ], + [ + -104.681564, + 30.192939 + ], + [ + -104.695853, + 30.208441 + ], + [ + -104.715231, + 30.243995 + ], + [ + -104.724585, + 30.252211 + ], + [ + -104.742155, + 30.25986 + ], + [ + -104.74939, + 30.264459 + ], + [ + -104.761689, + 30.284199 + ], + [ + -104.774143, + 30.311588 + ], + [ + -104.788767, + 30.335927 + ], + [ + -104.807732, + 30.346418 + ], + [ + -104.8129, + 30.350707 + ], + [ + -104.814967, + 30.360577 + ], + [ + -104.816001, + 30.371997 + ], + [ + -104.818274, + 30.380524 + ], + [ + -104.824269, + 30.38719 + ], + [ + -104.83755, + 30.394063 + ], + [ + -104.844939, + 30.40104 + ], + [ + -104.853259, + 30.41215 + ], + [ + -104.855016, + 30.417473 + ], + [ + -104.853621, + 30.423984 + ], + [ + -104.852432, + 30.438867 + ], + [ + -104.854655, + 30.448737 + ], + [ + -104.864473, + 30.462018 + ], + [ + -104.866695, + 30.473025 + ], + [ + -104.865248, + 30.479898 + ], + [ + -104.859615, + 30.491112 + ], + [ + -104.859254, + 30.497261 + ], + [ + -104.863026, + 30.502377 + ], + [ + -104.879718, + 30.510852 + ], + [ + -104.882146, + 30.520929 + ], + [ + -104.884007, + 30.541858 + ], + [ + -104.886591, + 30.551883 + ], + [ + -104.898166, + 30.569401 + ], + [ + -104.928242, + 30.599529 + ], + [ + -104.93434, + 30.610536 + ], + [ + -104.941057, + 30.61405 + ], + [ + -104.972735, + 30.618029 + ], + [ + -104.98276, + 30.620716 + ], + [ + -104.989117, + 30.629553 + ], + [ + -104.991649, + 30.640301 + ], + [ + -104.992941, + 30.651464 + ], + [ + -104.995783, + 30.661747 + ], + [ + -105.008495, + 30.676992 + ], + [ + -105.027977, + 30.690117 + ], + [ + -105.049475, + 30.699264 + ], + [ + -105.06813, + 30.702675 + ], + [ + -105.087043, + 30.709806 + ], + [ + -105.133604, + 30.757917 + ], + [ + -105.140425, + 30.750476 + ], + [ + -105.153241, + 30.763188 + ], + [ + -105.157788, + 30.76572 + ], + [ + -105.160889, + 30.764118 + ], + [ + -105.162698, + 30.774919 + ], + [ + -105.167297, + 30.781171 + ], + [ + -105.17479, + 30.783962 + ], + [ + -105.185125, + 30.784634 + ], + [ + -105.195306, + 30.787941 + ], + [ + -105.204917, + 30.80241 + ], + [ + -105.2121, + 30.805718 + ], + [ + -105.21825, + 30.806803 + ], + [ + -105.229257, + 30.810214 + ], + [ + -105.232874, + 30.809128 + ], + [ + -105.239851, + 30.801532 + ], + [ + -105.243985, + 30.799103 + ], + [ + -105.249049, + 30.798845 + ], + [ + -105.259488, + 30.802979 + ], + [ + -105.265844, + 30.808405 + ], + [ + -105.270753, + 30.814348 + ], + [ + -105.277006, + 30.819412 + ], + [ + -105.334315, + 30.843803 + ], + [ + -105.363771, + 30.850366 + ], + [ + -105.376173, + 30.859565 + ], + [ + -105.41555, + 30.902456 + ], + [ + -105.496682, + 30.95651 + ], + [ + -105.530789, + 30.991701 + ], + [ + -105.555955, + 31.002605 + ], + [ + -105.565722, + 31.016661 + ], + [ + -105.578641, + 31.052163 + ], + [ + -105.59094, + 31.071438 + ], + [ + -105.605875, + 31.081928 + ], + [ + -105.623496, + 31.090351 + ], + [ + -105.643805, + 31.103684 + ], + [ + -105.668042, + 31.127869 + ], + [ + -105.675225, + 31.131951 + ], + [ + -105.692278, + 31.137635 + ], + [ + -105.76819, + 31.18001 + ], + [ + -105.777854, + 31.192722 + ], + [ + -105.78483, + 31.211016 + ], + [ + -105.861983, + 31.288376 + ], + [ + -105.880147, + 31.300881 + ], + [ + -105.896994, + 31.305997 + ], + [ + -105.897149, + 31.309511 + ], + [ + -105.908802, + 31.317004 + ], + [ + -105.928052, + 31.326461 + ], + [ + -105.934563, + 31.335504 + ], + [ + -105.941772, + 31.352351 + ], + [ + -105.948515, + 31.361239 + ], + [ + -105.961202, + 31.371006 + ], + [ + -106.004739, + 31.396948 + ], + [ + -106.021147, + 31.402167 + ], + [ + -106.046261, + 31.404648 + ], + [ + -106.065304, + 31.410952 + ], + [ + -106.099385, + 31.428884 + ], + [ + -106.141113, + 31.439167 + ], + [ + -106.164316, + 31.447797 + ], + [ + -106.174471, + 31.460251 + ], + [ + -106.209249, + 31.477305 + ], + [ + -106.215424, + 31.483919 + ], + [ + -106.21744, + 31.488725 + ], + [ + -106.218731, + 31.494616 + ], + [ + -106.222891, + 31.50459 + ], + [ + -106.232658, + 31.519938 + ], + [ + -106.274749, + 31.562622 + ], + [ + -106.286298, + 31.580141 + ], + [ + -106.312292, + 31.648612 + ], + [ + -106.331309, + 31.68215 + ], + [ + -106.35849, + 31.717548 + ], + [ + -106.39177, + 31.745919 + ], + [ + -106.428951, + 31.758476 + ], + [ + -106.473135, + 31.755065 + ], + [ + -106.492797, + 31.759044 + ], + [ + -106.501425, + 31.766344 + ], + [ + -106.506052, + 31.770258 + ], + [ + -106.517189, + 31.773824 + ], + [ + -106.558969, + 31.773876 + ], + [ + -106.584859, + 31.773927 + ], + [ + -106.610697, + 31.773979 + ], + [ + -106.636587, + 31.774082 + ], + [ + -106.662477, + 31.774134 + ], + [ + -106.688315, + 31.774237 + ], + [ + -106.714205, + 31.774237 + ], + [ + -106.740095, + 31.774289 + ], + [ + -106.765933, + 31.774392 + ], + [ + -106.791823, + 31.774444 + ], + [ + -106.817713, + 31.774496 + ], + [ + -106.843603, + 31.774547 + ], + [ + -106.869441, + 31.774599 + ], + [ + -106.895331, + 31.774702 + ], + [ + -106.921221, + 31.774702 + ], + [ + -106.947111, + 31.774754 + ], + [ + -106.973001, + 31.774857 + ], + [ + -106.998891, + 31.774909 + ], + [ + -107.02478, + 31.774961 + ], + [ + -107.05067, + 31.775013 + ], + [ + -107.076509, + 31.775064 + ], + [ + -107.102398, + 31.775168 + ], + [ + -107.128288, + 31.775168 + ], + [ + -107.154127, + 31.775219 + ], + [ + -107.180016, + 31.775374 + ], + [ + -107.205906, + 31.775374 + ], + [ + -107.231796, + 31.775426 + ], + [ + -107.257634, + 31.775478 + ], + [ + -107.283524, + 31.775529 + ], + [ + -107.309414, + 31.775633 + ], + [ + -107.335252, + 31.775684 + ], + [ + -107.361142, + 31.775788 + ], + [ + -107.387032, + 31.775788 + ], + [ + -107.412896, + 31.775839 + ], + [ + -107.438786, + 31.775943 + ], + [ + -107.464676, + 31.775994 + ], + [ + -107.490566, + 31.776098 + ], + [ + -107.516404, + 31.776149 + ], + [ + -107.542294, + 31.776201 + ], + [ + -107.568184, + 31.776253 + ], + [ + -107.594074, + 31.776304 + ], + [ + -107.619964, + 31.776408 + ], + [ + -107.645854, + 31.776459 + ], + [ + -107.671744, + 31.776459 + ], + [ + -107.697633, + 31.776563 + ], + [ + -107.723472, + 31.776614 + ], + [ + -107.749362, + 31.776666 + ], + [ + -107.775251, + 31.776718 + ], + [ + -107.801141, + 31.77677 + ], + [ + -107.82698, + 31.776873 + ], + [ + -107.852869, + 31.776925 + ], + [ + -107.878759, + 31.776925 + ], + [ + -107.904598, + 31.777028 + ], + [ + -107.930487, + 31.77708 + ], + [ + -107.956377, + 31.777131 + ], + [ + -107.982216, + 31.777183 + ], + [ + -108.008105, + 31.777235 + ], + [ + -108.033995, + 31.777338 + ], + [ + -108.059885, + 31.77739 + ], + [ + -108.085723, + 31.77739 + ], + [ + -108.111613, + 31.777545 + ], + [ + -108.137503, + 31.777545 + ], + [ + -108.163341, + 31.777648 + ], + [ + -108.189283, + 31.7777 + ], + [ + -108.215121, + 31.777751 + ], + [ + -108.215121, + 31.770723 + ], + [ + -108.215121, + 31.763695 + ], + [ + -108.215121, + 31.756667 + ], + [ + -108.215121, + 31.749639 + ], + [ + -108.215121, + 31.74256 + ], + [ + -108.215121, + 31.735583 + ], + [ + -108.215121, + 31.728555 + ], + [ + -108.215121, + 31.721476 + ], + [ + -108.215121, + 31.714396 + ], + [ + -108.215121, + 31.70742 + ], + [ + -108.215121, + 31.700392 + ], + [ + -108.215121, + 31.693312 + ], + [ + -108.215121, + 31.686284 + ], + [ + -108.215121, + 31.679256 + ], + [ + -108.215121, + 31.672176 + ], + [ + -108.21507, + 31.665148 + ], + [ + -108.215018, + 31.658172 + ], + [ + -108.215018, + 31.651092 + ], + [ + -108.215018, + 31.644064 + ], + [ + -108.215018, + 31.637036 + ], + [ + -108.215018, + 31.630008 + ], + [ + -108.215018, + 31.62298 + ], + [ + -108.215018, + 31.615952 + ], + [ + -108.215018, + 31.608873 + ], + [ + -108.215018, + 31.601845 + ], + [ + -108.215018, + 31.594817 + ], + [ + -108.215018, + 31.587789 + ], + [ + -108.215018, + 31.580761 + ], + [ + -108.215018, + 31.573733 + ], + [ + -108.215018, + 31.566653 + ], + [ + -108.215018, + 31.559625 + ], + [ + -108.214966, + 31.552597 + ], + [ + -108.214966, + 31.545569 + ], + [ + -108.214966, + 31.538489 + ], + [ + -108.214966, + 31.531461 + ], + [ + -108.214966, + 31.524485 + ], + [ + -108.214966, + 31.517405 + ], + [ + -108.214966, + 31.510378 + ], + [ + -108.214966, + 31.503401 + ], + [ + -108.214966, + 31.496322 + ], + [ + -108.214966, + 31.489242 + ], + [ + -108.214966, + 31.482214 + ], + [ + -108.214966, + 31.475238 + ], + [ + -108.214966, + 31.468158 + ], + [ + -108.214966, + 31.46113 + ], + [ + -108.214966, + 31.454102 + ], + [ + -108.214966, + 31.447074 + ], + [ + -108.214915, + 31.440046 + ], + [ + -108.214863, + 31.432966 + ], + [ + -108.214863, + 31.425938 + ], + [ + -108.214863, + 31.41891 + ], + [ + -108.214863, + 31.411882 + ], + [ + -108.214863, + 31.404803 + ], + [ + -108.214863, + 31.397826 + ], + [ + -108.214863, + 31.390798 + ], + [ + -108.214863, + 31.383719 + ], + [ + -108.214863, + 31.376639 + ], + [ + -108.214863, + 31.369663 + ], + [ + -108.214863, + 31.362635 + ], + [ + -108.214863, + 31.355555 + ], + [ + -108.214863, + 31.348527 + ], + [ + -108.214863, + 31.341551 + ], + [ + -108.214863, + 31.334471 + ], + [ + -108.214811, + 31.327443 + ], + [ + -108.257573, + 31.327391 + ], + [ + -108.300336, + 31.327391 + ], + [ + -108.34302, + 31.327391 + ], + [ + -108.385731, + 31.327391 + ], + [ + -108.428442, + 31.327391 + ], + [ + -108.471152, + 31.327391 + ], + [ + -108.513837, + 31.327391 + ], + [ + -108.556547, + 31.327391 + ], + [ + -108.59931, + 31.327391 + ], + [ + -108.64202, + 31.327391 + ], + [ + -108.684757, + 31.327391 + ], + [ + -108.727467, + 31.327391 + ], + [ + -108.770178, + 31.327391 + ], + [ + -108.812914, + 31.327391 + ], + [ + -108.855625, + 31.327391 + ], + [ + -108.898335, + 31.327391 + ], + [ + -108.941046, + 31.327391 + ], + [ + -108.968282, + 31.327391 + ], + [ + -108.983731, + 31.327391 + ], + [ + -109.026493, + 31.327391 + ], + [ + -109.04743, + 31.327391 + ], + [ + -109.069203, + 31.327391 + ], + [ + -109.111914, + 31.327391 + ], + [ + -109.154599, + 31.327391 + ], + [ + -109.197361, + 31.327391 + ], + [ + -109.240072, + 31.32734 + ], + [ + -109.282782, + 31.32734 + ], + [ + -109.325519, + 31.32734 + ], + [ + -109.368229, + 31.32734 + ], + [ + -109.410914, + 31.32734 + ], + [ + -109.45365, + 31.32734 + ], + [ + -109.496387, + 31.32734 + ], + [ + -109.539071, + 31.32734 + ], + [ + -109.581808, + 31.32734 + ], + [ + -109.624493, + 31.32734 + ], + [ + -109.667177, + 31.32734 + ], + [ + -109.709965, + 31.32734 + ], + [ + -109.75265, + 31.32734 + ], + [ + -109.795335, + 31.32734 + ], + [ + -109.838123, + 31.32734 + ], + [ + -109.880808, + 31.32734 + ], + [ + -109.923596, + 31.327288 + ], + [ + -109.96628, + 31.327236 + ], + [ + -110.008965, + 31.327236 + ], + [ + -110.051702, + 31.327236 + ], + [ + -110.094386, + 31.327236 + ], + [ + -110.137071, + 31.327236 + ], + [ + -110.179807, + 31.327236 + ], + [ + -110.222544, + 31.327236 + ], + [ + -110.265229, + 31.327236 + ], + [ + -110.308017, + 31.327236 + ], + [ + -110.350753, + 31.327236 + ], + [ + -110.39349, + 31.327236 + ], + [ + -110.436174, + 31.327236 + ], + [ + -110.478859, + 31.327236 + ], + [ + -110.521595, + 31.327236 + ], + [ + -110.56428, + 31.327236 + ], + [ + -110.606965, + 31.327236 + ], + [ + -110.649727, + 31.327236 + ], + [ + -110.692438, + 31.327236 + ], + [ + -110.7352, + 31.327236 + ], + [ + -110.777885, + 31.327236 + ], + [ + -110.820595, + 31.327236 + ], + [ + -110.863358, + 31.327236 + ], + [ + -110.906068, + 31.327236 + ], + [ + -110.948753, + 31.327185 + ], + [ + -111.006269, + 31.327185 + ], + [ + -111.067118, + 31.333644 + ], + [ + -111.094455, + 31.342532 + ], + [ + -111.145924, + 31.359069 + ], + [ + -111.197446, + 31.375554 + ], + [ + -111.248864, + 31.392142 + ], + [ + -111.300333, + 31.40873 + ], + [ + -111.351803, + 31.425318 + ], + [ + -111.403299, + 31.441855 + ], + [ + -111.454768, + 31.458339 + ], + [ + -111.506238, + 31.474979 + ], + [ + -111.915464, + 31.601431 + ], + [ + -112.324715, + 31.727987 + ], + [ + -112.733967, + 31.854543 + ], + [ + -113.143218, + 31.981046 + ], + [ + -113.552444, + 32.107602 + ], + [ + -113.961696, + 32.234132 + ], + [ + -114.370921, + 32.360687 + ], + [ + -114.780147, + 32.487243 + ], + [ + -114.816785, + 32.498534 + ], + [ + -114.819373, + 32.499363 + ], + [ + -114.822108, + 32.50024 + ], + [ + -114.809447, + 32.511324 + ], + [ + -114.795546, + 32.552226 + ], + [ + -114.794203, + 32.574111 + ], + [ + -114.802678, + 32.594497 + ], + [ + -114.786813, + 32.621033 + ], + [ + -114.781542, + 32.628061 + ], + [ + -114.758804, + 32.64483 + ], + [ + -114.751156, + 32.65222 + ], + [ + -114.739477, + 32.669066 + ], + [ + -114.731209, + 32.686636 + ], + [ + -114.723871, + 32.711519 + ], + [ + -114.724284, + 32.712835 + ], + [ + -114.724285, + 32.712836 + ], + [ + -114.764541, + 32.709839 + ], + [ + -114.838076, + 32.704206 + ], + [ + -114.911612, + 32.698703 + ], + [ + -114.985199, + 32.693122 + ], + [ + -115.058734, + 32.687567 + ], + [ + -115.13227, + 32.681986 + ], + [ + -115.205806, + 32.676456 + ], + [ + -115.27929, + 32.670823 + ], + [ + -115.352851, + 32.665346 + ], + [ + -115.426386, + 32.659765 + ], + [ + -115.499922, + 32.654209 + ], + [ + -115.573535, + 32.648654 + ], + [ + -115.647019, + 32.643073 + ], + [ + -115.720529, + 32.637518 + ], + [ + -115.794064, + 32.631963 + ], + [ + -115.8676, + 32.626408 + ], + [ + -115.941213, + 32.620827 + ], + [ + -116.014748, + 32.615271 + ], + [ + -116.088232, + 32.609664 + ], + [ + -116.161742, + 32.604161 + ], + [ + -116.235329, + 32.598554 + ], + [ + -116.308891, + 32.593025 + ], + [ + -116.382426, + 32.587469 + ], + [ + -116.455962, + 32.581888 + ], + [ + -116.529472, + 32.576333 + ], + [ + -116.603007, + 32.570804 + ], + [ + -116.676543, + 32.565223 + ], + [ + -116.750104, + 32.559667 + ], + [ + -116.82364, + 32.554086 + ], + [ + -116.897201, + 32.548531 + ], + [ + -116.970737, + 32.542976 + ], + [ + -117.044221, + 32.537421 + ], + [ + -117.125121, + 32.531669 + ], + [ + -117.125969, + 32.538258 + ], + [ + -117.239623, + 32.531308 + ], + [ + -120.274098, + 32.884264 + ], + [ + -121.652736, + 34.467248 + ], + [ + -124.367265, + 37.662798 + ], + [ + -126.739806, + 41.37928 + ], + [ + -126.996297, + 45.773888 + ], + [ + -124.770704, + 48.44258 + ], + [ + -123.734053, + 48.241906 + ], + [ + -123.1663, + 48.27837 + ], + [ + -123.193018, + 48.501035 + ], + [ + -123.176987, + 48.65482 + ], + [ + -122.912481, + 48.753561 + ], + [ + -122.899122, + 48.897797 + ], + [ + -122.837671, + 48.97502 + ], + [ + -122.743986, + 48.980582 + ], + [ + -122.753, + 48.992499 + ], + [ + -122.753012, + 48.992515 + ], + [ + -122.653258, + 48.992515 + ], + [ + -122.433375, + 48.992515 + ], + [ + -122.213517, + 48.992515 + ], + [ + -121.993763, + 48.992515 + ], + [ + -121.773958, + 48.992515 + ], + [ + -121.554152, + 48.992515 + ], + [ + -121.33432, + 48.992515 + ], + [ + -121.114515, + 48.992515 + ], + [ + -95.396937, + 48.99267 + ], + [ + -95.177106, + 48.99267 + ], + [ + -95.168527, + 48.995047 + ], + [ + -95.161887, + 49.001145 + ], + [ + -95.159329, + 49.01179 + ], + [ + -95.159665, + 49.10951 + ], + [ + -95.160027, + 49.223353 + ], + [ + -95.160337, + 49.313012 + ], + [ + -95.160569, + 49.369494 + ], + [ + -95.102821, + 49.35394 + ], + [ + -94.982518, + 49.356162 + ], + [ + -94.926087, + 49.345568 + ], + [ + -94.856195, + 49.318283 + ], + [ + -94.839142, + 49.308878 + ], + [ + -94.827256, + 49.292858 + ], + [ + -94.819892, + 49.252034 + ], + [ + -94.810358, + 49.229606 + ], + [ + -94.806121, + 49.210899 + ], + [ + -94.811185, + 49.166561 + ], + [ + -94.803743, + 49.146407 + ], + [ + -94.792039, + 49.12646 + ], + [ + -94.753772, + 49.026156 + ], + [ + -94.711217, + 48.914586 + ], + [ + -94.711734, + 48.862755 + ], + [ + -94.712147, + 48.842446 + ], + [ + -94.713284, + 48.823843 + ], + [ + -94.710907, + 48.807513 + ], + [ + -94.701786, + 48.790098 + ], + [ + -94.688893, + 48.778832 + ], + [ + -94.592852, + 48.726433 + ], + [ + -94.519161, + 48.70447 + ], + [ + -94.4795, + 48.700698 + ], + [ + -94.311577, + 48.713927 + ], + [ + -94.292586, + 48.711912 + ], + [ + -94.284034, + 48.709069 + ], + [ + -94.274499, + 48.704108 + ], + [ + -94.265482, + 48.697752 + ], + [ + -94.258454, + 48.690828 + ], + [ + -94.255767, + 48.683541 + ], + [ + -94.252459, + 48.662405 + ], + [ + -94.251038, + 48.65729 + ], + [ + -94.23215, + 48.652019 + ], + [ + -94.03485, + 48.643311 + ], + [ + -93.874885, + 48.636206 + ], + [ + -93.835741, + 48.617137 + ], + [ + -93.809386, + 48.543576 + ], + [ + -93.778664, + 48.519468 + ], + [ + -93.756779, + 48.516549 + ], + [ + -93.616297, + 48.531302 + ], + [ + -93.599889, + 48.526341 + ], + [ + -93.566584, + 48.538279 + ], + [ + -93.491756, + 48.542309 + ], + [ + -93.459924, + 48.557399 + ], + [ + -93.45225, + 48.572721 + ], + [ + -93.453774, + 48.586958 + ], + [ + -93.451475, + 48.597422 + ], + [ + -93.417316, + 48.604114 + ], + [ + -93.385716, + 48.614863 + ], + [ + -93.25774, + 48.630314 + ], + [ + -93.131701, + 48.62463 + ], + [ + -92.97972, + 48.61768 + ], + [ + -92.955588, + 48.612228 + ], + [ + -92.884197, + 48.579878 + ], + [ + -92.72555, + 48.548692 + ], + [ + -92.648604, + 48.536263 + ], + [ + -92.630181, + 48.519468 + ], + [ + -92.627468, + 48.502777 + ], + [ + -92.646743, + 48.497428 + ], + [ + -92.691366, + 48.489858 + ], + [ + -92.710641, + 48.482882 + ], + [ + -92.718909, + 48.459782 + ], + [ + -92.704052, + 48.445158 + ], + [ + -92.677129, + 48.441747 + ], + [ + -92.657053, + 48.438233 + ], + [ + -92.570521, + 48.446656 + ], + [ + -92.526932, + 48.445623 + ], + [ + -92.490629, + 48.433117 + ], + [ + -92.474532, + 48.410483 + ], + [ + -92.467581, + 48.394282 + ], + [ + -92.467064, + 48.353225 + ], + [ + -92.462465, + 48.329299 + ], + [ + -92.451381, + 48.312685 + ], + [ + -92.41823, + 48.282041 + ], + [ + -92.38464, + 48.232406 + ], + [ + -92.371851, + 48.222587 + ], + [ + -92.353815, + 48.222897 + ], + [ + -92.327874, + 48.229435 + ], + [ + -92.303663, + 48.239279 + ], + [ + -92.291029, + 48.249562 + ], + [ + -92.292062, + 48.270336 + ], + [ + -92.301416, + 48.290645 + ], + [ + -92.303095, + 48.310928 + ], + [ + -92.281598, + 48.33178 + ], + [ + -92.259118, + 48.339635 + ], + [ + -92.154732, + 48.350125 + ], + [ + -92.070499, + 48.346714 + ], + [ + -92.043421, + 48.334596 + ], + [ + -92.030114, + 48.313176 + ], + [ + -92.021355, + 48.287441 + ], + [ + -92.007997, + 48.262482 + ], + [ + -91.992158, + 48.247909 + ], + [ + -91.975492, + 48.236566 + ], + [ + -91.957302, + 48.228323 + ], + [ + -91.852244, + 48.195974 + ], + [ + -91.764988, + 48.187344 + ], + [ + -91.744137, + 48.179593 + ], + [ + -91.727575, + 48.168327 + ], + [ + -91.695509, + 48.13758 + ], + [ + -91.716438, + 48.112051 + ], + [ + -91.692512, + 48.097866 + ], + [ + -91.618615, + 48.089572 + ], + [ + -91.597479, + 48.090399 + ], + [ + -91.589676, + 48.088332 + ], + [ + -91.581098, + 48.080942 + ], + [ + -91.579806, + 48.070969 + ], + [ + -91.585129, + 48.06084 + ], + [ + -91.586989, + 48.052572 + ], + [ + -91.574845, + 48.048205 + ], + [ + -91.487098, + 48.053476 + ], + [ + -91.464722, + 48.048955 + ], + [ + -91.446274, + 48.040738 + ], + [ + -91.427929, + 48.036449 + ], + [ + -91.3654, + 48.057843 + ], + [ + -91.276362, + 48.064768 + ], + [ + -91.23807, + 48.082648 + ], + [ + -91.203963, + 48.107659 + ], + [ + -91.071103, + 48.170859 + ], + [ + -91.02816, + 48.184838 + ], + [ + -91.008109, + 48.194372 + ], + [ + -90.923153, + 48.227109 + ], + [ + -90.873802, + 48.234344 + ], + [ + -90.840678, + 48.220107 + ], + [ + -90.837939, + 48.210547 + ], + [ + -90.848843, + 48.198713 + ], + [ + -90.849721, + 48.189566 + ], + [ + -90.843003, + 48.176983 + ], + [ + -90.83427, + 48.171789 + ], + [ + -90.823883, + 48.168327 + ], + [ + -90.812307, + 48.160989 + ], + [ + -90.803057, + 48.147166 + ], + [ + -90.796701, + 48.117064 + ], + [ + -90.786469, + 48.10045 + ], + [ + -90.750347, + 48.083991 + ], + [ + -90.701307, + 48.08456 + ], + [ + -90.611079, + 48.103499 + ], + [ + -90.586843, + 48.104817 + ], + [ + -90.573872, + 48.097892 + ], + [ + -90.562194, + 48.088849 + ], + [ + -90.542014, + 48.083733 + ], + [ + -90.531601, + 48.08456 + ], + [ + -90.501887, + 48.094275 + ], + [ + -90.490493, + 48.096239 + ], + [ + -90.483465, + 48.094482 + ], + [ + -90.477858, + 48.091536 + ], + [ + -90.470623, + 48.089882 + ], + [ + -90.178625, + 48.116444 + ], + [ + -90.120386, + 48.115359 + ], + [ + -90.073257, + 48.101199 + ], + [ + -90.061036, + 48.091019 + ], + [ + -90.008222, + 48.029731 + ], + [ + -89.995329, + 48.018595 + ], + [ + -89.980317, + 48.010094 + ], + [ + -89.92045, + 47.98746 + ], + [ + -89.902441, + 47.985909 + ], + [ + -89.803454, + 48.013763 + ], + [ + -89.780975, + 48.017199 + ], + [ + -89.763302, + 48.017303 + ], + [ + -89.745964, + 48.013763 + ], + [ + -89.724596, + 48.005908 + ], + [ + -89.712788, + 48.003376 + ], + [ + -89.678656, + 48.008699 + ], + [ + -89.65659, + 48.007975 + ], + [ + -89.593105, + 47.996503 + ], + [ + -89.581753, + 47.996333 + ], + [ + -89.586724, + 47.992938 + ], + [ + -89.310872, + 47.981097 + ], + [ + -89.072861, + 48.046842 + ], + [ + -88.49789, + 48.212841 + ], + [ + -88.286621, + 48.156675 + ], + [ + -85.939935, + 47.280501 + ], + [ + -84.784644, + 46.770068 + ], + [ + -84.516909, + 46.435083 + ], + [ + -84.489712, + 46.446652 + ], + [ + -84.491052, + 46.457658 + ], + [ + -84.478301, + 46.466467 + ], + [ + -84.465408, + 46.478172 + ], + [ + -84.448096, + 46.489722 + ], + [ + -84.42324, + 46.511581 + ], + [ + -84.389702, + 46.520262 + ], + [ + -84.352469, + 46.522743 + ], + [ + -84.30534, + 46.501607 + ], + [ + -84.242011, + 46.526464 + ], + [ + -84.197285, + 46.546359 + ], + [ + -84.147676, + 46.541346 + ], + [ + -84.110443, + 46.526464 + ], + [ + -84.158812, + 46.433343 + ], + [ + -84.147676, + 46.399882 + ], + [ + -84.129046, + 46.375026 + ], + [ + -84.10543, + 46.347741 + ], + [ + -84.105944, + 46.346374 + ], + [ + -84.117195, + 46.347157 + ], + [ + -84.117489, + 46.338326 + ], + [ + -84.122361, + 46.331922 + ], + [ + -84.112061, + 46.287102 + ], + [ + -84.092672, + 46.227469 + ], + [ + -84.111983, + 46.20337 + ], + [ + -84.015118, + 46.149712 + ], + [ + -83.957038, + 46.045736 + ], + [ + -83.676821, + 46.15388 + ], + [ + -83.429449, + 46.086221 + ], + [ + -83.523049, + 45.892052 + ], + [ + -83.574563, + 45.890259 + ], + [ + -82.551615, + 44.857931 + ], + [ + -82.655591, + 43.968545 + ], + [ + -82.440632, + 43.096285 + ], + [ + -82.460131, + 43.084392 + ], + [ + -82.458894, + 43.083247 + ], + [ + -82.431813, + 43.039387 + ], + [ + -82.424748, + 43.02408 + ], + [ + -82.417242, + 43.01731 + ], + [ + -82.416369, + 43.01742 + ], + [ + -82.416412, + 43.017143 + ], + [ + -82.414603, + 42.983243 + ], + [ + -82.430442, + 42.951307 + ], + [ + -82.453179, + 42.918983 + ], + [ + -82.464781, + 42.883637 + ], + [ + -82.468036, + 42.863974 + ], + [ + -82.482325, + 42.835113 + ], + [ + -82.485271, + 42.818524 + ], + [ + -82.473618, + 42.798164 + ], + [ + -82.470982, + 42.790568 + ], + [ + -82.471344, + 42.779845 + ], + [ + -82.476951, + 42.761474 + ], + [ + -82.48341, + 42.719254 + ], + [ + -82.511264, + 42.646675 + ], + [ + -82.526224, + 42.619906 + ], + [ + -82.549246, + 42.590941 + ], + [ + -82.575833, + 42.571795 + ], + [ + -82.608467, + 42.561098 + ], + [ + -82.644331, + 42.557817 + ], + [ + -82.644698, + 42.557533 + ], + [ + -82.644932, + 42.561634 + ], + [ + -82.637132, + 42.568405 + ], + [ + -82.60902, + 42.579296 + ], + [ + -82.616673, + 42.582828 + ], + [ + -82.636985, + 42.599607 + ], + [ + -82.625357, + 42.616092 + ], + [ + -82.629331, + 42.626394 + ], + [ + -82.638751, + 42.633459 + ], + [ + -82.644344, + 42.640524 + ], + [ + -82.644166, + 42.641056 + ], + [ + -82.716083, + 42.617461 + ], + [ + -82.777592, + 42.408506 + ], + [ + -82.888693, + 42.406093 + ], + [ + -82.889991, + 42.403266 + ], + [ + -82.905739, + 42.387665 + ], + [ + -82.923842, + 42.374419 + ], + [ + -82.937972, + 42.366176 + ], + [ + -82.947686, + 42.363527 + ], + [ + -82.979624, + 42.359406 + ], + [ + -83.042618, + 42.340861 + ], + [ + -83.061899, + 42.32732 + ], + [ + -83.081622, + 42.30907 + ], + [ + -83.11342, + 42.279619 + ], + [ + -83.145306, + 42.066968 + ], + [ + -83.177398, + 41.960666 + ], + [ + -83.21512, + 41.794493 + ], + [ + -82.219051, + 41.516445 + ], + [ + -80.345329, + 42.13344 + ], + [ + -80.316455, + 42.123137 + ], + [ + -79.270266, + 42.591872 + ], + [ + -79.221058, + 42.582892 + ], + [ + -78.871842, + 42.860012 + ], + [ + -78.875011, + 42.867184 + ], + [ + -78.896205, + 42.897209 + ], + [ + -78.901651, + 42.908101 + ], + [ + -78.90901, + 42.952255 + ], + [ + -78.913426, + 42.957848 + ], + [ + -78.932118, + 42.9708 + ], + [ + -78.936386, + 42.979631 + ], + [ + -78.927997, + 43.002003 + ], + [ + -78.893114, + 43.029379 + ], + [ + -78.887963, + 43.051456 + ], + [ + -78.914897, + 43.076477 + ], + [ + -79.026167, + 43.086485 + ], + [ + -79.065231, + 43.10573 + ], + [ + -79.065273, + 43.105897 + ], + [ + -79.065738, + 43.120237 + ], + [ + -79.061423, + 43.130288 + ], + [ + -79.055583, + 43.138427 + ], + [ + -79.051604, + 43.146851 + ], + [ + -79.04933, + 43.159847 + ], + [ + -79.048607, + 43.170622 + ], + [ + -79.053775, + 43.260358 + ], + [ + -79.058425, + 43.277799 + ], + [ + -79.058631, + 43.2782 + ], + [ + -78.990696, + 43.286947 + ], + [ + -78.862059, + 43.324332 + ], + [ + -78.767813, + 43.336418 + ], + [ + -78.516117, + 43.50645 + ], + [ + -76.363317, + 43.943219 + ], + [ + -76.396746, + 44.106667 + ], + [ + -76.364697, + 44.111631 + ], + [ + -76.366146, + 44.117349 + ], + [ + -76.357462, + 44.131478 + ], + [ + -76.183493, + 44.223025 + ], + [ + -76.162644, + 44.229888 + ], + [ + -76.176117, + 44.30795 + ], + [ + -76.046414, + 44.354817 + ], + [ + -75.928746, + 44.391137 + ], + [ + -75.852508, + 44.381639 + ], + [ + -75.849095, + 44.386103 + ], + [ + -75.847623, + 44.392579 + ], + [ + -75.84674, + 44.398172 + ], + [ + -75.845415, + 44.40141 + ], + [ + -75.780803, + 44.432318 + ], + [ + -75.770205, + 44.446153 + ], + [ + -75.772266, + 44.463815 + ], + [ + -75.779184, + 44.48236 + ], + [ + -75.791496, + 44.496513 + ], + [ + -75.791183, + 44.496768 + ], + [ + -75.754622, + 44.527567 + ], + [ + -75.69969, + 44.581673 + ], + [ + -75.578199, + 44.661513 + ], + [ + -75.455958, + 44.741766 + ], + [ + -75.341831, + 44.816749 + ], + [ + -75.270233, + 44.863774 + ], + [ + -75.129647, + 44.925166 + ], + [ + -75.075594, + 44.935501 + ], + [ + -75.058721, + 44.941031 + ], + [ + -75.0149, + 44.96599 + ], + [ + -74.998647, + 44.972398 + ], + [ + -74.940201, + 44.987746 + ], + [ + -74.903744, + 45.005213 + ], + [ + -74.88651, + 45.009398 + ], + [ + -74.868474, + 45.010122 + ], + [ + -74.741557, + 44.998857 + ], + [ + -74.712961, + 44.999254 + ], + [ + -74.695875, + 44.99803 + ], + [ + -74.596114, + 44.998495 + ], + [ + -74.496352, + 44.999012 + ], + [ + -74.197146, + 45.000458 + ], + [ + -71.703551, + 45.012757 + ], + [ + -71.603816, + 45.013274 + ], + [ + -71.505848, + 45.013731 + ], + [ + -71.50408, + 45.013739 + ], + [ + -71.506613, + 45.037045 + ], + [ + -71.504752, + 45.052962 + ], + [ + -71.497259, + 45.066553 + ], + [ + -71.45659, + 45.110994 + ], + [ + -71.451215, + 45.121691 + ], + [ + -71.445996, + 45.140295 + ], + [ + -71.441604, + 45.150682 + ], + [ + -71.413026, + 45.186184 + ], + [ + -71.406567, + 45.204942 + ], + [ + -71.42269, + 45.217189 + ], + [ + -71.449045, + 45.226905 + ], + [ + -71.438813, + 45.233468 + ], + [ + -71.394888, + 45.241529 + ], + [ + -71.381245, + 45.250779 + ], + [ + -71.3521, + 45.278323 + ], + [ + -71.334323, + 45.28871 + ], + [ + -71.311534, + 45.294136 + ], + [ + -71.293396, + 45.292327 + ], + [ + -71.20937, + 45.254758 + ], + [ + -71.185133, + 45.248557 + ], + [ + -71.160329, + 45.245767 + ], + [ + -71.141725, + 45.252329 + ], + [ + -71.111029, + 45.287108 + ], + [ + -71.095242, + 45.300905 + ], + [ + -71.085553, + 45.304213 + ], + [ + -71.084952, + 45.304293 + ], + [ + -71.064211, + 45.307055 + ], + [ + -71.054418, + 45.310362 + ], + [ + -71.036667, + 45.323385 + ], + [ + -71.027598, + 45.33465 + ], + [ + -71.016539, + 45.343125 + ], + [ + -70.993155, + 45.347827 + ], + [ + -70.968118, + 45.34452 + ], + [ + -70.951608, + 45.332014 + ], + [ + -70.906908, + 45.246232 + ], + [ + -70.892412, + 45.234604 + ], + [ + -70.874351, + 45.245663 + ], + [ + -70.870605, + 45.255275 + ], + [ + -70.872491, + 45.274189 + ], + [ + -70.870243, + 45.283129 + ], + [ + -70.862621, + 45.290363 + ], + [ + -70.842389, + 45.301215 + ], + [ + -70.835258, + 45.309794 + ], + [ + -70.83208, + 45.328552 + ], + [ + -70.835465, + 45.373097 + ], + [ + -70.833837, + 45.393096 + ], + [ + -70.825982, + 45.410459 + ], + [ + -70.812986, + 45.42343 + ], + [ + -70.794873, + 45.430406 + ], + [ + -70.771877, + 45.430045 + ], + [ + -70.75255, + 45.422345 + ], + [ + -70.718004, + 45.397282 + ], + [ + -70.696739, + 45.388652 + ], + [ + -70.675785, + 45.388704 + ], + [ + -70.65359, + 45.395473 + ], + [ + -70.641316, + 45.408496 + ], + [ + -70.650257, + 45.427461 + ], + [ + -70.668162, + 45.439036 + ], + [ + -70.707385, + 45.4564 + ], + [ + -70.722836, + 45.470921 + ], + [ + -70.732009, + 45.491591 + ], + [ + -70.730329, + 45.507973 + ], + [ + -70.686792, + 45.572723 + ], + [ + -70.589614, + 45.651788 + ], + [ + -70.572406, + 45.662279 + ], + [ + -70.514735, + 45.681709 + ], + [ + -70.484763, + 45.699641 + ], + [ + -70.4728, + 45.703568 + ], + [ + -70.450424, + 45.703723 + ], + [ + -70.439132, + 45.705893 + ], + [ + -70.419315, + 45.716901 + ], + [ + -70.407351, + 45.731525 + ], + [ + -70.402442, + 45.749663 + ], + [ + -70.403941, + 45.771161 + ], + [ + -70.408282, + 45.781651 + ], + [ + -70.413682, + 45.787697 + ], + [ + -70.41717, + 45.793795 + ], + [ + -70.415232, + 45.804389 + ], + [ + -70.409935, + 45.810745 + ], + [ + -70.389807, + 45.825059 + ], + [ + -70.312654, + 45.867641 + ], + [ + -70.283173, + 45.890482 + ], + [ + -70.262528, + 45.923038 + ], + [ + -70.255939, + 45.948876 + ], + [ + -70.263148, + 45.956834 + ], + [ + -70.280434, + 45.959315 + ], + [ + -70.303947, + 45.968616 + ], + [ + -70.316298, + 45.982982 + ], + [ + -70.316892, + 45.999002 + ], + [ + -70.306143, + 46.035331 + ], + [ + -70.303637, + 46.038483 + ], + [ + -70.294309, + 46.044943 + ], + [ + -70.29201, + 46.048663 + ], + [ + -70.293017, + 46.054038 + ], + [ + -70.296092, + 46.057862 + ], + [ + -70.300795, + 46.061737 + ], + [ + -70.304774, + 46.065975 + ], + [ + -70.311362, + 46.071866 + ], + [ + -70.312629, + 46.079566 + ], + [ + -70.30033, + 46.089281 + ], + [ + -70.26444, + 46.106593 + ], + [ + -70.24948, + 46.120597 + ], + [ + -70.244002, + 46.141009 + ], + [ + -70.249247, + 46.162765 + ], + [ + -70.263329, + 46.183229 + ], + [ + -70.284801, + 46.191859 + ], + [ + -70.280899, + 46.211857 + ], + [ + -70.253407, + 46.251493 + ], + [ + -70.236173, + 46.288339 + ], + [ + -70.223693, + 46.300793 + ], + [ + -70.201886, + 46.305495 + ], + [ + -70.199509, + 46.315262 + ], + [ + -70.197028, + 46.336863 + ], + [ + -70.188398, + 46.358412 + ], + [ + -70.167418, + 46.368179 + ], + [ + -70.153052, + 46.372829 + ], + [ + -70.074323, + 46.419545 + ], + [ + -70.061817, + 46.445409 + ], + [ + -70.050086, + 46.511271 + ], + [ + -70.032723, + 46.609766 + ], + [ + -70.023628, + 46.661287 + ], + [ + -70.007763, + 46.704075 + ], + [ + -69.989961, + 46.721697 + ], + [ + -69.899708, + 46.811562 + ], + [ + -69.809403, + 46.901299 + ], + [ + -69.719099, + 46.991086 + ], + [ + -69.628794, + 47.080797 + ], + [ + -69.538464, + 47.17061 + ], + [ + -69.448159, + 47.260346 + ], + [ + -69.357906, + 47.350134 + ], + [ + -69.267628, + 47.439844 + ], + [ + -69.25091, + 47.452919 + ], + [ + -69.237268, + 47.45881 + ], + [ + -69.221972, + 47.459688 + ], + [ + -69.069655, + 47.431886 + ], + [ + -69.054023, + 47.418399 + ], + [ + -69.054333, + 47.389253 + ], + [ + -69.066193, + 47.32967 + ], + [ + -69.065134, + 47.296339 + ], + [ + -69.06356, + 47.290809 + ], + [ + -69.057486, + 47.269467 + ], + [ + -69.0402, + 47.249055 + ], + [ + -68.906229, + 47.190221 + ], + [ + -68.889718, + 47.190609 + ], + [ + -68.761819, + 47.23704 + ], + [ + -68.71779, + 47.245231 + ], + [ + -68.668801, + 47.243422 + ], + [ + -68.644203, + 47.245283 + ], + [ + -68.6256, + 47.255205 + ], + [ + -68.607926, + 47.269829 + ], + [ + -68.58524, + 47.28249 + ], + [ + -68.539662, + 47.299853 + ], + [ + -68.518009, + 47.304762 + ], + [ + -68.492016, + 47.307553 + ], + [ + -68.466746, + 47.305692 + ], + [ + -68.435327, + 47.291275 + ], + [ + -68.422563, + 47.293109 + ], + [ + -68.410212, + 47.297424 + ], + [ + -68.385614, + 47.301713 + ], + [ + -68.383392, + 47.307139 + ], + [ + -68.384839, + 47.315873 + ], + [ + -68.382049, + 47.32781 + ], + [ + -68.347839, + 47.358506 + ], + [ + -68.299728, + 47.367833 + ], + [ + -68.24645, + 47.360573 + ], + [ + -68.197047, + 47.341401 + ], + [ + -68.184335, + 47.333133 + ], + [ + -68.156068, + 47.306674 + ], + [ + -68.145061, + 47.301455 + ], + [ + -68.115398, + 47.292282 + ], + [ + -68.101446, + 47.286185 + ], + [ + -68.039382, + 47.245231 + ], + [ + -67.993184, + 47.223217 + ], + [ + -67.962436, + 47.197689 + ], + [ + -67.953703, + 47.18663 + ], + [ + -67.949982, + 47.172936 + ], + [ + -67.943419, + 47.164538 + ], + [ + -67.899132, + 47.138778 + ], + [ + -67.870607, + 47.107358 + ], + [ + -67.854742, + 47.09785 + ], + [ + -67.813556, + 47.081908 + ], + [ + -67.808699, + 47.075138 + ], + [ + -67.805185, + 47.035631 + ], + [ + -67.802549, + 46.901247 + ], + [ + -67.800017, + 46.766785 + ], + [ + -67.797433, + 46.632297 + ], + [ + -67.794849, + 46.497861 + ], + [ + -67.792317, + 46.363476 + ], + [ + -67.789733, + 46.229014 + ], + [ + -67.78715, + 46.094552 + ], + [ + -67.784566, + 45.960142 + ], + [ + -67.782757, + 45.95053 + ], + [ + -67.776556, + 45.942933 + ], + [ + -67.767461, + 45.935957 + ], + [ + -67.759658, + 45.928567 + ], + [ + -67.757849, + 45.919472 + ], + [ + -67.769425, + 45.903969 + ], + [ + -67.787356, + 45.890017 + ], + [ + -67.799242, + 45.875651 + ], + [ + -67.792627, + 45.858907 + ], + [ + -67.776091, + 45.840821 + ], + [ + -67.772835, + 45.828057 + ], + [ + -67.779863, + 45.815706 + ], + [ + -67.794126, + 45.799169 + ], + [ + -67.80627, + 45.781754 + ], + [ + -67.811127, + 45.76651 + ], + [ + -67.810816, + 45.762414 + ], + [ + -67.817811, + 45.754896 + ], + [ + -67.821785, + 45.740767 + ], + [ + -67.827673, + 45.739001 + ], + [ + -67.868884, + 45.744593 + ], + [ + -67.856815, + 45.723694 + ], + [ + -67.835768, + 45.703971 + ], + [ + -67.793821, + 45.676301 + ], + [ + -67.733034, + 45.651869 + ], + [ + -67.723173, + 45.645393 + ], + [ + -67.711546, + 45.642155 + ], + [ + -67.697564, + 45.64922 + ], + [ + -67.66695, + 45.620077 + ], + [ + -67.649435, + 45.611247 + ], + [ + -67.603073, + 45.605948 + ], + [ + -67.561862, + 45.596234 + ], + [ + -67.54052, + 45.593879 + ], + [ + -67.442056, + 45.603593 + ], + [ + -67.440939, + 45.604586 + ], + [ + -67.431306, + 45.597941 + ], + [ + -67.422107, + 45.568796 + ], + [ + -67.42619, + 45.533449 + ], + [ + -67.443036, + 45.522184 + ], + [ + -67.467531, + 45.508283 + ], + [ + -67.493214, + 45.493142 + ], + [ + -67.48231, + 45.455521 + ], + [ + -67.428825, + 45.38705 + ], + [ + -67.434561, + 45.350308 + ], + [ + -67.459056, + 45.318424 + ], + [ + -67.468668, + 45.301835 + ], + [ + -67.475024, + 45.282353 + ], + [ + -67.471303, + 45.266282 + ], + [ + -67.427585, + 45.236568 + ], + [ + -67.390533, + 45.193108 + ], + [ + -67.356272, + 45.165926 + ], + [ + -67.31922, + 45.153886 + ], + [ + -67.284648, + 45.169699 + ], + [ + -67.279584, + 45.179052 + ], + [ + -67.279222, + 45.187372 + ], + [ + -67.277207, + 45.195072 + ], + [ + -67.267336, + 45.202513 + ], + [ + -67.254986, + 45.205045 + ], + [ + -67.242428, + 45.202565 + ], + [ + -67.219071, + 45.192126 + ], + [ + -67.206166, + 45.189401 + ], + [ + -67.176015, + 45.178656 + ], + [ + -67.191274, + 45.180365 + ], + [ + -67.204376, + 45.178209 + ], + [ + -67.204724, + 45.177791 + ], + [ + -67.152423, + 45.148932 + ], + [ + -67.048033, + 45.043407 + ], + [ + -66.962727, + 45.047088 + ], + [ + -66.857192, + 44.968696 + ], + [ + -66.897268, + 44.817275 + ], + [ + -67.2159, + 44.593511 + ], + [ + -67.122366, + 44.423624 + ], + [ + -67.68447, + 44.192544 + ], + [ + -67.459678, + 40.781645 + ], + [ + -76.607854, + 32.495823 + ], + [ + -76.798479, + 32.713735 + ], + [ + -78.561892, + 29.037718 + ], + [ + -78.892446, + 29.039659 + ], + [ + -79.762295, + 26.719312 + ], + [ + -80.026352, + 24.932961 + ], + [ + -82.368794, + 23.994833 + ], + [ + -83.806281, + 29.068506 + ], + [ + -87.460772, + 29.089961 + ], + [ + -87.922646, + 28.666131 + ], + [ + -90.461001, + 28.246758 + ], + [ + -91.787336, + 29.11536 + ], + [ + -93.311871, + 29.12431 + ], + [ + -96.423449, + 26.057857 + ], + [ + -97.129057, + 25.991017 + ], + [ + -97.129509, + 25.966833 + ], + [ + -97.139358, + 25.965876 + ], + [ + -97.202171, + 25.960893 + ], + [ + -97.202176, + 25.960857 + ], + [ + -97.204941, + 25.960639 + ], + [ + -97.253051, + 25.963481 + ], + [ + -97.266358, + 25.960639 + ], + [ + -97.2692, + 25.944361 + ], + [ + -97.287649, + 25.928651 + ], + [ + -97.310981, + 25.922088 + ], + [ + -97.328447, + 25.933302 + ], + [ + -97.351107, + 25.918419 + ], + [ + -97.355112, + 25.912786 + ], + [ + -97.35227, + 25.894493 + ], + [ + -97.345165, + 25.871704 + ], + [ + -97.345733, + 25.852222 + ], + [ + -97.36599, + 25.843902 + ], + [ + -97.376015, + 25.846744 + ], + [ + -97.380124, + 25.853203 + ], + [ + -97.383121, + 25.860541 + ], + [ + -97.389891, + 25.865657 + ], + [ + -97.397823, + 25.865812 + ], + [ + -97.399476, + 25.861162 + ], + [ + -97.39989, + 25.855115 + ], + [ + -97.404179, + 25.851395 + ], + [ + -97.425418, + 25.854857 + ], + [ + -97.435727, + 25.869275 + ], + [ + -97.441309, + 25.884933 + ], + [ + -97.448259, + 25.892322 + ], + [ + -97.469421, + 25.892943 + ], + [ + -97.486319, + 25.895733 + ], + [ + -97.502209, + 25.901883 + ], + [ + -97.52027, + 25.912786 + ], + [ + -97.565177, + 25.954748 + ], + [ + -97.594322, + 25.966375 + ], + [ + -97.604787, + 25.979966 + ], + [ + -97.613055, + 25.995985 + ], + [ + -97.622641, + 26.00906 + ], + [ + -97.641451, + 26.022495 + ], + [ + -97.659874, + 26.03066 + ], + [ + -97.679614, + 26.034639 + ], + [ + -97.766948, + 26.039652 + ], + [ + -97.780306, + 26.043218 + ], + [ + -97.782321, + 26.058617 + ], + [ + -97.80201, + 26.063733 + ], + [ + -97.878181, + 26.063733 + ], + [ + -97.941666, + 26.056809 + ], + [ + -97.999233, + 26.064302 + ], + [ + -98.013057, + 26.063682 + ], + [ + -98.044166, + 26.048799 + ], + [ + -98.065457, + 26.042184 + ], + [ + -98.075146, + 26.046628 + ], + [ + -98.083311, + 26.070916 + ], + [ + -98.103103, + 26.074947 + ], + [ + -98.150232, + 26.063682 + ], + [ + -98.185062, + 26.065232 + ], + [ + -98.222656, + 26.075412 + ], + [ + -98.300429, + 26.111431 + ], + [ + -98.309809, + 26.121094 + ], + [ + -98.333037, + 26.15303 + ], + [ + -98.339264, + 26.159851 + ], + [ + -98.365774, + 26.160161 + ], + [ + -98.377272, + 26.163572 + ], + [ + -98.377272, + 26.173649 + ], + [ + -98.36934, + 26.19401 + ], + [ + -98.397193, + 26.201141 + ], + [ + -98.428845, + 26.217729 + ], + [ + -98.456544, + 26.225946 + ], + [ + -98.472383, + 26.207652 + ], + [ + -98.49295, + 26.230596 + ], + [ + -98.521527, + 26.240932 + ], + [ + -98.552791, + 26.248321 + ], + [ + -98.581627, + 26.262274 + ], + [ + -98.640564, + 26.24181 + ], + [ + -98.653663, + 26.244291 + ], + [ + -98.664696, + 26.250647 + ], + [ + -98.685289, + 26.268475 + ], + [ + -98.693325, + 26.270542 + ], + [ + -98.702239, + 26.271628 + ], + [ + -98.704255, + 26.27664 + ], + [ + -98.691465, + 26.290231 + ], + [ + -98.701413, + 26.299119 + ], + [ + -98.713169, + 26.303357 + ], + [ + -98.726217, + 26.30439 + ], + [ + -98.739911, + 26.303253 + ], + [ + -98.735932, + 26.320048 + ], + [ + -98.746397, + 26.332141 + ], + [ + -98.780839, + 26.351674 + ], + [ + -98.795851, + 26.368314 + ], + [ + -98.801329, + 26.372138 + ], + [ + -98.810295, + 26.372448 + ], + [ + -98.817323, + 26.368521 + ], + [ + -98.825023, + 26.366454 + ], + [ + -98.836081, + 26.372138 + ], + [ + -98.842334, + 26.365834 + ], + [ + -98.850835, + 26.364077 + ], + [ + -98.860524, + 26.366299 + ], + [ + -98.870214, + 26.372138 + ], + [ + -98.893029, + 26.367849 + ], + [ + -98.9299, + 26.39224 + ], + [ + -98.945377, + 26.378288 + ], + [ + -98.954136, + 26.393946 + ], + [ + -98.962844, + 26.399527 + ], + [ + -98.986951, + 26.400095 + ], + [ + -99.004056, + 26.393842 + ], + [ + -99.010515, + 26.392602 + ], + [ + -99.016432, + 26.394462 + ], + [ + -99.022995, + 26.403351 + ], + [ + -99.027878, + 26.406245 + ], + [ + -99.047645, + 26.406968 + ], + [ + -99.066351, + 26.404746 + ], + [ + -99.085498, + 26.40764 + ], + [ + -99.106427, + 26.423039 + ], + [ + -99.108907, + 26.434253 + ], + [ + -99.102525, + 26.446966 + ], + [ + -99.09374, + 26.459781 + ], + [ + -99.089373, + 26.47115 + ], + [ + -99.091492, + 26.484018 + ], + [ + -99.10299, + 26.512078 + ], + [ + -99.115108, + 26.525617 + ], + [ + -99.140946, + 26.531405 + ], + [ + -99.164873, + 26.540448 + ], + [ + -99.17128, + 26.563961 + ], + [ + -99.171548, + 26.56583 + ], + [ + -99.213953, + 26.568537 + ], + [ + -99.242801, + 26.579723 + ], + [ + -99.254575, + 26.6018 + ], + [ + -99.258844, + 26.614752 + ], + [ + -99.277683, + 26.638007 + ], + [ + -99.281951, + 26.649781 + ], + [ + -99.277389, + 26.657729 + ], + [ + -99.26635, + 26.653314 + ], + [ + -99.252662, + 26.644483 + ], + [ + -99.240299, + 26.639184 + ], + [ + -99.244861, + 26.652431 + ], + [ + -99.240299, + 26.697763 + ], + [ + -99.242507, + 26.713658 + ], + [ + -99.252368, + 26.743683 + ], + [ + -99.254575, + 26.75899 + ], + [ + -99.252368, + 26.799024 + ], + [ + -99.254575, + 26.810504 + ], + [ + -99.257666, + 26.813153 + ], + [ + -99.262229, + 26.814036 + ], + [ + -99.266497, + 26.817863 + ], + [ + -99.268263, + 26.827872 + ], + [ + -99.271649, + 26.832876 + ], + [ + -99.289458, + 26.84465 + ], + [ + -99.308444, + 26.830521 + ], + [ + -99.316539, + 26.822279 + ], + [ + -99.323457, + 26.810504 + ], + [ + -99.328166, + 26.797258 + ], + [ + -99.329197, + 26.789016 + ], + [ + -99.331699, + 26.78254 + ], + [ + -99.340383, + 26.77312 + ], + [ + -99.366728, + 26.761345 + ], + [ + -99.380269, + 26.777241 + ], + [ + -99.391896, + 26.796963 + ], + [ + -99.412207, + 26.796963 + ], + [ + -99.410883, + 26.808149 + ], + [ + -99.405437, + 26.818452 + ], + [ + -99.396606, + 26.824928 + ], + [ + -99.384979, + 26.824928 + ], + [ + -99.377178, + 26.816686 + ], + [ + -99.374823, + 26.804028 + ], + [ + -99.374234, + 26.791076 + ], + [ + -99.371291, + 26.783128 + ], + [ + -99.360694, + 26.780479 + ], + [ + -99.359369, + 26.790487 + ], + [ + -99.36452, + 26.810504 + ], + [ + -99.357897, + 26.822279 + ], + [ + -99.351274, + 26.83111 + ], + [ + -99.346123, + 26.840824 + ], + [ + -99.344062, + 26.855247 + ], + [ + -99.348772, + 26.899696 + ], + [ + -99.355101, + 26.920302 + ], + [ + -99.36452, + 26.934726 + ], + [ + -99.403377, + 26.952093 + ], + [ + -99.413974, + 26.964162 + ], + [ + -99.401758, + 26.985651 + ], + [ + -99.399991, + 26.999192 + ], + [ + -99.418831, + 27.007728 + ], + [ + -99.441938, + 27.013615 + ], + [ + -99.453271, + 27.019797 + ], + [ + -99.455332, + 27.025979 + ], + [ + -99.464751, + 27.039225 + ], + [ + -99.466959, + 27.047467 + ], + [ + -99.462544, + 27.057181 + ], + [ + -99.461635, + 27.056839 + ], + [ + -99.461728, + 27.056954 + ], + [ + -99.442039, + 27.089614 + ], + [ + -99.439404, + 27.098347 + ], + [ + -99.441419, + 27.107494 + ], + [ + -99.445734, + 27.114728 + ], + [ + -99.450178, + 27.120465 + ], + [ + -99.452452, + 27.125012 + ], + [ + -99.450333, + 27.145166 + ], + [ + -99.435786, + 27.188419 + ], + [ + -99.431988, + 27.207591 + ], + [ + -99.434029, + 27.22697 + ], + [ + -99.440902, + 27.244798 + ], + [ + -99.451832, + 27.26118 + ], + [ + -99.46612, + 27.276527 + ], + [ + -99.468963, + 27.278233 + ], + [ + -99.480409, + 27.283297 + ], + [ + -99.482941, + 27.286708 + ], + [ + -99.484879, + 27.294821 + ], + [ + -99.486584, + 27.297611 + ], + [ + -99.493199, + 27.30128 + ], + [ + -99.521362, + 27.311254 + ], + [ + -99.5148, + 27.321796 + ], + [ + -99.497591, + 27.338798 + ], + [ + -99.494026, + 27.348203 + ], + [ + -99.492889, + 27.358848 + ], + [ + -99.487721, + 27.37187 + ], + [ + -99.484621, + 27.391766 + ], + [ + -99.475706, + 27.414762 + ], + [ + -99.472916, + 27.426647 + ], + [ + -99.473639, + 27.463803 + ], + [ + -99.472916, + 27.468299 + ], + [ + -99.47643, + 27.48251 + ], + [ + -99.480409, + 27.490778 + ], + [ + -99.48829, + 27.494654 + ], + [ + -99.503689, + 27.495584 + ], + [ + -99.509503, + 27.500028 + ], + [ + -99.510071, + 27.510518 + ], + [ + -99.507074, + 27.533437 + ], + [ + -99.507203, + 27.57377 + ], + [ + -99.515006, + 27.588601 + ], + [ + -99.535031, + 27.604828 + ], + [ + -99.55503, + 27.613509 + ], + [ + -99.572264, + 27.61847 + ], + [ + -99.578232, + 27.622811 + ], + [ + -99.590247, + 27.642061 + ], + [ + -99.600169, + 27.646427 + ], + [ + -99.612442, + 27.643637 + ], + [ + -99.633526, + 27.633069 + ], + [ + -99.644869, + 27.632733 + ], + [ + -99.648642, + 27.636919 + ], + [ + -99.658693, + 27.654024 + ], + [ + -99.664739, + 27.659398 + ], + [ + -99.70037, + 27.659191 + ], + [ + -99.705692, + 27.66317 + ], + [ + -99.710674, + 27.670116 + ], + [ + -99.723056, + 27.687381 + ], + [ + -99.730652, + 27.691825 + ], + [ + -99.734037, + 27.702031 + ], + [ + -99.736311, + 27.713607 + ], + [ + -99.740445, + 27.722159 + ], + [ + -99.747344, + 27.726009 + ], + [ + -99.765198, + 27.731177 + ], + [ + -99.774577, + 27.735828 + ], + [ + -99.78685, + 27.748488 + ], + [ + -99.795428, + 27.761924 + ], + [ + -99.806963, + 27.771423 + ], + [ + -99.808167, + 27.772414 + ], + [ + -99.83292, + 27.776755 + ], + [ + -99.832971, + 27.782181 + ], + [ + -99.844779, + 27.793576 + ], + [ + -99.858241, + 27.803524 + ], + [ + -99.863357, + 27.804661 + ], + [ + -99.864727, + 27.814324 + ], + [ + -99.861858, + 27.83608 + ], + [ + -99.863357, + 27.845666 + ], + [ + -99.870928, + 27.854477 + ], + [ + -99.880204, + 27.859231 + ], + [ + -99.888007, + 27.864812 + ], + [ + -99.891288, + 27.876026 + ], + [ + -99.882684, + 27.89158 + ], + [ + -99.878808, + 27.901838 + ], + [ + -99.88134, + 27.906463 + ], + [ + -99.896766, + 27.912923 + ], + [ + -99.914336, + 27.928245 + ], + [ + -99.929916, + 27.946331 + ], + [ + -99.939683, + 27.961085 + ], + [ + -99.928289, + 27.975761 + ], + [ + -99.940717, + 27.983254 + ], + [ + -99.961852, + 27.987492 + ], + [ + -99.976606, + 27.992453 + ], + [ + -99.991127, + 28.007801 + ], + [ + -100.000584, + 28.02041 + ], + [ + -100.007457, + 28.033561 + ], + [ + -100.014123, + 28.050459 + ], + [ + -100.013503, + 28.056971 + ], + [ + -100.010506, + 28.063611 + ], + [ + -100.010196, + 28.068882 + ], + [ + -100.017585, + 28.070949 + ], + [ + -100.031538, + 28.081801 + ], + [ + -100.045077, + 28.095289 + ], + [ + -100.048023, + 28.102523 + ], + [ + -100.048901, + 28.115959 + ], + [ + -100.056498, + 28.137922 + ], + [ + -100.074895, + 28.154407 + ], + [ + -100.172873, + 28.198538 + ], + [ + -100.189203, + 28.201329 + ], + [ + -100.197626, + 28.207168 + ], + [ + -100.201192, + 28.220346 + ], + [ + -100.202949, + 28.234428 + ], + [ + -100.205946, + 28.242877 + ], + [ + -100.212819, + 28.245073 + ], + [ + -100.240724, + 28.249698 + ], + [ + -100.257932, + 28.260524 + ], + [ + -100.275089, + 28.277242 + ], + [ + -100.284339, + 28.296517 + ], + [ + -100.277931, + 28.314888 + ], + [ + -100.278551, + 28.331088 + ], + [ + -100.293899, + 28.353413 + ], + [ + -100.322631, + 28.386899 + ], + [ + -100.331675, + 28.422013 + ], + [ + -100.336326, + 28.458574 + ], + [ + -100.340201, + 28.464259 + ], + [ + -100.348315, + 28.470253 + ], + [ + -100.355549, + 28.478185 + ], + [ + -100.35679, + 28.489322 + ], + [ + -100.351622, + 28.496711 + ], + [ + -100.322631, + 28.510406 + ], + [ + -100.364024, + 28.524797 + ], + [ + -100.38423, + 28.537174 + ], + [ + -100.397769, + 28.557586 + ], + [ + -100.398751, + 28.568645 + ], + [ + -100.397097, + 28.592726 + ], + [ + -100.401438, + 28.60226 + ], + [ + -100.411463, + 28.609314 + ], + [ + -100.434821, + 28.619133 + ], + [ + -100.44619, + 28.626497 + ], + [ + -100.444898, + 28.643782 + ], + [ + -100.481381, + 28.686054 + ], + [ + -100.493939, + 28.708378 + ], + [ + -100.519054, + 28.804961 + ], + [ + -100.524996, + 28.814831 + ], + [ + -100.529285, + 28.819947 + ], + [ + -100.534453, + 28.830231 + ], + [ + -100.538639, + 28.835631 + ], + [ + -100.54515, + 28.83899 + ], + [ + -100.559671, + 28.839378 + ], + [ + -100.566234, + 28.842504 + ], + [ + -100.569696, + 28.84961 + ], + [ + -100.56334, + 28.86209 + ], + [ + -100.566234, + 28.869789 + ], + [ + -100.571763, + 28.8732 + ], + [ + -100.586543, + 28.879789 + ], + [ + -100.58954, + 28.883458 + ], + [ + -100.594966, + 28.899322 + ], + [ + -100.606955, + 28.910123 + ], + [ + -100.618841, + 28.917926 + ], + [ + -100.624318, + 28.924721 + ], + [ + -100.624783, + 28.93777 + ], + [ + -100.626696, + 28.948338 + ], + [ + -100.630778, + 28.956683 + ], + [ + -100.637909, + 28.962884 + ], + [ + -100.628918, + 28.98433 + ], + [ + -100.632793, + 29.005156 + ], + [ + -100.652224, + 29.044817 + ], + [ + -100.660854, + 29.102669 + ], + [ + -100.668967, + 29.116208 + ], + [ + -100.678165, + 29.119412 + ], + [ + -100.690826, + 29.121014 + ], + [ + -100.70204, + 29.12365 + ], + [ + -100.706846, + 29.130187 + ], + [ + -100.70974, + 29.135561 + ], + [ + -100.762501, + 29.173776 + ], + [ + -100.770098, + 29.187289 + ], + [ + -100.762088, + 29.208658 + ], + [ + -100.783172, + 29.243074 + ], + [ + -100.796143, + 29.257673 + ], + [ + -100.81609, + 29.270773 + ], + [ + -100.86389, + 29.290616 + ], + [ + -100.871797, + 29.296456 + ], + [ + -100.891227, + 29.318547 + ], + [ + -100.91474, + 29.337048 + ], + [ + -100.987397, + 29.366322 + ], + [ + -100.998301, + 29.372472 + ], + [ + -101.008068, + 29.380585 + ], + [ + -101.016232, + 29.390068 + ], + [ + -101.022175, + 29.40048 + ], + [ + -101.025948, + 29.414356 + ], + [ + -101.029617, + 29.442984 + ], + [ + -101.037782, + 29.460063 + ], + [ + -101.039026, + 29.460452 + ], + [ + -101.040188, + 29.457132 + ], + [ + -101.045487, + 29.451245 + ], + [ + -101.060205, + 29.449184 + ], + [ + -101.067711, + 29.45095 + ], + [ + -101.076101, + 29.453894 + ], + [ + -101.085962, + 29.454483 + ], + [ + -101.098031, + 29.449184 + ], + [ + -101.113043, + 29.466552 + ], + [ + -101.142774, + 29.475383 + ], + [ + -101.174124, + 29.475971 + ], + [ + -101.193699, + 29.469495 + ], + [ + -101.198703, + 29.473911 + ], + [ + -101.198851, + 29.476854 + ], + [ + -101.184132, + 29.497754 + ], + [ + -101.184868, + 29.512767 + ], + [ + -101.195171, + 29.521892 + ], + [ + -101.214157, + 29.518065 + ], + [ + -101.245213, + 29.493044 + ], + [ + -101.265818, + 29.487157 + ], + [ + -101.290545, + 29.49746 + ], + [ + -101.297315, + 29.503936 + ], + [ + -101.300995, + 29.512767 + ], + [ + -101.294372, + 29.520715 + ], + [ + -101.273177, + 29.524247 + ], + [ + -101.259195, + 29.533372 + ], + [ + -101.243888, + 29.554861 + ], + [ + -101.231966, + 29.580176 + ], + [ + -101.227845, + 29.599899 + ], + [ + -101.239178, + 29.616677 + ], + [ + -101.26052, + 29.613439 + ], + [ + -101.281272, + 29.597249 + ], + [ + -101.290545, + 29.575761 + ], + [ + -101.295255, + 29.570168 + ], + [ + -101.306146, + 29.574583 + ], + [ + -101.317626, + 29.584003 + ], + [ + -101.323955, + 29.592539 + ], + [ + -101.323661, + 29.603137 + ], + [ + -101.318804, + 29.616383 + ], + [ + -101.311445, + 29.628158 + ], + [ + -101.303497, + 29.634045 + ], + [ + -101.303669, + 29.631411 + ], + [ + -101.302727, + 29.633851 + ], + [ + -101.301073, + 29.649509 + ], + [ + -101.30978, + 29.654548 + ], + [ + -101.336239, + 29.654315 + ], + [ + -101.349029, + 29.660103 + ], + [ + -101.357684, + 29.667441 + ], + [ + -101.364351, + 29.676665 + ], + [ + -101.376624, + 29.700643 + ], + [ + -101.383368, + 29.718497 + ], + [ + -101.39962, + 29.740718 + ], + [ + -101.406545, + 29.752888 + ], + [ + -101.409309, + 29.765781 + ], + [ + -101.405098, + 29.778442 + ], + [ + -101.414012, + 29.774411 + ], + [ + -101.424218, + 29.771414 + ], + [ + -101.435096, + 29.770122 + ], + [ + -101.446103, + 29.771052 + ], + [ + -101.455689, + 29.77591 + ], + [ + -101.462433, + 29.788932 + ], + [ + -101.470908, + 29.791516 + ], + [ + -101.490286, + 29.785547 + ], + [ + -101.505763, + 29.773894 + ], + [ + -101.521809, + 29.765936 + ], + [ + -101.542893, + 29.771052 + ], + [ + -101.539689, + 29.779191 + ], + [ + -101.530516, + 29.796477 + ], + [ + -101.528604, + 29.801438 + ], + [ + -101.531912, + 29.811101 + ], + [ + -101.539172, + 29.817974 + ], + [ + -101.546458, + 29.820145 + ], + [ + -101.549766, + 29.815701 + ], + [ + -101.553977, + 29.796684 + ], + [ + -101.564907, + 29.786478 + ], + [ + -101.580281, + 29.781568 + ], + [ + -101.632216, + 29.775651 + ], + [ + -101.794531, + 29.795857 + ], + [ + -101.80298, + 29.801438 + ], + [ + -101.805978, + 29.811928 + ], + [ + -101.812695, + 29.812032 + ], + [ + -101.82409, + 29.805184 + ], + [ + -101.857602, + 29.805184 + ], + [ + -101.877524, + 29.810843 + ], + [ + -101.88742, + 29.81229 + ], + [ + -101.895455, + 29.808621 + ], + [ + -101.90238, + 29.803247 + ], + [ + -101.910881, + 29.799888 + ], + [ + -101.920157, + 29.798182 + ], + [ + -101.929613, + 29.797717 + ], + [ + -101.942662, + 29.803608 + ], + [ + -101.957054, + 29.814047 + ], + [ + -101.972246, + 29.818181 + ], + [ + -101.98793, + 29.805184 + ], + [ + -102.014595, + 29.810998 + ], + [ + -102.109344, + 29.80211 + ], + [ + -102.145647, + 29.815701 + ], + [ + -102.157248, + 29.824537 + ], + [ + -102.203679, + 29.846138 + ], + [ + -102.239775, + 29.849135 + ], + [ + -102.253444, + 29.855285 + ], + [ + -102.258276, + 29.873475 + ], + [ + -102.276181, + 29.869547 + ], + [ + -102.289023, + 29.878126 + ], + [ + -102.302175, + 29.889391 + ], + [ + -102.321011, + 29.893939 + ], + [ + -102.330235, + 29.888926 + ], + [ + -102.339769, + 29.870633 + ], + [ + -102.351061, + 29.866602 + ], + [ + -102.36323, + 29.864276 + ], + [ + -102.370723, + 29.857765 + ], + [ + -102.374547, + 29.848102 + ], + [ + -102.376589, + 29.821488 + ], + [ + -102.380051, + 29.811386 + ], + [ + -102.404132, + 29.780793 + ], + [ + -102.406096, + 29.777279 + ], + [ + -102.515288, + 29.784721 + ], + [ + -102.523066, + 29.782318 + ], + [ + -102.531127, + 29.769915 + ], + [ + -102.54154, + 29.762474 + ], + [ + -102.543349, + 29.760123 + ], + [ + -102.546578, + 29.757875 + ], + [ + -102.553141, + 29.756738 + ], + [ + -102.558309, + 29.759089 + ], + [ + -102.562882, + 29.769347 + ], + [ + -102.566758, + 29.771052 + ], + [ + -102.58531, + 29.764696 + ], + [ + -102.621225, + 29.747281 + ], + [ + -102.638743, + 29.743715 + ], + [ + -102.676054, + 29.74449 + ], + [ + -102.683469, + 29.743715 + ], + [ + -102.69104, + 29.736817 + ], + [ + -102.693624, + 29.729401 + ], + [ + -102.694709, + 29.720616 + ], + [ + -102.697758, + 29.709557 + ], + [ + -102.726748, + 29.664495 + ], + [ + -102.73127, + 29.650594 + ], + [ + -102.735507, + 29.649509 + ], + [ + -102.751656, + 29.622457 + ], + [ + -102.75176, + 29.620157 + ], + [ + -102.761346, + 29.603414 + ], + [ + -102.767598, + 29.59729 + ], + [ + -102.779665, + 29.592303 + ], + [ + -102.774084, + 29.579617 + ], + [ + -102.776461, + 29.575948 + ], + [ + -102.785892, + 29.571814 + ], + [ + -102.78075, + 29.558249 + ], + [ + -102.786512, + 29.550497 + ], + [ + -102.795478, + 29.54427 + ], + [ + -102.827311, + 29.470502 + ], + [ + -102.833951, + 29.461355 + ], + [ + -102.839067, + 29.45195 + ], + [ + -102.841134, + 29.438308 + ], + [ + -102.838705, + 29.426939 + ], + [ + -102.834984, + 29.415699 + ], + [ + -102.835191, + 29.403839 + ], + [ + -102.844545, + 29.390533 + ], + [ + -102.845578, + 29.384719 + ], + [ + -102.838033, + 29.370534 + ], + [ + -102.837672, + 29.366322 + ], + [ + -102.84656, + 29.361749 + ], + [ + -102.853872, + 29.361 + ], + [ + -102.859867, + 29.361155 + ], + [ + -102.864957, + 29.359527 + ], + [ + -102.876972, + 29.350871 + ], + [ + -102.883069, + 29.343766 + ], + [ + -102.885188, + 29.333379 + ], + [ + -102.885498, + 29.314801 + ], + [ + -102.899399, + 29.276095 + ], + [ + -102.899709, + 29.2639 + ], + [ + -102.892139, + 29.254391 + ], + [ + -102.867954, + 29.240387 + ], + [ + -102.858781, + 29.229147 + ], + [ + -102.869866, + 29.224781 + ], + [ + -102.896893, + 29.220285 + ], + [ + -102.942265, + 29.190209 + ], + [ + -102.947536, + 29.182018 + ], + [ + -102.969757, + 29.192845 + ], + [ + -102.988386, + 29.177135 + ], + [ + -103.015826, + 29.126776 + ], + [ + -103.024275, + 29.116157 + ], + [ + -103.032621, + 29.110214 + ], + [ + -103.072541, + 29.091404 + ], + [ + -103.080758, + 29.085203 + ], + [ + -103.085589, + 29.07572 + ], + [ + -103.091532, + 29.057866 + ], + [ + -103.095356, + 29.060294 + ], + [ + -103.104684, + 29.057866 + ], + [ + -103.109205, + 29.023372 + ], + [ + -103.122771, + 28.996474 + ], + [ + -103.147989, + 28.985105 + ], + [ + -103.187108, + 28.990221 + ], + [ + -103.241756, + 29.003502 + ], + [ + -103.301545, + 29.002365 + ], + [ + -103.316247, + 29.010065 + ], + [ + -103.311514, + 29.026043 + ], + [ + -103.309994, + 29.031175 + ], + [ + -103.3248, + 29.026808 + ], + [ + -103.330484, + 29.023733 + ], + [ + -103.342602, + 29.041226 + ], + [ + -103.351671, + 29.039417 + ], + [ + -103.360534, + 29.029831 + ], + [ + -103.372083, + 29.023733 + ], + [ + -103.38663, + 29.028798 + ], + [ + -103.414639, + 29.052414 + ], + [ + -103.423605, + 29.057866 + ], + [ + -103.435697, + 29.061121 + ], + [ + -103.478537, + 29.08205 + ], + [ + -103.529748, + 29.126776 + ], + [ + -103.535588, + 29.135122 + ], + [ + -103.538223, + 29.142408 + ], + [ + -103.541711, + 29.148816 + ], + [ + -103.550238, + 29.154656 + ], + [ + -103.558015, + 29.156206 + ], + [ + -103.58499, + 29.154656 + ], + [ + -103.673125, + 29.173569 + ], + [ + -103.702477, + 29.187858 + ], + [ + -103.749476, + 29.222972 + ], + [ + -103.759062, + 29.226848 + ], + [ + -103.770767, + 29.229845 + ], + [ + -103.777718, + 29.235297 + ], + [ + -103.769424, + 29.257543 + ], + [ + -103.774229, + 29.267517 + ], + [ + -103.78366, + 29.274803 + ], + [ + -103.794177, + 29.277594 + ], + [ + -103.837038, + 29.279906 + ] + ] + ], + [ + [ + [ + 178.301106, + 52.056551 + ], + [ + 179.595462, + 52.142083 + ], + [ + 179.825447, + 51.992849 + ], + [ + 179.661729, + 51.485763 + ], + [ + 179.723231, + 51.459963 + ], + [ + 179.408066, + 51.209841 + ], + [ + 178.411463, + 51.523605 + ], + [ + 177.698335, + 51.877899 + ], + [ + 177.16784, + 51.581866 + ], + [ + 176.487008, + 52.175325 + ], + [ + 174.484678, + 52.08716 + ], + [ + 172.866263, + 52.207379 + ], + [ + 172.825506, + 52.716846 + ], + [ + 172.747012, + 52.654022 + ], + [ + 172.08261, + 52.952695 + ], + [ + 172.942925, + 53.183013 + ], + [ + 173.029416, + 52.993628 + ], + [ + 173.127208, + 52.99494 + ], + [ + 173.143321, + 52.990383 + ], + [ + 173.175059, + 52.971747 + ], + [ + 173.182932, + 52.968373 + ], + [ + 176.45233, + 52.628178 + ], + [ + 176.468135, + 52.488358 + ], + [ + 177.900385, + 52.488358 + ], + [ + 178.007601, + 52.179677 + ], + [ + 178.301106, + 52.056551 + ] + ] + ], + [ + [ + [ + -168.899607, + 65.747626 + ], + [ + -168.909861, + 65.739569 + ], + [ + -168.926218, + 65.739895 + ], + [ + -168.942128, + 65.74372 + ], + [ + -168.951731, + 65.75316 + ], + [ + -168.942983, + 65.764716 + ], + [ + -168.920115, + 65.768866 + ], + [ + -168.907908, + 65.768297 + ], + [ + -168.902781, + 65.761542 + ], + [ + -168.899607, + 65.747626 + ] + ] + ], + [ + [ + [ + -131.160718, + 54.787192 + ], + [ + -132.853508, + 54.482536 + ], + [ + -134.77719, + 54.717786 + ], + [ + -142.6966, + 55.845503 + ], + [ + -142.861997, + 49.948308 + ], + [ + -155.675916, + 51.109976 + ], + [ + -164.492732, + 50.603976 + ], + [ + -164.691217, + 50.997975 + ], + [ + -171.246993, + 49.948308 + ], + [ + -171.215436, + 50.576636 + ], + [ + -173.341669, + 50.968826 + ], + [ + -173.362022, + 51.082198 + ], + [ + -177.799603, + 51.272899 + ], + [ + -179.155463, + 50.982285 + ], + [ + -179.476076, + 52.072632 + ], + [ + -177.11459, + 52.248701 + ], + [ + -177.146284, + 52.789384 + ], + [ + -174.777218, + 52.443779 + ], + [ + -174.773743, + 52.685853 + ], + [ + -173.653194, + 52.704099 + ], + [ + -173.790528, + 53.469081 + ], + [ + -171.063371, + 53.604473 + ], + [ + -170.777733, + 59.291898 + ], + [ + -174.324884, + 60.332184 + ], + [ + -171.736408, + 62.68026 + ], + [ + -172.315705, + 62.725352 + ], + [ + -171.995091, + 63.999658 + ], + [ + -168.501424, + 65.565173 + ], + [ + -168.714145, + 65.546708 + ], + [ + -168.853077, + 68.370871 + ], + [ + -161.115601, + 72.416214 + ], + [ + -146.132257, + 70.607941 + ], + [ + -140.692512, + 69.955349 + ], + [ + -141.145395, + 69.671641 + ], + [ + -141.015207, + 69.654202 + ], + [ + -141.006459, + 69.651272 + ], + [ + -141.005564, + 69.650946 + ], + [ + -141.005549, + 69.650941 + ], + [ + -141.005471, + 69.505164 + ], + [ + -141.001208, + 60.466879 + ], + [ + -141.001156, + 60.321074 + ], + [ + -140.994929, + 60.304382 + ], + [ + -140.979555, + 60.295804 + ], + [ + -140.909146, + 60.28366 + ], + [ + -140.768457, + 60.259269 + ], + [ + -140.660505, + 60.24051 + ], + [ + -140.533743, + 60.218548 + ], + [ + -140.518705, + 60.22387 + ], + [ + -140.506664, + 60.236324 + ], + [ + -140.475323, + 60.276477 + ], + [ + -140.462791, + 60.289138 + ], + [ + -140.447805, + 60.29446 + ], + [ + -140.424111, + 60.293168 + ], + [ + -140.32497, + 60.267537 + ], + [ + -140.169243, + 60.227229 + ], + [ + -140.01579, + 60.187387 + ], + [ + -139.967757, + 60.188369 + ], + [ + -139.916933, + 60.207851 + ], + [ + -139.826318, + 60.256478 + ], + [ + -139.728417, + 60.309033 + ], + [ + -139.679816, + 60.32681 + ], + [ + -139.628346, + 60.334096 + ], + [ + -139.517965, + 60.336732 + ], + [ + -139.413992, + 60.339212 + ], + [ + -139.262193, + 60.342778 + ], + [ + -139.101608, + 60.346602 + ], + [ + -139.079465, + 60.341021 + ], + [ + -139.06869, + 60.322056 + ], + [ + -139.073186, + 60.299835 + ], + [ + -139.113468, + 60.226816 + ], + [ + -139.149615, + 60.161187 + ], + [ + -139.183231, + 60.100157 + ], + [ + -139.182146, + 60.073389 + ], + [ + -139.112305, + 60.031376 + ], + [ + -139.060207, + 60.000059 + ], + [ + -139.051611, + 59.994892 + ], + [ + -139.003759, + 59.977219 + ], + [ + -138.842425, + 59.937686 + ], + [ + -138.742586, + 59.913192 + ], + [ + -138.704888, + 59.898464 + ], + [ + -138.697188, + 59.89371 + ], + [ + -138.692098, + 59.886888 + ], + [ + -138.654349, + 59.805498 + ], + [ + -138.63745, + 59.784052 + ], + [ + -138.59921, + 59.753822 + ], + [ + -138.488881, + 59.696357 + ], + [ + -138.363617, + 59.631142 + ], + [ + -138.219543, + 59.556004 + ], + [ + -138.067614, + 59.476991 + ], + [ + -137.91057, + 59.395187 + ], + [ + -137.758305, + 59.315915 + ], + [ + -137.611363, + 59.239331 + ], + [ + -137.594181, + 59.225275 + ], + [ + -137.582088, + 59.206568 + ], + [ + -137.5493, + 59.134531 + ], + [ + -137.521007, + 59.072364 + ], + [ + -137.484394, + 58.991904 + ], + [ + -137.507752, + 58.939969 + ], + [ + -137.50876, + 58.914906 + ], + [ + -137.486875, + 58.900075 + ], + [ + -137.453466, + 58.899145 + ], + [ + -137.423106, + 58.907723 + ], + [ + -137.338098, + 58.955472 + ], + [ + -137.2819, + 58.98715 + ], + [ + -137.172346, + 59.027148 + ], + [ + -137.062367, + 59.067572 + ], + [ + -137.047109, + 59.07331 + ], + [ + -136.942282, + 59.11107 + ], + [ + -136.840816, + 59.148174 + ], + [ + -136.785496, + 59.157217 + ], + [ + -136.671911, + 59.150809 + ], + [ + -136.613491, + 59.15422 + ], + [ + -136.569489, + 59.172152 + ], + [ + -136.484791, + 59.2538 + ], + [ + -136.483551, + 59.257469 + ], + [ + -136.466549, + 59.287803 + ], + [ + -136.467092, + 59.38449 + ], + [ + -136.467557, + 59.461643 + ], + [ + -136.415958, + 59.452238 + ], + [ + -136.36684, + 59.449551 + ], + [ + -136.319995, + 59.459059 + ], + [ + -136.275036, + 59.486448 + ], + [ + -136.244728, + 59.528202 + ], + [ + -136.258474, + 59.556107 + ], + [ + -136.29935, + 59.575745 + ], + [ + -136.350329, + 59.592384 + ], + [ + -136.2585, + 59.621582 + ], + [ + -136.145406, + 59.636826 + ], + [ + -136.02686, + 59.652846 + ], + [ + -135.923818, + 59.666747 + ], + [ + -135.830955, + 59.693257 + ], + [ + -135.641251, + 59.747362 + ], + [ + -135.482759, + 59.792475 + ], + [ + -135.465137, + 59.789685 + ], + [ + -135.404392, + 59.753305 + ], + [ + -135.345791, + 59.731032 + ], + [ + -135.259879, + 59.698218 + ], + [ + -135.221897, + 59.675273 + ], + [ + -135.192028, + 59.64711 + ], + [ + -135.157792, + 59.623287 + ], + [ + -135.106684, + 59.613158 + ], + [ + -135.087874, + 59.606544 + ], + [ + -135.032942, + 59.573109 + ], + [ + -135.018524, + 59.559363 + ], + [ + -135.016198, + 59.543447 + ], + [ + -135.01948, + 59.493166 + ], + [ + -135.023252, + 59.477146 + ], + [ + -135.037489, + 59.461591 + ], + [ + -135.078598, + 59.438337 + ], + [ + -135.095754, + 59.418855 + ], + [ + -134.993254, + 59.381906 + ], + [ + -135.00483, + 59.367127 + ], + [ + -135.014441, + 59.35152 + ], + [ + -135.016198, + 59.336173 + ], + [ + -134.979973, + 59.297415 + ], + [ + -134.95783, + 59.280982 + ], + [ + -134.932431, + 59.270647 + ], + [ + -134.839465, + 59.258141 + ], + [ + -134.74345, + 59.245119 + ], + [ + -134.70552, + 59.240106 + ], + [ + -134.692084, + 59.235249 + ], + [ + -134.68286, + 59.223001 + ], + [ + -134.671439, + 59.193752 + ], + [ + -134.66038, + 59.181298 + ], + [ + -134.610771, + 59.144556 + ], + [ + -134.582788, + 59.128847 + ], + [ + -134.556717, + 59.123059 + ], + [ + -134.509072, + 59.122801 + ], + [ + -134.477575, + 59.114946 + ], + [ + -134.451013, + 59.097893 + ], + [ + -134.398019, + 59.051952 + ], + [ + -134.387167, + 59.036863 + ], + [ + -134.385591, + 59.018828 + ], + [ + -134.399389, + 58.974954 + ], + [ + -134.343423, + 58.968857 + ], + [ + -134.329651, + 58.963017 + ], + [ + -134.320039, + 58.952682 + ], + [ + -134.32314, + 58.949168 + ], + [ + -134.330323, + 58.945344 + ], + [ + -134.333036, + 58.93413 + ], + [ + -134.327403, + 58.916457 + ], + [ + -134.316939, + 58.903796 + ], + [ + -134.22219, + 58.842714 + ], + [ + -134.108838, + 58.808246 + ], + [ + -133.983109, + 58.769902 + ], + [ + -133.87123, + 58.735899 + ], + [ + -133.831129, + 58.718019 + ], + [ + -133.796402, + 58.693421 + ], + [ + -133.700077, + 58.59937 + ], + [ + -133.626283, + 58.546402 + ], + [ + -133.547063, + 58.505577 + ], + [ + -133.463089, + 58.462221 + ], + [ + -133.392241, + 58.403878 + ], + [ + -133.43012, + 58.372097 + ], + [ + -133.41503, + 58.330549 + ], + [ + -133.374567, + 58.290965 + ], + [ + -133.257262, + 58.210298 + ], + [ + -133.165588, + 58.147305 + ], + [ + -133.142127, + 58.120588 + ], + [ + -133.094843, + 58.0331 + ], + [ + -133.075154, + 58.007882 + ], + [ + -132.99335, + 57.941917 + ], + [ + -132.917153, + 57.880499 + ], + [ + -132.83212, + 57.791564 + ], + [ + -132.70944, + 57.663303 + ], + [ + -132.629057, + 57.579277 + ], + [ + -132.552447, + 57.499075 + ], + [ + -132.455735, + 57.420992 + ], + [ + -132.362304, + 57.3457 + ], + [ + -132.304684, + 57.280355 + ], + [ + -132.230994, + 57.19682 + ], + [ + -132.276366, + 57.14889 + ], + [ + -132.34122, + 57.080393 + ], + [ + -132.16229, + 57.050317 + ], + [ + -132.031859, + 57.028406 + ], + [ + -132.107384, + 56.858753 + ], + [ + -131.871558, + 56.79346 + ], + [ + -131.865874, + 56.785708 + ], + [ + -131.872411, + 56.77297 + ], + [ + -131.882617, + 56.759146 + ], + [ + -131.887966, + 56.747958 + ], + [ + -131.886028, + 56.737055 + ], + [ + -131.880705, + 56.728838 + ], + [ + -131.864789, + 56.71349 + ], + [ + -131.838976, + 56.682278 + ], + [ + -131.830424, + 56.664759 + ], + [ + -131.826574, + 56.644606 + ], + [ + -131.832103, + 56.603368 + ], + [ + -131.825592, + 56.593343 + ], + [ + -131.799108, + 56.587658 + ], + [ + -131.692293, + 56.585074 + ], + [ + -131.585891, + 56.595048 + ], + [ + -131.560363, + 56.594066 + ], + [ + -131.536437, + 56.585229 + ], + [ + -131.491659, + 56.560166 + ], + [ + -131.345699, + 56.503271 + ], + [ + -131.215604, + 56.45255 + ], + [ + -131.100546, + 56.407669 + ], + [ + -131.016934, + 56.38705 + ], + [ + -130.839089, + 56.372452 + ], + [ + -130.760334, + 56.345192 + ], + [ + -130.645768, + 56.261942 + ], + [ + -130.602256, + 56.247059 + ], + [ + -130.495518, + 56.232434 + ], + [ + -130.47229, + 56.22489 + ], + [ + -130.458053, + 56.210653 + ], + [ + -130.427926, + 56.143964 + ], + [ + -130.418159, + 56.129702 + ], + [ + -130.403974, + 56.121898 + ], + [ + -130.290311, + 56.10097 + ], + [ + -130.243156, + 56.092391 + ], + [ + -130.211246, + 56.089962 + ], + [ + -130.116756, + 56.105646 + ], + [ + -130.094328, + 56.101486 + ], + [ + -130.071539, + 56.084123 + ], + [ + -130.039319, + 56.045521 + ], + [ + -130.026632, + 56.024101 + ], + [ + -130.01901, + 56.002216 + ], + [ + -130.014695, + 55.963252 + ], + [ + -130.016788, + 55.918913 + ], + [ + -130.019612, + 55.907978 + ], + [ + -130.019618, + 55.907952 + ], + [ + -130.022817, + 55.901353 + ], + [ + -130.049387, + 55.871405 + ], + [ + -130.104726, + 55.825263 + ], + [ + -130.136627, + 55.806464 + ], + [ + -130.148834, + 55.795356 + ], + [ + -130.163482, + 55.771145 + ], + [ + -130.167307, + 55.766262 + ], + [ + -130.170806, + 55.759833 + ], + [ + -130.173655, + 55.749498 + ], + [ + -130.170806, + 55.740953 + ], + [ + -130.163808, + 55.734565 + ], + [ + -130.160064, + 55.727118 + ], + [ + -130.167388, + 55.715399 + ], + [ + -130.155914, + 55.700141 + ], + [ + -130.142893, + 55.689521 + ], + [ + -130.131825, + 55.676581 + ], + [ + -130.126454, + 55.653998 + ], + [ + -130.12857, + 55.63642 + ], + [ + -130.135121, + 55.619127 + ], + [ + -130.153147, + 55.58511 + ], + [ + -130.148671, + 55.578192 + ], + [ + -130.146881, + 55.569322 + ], + [ + -130.146962, + 55.547187 + ], + [ + -130.112172, + 55.509345 + ], + [ + -130.101674, + 55.481147 + ], + [ + -130.095082, + 55.472113 + ], + [ + -130.065419, + 55.446112 + ], + [ + -130.057525, + 55.434882 + ], + [ + -130.052561, + 55.414008 + ], + [ + -130.054311, + 55.366645 + ], + [ + -130.05012, + 55.345445 + ], + [ + -130.039296, + 55.330756 + ], + [ + -129.989247, + 55.284003 + ], + [ + -130.031239, + 55.26435 + ], + [ + -130.050038, + 55.252875 + ], + [ + -130.067494, + 55.239 + ], + [ + -130.078236, + 55.233791 + ], + [ + -130.100494, + 55.230292 + ], + [ + -130.104726, + 55.225653 + ], + [ + -130.105702, + 55.211127 + ], + [ + -130.10912, + 55.200751 + ], + [ + -130.115793, + 55.191596 + ], + [ + -130.126454, + 55.180976 + ], + [ + -130.151967, + 55.163275 + ], + [ + -130.159983, + 55.153713 + ], + [ + -130.167592, + 55.129584 + ], + [ + -130.173695, + 55.117743 + ], + [ + -130.200266, + 55.104153 + ], + [ + -130.211781, + 55.084133 + ], + [ + -130.228871, + 55.04385 + ], + [ + -130.238678, + 55.03441 + ], + [ + -130.261342, + 55.022895 + ], + [ + -130.269846, + 55.016547 + ], + [ + -130.275706, + 55.006985 + ], + [ + -130.286366, + 54.983222 + ], + [ + -130.294342, + 54.971869 + ], + [ + -130.326568, + 54.952094 + ], + [ + -130.335561, + 54.938707 + ], + [ + -130.365387, + 54.907294 + ], + [ + -130.385243, + 54.896552 + ], + [ + -130.430816, + 54.881252 + ], + [ + -130.488759, + 54.844184 + ], + [ + -130.580312, + 54.806383 + ], + [ + -130.597485, + 54.803391 + ], + [ + -130.71074, + 54.733215 + ], + [ + -131.160718, + 54.787192 + ] + ] + ] + ] + } + } ] }, + "featureIcons": { + "circle-stroked-24": { + "x": 0, + "y": 0, + "width": 24, + "height": 24 + }, + "circle-stroked-18": { + "x": 24, + "y": 0, + "width": 18, + "height": 18 + }, + "circle-stroked-12": { + "x": 42, + "y": 0, + "width": 12, + "height": 12 + }, + "circle-24": { + "x": 54, + "y": 0, + "width": 24, + "height": 24 + }, + "circle-18": { + "x": 78, + "y": 0, + "width": 18, + "height": 18 + }, + "circle-12": { + "x": 96, + "y": 0, + "width": 12, + "height": 12 + }, + "square-stroked-24": { + "x": 108, + "y": 0, + "width": 24, + "height": 24 + }, + "square-stroked-18": { + "x": 132, + "y": 0, + "width": 18, + "height": 18 + }, + "square-stroked-12": { + "x": 150, + "y": 0, + "width": 12, + "height": 12 + }, + "square-24": { + "x": 162, + "y": 0, + "width": 24, + "height": 24 + }, + "square-18": { + "x": 186, + "y": 0, + "width": 18, + "height": 18 + }, + "square-12": { + "x": 204, + "y": 0, + "width": 12, + "height": 12 + }, + "triangle-stroked-24": { + "x": 216, + "y": 0, + "width": 24, + "height": 24 + }, + "triangle-stroked-18": { + "x": 240, + "y": 0, + "width": 18, + "height": 18 + }, + "triangle-stroked-12": { + "x": 258, + "y": 0, + "width": 12, + "height": 12 + }, + "triangle-24": { + "x": 0, + "y": 24, + "width": 24, + "height": 24 + }, + "triangle-18": { + "x": 24, + "y": 24, + "width": 18, + "height": 18 + }, + "triangle-12": { + "x": 42, + "y": 24, + "width": 12, + "height": 12 + }, + "star-stroked-24": { + "x": 54, + "y": 24, + "width": 24, + "height": 24 + }, + "star-stroked-18": { + "x": 78, + "y": 24, + "width": 18, + "height": 18 + }, + "star-stroked-12": { + "x": 96, + "y": 24, + "width": 12, + "height": 12 + }, + "star-24": { + "x": 108, + "y": 24, + "width": 24, + "height": 24 + }, + "star-18": { + "x": 132, + "y": 24, + "width": 18, + "height": 18 + }, + "star-12": { + "x": 150, + "y": 24, + "width": 12, + "height": 12 + }, + "cross-24": { + "x": 162, + "y": 24, + "width": 24, + "height": 24 + }, + "cross-18": { + "x": 186, + "y": 24, + "width": 18, + "height": 18 + }, + "cross-12": { + "x": 204, + "y": 24, + "width": 12, + "height": 12 + }, + "marker-stroked-24": { + "x": 216, + "y": 24, + "width": 24, + "height": 24 + }, + "marker-stroked-18": { + "x": 240, + "y": 24, + "width": 18, + "height": 18 + }, + "marker-stroked-12": { + "x": 258, + "y": 24, + "width": 12, + "height": 12 + }, + "marker-24": { + "x": 0, + "y": 48, + "width": 24, + "height": 24 + }, + "marker-18": { + "x": 24, + "y": 48, + "width": 18, + "height": 18 + }, + "marker-12": { + "x": 42, + "y": 48, + "width": 12, + "height": 12 + }, + "religious-jewish-24": { + "x": 54, + "y": 48, + "width": 24, + "height": 24 + }, + "religious-jewish-18": { + "x": 78, + "y": 48, + "width": 18, + "height": 18 + }, + "religious-jewish-12": { + "x": 96, + "y": 48, + "width": 12, + "height": 12 + }, + "religious-christian-24": { + "x": 108, + "y": 48, + "width": 24, + "height": 24 + }, + "religious-christian-18": { + "x": 132, + "y": 48, + "width": 18, + "height": 18 + }, + "religious-christian-12": { + "x": 150, + "y": 48, + "width": 12, + "height": 12 + }, + "religious-muslim-24": { + "x": 162, + "y": 48, + "width": 24, + "height": 24 + }, + "religious-muslim-18": { + "x": 186, + "y": 48, + "width": 18, + "height": 18 + }, + "religious-muslim-12": { + "x": 204, + "y": 48, + "width": 12, + "height": 12 + }, + "cemetery-24": { + "x": 216, + "y": 48, + "width": 24, + "height": 24 + }, + "cemetery-18": { + "x": 240, + "y": 48, + "width": 18, + "height": 18 + }, + "cemetery-12": { + "x": 258, + "y": 48, + "width": 12, + "height": 12 + }, + "rocket-24": { + "x": 0, + "y": 72, + "width": 24, + "height": 24 + }, + "rocket-18": { + "x": 24, + "y": 72, + "width": 18, + "height": 18 + }, + "rocket-12": { + "x": 42, + "y": 72, + "width": 12, + "height": 12 + }, + "airport-24": { + "x": 54, + "y": 72, + "width": 24, + "height": 24 + }, + "airport-18": { + "x": 78, + "y": 72, + "width": 18, + "height": 18 + }, + "airport-12": { + "x": 96, + "y": 72, + "width": 12, + "height": 12 + }, + "heliport-24": { + "x": 108, + "y": 72, + "width": 24, + "height": 24 + }, + "heliport-18": { + "x": 132, + "y": 72, + "width": 18, + "height": 18 + }, + "heliport-12": { + "x": 150, + "y": 72, + "width": 12, + "height": 12 + }, + "rail-24": { + "x": 162, + "y": 72, + "width": 24, + "height": 24 + }, + "rail-18": { + "x": 186, + "y": 72, + "width": 18, + "height": 18 + }, + "rail-12": { + "x": 204, + "y": 72, + "width": 12, + "height": 12 + }, + "rail-metro-24": { + "x": 216, + "y": 72, + "width": 24, + "height": 24 + }, + "rail-metro-18": { + "x": 240, + "y": 72, + "width": 18, + "height": 18 + }, + "rail-metro-12": { + "x": 258, + "y": 72, + "width": 12, + "height": 12 + }, + "rail-light-24": { + "x": 0, + "y": 96, + "width": 24, + "height": 24 + }, + "rail-light-18": { + "x": 24, + "y": 96, + "width": 18, + "height": 18 + }, + "rail-light-12": { + "x": 42, + "y": 96, + "width": 12, + "height": 12 + }, + "bus-24": { + "x": 54, + "y": 96, + "width": 24, + "height": 24 + }, + "bus-18": { + "x": 78, + "y": 96, + "width": 18, + "height": 18 + }, + "bus-12": { + "x": 96, + "y": 96, + "width": 12, + "height": 12 + }, + "fuel-24": { + "x": 108, + "y": 96, + "width": 24, + "height": 24 + }, + "fuel-18": { + "x": 132, + "y": 96, + "width": 18, + "height": 18 + }, + "fuel-12": { + "x": 150, + "y": 96, + "width": 12, + "height": 12 + }, + "parking-24": { + "x": 162, + "y": 96, + "width": 24, + "height": 24 + }, + "parking-18": { + "x": 186, + "y": 96, + "width": 18, + "height": 18 + }, + "parking-12": { + "x": 204, + "y": 96, + "width": 12, + "height": 12 + }, + "parking-garage-24": { + "x": 216, + "y": 96, + "width": 24, + "height": 24 + }, + "parking-garage-18": { + "x": 240, + "y": 96, + "width": 18, + "height": 18 + }, + "parking-garage-12": { + "x": 258, + "y": 96, + "width": 12, + "height": 12 + }, + "airfield-24": { + "x": 0, + "y": 120, + "width": 24, + "height": 24 + }, + "airfield-18": { + "x": 24, + "y": 120, + "width": 18, + "height": 18 + }, + "airfield-12": { + "x": 42, + "y": 120, + "width": 12, + "height": 12 + }, + "roadblock-24": { + "x": 54, + "y": 120, + "width": 24, + "height": 24 + }, + "roadblock-18": { + "x": 78, + "y": 120, + "width": 18, + "height": 18 + }, + "roadblock-12": { + "x": 96, + "y": 120, + "width": 12, + "height": 12 + }, + "ferry-24": { + "x": 108, + "y": 120, + "width": 24, + "height": 24 + }, + "ferry-18": { + "x": 132, + "y": 120, + "width": 18, + "height": 18 + }, + "ferry-12": { + "x": 150, + "y": 120, + "width": 12, + "height": 12 + }, + "harbor-24": { + "x": 162, + "y": 120, + "width": 24, + "height": 24 + }, + "harbor-18": { + "x": 186, + "y": 120, + "width": 18, + "height": 18 + }, + "harbor-12": { + "x": 204, + "y": 120, + "width": 12, + "height": 12 + }, + "bicycle-24": { + "x": 216, + "y": 120, + "width": 24, + "height": 24 + }, + "bicycle-18": { + "x": 240, + "y": 120, + "width": 18, + "height": 18 + }, + "bicycle-12": { + "x": 258, + "y": 120, + "width": 12, + "height": 12 + }, + "park-24": { + "x": 0, + "y": 144, + "width": 24, + "height": 24 + }, + "park-18": { + "x": 24, + "y": 144, + "width": 18, + "height": 18 + }, + "park-12": { + "x": 42, + "y": 144, + "width": 12, + "height": 12 + }, + "park2-24": { + "x": 54, + "y": 144, + "width": 24, + "height": 24 + }, + "park2-18": { + "x": 78, + "y": 144, + "width": 18, + "height": 18 + }, + "park2-12": { + "x": 96, + "y": 144, + "width": 12, + "height": 12 + }, + "museum-24": { + "x": 108, + "y": 144, + "width": 24, + "height": 24 + }, + "museum-18": { + "x": 132, + "y": 144, + "width": 18, + "height": 18 + }, + "museum-12": { + "x": 150, + "y": 144, + "width": 12, + "height": 12 + }, + "lodging-24": { + "x": 162, + "y": 144, + "width": 24, + "height": 24 + }, + "lodging-18": { + "x": 186, + "y": 144, + "width": 18, + "height": 18 + }, + "lodging-12": { + "x": 204, + "y": 144, + "width": 12, + "height": 12 + }, + "monument-24": { + "x": 216, + "y": 144, + "width": 24, + "height": 24 + }, + "monument-18": { + "x": 240, + "y": 144, + "width": 18, + "height": 18 + }, + "monument-12": { + "x": 258, + "y": 144, + "width": 12, + "height": 12 + }, + "zoo-24": { + "x": 0, + "y": 168, + "width": 24, + "height": 24 + }, + "zoo-18": { + "x": 24, + "y": 168, + "width": 18, + "height": 18 + }, + "zoo-12": { + "x": 42, + "y": 168, + "width": 12, + "height": 12 + }, + "garden-24": { + "x": 54, + "y": 168, + "width": 24, + "height": 24 + }, + "garden-18": { + "x": 78, + "y": 168, + "width": 18, + "height": 18 + }, + "garden-12": { + "x": 96, + "y": 168, + "width": 12, + "height": 12 + }, + "campsite-24": { + "x": 108, + "y": 168, + "width": 24, + "height": 24 + }, + "campsite-18": { + "x": 132, + "y": 168, + "width": 18, + "height": 18 + }, + "campsite-12": { + "x": 150, + "y": 168, + "width": 12, + "height": 12 + }, + "theatre-24": { + "x": 162, + "y": 168, + "width": 24, + "height": 24 + }, + "theatre-18": { + "x": 186, + "y": 168, + "width": 18, + "height": 18 + }, + "theatre-12": { + "x": 204, + "y": 168, + "width": 12, + "height": 12 + }, + "art-gallery-24": { + "x": 216, + "y": 168, + "width": 24, + "height": 24 + }, + "art-gallery-18": { + "x": 240, + "y": 168, + "width": 18, + "height": 18 + }, + "art-gallery-12": { + "x": 258, + "y": 168, + "width": 12, + "height": 12 + }, + "pitch-24": { + "x": 0, + "y": 192, + "width": 24, + "height": 24 + }, + "pitch-18": { + "x": 24, + "y": 192, + "width": 18, + "height": 18 + }, + "pitch-12": { + "x": 42, + "y": 192, + "width": 12, + "height": 12 + }, + "soccer-24": { + "x": 54, + "y": 192, + "width": 24, + "height": 24 + }, + "soccer-18": { + "x": 78, + "y": 192, + "width": 18, + "height": 18 + }, + "soccer-12": { + "x": 96, + "y": 192, + "width": 12, + "height": 12 + }, + "america-football-24": { + "x": 108, + "y": 192, + "width": 24, + "height": 24 + }, + "america-football-18": { + "x": 132, + "y": 192, + "width": 18, + "height": 18 + }, + "america-football-12": { + "x": 150, + "y": 192, + "width": 12, + "height": 12 + }, + "tennis-24": { + "x": 162, + "y": 192, + "width": 24, + "height": 24 + }, + "tennis-18": { + "x": 186, + "y": 192, + "width": 18, + "height": 18 + }, + "tennis-12": { + "x": 204, + "y": 192, + "width": 12, + "height": 12 + }, + "basketball-24": { + "x": 216, + "y": 192, + "width": 24, + "height": 24 + }, + "basketball-18": { + "x": 240, + "y": 192, + "width": 18, + "height": 18 + }, + "basketball-12": { + "x": 258, + "y": 192, + "width": 12, + "height": 12 + }, + "baseball-24": { + "x": 0, + "y": 216, + "width": 24, + "height": 24 + }, + "baseball-18": { + "x": 24, + "y": 216, + "width": 18, + "height": 18 + }, + "baseball-12": { + "x": 42, + "y": 216, + "width": 12, + "height": 12 + }, + "golf-24": { + "x": 54, + "y": 216, + "width": 24, + "height": 24 + }, + "golf-18": { + "x": 78, + "y": 216, + "width": 18, + "height": 18 + }, + "golf-12": { + "x": 96, + "y": 216, + "width": 12, + "height": 12 + }, + "swimming-24": { + "x": 108, + "y": 216, + "width": 24, + "height": 24 + }, + "swimming-18": { + "x": 132, + "y": 216, + "width": 18, + "height": 18 + }, + "swimming-12": { + "x": 150, + "y": 216, + "width": 12, + "height": 12 + }, + "cricket-24": { + "x": 162, + "y": 216, + "width": 24, + "height": 24 + }, + "cricket-18": { + "x": 186, + "y": 216, + "width": 18, + "height": 18 + }, + "cricket-12": { + "x": 204, + "y": 216, + "width": 12, + "height": 12 + }, + "skiing-24": { + "x": 216, + "y": 216, + "width": 24, + "height": 24 + }, + "skiing-18": { + "x": 240, + "y": 216, + "width": 18, + "height": 18 + }, + "skiing-12": { + "x": 258, + "y": 216, + "width": 12, + "height": 12 + }, + "school-24": { + "x": 0, + "y": 240, + "width": 24, + "height": 24 + }, + "school-18": { + "x": 24, + "y": 240, + "width": 18, + "height": 18 + }, + "school-12": { + "x": 42, + "y": 240, + "width": 12, + "height": 12 + }, + "college-24": { + "x": 54, + "y": 240, + "width": 24, + "height": 24 + }, + "college-18": { + "x": 78, + "y": 240, + "width": 18, + "height": 18 + }, + "college-12": { + "x": 96, + "y": 240, + "width": 12, + "height": 12 + }, + "library-24": { + "x": 108, + "y": 240, + "width": 24, + "height": 24 + }, + "library-18": { + "x": 132, + "y": 240, + "width": 18, + "height": 18 + }, + "library-12": { + "x": 150, + "y": 240, + "width": 12, + "height": 12 + }, + "post-24": { + "x": 162, + "y": 240, + "width": 24, + "height": 24 + }, + "post-18": { + "x": 186, + "y": 240, + "width": 18, + "height": 18 + }, + "post-12": { + "x": 204, + "y": 240, + "width": 12, + "height": 12 + }, + "fire-station-24": { + "x": 216, + "y": 240, + "width": 24, + "height": 24 + }, + "fire-station-18": { + "x": 240, + "y": 240, + "width": 18, + "height": 18 + }, + "fire-station-12": { + "x": 258, + "y": 240, + "width": 12, + "height": 12 + }, + "town-hall-24": { + "x": 0, + "y": 264, + "width": 24, + "height": 24 + }, + "town-hall-18": { + "x": 24, + "y": 264, + "width": 18, + "height": 18 + }, + "town-hall-12": { + "x": 42, + "y": 264, + "width": 12, + "height": 12 + }, + "police-24": { + "x": 54, + "y": 264, + "width": 24, + "height": 24 + }, + "police-18": { + "x": 78, + "y": 264, + "width": 18, + "height": 18 + }, + "police-12": { + "x": 96, + "y": 264, + "width": 12, + "height": 12 + }, + "prison-24": { + "x": 108, + "y": 264, + "width": 24, + "height": 24 + }, + "prison-18": { + "x": 132, + "y": 264, + "width": 18, + "height": 18 + }, + "prison-12": { + "x": 150, + "y": 264, + "width": 12, + "height": 12 + }, + "embassy-24": { + "x": 162, + "y": 264, + "width": 24, + "height": 24 + }, + "embassy-18": { + "x": 186, + "y": 264, + "width": 18, + "height": 18 + }, + "embassy-12": { + "x": 204, + "y": 264, + "width": 12, + "height": 12 + }, + "beer-24": { + "x": 216, + "y": 264, + "width": 24, + "height": 24 + }, + "beer-18": { + "x": 240, + "y": 264, + "width": 18, + "height": 18 + }, + "beer-12": { + "x": 258, + "y": 264, + "width": 12, + "height": 12 + }, + "restaurant-24": { + "x": 0, + "y": 288, + "width": 24, + "height": 24 + }, + "restaurant-18": { + "x": 24, + "y": 288, + "width": 18, + "height": 18 + }, + "restaurant-12": { + "x": 42, + "y": 288, + "width": 12, + "height": 12 + }, + "cafe-24": { + "x": 54, + "y": 288, + "width": 24, + "height": 24 + }, + "cafe-18": { + "x": 78, + "y": 288, + "width": 18, + "height": 18 + }, + "cafe-12": { + "x": 96, + "y": 288, + "width": 12, + "height": 12 + }, + "shop-24": { + "x": 108, + "y": 288, + "width": 24, + "height": 24 + }, + "shop-18": { + "x": 132, + "y": 288, + "width": 18, + "height": 18 + }, + "shop-12": { + "x": 150, + "y": 288, + "width": 12, + "height": 12 + }, + "fast-food-24": { + "x": 162, + "y": 288, + "width": 24, + "height": 24 + }, + "fast-food-18": { + "x": 186, + "y": 288, + "width": 18, + "height": 18 + }, + "fast-food-12": { + "x": 204, + "y": 288, + "width": 12, + "height": 12 + }, + "bar-24": { + "x": 216, + "y": 288, + "width": 24, + "height": 24 + }, + "bar-18": { + "x": 240, + "y": 288, + "width": 18, + "height": 18 + }, + "bar-12": { + "x": 258, + "y": 288, + "width": 12, + "height": 12 + }, + "bank-24": { + "x": 0, + "y": 312, + "width": 24, + "height": 24 + }, + "bank-18": { + "x": 24, + "y": 312, + "width": 18, + "height": 18 + }, + "bank-12": { + "x": 42, + "y": 312, + "width": 12, + "height": 12 + }, + "grocery-24": { + "x": 54, + "y": 312, + "width": 24, + "height": 24 + }, + "grocery-18": { + "x": 78, + "y": 312, + "width": 18, + "height": 18 + }, + "grocery-12": { + "x": 96, + "y": 312, + "width": 12, + "height": 12 + }, + "cinema-24": { + "x": 108, + "y": 312, + "width": 24, + "height": 24 + }, + "cinema-18": { + "x": 132, + "y": 312, + "width": 18, + "height": 18 + }, + "cinema-12": { + "x": 150, + "y": 312, + "width": 12, + "height": 12 + }, + "pharmacy-24": { + "x": 162, + "y": 312, + "width": 24, + "height": 24 + }, + "pharmacy-18": { + "x": 186, + "y": 312, + "width": 18, + "height": 18 + }, + "pharmacy-12": { + "x": 204, + "y": 312, + "width": 12, + "height": 12 + }, + "hospital-24": { + "x": 216, + "y": 312, + "width": 24, + "height": 24 + }, + "hospital-18": { + "x": 240, + "y": 312, + "width": 18, + "height": 18 + }, + "hospital-12": { + "x": 258, + "y": 312, + "width": 12, + "height": 12 + }, + "danger-24": { + "x": 0, + "y": 336, + "width": 24, + "height": 24 + }, + "danger-18": { + "x": 24, + "y": 336, + "width": 18, + "height": 18 + }, + "danger-12": { + "x": 42, + "y": 336, + "width": 12, + "height": 12 + }, + "industrial-24": { + "x": 54, + "y": 336, + "width": 24, + "height": 24 + }, + "industrial-18": { + "x": 78, + "y": 336, + "width": 18, + "height": 18 + }, + "industrial-12": { + "x": 96, + "y": 336, + "width": 12, + "height": 12 + }, + "warehouse-24": { + "x": 108, + "y": 336, + "width": 24, + "height": 24 + }, + "warehouse-18": { + "x": 132, + "y": 336, + "width": 18, + "height": 18 + }, + "warehouse-12": { + "x": 150, + "y": 336, + "width": 12, + "height": 12 + }, + "commercial-24": { + "x": 162, + "y": 336, + "width": 24, + "height": 24 + }, + "commercial-18": { + "x": 186, + "y": 336, + "width": 18, + "height": 18 + }, + "commercial-12": { + "x": 204, + "y": 336, + "width": 12, + "height": 12 + }, + "building-24": { + "x": 216, + "y": 336, + "width": 24, + "height": 24 + }, + "building-18": { + "x": 240, + "y": 336, + "width": 18, + "height": 18 + }, + "building-12": { + "x": 258, + "y": 336, + "width": 12, + "height": 12 + }, + "place-of-worship-24": { + "x": 0, + "y": 360, + "width": 24, + "height": 24 + }, + "place-of-worship-18": { + "x": 24, + "y": 360, + "width": 18, + "height": 18 + }, + "place-of-worship-12": { + "x": 42, + "y": 360, + "width": 12, + "height": 12 + }, + "alcohol-shop-24": { + "x": 54, + "y": 360, + "width": 24, + "height": 24 + }, + "alcohol-shop-18": { + "x": 78, + "y": 360, + "width": 18, + "height": 18 + }, + "alcohol-shop-12": { + "x": 96, + "y": 360, + "width": 12, + "height": 12 + }, + "logging-24": { + "x": 108, + "y": 360, + "width": 24, + "height": 24 + }, + "logging-18": { + "x": 132, + "y": 360, + "width": 18, + "height": 18 + }, + "logging-12": { + "x": 150, + "y": 360, + "width": 12, + "height": 12 + }, + "oil-well-24": { + "x": 162, + "y": 360, + "width": 24, + "height": 24 + }, + "oil-well-18": { + "x": 186, + "y": 360, + "width": 18, + "height": 18 + }, + "oil-well-12": { + "x": 204, + "y": 360, + "width": 12, + "height": 12 + }, + "slaughterhouse-24": { + "x": 216, + "y": 360, + "width": 24, + "height": 24 + }, + "slaughterhouse-18": { + "x": 240, + "y": 360, + "width": 18, + "height": 18 + }, + "slaughterhouse-12": { + "x": 258, + "y": 360, + "width": 12, + "height": 12 + }, + "dam-24": { + "x": 0, + "y": 384, + "width": 24, + "height": 24 + }, + "dam-18": { + "x": 24, + "y": 384, + "width": 18, + "height": 18 + }, + "dam-12": { + "x": 42, + "y": 384, + "width": 12, + "height": 12 + }, + "water-24": { + "x": 54, + "y": 384, + "width": 24, + "height": 24 + }, + "water-18": { + "x": 78, + "y": 384, + "width": 18, + "height": 18 + }, + "water-12": { + "x": 96, + "y": 384, + "width": 12, + "height": 12 + }, + "wetland-24": { + "x": 108, + "y": 384, + "width": 24, + "height": 24 + }, + "wetland-18": { + "x": 132, + "y": 384, + "width": 18, + "height": 18 + }, + "wetland-12": { + "x": 150, + "y": 384, + "width": 12, + "height": 12 + }, + "disability-24": { + "x": 162, + "y": 384, + "width": 24, + "height": 24 + }, + "disability-18": { + "x": 186, + "y": 384, + "width": 18, + "height": 18 + }, + "disability-12": { + "x": 204, + "y": 384, + "width": 12, + "height": 12 + }, + "telephone-24": { + "x": 216, + "y": 384, + "width": 24, + "height": 24 + }, + "telephone-18": { + "x": 240, + "y": 384, + "width": 18, + "height": 18 + }, + "telephone-12": { + "x": 258, + "y": 384, + "width": 12, + "height": 12 + }, + "emergency-telephone-24": { + "x": 0, + "y": 408, + "width": 24, + "height": 24 + }, + "emergency-telephone-18": { + "x": 24, + "y": 408, + "width": 18, + "height": 18 + }, + "emergency-telephone-12": { + "x": 42, + "y": 408, + "width": 12, + "height": 12 + }, + "toilets-24": { + "x": 54, + "y": 408, + "width": 24, + "height": 24 + }, + "toilets-18": { + "x": 78, + "y": 408, + "width": 18, + "height": 18 + }, + "toilets-12": { + "x": 96, + "y": 408, + "width": 12, + "height": 12 + }, + "waste-basket-24": { + "x": 108, + "y": 408, + "width": 24, + "height": 24 + }, + "waste-basket-18": { + "x": 132, + "y": 408, + "width": 18, + "height": 18 + }, + "waste-basket-12": { + "x": 150, + "y": 408, + "width": 12, + "height": 12 + }, + "music-24": { + "x": 162, + "y": 408, + "width": 24, + "height": 24 + }, + "music-18": { + "x": 186, + "y": 408, + "width": 18, + "height": 18 + }, + "music-12": { + "x": 204, + "y": 408, + "width": 12, + "height": 12 + }, + "land-use-24": { + "x": 216, + "y": 408, + "width": 24, + "height": 24 + }, + "land-use-18": { + "x": 240, + "y": 408, + "width": 18, + "height": 18 + }, + "land-use-12": { + "x": 258, + "y": 408, + "width": 12, + "height": 12 + }, + "city-24": { + "x": 0, + "y": 432, + "width": 24, + "height": 24 + }, + "city-18": { + "x": 24, + "y": 432, + "width": 18, + "height": 18 + }, + "city-12": { + "x": 42, + "y": 432, + "width": 12, + "height": 12 + }, + "town-24": { + "x": 54, + "y": 432, + "width": 24, + "height": 24 + }, + "town-18": { + "x": 78, + "y": 432, + "width": 18, + "height": 18 + }, + "town-12": { + "x": 96, + "y": 432, + "width": 12, + "height": 12 + }, + "village-24": { + "x": 108, + "y": 432, + "width": 24, + "height": 24 + }, + "village-18": { + "x": 132, + "y": 432, + "width": 18, + "height": 18 + }, + "village-12": { + "x": 150, + "y": 432, + "width": 12, + "height": 12 + }, + "farm-24": { + "x": 162, + "y": 432, + "width": 24, + "height": 24 + }, + "farm-18": { + "x": 186, + "y": 432, + "width": 18, + "height": 18 + }, + "farm-12": { + "x": 204, + "y": 432, + "width": 12, + "height": 12 + }, + "bakery-24": { + "x": 216, + "y": 432, + "width": 24, + "height": 24 + }, + "bakery-18": { + "x": 240, + "y": 432, + "width": 18, + "height": 18 + }, + "bakery-12": { + "x": 258, + "y": 432, + "width": 12, + "height": 12 + }, + "dog-park-24": { + "x": 0, + "y": 456, + "width": 24, + "height": 24 + }, + "dog-park-18": { + "x": 24, + "y": 456, + "width": 18, + "height": 18 + }, + "dog-park-12": { + "x": 42, + "y": 456, + "width": 12, + "height": 12 + }, + "lighthouse-24": { + "x": 54, + "y": 456, + "width": 24, + "height": 24 + }, + "lighthouse-18": { + "x": 78, + "y": 456, + "width": 18, + "height": 18 + }, + "lighthouse-12": { + "x": 96, + "y": 456, + "width": 12, + "height": 12 + }, + "clothing-store-24": { + "x": 108, + "y": 456, + "width": 24, + "height": 24 + }, + "clothing-store-18": { + "x": 132, + "y": 456, + "width": 18, + "height": 18 + }, + "clothing-store-12": { + "x": 150, + "y": 456, + "width": 12, + "height": 12 + }, + "polling-place-24": { + "x": 162, + "y": 456, + "width": 24, + "height": 24 + }, + "polling-place-18": { + "x": 186, + "y": 456, + "width": 18, + "height": 18 + }, + "polling-place-12": { + "x": 204, + "y": 456, + "width": 12, + "height": 12 + }, + "playground-24": { + "x": 216, + "y": 456, + "width": 24, + "height": 24 + }, + "playground-18": { + "x": 240, + "y": 456, + "width": 18, + "height": 18 + }, + "playground-12": { + "x": 258, + "y": 456, + "width": 12, + "height": 12 + }, + "entrance-24": { + "x": 0, + "y": 480, + "width": 24, + "height": 24 + }, + "entrance-18": { + "x": 24, + "y": 480, + "width": 18, + "height": 18 + }, + "entrance-12": { + "x": 42, + "y": 480, + "width": 12, + "height": 12 + }, + "heart-24": { + "x": 54, + "y": 480, + "width": 24, + "height": 24 + }, + "heart-18": { + "x": 78, + "y": 480, + "width": 18, + "height": 18 + }, + "heart-12": { + "x": 96, + "y": 480, + "width": 12, + "height": 12 + }, + "london-underground-24": { + "x": 108, + "y": 480, + "width": 24, + "height": 24 + }, + "london-underground-18": { + "x": 132, + "y": 480, + "width": 18, + "height": 18 + }, + "london-underground-12": { + "x": 150, + "y": 480, + "width": 12, + "height": 12 + }, + "minefield-24": { + "x": 162, + "y": 480, + "width": 24, + "height": 24 + }, + "minefield-18": { + "x": 186, + "y": 480, + "width": 18, + "height": 18 + }, + "minefield-12": { + "x": 204, + "y": 480, + "width": 12, + "height": 12 + }, + "rail-underground-24": { + "x": 216, + "y": 480, + "width": 24, + "height": 24 + }, + "rail-underground-18": { + "x": 240, + "y": 480, + "width": 18, + "height": 18 + }, + "rail-underground-12": { + "x": 258, + "y": 480, + "width": 12, + "height": 12 + }, + "rail-above-24": { + "x": 0, + "y": 504, + "width": 24, + "height": 24 + }, + "rail-above-18": { + "x": 24, + "y": 504, + "width": 18, + "height": 18 + }, + "rail-above-12": { + "x": 42, + "y": 504, + "width": 12, + "height": 12 + }, + "camera-24": { + "x": 54, + "y": 504, + "width": 24, + "height": 24 + }, + "camera-18": { + "x": 78, + "y": 504, + "width": 18, + "height": 18 + }, + "camera-12": { + "x": 96, + "y": 504, + "width": 12, + "height": 12 + }, + "laundry-24": { + "x": 108, + "y": 504, + "width": 24, + "height": 24 + }, + "laundry-18": { + "x": 132, + "y": 504, + "width": 18, + "height": 18 + }, + "laundry-12": { + "x": 150, + "y": 504, + "width": 12, + "height": 12 + }, + "car-24": { + "x": 162, + "y": 504, + "width": 24, + "height": 24 + }, + "car-18": { + "x": 186, + "y": 504, + "width": 18, + "height": 18 + }, + "car-12": { + "x": 204, + "y": 504, + "width": 12, + "height": 12 + }, + "suitcase-24": { + "x": 216, + "y": 504, + "width": 24, + "height": 24 + }, + "suitcase-18": { + "x": 240, + "y": 504, + "width": 18, + "height": 18 + }, + "suitcase-12": { + "x": 258, + "y": 504, + "width": 12, + "height": 12 + }, + "hairdresser-24": { + "x": 0, + "y": 528, + "width": 24, + "height": 24 + }, + "hairdresser-18": { + "x": 24, + "y": 528, + "width": 18, + "height": 18 + }, + "hairdresser-12": { + "x": 42, + "y": 528, + "width": 12, + "height": 12 + }, + "chemist-24": { + "x": 54, + "y": 528, + "width": 24, + "height": 24 + }, + "chemist-18": { + "x": 78, + "y": 528, + "width": 18, + "height": 18 + }, + "chemist-12": { + "x": 96, + "y": 528, + "width": 12, + "height": 12 + }, + "mobilephone-24": { + "x": 108, + "y": 528, + "width": 24, + "height": 24 + }, + "mobilephone-18": { + "x": 132, + "y": 528, + "width": 18, + "height": 18 + }, + "mobilephone-12": { + "x": 150, + "y": 528, + "width": 12, + "height": 12 + }, + "scooter-24": { + "x": 162, + "y": 528, + "width": 24, + "height": 24 + }, + "scooter-18": { + "x": 186, + "y": 528, + "width": 18, + "height": 18 + }, + "scooter-12": { + "x": 204, + "y": 528, + "width": 12, + "height": 12 + }, + "gift-24": { + "x": 216, + "y": 528, + "width": 24, + "height": 24 + }, + "gift-18": { + "x": 240, + "y": 528, + "width": 18, + "height": 18 + }, + "gift-12": { + "x": 258, + "y": 528, + "width": 12, + "height": 12 + }, + "ice-cream-24": { + "x": 0, + "y": 552, + "width": 24, + "height": 24 + }, + "ice-cream-18": { + "x": 24, + "y": 552, + "width": 18, + "height": 18 + }, + "ice-cream-12": { + "x": 42, + "y": 552, + "width": 12, + "height": 12 + } + }, "locales": [ "af", "sq", @@ -112907,8 +52965,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "ca", "zh", "zh-CN", - "zh-CN.GB2312", - "gan", "zh-HK", "zh-TW", "yue", @@ -112917,6 +52973,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "da", "nl", "en-GB", + "eo", "et", "fi", "fr", @@ -112934,16 +52991,14 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "lv", "lt", "no", - "nn", "fa", "pl", "pt", "pt-BR", - "ro-RO", + "ro", "ru", "sc", "sr", - "sr-RS", "si", "sk", "sl", @@ -113030,7 +53085,8 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "area": "Made an area circular." }, "not_closed": "This can't be made circular because it's not a loop.", - "too_large": "This can't be made circular because not enough of it is currently visible." + "too_large": "This can't be made circular because not enough of it is currently visible.", + "connected_to_hidden": "This can't be made circular because it is connected to a hidden feature." }, "orthogonalize": { "title": "Square", @@ -113044,18 +53100,20 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "area": "Squared the corners of an area." }, "not_squarish": "This can't be made square because it is not squarish.", - "too_large": "This can't be made square because not enough of it is currently visible." + "too_large": "This can't be made square because not enough of it is currently visible.", + "connected_to_hidden": "This can't be made square because it is connected to a hidden feature." }, "straighten": { "title": "Straighten", "description": "Straighten this line.", "key": "S", "annotation": "Straightened a line.", - "too_bendy": "This can't be straightened because it bends too much." + "too_bendy": "This can't be straightened because it bends too much.", + "connected_to_hidden": "This line can't be straightened because it is connected to a hidden feature." }, "delete": { "title": "Delete", - "description": "Remove this from the map.", + "description": "Delete object permanently.", "annotation": { "point": "Deleted a point.", "vertex": "Deleted a node from a way.", @@ -113064,7 +53122,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "relation": "Deleted a relation.", "multiple": "Deleted {n} objects." }, - "incomplete_relation": "This feature can't be deleted because it hasn't been fully downloaded." + "incomplete_relation": "This feature can't be deleted because it hasn't been fully downloaded.", + "part_of_relation": "This feature can't be deleted because it's part of a larger relation. You must remove it from the relation first.", + "connected_to_hidden": "This can't be deleted because it is connected to a hidden feature." }, "add_member": { "annotation": "Added a member to a relation." @@ -113085,17 +53145,19 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "description": "Disconnect these lines/areas from each other.", "key": "D", "annotation": "Disconnected lines/areas.", - "not_connected": "There aren't enough lines/areas here to disconnect." + "not_connected": "There aren't enough lines/areas here to disconnect.", + "connected_to_hidden": "This can't be disconnected because it is connected to a hidden feature." }, "merge": { "title": "Merge", - "description": "Merge these lines.", + "description": "Merge these features.", "key": "C", - "annotation": "Merged {n} lines.", + "annotation": "Merged {n} features.", "not_eligible": "These features can't be merged.", - "not_adjacent": "These lines can't be merged because they aren't connected.", - "restriction": "These lines can't be merged because at least one is a member of a \"{relation}\" relation.", - "incomplete_relation": "These features can't be merged because at least one hasn't been fully downloaded." + "not_adjacent": "These features can't be merged because they aren't connected.", + "restriction": "These features can't be merged because at least one is a member of a \"{relation}\" relation.", + "incomplete_relation": "These features can't be merged because at least one hasn't been fully downloaded.", + "conflicting_tags": "These features can't be merged because some of their tags have conflicting values." }, "move": { "title": "Move", @@ -113108,7 +53170,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "area": "Moved an area.", "multiple": "Moved multiple objects." }, - "incomplete_relation": "This feature can't be moved because it hasn't been fully downloaded." + "incomplete_relation": "This feature can't be moved because it hasn't been fully downloaded.", + "too_large": "This can't be moved because not enough of it is currently visible.", + "connected_to_hidden": "This can't be moved because it is connected to a hidden feature." }, "rotate": { "title": "Rotate", @@ -113117,7 +53181,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "annotation": { "line": "Rotated a line.", "area": "Rotated an area." - } + }, + "too_large": "This can't be rotated because not enough of it is currently visible.", + "connected_to_hidden": "This can't be rotated because it is connected to a hidden feature." }, "reverse": { "title": "Reverse", @@ -113139,7 +53205,20 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "multiple": "Split {n} lines/area boundaries." }, "not_eligible": "Lines can't be split at their beginning or end.", - "multiple_ways": "There are too many lines here to split." + "multiple_ways": "There are too many lines here to split.", + "connected_to_hidden": "This can't be split because it is connected to a hidden feature." + }, + "restriction": { + "help": { + "select": "Click to select a road segment.", + "toggle": "Click to toggle turn restrictions.", + "toggle_on": "Click to add a \"{restriction}\" restriction.", + "toggle_off": "Click to remove the \"{restriction}\" restriction." + }, + "annotation": { + "create": "Added a turn restriction", + "delete": "Deleted a turn restriction" + } } }, "undo": { @@ -113151,7 +53230,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "nothing": "Nothing to redo." }, "tooltip_keyhint": "Shortcut:", - "browser_notice": "This editor is supported in Firefox, Chrome, Safari, Opera, and Internet Explorer 9 and above. Please upgrade your browser or use Potlatch 2 to edit the map.", + "browser_notice": "This editor is supported in Firefox, Chrome, Safari, Opera, and Internet Explorer 11 and above. Please upgrade your browser or use Potlatch 2 to edit the map.", "translate": { "translate": "Translate", "localized_translation_label": "Multilingual name", @@ -113161,7 +53240,12 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "zoom_in_edit": "Zoom in to Edit", "logout": "logout", "loading_auth": "Connecting to OpenStreetMap...", - "report_a_bug": "report a bug", + "report_a_bug": "Report a bug", + "help_translate": "Help translate", + "feature_info": { + "hidden_warning": "{count} hidden features", + "hidden_details": "These features are currently hidden: {details}" + }, "status": { "error": "Unable to connect to API.", "offline": "The API is offline. Please try editing later.", @@ -113170,11 +53254,12 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "commit": { "title": "Save Changes", "description_placeholder": "Brief description of your contributions", - "message_label": "Commit message", + "message_label": "Changeset comment", "upload_explanation": "The changes you upload will be visible on all maps that use OpenStreetMap data.", "upload_explanation_with_user": "The changes you upload as {user} will be visible on all maps that use OpenStreetMap data.", "save": "Save", "cancel": "Cancel", + "changes": "{count} Changes", "warnings": "Warnings", "modified": "Modified", "deleted": "Deleted", @@ -113184,6 +53269,26 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "list": "Edits by {users}", "truncated_list": "Edits by {users} and {count} others" }, + "infobox": { + "selected": "{n} selected", + "geometry": "Geometry", + "closed": "closed", + "center": "Center", + "perimeter": "Perimeter", + "length": "Length", + "area": "Area", + "centroid": "Centroid", + "location": "Location", + "metric": "Metric", + "imperial": "Imperial" + }, + "geometry": { + "point": "point", + "vertex": "vertex", + "line": "line", + "area": "area", + "relation": "relation" + }, "geocoder": { "search": "Search worldwide...", "no_results_visible": "No results in visible map area", @@ -113221,7 +53326,8 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "node": "Node", "way": "Way", "relation": "Relation", - "location": "Location" + "location": "Location", + "add_fields": "Add field:" }, "background": { "title": "Background", @@ -113232,7 +53338,83 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "custom_button": "Edit custom background", "custom_prompt": "Enter a tile URL template. Valid tokens are {z}, {x}, {y} for Z/X/Y scheme and {u} for quadtile scheme.", "fix_misalignment": "Fix alignment", - "reset": "reset" + "reset": "reset", + "minimap": { + "description": "Minimap", + "tooltip": "Show a zoomed out map to help locate the area currently displayed." + } + }, + "map_data": { + "title": "Map Data", + "description": "Map Data", + "data_layers": "Data Layers", + "fill_area": "Fill Areas", + "map_features": "Map Features", + "autohidden": "These features have been automatically hidden because too many would be shown on the screen. You can zoom in to edit them." + }, + "feature": { + "points": { + "description": "Points", + "tooltip": "Points of Interest" + }, + "major_roads": { + "description": "Major Roads", + "tooltip": "Highways, Streets, etc." + }, + "minor_roads": { + "description": "Minor Roads", + "tooltip": "Service Roads, Parking Aisles, Tracks, etc." + }, + "paths": { + "description": "Paths", + "tooltip": "Sidewalks, Foot Paths, Cycle Paths, etc." + }, + "buildings": { + "description": "Buildings", + "tooltip": "Buildings, Shelters, Garages, etc." + }, + "landuse": { + "description": "Landuse Features", + "tooltip": "Forests, Farmland, Parks, Residential, Commercial, etc." + }, + "boundaries": { + "description": "Boundaries", + "tooltip": "Administrative Boundaries" + }, + "water": { + "description": "Water Features", + "tooltip": "Rivers, Lakes, Ponds, Basins, etc." + }, + "rail": { + "description": "Rail Features", + "tooltip": "Railways" + }, + "power": { + "description": "Power Features", + "tooltip": "Power Lines, Power Plants, Substations, etc." + }, + "past_future": { + "description": "Past/Future", + "tooltip": "Proposed, Construction, Abandoned, Demolished, etc." + }, + "others": { + "description": "Others", + "tooltip": "Everything Else" + } + }, + "area_fill": { + "wireframe": { + "description": "No Fill (Wireframe)", + "tooltip": "Enabling wireframe mode makes it easy to see the background imagery." + }, + "partial": { + "description": "Partial Fill", + "tooltip": "Areas are drawn with fill only around their inner edges. (Recommended for beginner mappers)" + }, + "full": { + "description": "Full Fill", + "tooltip": "Areas are drawn fully filled." + } }, "restore": { "heading": "You have unsaved changes", @@ -113244,9 +53426,33 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "title": "Save", "help": "Save changes to OpenStreetMap, making them visible to other users.", "no_changes": "No changes to save.", - "error": "An error occurred while trying to save", + "error": "Errors occurred while trying to save", + "status_code": "Server returned status code {code}", + "unknown_error_details": "Please ensure you are connected to the internet.", "uploading": "Uploading changes to OpenStreetMap.", - "unsaved_changes": "You have unsaved changes" + "unsaved_changes": "You have unsaved changes", + "conflict": { + "header": "Resolve conflicting edits", + "count": "Conflict {num} of {total}", + "previous": "< Previous", + "next": "Next >", + "keep_local": "Keep mine", + "keep_remote": "Use theirs", + "restore": "Restore", + "delete": "Leave Deleted", + "download_changes": "Or download your changes.", + "done": "All conflicts resolved!", + "help": "Another user changed some of the same map features you changed.\nClick on each item below for more details about the conflict, and choose whether to keep\nyour changes or the other user's changes.\n" + } + }, + "merge_remote_changes": { + "conflict": { + "deleted": "This object has been deleted by {user}.", + "location": "This object was moved by both you and {user}.", + "nodelist": "Nodes were changed by both you and {user}.", + "memberlist": "Relation members were changed by both you and {user}.", + "tags": "You changed the {tag} tag to \"{local}\" and {user} changed it to \"{remote}\"." + } }, "success": { "edited_osm": "Edited OSM!", @@ -113258,7 +53464,8 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "help_html": "Your changes should appear in the \"Standard\" layer in a few minutes. Other layers, and certain features, may take longer\n(details).\n" }, "confirm": { - "okay": "Okay" + "okay": "Okay", + "cancel": "Cancel" }, "splash": { "welcome": "Welcome to the iD OpenStreetMap editor", @@ -113282,7 +53489,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "untagged_area": "Untagged area", "many_deletions": "You're deleting {n} objects. Are you sure you want to do this? This will delete them from the map that everyone else sees on openstreetmap.org.", "tag_suggests_area": "The tag {tag} suggests line should be area, but it is not an area", - "untagged_tooltip": "Select a feature type that describes what this {geometry} is.", + "untagged_point_tooltip": "Select a feature type that describes what this point is.", + "untagged_line_tooltip": "Select a feature type that describes what this line is.", + "untagged_area_tooltip": "Select a feature type that describes what this area is.", "deprecated_tags": "Deprecated tags: {tags}" }, "zoom": { @@ -113290,21 +53499,27 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "out": "Zoom Out" }, "cannot_zoom": "Cannot zoom out further in current mode.", + "full_screen": "Toggle Full Screen", "gpx": { "local_layer": "Local GPX file", "drag_drop": "Drag and drop a .gpx file on the page, or click the button to the right to browse", "zoom": "Zoom to GPX track", "browse": "Browse for a .gpx file" }, + "mapillary": { + "tooltip": "Street-level photos from Mapillary", + "title": "Photo Overlay (Mapillary)", + "view_on_mapillary": "View this image on Mapillary" + }, "help": { "title": "Help", - "help": "# Help\n\nThis is an editor for [OpenStreetMap](http://www.openstreetmap.org/), the\nfree and editable map of the world. You can use it to add and update\ndata in your area, making an open-source and open-data map of the world\nbetter for everyone.\n\nEdits that you make on this map will be visible to everyone who uses\nOpenStreetMap. In order to make an edit, you'll need a\n[free OpenStreetMap account](https://www.openstreetmap.org/user/new).\n\nThe [iD editor](http://ideditor.com/) is a collaborative project with [source\ncode available on GitHub](https://github.com/openstreetmap/iD).\n", - "editing_saving": "# Editing & Saving\n\nThis editor is designed to work primarily online, and you're accessing\nit through a website right now.\n\n### Selecting Features\n\nTo select a map feature, like a road or point of interest, click\non it on the map. This will highlight the selected feature, open a panel with\ndetails about it, and show a menu of things you can do with the feature.\n\nTo select multiple features, hold down the 'Shift' key. Then either click\non the features you want to select, or drag on the map to draw a rectangle.\nThis will draw a box and select all the points within it.\n\n### Saving Edits\n\nWhen you make changes like editing roads, buildings, and places, these are\nstored locally until you save them to the server. Don't worry if you make\na mistake - you can undo changes by clicking the undo button, and redo\nchanges by clicking the redo button.\n\nClick 'Save' to finish a group of edits - for instance, if you've completed\nan area of town and would like to start on a new area. You'll have a chance\nto review what you've done, and the editor supplies helpful suggestions\nand warnings if something doesn't seem right about the changes.\n\nIf everything looks good, you can enter a short comment explaining the change\nyou made, and click 'Save' again to post the changes\nto [OpenStreetMap.org](http://www.openstreetmap.org/), where they are visible\nto all other users and available for others to build and improve upon.\n\nIf you can't finish your edits in one sitting, you can leave the editor\nwindow and come back (on the same browser and computer), and the\neditor application will offer to restore your work.\n", + "help": "# Help\n\nThis is an editor for [OpenStreetMap](http://www.openstreetmap.org/), the\nfree and editable map of the world. You can use it to add and update\ndata in your area, making an open-source and open-data map of the world\nbetter for everyone.\n\nEdits that you make on this map will be visible to everyone who uses\nOpenStreetMap. In order to make an edit, you'll need to\n[log in](https://www.openstreetmap.org/login).\n\nThe [iD editor](http://ideditor.com/) is a collaborative project with [source\ncode available on GitHub](https://github.com/openstreetmap/iD).\n", + "editing_saving": "# Editing & Saving\n\nThis editor is designed to work primarily online, and you're accessing\nit through a website right now.\n\n### Selecting Features\n\nTo select a map feature, like a road or point of interest, click\non it on the map. This will highlight the selected feature, open a panel with\ndetails about it, and show a menu of things you can do with the feature.\n\nTo select multiple features, hold down the 'Shift' key. Then either click\non the features you want to select, or drag on the map to draw a rectangle.\nThis will draw a box and select all the points within it.\n\n### Saving Edits\n\nWhen you make changes like editing roads, buildings, and places, these are\nstored locally until you save them to the server. Don't worry if you make\na mistake - you can undo changes by clicking the undo button, and redo\nchanges by clicking the redo button.\n\nClick 'Save' to finish a group of edits - for instance, if you've completed\nan area of town and would like to start on a new area. You'll have a chance\nto review what you've done, and the editor supplies helpful suggestions\nand warnings if something doesn't seem right about the changes.\n\nIf everything looks good, you can enter a short comment explaining the change\nyou made, and click 'Save' again to post the changes\nto [OpenStreetMap.org](http://www.openstreetmap.org/), where they are visible\nto all other users and available for others to build and improve upon.\n\nIf you can't finish your edits in one sitting, you can leave the editor\nwindow and come back (on the same browser and computer), and the\neditor application will offer to restore your work.\n\n### Using the editor\n\nA list of available keyboard shortcuts can be found [here](http://wiki.openstreetmap.org/wiki/ID/Shortcuts).\n", "roads": "# Roads\n\nYou can create, fix, and delete roads with this editor. Roads can be all\nkinds: paths, highways, trails, cycleways, and more - any often-crossed\nsegment should be mappable.\n\n### Selecting\n\nClick on a road to select it. An outline should become visible, along\nwith a small tools menu on the map and a sidebar showing more information\nabout the road.\n\n### Modifying\n\nOften you'll see roads that aren't aligned to the imagery behind them\nor to a GPS track. You can adjust these roads so they are in the correct\nplace.\n\nFirst click on the road you want to change. This will highlight it and show\ncontrol points along it that you can drag to better locations. If\nyou want to add new control points for more detail, double-click a part\nof the road without a node, and one will be added.\n\nIf the road connects to another road, but doesn't properly connect on\nthe map, you can drag one of its control points onto the other road in\norder to join them. Having roads connect is important for the map\nand essential for providing driving directions.\n\nYou can also click the 'Move' tool or press the `M` shortcut key to move the entire road at\none time, and then click again to save that movement.\n\n### Deleting\n\nIf a road is entirely incorrect - you can see that it doesn't exist in satellite\nimagery and ideally have confirmed locally that it's not present - you can delete\nit, which removes it from the map. Be cautious when deleting features -\nlike any other edit, the results are seen by everyone and satellite imagery\nis often out of date, so the road could simply be newly built.\n\nYou can delete a road by clicking on it to select it, then clicking the\ntrash can icon or pressing the 'Delete' key.\n\n### Creating\n\nFound somewhere there should be a road but there isn't? Click the 'Line'\nicon in the top-left of the editor or press the shortcut key `2` to start drawing\na line.\n\nClick on the start of the road on the map to start drawing. If the road\nbranches off from an existing road, start by clicking on the place where they connect.\n\nThen click on points along the road so that it follows the right path, according\nto satellite imagery or GPS. If the road you are drawing crosses another road, connect\nit by clicking on the intersection point. When you're done drawing, double-click\nor press 'Return' or 'Enter' on your keyboard.\n", - "gps": "# GPS\n\nGPS data is the most trusted source of data for OpenStreetMap. This editor\nsupports local traces - `.gpx` files on your local computer. You can collect\nthis kind of GPS trace with a number of smartphone applications as well as\npersonal GPS hardware.\n\nFor information on how to perform a GPS survey, read\n[Surveying with a GPS](http://learnosm.org/en/beginner/using-gps/).\n\nTo use a GPX track for mapping, drag and drop the GPX file onto the map\neditor. If it's recognized, it will be added to the map as a bright green\nline. Click on the 'Background Settings' menu on the right side to enable,\ndisable, or zoom to this new GPX-powered layer.\n\nThe GPX track isn't directly uploaded to OpenStreetMap - the best way to\nuse it is to draw on the map, using it as a guide for the new features that\nyou add, and also to [upload it to OpenStreetMap](http://www.openstreetmap.org/trace/create)\nfor other users to use.\n", + "gps": "# GPS\n\nCollected GPS traces are one valuable source of data for OpenStreetMap. This editor\nsupports local traces - `.gpx` files on your local computer. You can collect\nthis kind of GPS trace with a number of smartphone applications as well as\npersonal GPS hardware.\n\nFor information on how to perform a GPS survey, read\n[Mapping with a smartphone, GPS, or paper](http://learnosm.org/en/mobile-mapping/).\n\nTo use a GPX track for mapping, drag and drop the GPX file onto the map\neditor. If it's recognized, it will be added to the map as a bright purple\nline. Click on the 'Map Data' menu on the right side to enable,\ndisable, or zoom to this new GPX-powered layer.\n\nThe GPX track isn't directly uploaded to OpenStreetMap - the best way to\nuse it is to draw on the map, using it as a guide for the new features that\nyou add, and also to [upload it to OpenStreetMap](http://www.openstreetmap.org/trace/create)\nfor other users to use.\n", "imagery": "# Imagery\n\nAerial imagery is an important resource for mapping. A combination of\nairplane flyovers, satellite views, and freely-compiled sources are available\nin the editor under the 'Background Settings' menu on the right.\n\nBy default a [Bing Maps](http://www.bing.com/maps/) satellite layer is\npresented in the editor, but as you pan and zoom the map to new geographical\nareas, new sources will become available. Some countries, like the United\nStates, France, and Denmark have very high-quality imagery available for some areas.\n\nImagery is sometimes offset from the map data because of a mistake on the\nimagery provider's side. If you see a lot of roads shifted from the background,\ndon't immediately move them all to match the background. Instead you can adjust\nthe imagery so that it matches the existing data by clicking 'Fix alignment' at\nthe bottom of the Background Settings UI.\n", "addresses": "# Addresses\n\nAddresses are some of the most useful information for the map.\n\nAlthough addresses are often represented as parts of streets, in OpenStreetMap\nthey're recorded as attributes of buildings and places along streets.\n\nYou can add address information to places mapped as building outlines\nas well as those mapped as single points. The optimal source of address\ndata is from an on-the-ground survey or personal knowledge - as with any\nother feature, copying from commercial sources like Google Maps is strictly\nforbidden.\n", - "inspector": "# Using the Inspector\n\nThe inspector is the section on the left side of the page that allows you to\nedit the details of the selected feature.\n\n### Selecting a Feature Type\n\nAfter you add a point, line, or area, you can choose what type of feature it\nis, like whether it's a highway or residential road, supermarket or cafe.\nThe inspector will display buttons for common feature types, and you can\nfind others by typing what you're looking for in the search box.\n\nClick the 'i' in the bottom-right-hand corner of a feature type button to\nlearn more about it. Click a button to choose that type.\n\n### Using Forms and Editing Tags\n\nAfter you choose a feature type, or when you select a feature that already\nhas a type assigned, the inspector will display fields with details about\nthe feature like its name and address.\n\nBelow the fields you see, you can click icons to add other details,\nlike [Wikipedia](http://www.wikipedia.org/) information, wheelchair\naccess, and more.\n\nAt the bottom of the inspector, click 'Additional tags' to add arbitrary\nother tags to the element. [Taginfo](http://taginfo.openstreetmap.org/) is a\ngreat resource for learn more about popular tag combinations.\n\nChanges you make in the inspector are automatically applied to the map.\nYou can undo them at any time by clicking the 'Undo' button.\n", + "inspector": "# Using the Inspector\n\nThe inspector is the section on the left side of the page that allows you to\nedit the details of the selected feature.\n\n### Selecting a Feature Type\n\nAfter you add a point, line, or area, you can choose what type of feature it\nis, like whether it's a highway or residential road, supermarket or cafe.\nThe inspector will display buttons for common feature types, and you can\nfind others by typing what you're looking for in the search box.\n\nClick the 'i' in the bottom-right-hand corner of a feature type button to\nlearn more about it. Click a button to choose that type.\n\n### Using Forms and Editing Tags\n\nAfter you choose a feature type, or when you select a feature that already\nhas a type assigned, the inspector will display fields with details about\nthe feature like its name and address.\n\nBelow the fields you see, you can click the 'Add field' dropdown to add\nother details, like a Wikipedia link, wheelchair access, and more.\n\nAt the bottom of the inspector, click 'Additional tags' to add arbitrary\nother tags to the element. [Taginfo](http://taginfo.openstreetmap.org/) is a\ngreat resource for learn more about popular tag combinations.\n\nChanges you make in the inspector are automatically applied to the map.\nYou can undo them at any time by clicking the 'Undo' button.\n", "buildings": "# Buildings\n\nOpenStreetMap is the world's largest database of buildings. You can create\nand improve this database.\n\n### Selecting\n\nYou can select a building by clicking on its border. This will highlight the\nbuilding and open a small tools menu and a sidebar showing more information\nabout the building.\n\n### Modifying\n\nSometimes buildings are incorrectly placed or have incorrect tags.\n\nTo move an entire building, select it, then click the 'Move' tool. Move your\nmouse to shift the building, and click when it's correctly placed.\n\nTo fix the specific shape of a building, click and drag the nodes that form\nits border into better places.\n\n### Creating\n\nOne of the main questions around adding buildings to the map is that\nOpenStreetMap records buildings both as shapes and points. The rule of thumb\nis to _map a building as a shape whenever possible_, and map companies, homes,\namenities, and other things that operate out of buildings as points placed\nwithin the building shape.\n\nStart drawing a building as a shape by clicking the 'Area' button in the top\nleft of the interface, and end it either by pressing 'Return' on your keyboard\nor clicking on the first node drawn to close the shape.\n\n### Deleting\n\nIf a building is entirely incorrect - you can see that it doesn't exist in satellite\nimagery and ideally have confirmed locally that it's not present - you can delete\nit, which removes it from the map. Be cautious when deleting features -\nlike any other edit, the results are seen by everyone and satellite imagery\nis often out of date, so the building could simply be newly built.\n\nYou can delete a building by clicking on it to select it, then clicking the\ntrash can icon or pressing the 'Delete' key.\n", "relations": "# Relations\n\nA relation is a special type of feature in OpenStreetMap that groups together\nother features. For example, two common types of relations are *route relations*,\nwhich group together sections of road that belong to a specific freeway or\nhighway, and *multipolygons*, which group together several lines that define\na complex area (one with several pieces or holes in it like a donut).\n\nThe group of features in a relation are called *members*. In the sidebar, you can\nsee which relations a feature is a member of, and click on a relation there\nto select the it. When the relation is selected, you can see all of its\nmembers listed in the sidebar and highlighted on the map.\n\nFor the most part, iD will take care of maintaining relations automatically\nwhile you edit. The main thing you should be aware of is that if you delete a\nsection of road to redraw it more accurately, you should make sure that the\nnew section is a member of the same relations as the original.\n\n## Editing Relations\n\nIf you want to edit relations, here are the basics.\n\nTo add a feature to a relation, select the feature, click the \"+\" button in the\n\"All relations\" section of the sidebar, and select or type the name of the relation.\n\nTo create a new relation, select the first feature that should be a member,\nclick the \"+\" button in the \"All relations\" section, and select \"New relation...\".\n\nTo remove a feature from a relation, select the feature and click the trash\nbutton next to the relation you want to remove it from.\n\nYou can create multipolygons with holes using the \"Merge\" tool. Draw two areas (inner\nand outer), hold the Shift key and click on each of them to select them both, and then\nclick the \"Merge\" (+) button.\n" }, @@ -113331,7 +53546,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "areas": { "title": "Areas", - "add": "Areas are a more detailed way to represent features. They provide information on the boundaries of the feature. Areas can be used for most feature types points can be used for, and are often preferred. **Click the Area button to add a new area.**", + "add": "Areas are used to show the boundaries of features like lakes, buildings, and residential areas. They can be also be used for more detailed mapping of many features you might normally map as points. **Click the Area button to add a new area.**", "corner": "Areas are drawn by placing nodes that mark the boundary of the area. **Place the starting node on one of the corners of the playground.**", "place": "Draw the area by placing more nodes. Finish the area by clicking on the starting node. **Draw an area for the playground.**", "search": "**Search for '{name}'.**", @@ -113374,6 +53589,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "category-rail": { "name": "Rail" }, + "category-restriction": { + "name": "Restriction" + }, "category-road": { "name": "Road" }, @@ -113389,10 +53607,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "fields": { "access": { - "label": "Access", - "placeholder": "Unknown", + "label": "Allowed Access", + "placeholder": "Not Specified", "types": { - "access": "General", + "access": "All", "foot": "Foot", "motor_vehicle": "Motor Vehicles", "bicycle": "Bicycles", @@ -113422,19 +53640,37 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "destination": { "title": "Destination", "description": "Access permitted only to reach a destination" + }, + "dismount": { + "title": "Dismount", + "description": "Access permitted but rider must dismount" } } }, "access_simple": { + "label": "Allowed Access", + "placeholder": "yes" + }, + "access_toilets": { "label": "Access" }, "address": { "label": "Address", "placeholders": { - "number": "123", + "housename": "Housename", + "housenumber": "123", + "conscriptionnumber": "123", "street": "Street", "city": "City", - "postcode": "Postal code" + "postcode": "Postcode", + "place": "Place", + "hamlet": "Hamlet", + "suburb": "Suburb", + "subdistrict": "Subdistrict", + "district": "District", + "province": "Province", + "state": "State", + "country": "Country" } }, "admin_level": { @@ -113444,7 +53680,12 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "label": "Type" }, "aerialway/access": { - "label": "Access" + "label": "Access", + "options": { + "entry": "Entry", + "exit": "Exit", + "both": "Both" + } }, "aerialway/bubble": { "label": "Bubble" @@ -113465,7 +53706,12 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "placeholder": "2, 4, 8..." }, "aerialway/summer/access": { - "label": "Access (summer)" + "label": "Access (summer)", + "options": { + "entry": "Entry", + "exit": "Exit", + "both": "Both" + } }, "aeroway": { "label": "Type" @@ -113473,6 +53719,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "amenity": { "label": "Type" }, + "area/highway": { + "label": "Type" + }, "artist": { "label": "Artist" }, @@ -113488,12 +53737,18 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "barrier": { "label": "Type" }, + "bench": { + "label": "Bench" + }, "bicycle_parking": { "label": "Type" }, "boundary": { "label": "Type" }, + "brand": { + "label": "Brand" + }, "building": { "label": "Building" }, @@ -113505,7 +53760,25 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "placeholder": "50, 100, 200..." }, "cardinal_direction": { - "label": "Direction" + "label": "Direction", + "options": { + "N": "North", + "E": "East", + "S": "South", + "W": "West", + "NE": "Northeast", + "SE": "Southeast", + "SW": "Southwest", + "NW": "Northwest", + "NNE": "North-northeast", + "ENE": "East-northeast", + "ESE": "East-southeast", + "SSE": "South-southeast", + "SSW": "South-southwest", + "WSW": "West-southwest", + "WNW": "West-northwest", + "NNW": "North-northwest" + } }, "clock_direction": { "label": "Direction", @@ -113520,12 +53793,18 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "construction": { "label": "Type" }, + "content": { + "label": "Contents" + }, "country": { "label": "Country" }, "covered": { "label": "Covered" }, + "craft": { + "label": "Type" + }, "crop": { "label": "Crop" }, @@ -113535,6 +53814,47 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "cuisine": { "label": "Cuisine" }, + "cycleway": { + "label": "Bike Lanes", + "placeholder": "none", + "types": { + "cycleway:left": "Left side", + "cycleway:right": "Right side" + }, + "options": { + "none": { + "title": "None", + "description": "No bike lane" + }, + "lane": { + "title": "Standard bike lane", + "description": "A bike lane separated from auto traffic by a painted line" + }, + "shared_lane": { + "title": "Shared bike lane", + "description": "A bike lane with no separation from auto traffic" + }, + "track": { + "title": "Bike track", + "description": "A bike lane separated from traffic by a physical barrier" + }, + "share_busway": { + "title": "Bike lane shared with bus", + "description": "A bike lane shared with a bus lane" + }, + "opposite_lane": { + "title": "Opposite bike lane", + "description": "A bike lane that travels in the opposite direction of traffic" + }, + "opposite": { + "title": "Contraflow bike lane", + "description": "A bike lane that travels in both directions on a one-way street" + } + } + }, + "delivery": { + "label": "Delivery" + }, "denomination": { "label": "Denomination" }, @@ -113544,8 +53864,18 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "description": { "label": "Description" }, + "drive_through": { + "label": "Drive-Through" + }, "electrified": { - "label": "Electrification" + "label": "Electrification", + "placeholder": "Contact Line, Electrified Rail...", + "options": { + "contact_line": "Contact Line", + "rail": "Electrified Rail", + "yes": "Yes (unspecified)", + "no": "No" + } }, "elevation": { "label": "Elevation" @@ -113556,6 +53886,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "entrance": { "label": "Type" }, + "except": { + "label": "Exceptions" + }, "fax": { "label": "Fax", "placeholder": "+31 42 123 4567" @@ -113564,7 +53897,13 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "label": "Fee" }, "fire_hydrant/type": { - "label": "Type" + "label": "Type", + "options": { + "pillar": "Pillar/Aboveground", + "underground": "Underground", + "wall": "Wall", + "pond": "Pond" + } }, "fixme": { "label": "Fix Me" @@ -113602,6 +53941,15 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "gauge": { "label": "Gauge" }, + "gender": { + "label": "Gender", + "placeholder": "Unknown", + "options": { + "male": "Male", + "female": "Female", + "unisex": "Unisex" + } + }, "generator/method": { "label": "Method" }, @@ -113619,6 +53967,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "label": "Handicap", "placeholder": "1-18" }, + "handrail": { + "label": "Handrail" + }, "highway": { "label": "Type" }, @@ -113638,6 +53989,13 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "incline": { "label": "Incline" }, + "incline_steps": { + "label": "Incline", + "options": { + "up": "Up", + "down": "Down" + } + }, "information": { "label": "Type" }, @@ -113651,6 +54009,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terminal": "Terminal" } }, + "lamp_type": { + "label": "Type" + }, "landuse": { "label": "Type" }, @@ -113661,12 +54022,51 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "layer": { "label": "Layer" }, + "leaf_cycle": { + "label": "Leaf Cycle", + "options": { + "evergreen": "Evergreen", + "deciduous": "Deciduous", + "semi_evergreen": "Semi-Evergreen", + "semi_deciduous": "Semi-Deciduous", + "mixed": "Mixed" + } + }, + "leaf_cycle_singular": { + "label": "Leaf Cycle", + "options": { + "evergreen": "Evergreen", + "deciduous": "Deciduous", + "semi_evergreen": "Semi-Evergreen", + "semi_deciduous": "Semi-Deciduous" + } + }, + "leaf_type": { + "label": "Leaf Type", + "options": { + "broadleaved": "Broadleaved", + "needleleaved": "Needleleaved", + "mixed": "Mixed", + "leafless": "Leafless" + } + }, + "leaf_type_singular": { + "label": "Leaf Type", + "options": { + "broadleaved": "Broadleaved", + "needleleaved": "Needleleaved", + "leafless": "Leafless" + } + }, "leisure": { "label": "Type" }, "length": { "label": "Length (Meters)" }, + "level": { + "label": "Level" + }, "levels": { "label": "Levels", "placeholder": "2, 4, 6..." @@ -113684,6 +54084,45 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "label": "Speed Limit", "placeholder": "40, 50, 60..." }, + "maxstay": { + "label": "Max Stay" + }, + "mtb/scale": { + "label": "Mountain Biking Difficulty", + "placeholder": "0, 1, 2, 3...", + "options": { + "0": "0: Solid gravel/packed earth, no obstacles, wide curves", + "1": "1: Some loose surface, small obstacles, wide curves", + "2": "2: Much loose surface, large obstacles, easy hairpins", + "3": "3: Slippery surface, large obstacles, tight hairpins", + "4": "4: Loose surface or boulders, dangerous hairpins", + "5": "5: Maximum difficulty, boulder fields, landslides", + "6": "6: Not rideable except by the very best mountain bikers" + } + }, + "mtb/scale/imba": { + "label": "IMBA Trail Difficulty", + "placeholder": "Easy, Medium, Difficult...", + "options": { + "0": "Easiest (white circle)", + "1": "Easy (green circle)", + "2": "Medium (blue square)", + "3": "Difficult (black diamond)", + "4": "Extremely Difficult (double black diamond)" + } + }, + "mtb/scale/uphill": { + "label": "Mountain Biking Uphill Difficulty", + "placeholder": "0, 1, 2, 3...", + "options": { + "0": "0: Avg. incline <10%, gravel/packed earth, no obstacles", + "1": "1: Avg. incline <15%, gravel/packed earth, few small objects", + "2": "2: Avg. incline <20%, stable surface, fistsize rocks/roots", + "3": "3: Avg. incline <25%, variable surface, fistsize rocks/branches", + "4": "4: Avg. incline <30%, poor condition, big rocks/branches", + "5": "5: Very steep, bike generally needs to be pushed or carried" + } + }, "name": { "label": "Name", "placeholder": "Common name (if any)" @@ -113701,10 +54140,20 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "label": "Type" }, "oneway": { - "label": "One Way" + "label": "One Way", + "options": { + "undefined": "Assumed to be No", + "yes": "Yes", + "no": "No" + } }, "oneway_yes": { - "label": "One Way" + "label": "One Way", + "options": { + "undefined": "Assumed to be Yes", + "yes": "Yes", + "no": "No" + } }, "opening_hours": { "label": "Hours" @@ -113720,20 +54169,58 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "label": "Park and Ride" }, "parking": { - "label": "Type" + "label": "Type", + "options": { + "surface": "Surface", + "multi-storey": "Multilevel", + "underground": "Underground", + "sheds": "Sheds", + "carports": "Carports", + "garage_boxes": "Garage Boxes", + "lane": "Roadside Lane" + } }, "phone": { "label": "Phone", "placeholder": "+31 42 123 4567" }, "piste/difficulty": { - "label": "Difficulty" + "label": "Difficulty", + "placeholder": "Easy, Intermediate, Advanced...", + "options": { + "novice": "Novice (instructional)", + "easy": "Easy (green circle)", + "intermediate": "Intermediate (blue square)", + "advanced": "Advanced (black diamond)", + "expert": "Expert (double black diamond)", + "freeride": "Freeride (off-piste)", + "extreme": "Extreme (climbing equipment required)" + } }, "piste/grooming": { - "label": "Grooming" + "label": "Grooming", + "options": { + "classic": "Classic", + "mogul": "Mogul", + "backcountry": "Backcountry", + "classic+skating": "Classic and Skating", + "scooter": "Scooter/Snowmobile", + "skating": "Skating" + } }, "piste/type": { - "label": "Type" + "label": "Type", + "options": { + "downhill": "Downhill", + "nordic": "Nordic", + "skitour": "Skitour", + "sled": "Sled", + "hike": "Hike", + "sleigh": "Sleigh", + "ice_skate": "Ice Skate", + "snow_park": "Snow Park", + "playground": "Playground" + } }, "place": { "label": "Type" @@ -113744,6 +54231,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "power": { "label": "Type" }, + "power_supply": { + "label": "Power Supply" + }, "railway": { "label": "Type" }, @@ -113756,9 +54246,22 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "recycling/glass": { "label": "Accepts Glass" }, + "recycling/glass_bottles": { + "label": "Accepts Glass Bottles" + }, "recycling/paper": { "label": "Accepts Paper" }, + "recycling/plastic": { + "label": "Accepts Plastic" + }, + "recycling/type": { + "label": "Recycling Type", + "options": { + "container": "Container", + "centre": "Recycling Center" + } + }, "ref": { "label": "Reference" }, @@ -113766,20 +54269,14 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "label": "Type" }, "religion": { - "label": "Religion", - "options": { - "christian": "Christian", - "muslim": "Muslim", - "buddhist": "Buddhist", - "jewish": "Jewish", - "hindu": "Hindu", - "shinto": "Shinto", - "taoist": "Taoist" - } + "label": "Religion" }, "restriction": { "label": "Type" }, + "restrictions": { + "label": "Turn Restrictions" + }, "route": { "label": "Type" }, @@ -113787,7 +54284,19 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "label": "Type" }, "sac_scale": { - "label": "Path Difficulty" + "label": "Hiking Difficulty", + "placeholder": "Mountain Hiking, Alpine Hiking...", + "options": { + "hiking": "T1: Hiking", + "mountain_hiking": "T2: Mountain Hiking", + "demanding_mountain_hiking": "T3: Demanding Mountain Hiking", + "alpine_hiking": "T4: Alpine Hiking", + "demanding_alpine_hiking": "T5: Demanding Alpine Hiking", + "difficult_alpine_hiking": "T6: Difficult Alpine Hiking" + } + }, + "sanitary_dump_station": { + "label": "Toilet Disposal" }, "seasonal": { "label": "Seasonal" @@ -113795,6 +54304,31 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "service": { "label": "Type" }, + "service/bicycle/chain_tool": { + "label": "Chain Tool", + "options": { + "undefined": "Assumed to be No", + "yes": "Yes", + "no": "No" + } + }, + "service/bicycle/pump": { + "label": "Air Pump", + "options": { + "undefined": "Assumed to be No", + "yes": "Yes", + "no": "No" + } + }, + "service_rail": { + "label": "Service Type", + "options": { + "spur": "Spur", + "yard": "Yard", + "siding": "Siding", + "crossover": "Crossover" + } + }, "shelter": { "label": "Shelter" }, @@ -113808,7 +54342,30 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "label": "Sloped Curb" }, "smoking": { - "label": "Smoking" + "label": "Smoking", + "placeholder": "No, Separated, Yes...", + "options": { + "no": "No smoking anywhere", + "separated": "In smoking areas, not physically isolated", + "isolated": "In smoking areas, physically isolated", + "outside": "Allowed outside", + "yes": "Allowed everywhere", + "dedicated": "Dedicated to smokers (e.g. smokers' club)" + } + }, + "smoothness": { + "label": "Smoothness", + "placeholder": "Thin Rollers, Wheels, Off-Road...", + "options": { + "excellent": "Thin Rollers: rollerblade, skateboard", + "good": "Thin Wheels: racing bike", + "intermediate": "Wheels: city bike, wheelchair, scooter", + "bad": "Robust Wheels: trekking bike, car, rickshaw", + "very_bad": "High Clearance: light duty off-road vehicle", + "horrible": "Off-Road: heavy duty off-road vehicle", + "very_horrible": "Specialized off-road: tractor, ATV", + "impassable": "Impassable / No wheeled vehicle" + } }, "social_facility_for": { "label": "People served", @@ -113823,6 +54380,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "sport_ice": { "label": "Sport" }, + "sport_racing": { + "label": "Sport" + }, "structure": { "label": "Structure", "placeholder": "Unknown", @@ -113837,6 +54397,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "studio_type": { "label": "Type" }, + "substation": { + "label": "Type" + }, "supervised": { "label": "Supervised" }, @@ -113846,8 +54409,23 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "tactile_paving": { "label": "Tactile Paving" }, + "takeaway": { + "label": "Takeaway", + "placeholder": "Yes, No, Takeaway Only...", + "options": { + "yes": "Yes", + "no": "No", + "only": "Takeaway Only" + } + }, "toilets/disposal": { - "label": "Disposal" + "label": "Disposal", + "options": { + "flush": "Flush", + "pitlatrine": "Pit/Latrine", + "chemical": "Chemical", + "bucket": "Bucket" + } }, "tourism": { "label": "Type" @@ -113856,13 +54434,30 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "label": "Tower type" }, "tracktype": { + "label": "Track Type", + "placeholder": "Solid, Mostly Solid, Soft...", + "options": { + "grade1": "Solid: paved or heavily compacted hardcore surface", + "grade2": "Mostly Solid: gravel/rock with some soft material mixed in", + "grade3": "Even mixture of hard and soft materials", + "grade4": "Mostly Soft: soil/sand/grass with some hard material mixed in", + "grade5": "Soft: soil/sand/grass" + } + }, + "traffic_signals": { "label": "Type" }, "trail_visibility": { - "label": "Trail Visibility" - }, - "tree_type": { - "label": "Type" + "label": "Trail Visibility", + "placeholder": "Excellent, Good, Bad...", + "options": { + "excellent": "Excellent: unambiguous path or markers everywhere", + "good": "Good: markers visible, sometimes require searching", + "intermediate": "Intermediate: few markers, path mostly visible", + "bad": "Bad: no markers, path sometimes invisible/pathless", + "horrible": "Horrible: often pathless, some orientation skills required", + "no": "No: pathless, excellent orientation skills required" + } }, "trees": { "label": "Trees" @@ -113876,6 +54471,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "water": { "label": "Type" }, + "water_point": { + "label": "Water Point" + }, "waterway": { "label": "Type" }, @@ -113894,9 +54492,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "wikipedia": { "label": "Wikipedia" - }, - "wood": { - "label": "Type" } }, "presets": { @@ -113986,23 +54581,23 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "amenity/arts_centre": { "name": "Arts Center", - "terms": "arts,arts centre" + "terms": "" }, "amenity/atm": { "name": "ATM", - "terms": "" + "terms": "money,cash,machine" }, "amenity/bank": { "name": "Bank", - "terms": "coffer,countinghouse,credit union,depository,exchequer,fund,hoard,investment firm,repository,reserve,reservoir,safe,savings,stock,stockpile,store,storehouse,thrift,treasury,trust company,vault" + "terms": "credit union,check,deposit,fund,investment,repository,reserve,safe,savings,stock,treasury,trust,vault" }, "amenity/bar": { "name": "Bar", - "terms": "" + "terms": "dive,beer,bier,booze" }, "amenity/bbq": { "name": "Barbecue/Grill", - "terms": "barbecue,bbq,grill" + "terms": "bbq" }, "amenity/bench": { "name": "Bench", @@ -114010,19 +54605,35 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "amenity/bicycle_parking": { "name": "Bicycle Parking", - "terms": "" + "terms": "bike" }, "amenity/bicycle_rental": { "name": "Bicycle Rental", - "terms": "" + "terms": "bike" + }, + "amenity/bicycle_repair_station": { + "name": "Bicycle Repair Station", + "terms": "bike" + }, + "amenity/biergarten": { + "name": "Beer Garden", + "terms": "beer,bier,booze" }, "amenity/boat_rental": { "name": "Boat Rental", "terms": "" }, + "amenity/bureau_de_change": { + "name": "Currency Exchange", + "terms": "bureau de change,money changer" + }, + "amenity/bus_station": { + "name": "Bus Station", + "terms": "" + }, "amenity/cafe": { "name": "Cafe", - "terms": "coffee,tea,coffee shop" + "terms": "coffee,tea" }, "amenity/car_rental": { "name": "Car Rental", @@ -114036,29 +54647,37 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Car Wash", "terms": "" }, + "amenity/casino": { + "name": "Casino", + "terms": "gambling,roulette,craps,poker,blackjack" + }, "amenity/charging_station": { "name": "Charging Station", "terms": "EV,Electric Vehicle,Supercharger" }, "amenity/childcare": { - "name": "Childcare", - "terms": "nursery,orphanage,playgroup" + "name": "Nursery/Childcare", + "terms": "daycare,orphanage,playgroup" }, "amenity/cinema": { "name": "Cinema", - "terms": "big screen,bijou,cine,drive-in,film,flicks,motion pictures,movie house,movie theater,moving pictures,nabes,photoplay,picture show,pictures,playhouse,show,silver screen" + "terms": "drive-in,film,flick,movie,theater,picture,show,screen" }, "amenity/clinic": { "name": "Clinic", - "terms": "clinic,medical clinic" + "terms": "medical,urgentcare" }, "amenity/clock": { "name": "Clock", "terms": "" }, "amenity/college": { - "name": "College", - "terms": "" + "name": "College Grounds", + "terms": "university" + }, + "amenity/community_centre": { + "name": "Community Center", + "terms": "event,hall" }, "amenity/compressed_air": { "name": "Compressed Air", @@ -114070,15 +54689,19 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "amenity/dentist": { "name": "Dentist", - "terms": "dentist,dentist's office" + "terms": "tooth,teeth" }, "amenity/doctor": { "name": "Doctor", - "terms": "doctor,doctor's office" + "terms": "medic*" + }, + "amenity/dojo": { + "name": "Dojo / Martial Arts Academy", + "terms": "martial arts,dojang" }, "amenity/drinking_water": { "name": "Drinking Water", - "terms": "water fountain,potable water" + "terms": "fountain,potable" }, "amenity/embassy": { "name": "Embassy", @@ -114086,7 +54709,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "amenity/fast_food": { "name": "Fast Food", - "terms": "" + "terms": "restaurant" }, "amenity/fire_station": { "name": "Fire Station", @@ -114104,22 +54727,30 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Graveyard", "terms": "" }, + "amenity/grit_bin": { + "name": "Grit Bin", + "terms": "salt,sand" + }, "amenity/hospital": { "name": "Hospital Grounds", - "terms": "clinic,emergency room,health service,hospice,infirmary,institution,nursing home,rest home,sanatorium,sanitarium,sick bay,surgery,ward" + "terms": "clinic,doctor,emergency room,health service,hospice,infirmary,institution,nursing home,sanatorium,sanitarium,sick,surgery,ward" }, "amenity/kindergarten": { - "name": "Kindergarten Grounds", - "terms": "nursery,preschool" + "name": "Preschool/Kindergarten Grounds", + "terms": "kindergarden,pre-school" }, "amenity/library": { "name": "Library", - "terms": "" + "terms": "book" }, "amenity/marketplace": { "name": "Marketplace", "terms": "" }, + "amenity/motorcycle_parking": { + "name": "Motorcycle Parking", + "terms": "" + }, "amenity/nightclub": { "name": "Nightclub", "terms": "disco*,night club,dancing,dance club" @@ -114134,7 +54765,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "amenity/pharmacy": { "name": "Pharmacy", - "terms": "" + "terms": "drug,medicine" }, "amenity/place_of_worship": { "name": "Place of Worship", @@ -114146,31 +54777,35 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "amenity/place_of_worship/christian": { "name": "Church", - "terms": "christian,abbey,basilica,bethel,cathedral,chancel,chantry,chapel,church,fold,house of God,house of prayer,house of worship,minster,mission,oratory,parish,sacellum,sanctuary,shrine,tabernacle,temple" + "terms": "christian,abbey,basilica,bethel,cathedral,chancel,chantry,chapel,fold,house of God,house of prayer,house of worship,minster,mission,oratory,parish,sacellum,sanctuary,shrine,tabernacle,temple" }, "amenity/place_of_worship/jewish": { "name": "Synagogue", - "terms": "jewish,synagogue" + "terms": "jewish" }, "amenity/place_of_worship/muslim": { "name": "Mosque", - "terms": "muslim,mosque" + "terms": "muslim" }, "amenity/police": { "name": "Police", - "terms": "badge,bear,blue,bluecoat,bobby,boy scout,bull,constable,constabulary,cop,copper,corps,county mounty,detective,fed,flatfoot,force,fuzz,gendarme,gumshoe,heat,law,law enforcement,man,narc,officers,patrolman,police" + "terms": "badge,constable,constabulary,cop,detective,fed,law,enforcement,officer,patrol" }, "amenity/post_box": { "name": "Mailbox", - "terms": "letter drop,letterbox,mail drop,mailbox,pillar box,postbox" + "terms": "letter,post" }, "amenity/post_office": { "name": "Post Office", - "terms": "" + "terms": "letter,mail" }, "amenity/pub": { "name": "Pub", - "terms": "" + "terms": "dive,beer,bier,booze" + }, + "amenity/public_bookcase": { + "name": "Public Bookcase", + "terms": "library,bookcrossing" }, "amenity/ranger_station": { "name": "Ranger Station", @@ -114178,19 +54813,27 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "amenity/recycling": { "name": "Recycling", + "terms": "can,bottle,garbage,scrap,trash" + }, + "amenity/register_office": { + "name": "Register Office", "terms": "" }, "amenity/restaurant": { "name": "Restaurant", - "terms": "bar,cafeteria,café,canteen,chophouse,coffee shop,diner,dining room,dive*,doughtnut shop,drive-in,eatery,eating house,eating place,fast-food place,fish and chips,greasy spoon,grill,hamburger stand,hashery,hideaway,hotdog stand,inn,joint*,luncheonette,lunchroom,night club,outlet*,pizzeria,saloon,soda fountain,watering hole" + "terms": "bar,breakfast,cafe,café,canteen,coffee,dine,dining,dinner,drive-in,eat,grill,lunch,table" + }, + "amenity/sanitary_dump_station": { + "name": "RV Toilet Disposal", + "terms": "Motor Home,Camper,Sanitary,Dump Station,Elsan,CDP,CTDP,Chemical Toilet" }, "amenity/school": { "name": "School Grounds", - "terms": "academy,alma mater,blackboard,college,department,discipline,establishment,faculty,hall,halls of ivy,institute,institution,jail*,schoolhouse,seminary,university" + "terms": "academy,elementary school,middle school,high school" }, "amenity/shelter": { "name": "Shelter", - "terms": "lean-to" + "terms": "lean-to,gazebo,picnic" }, "amenity/social_facility": { "name": "Social Facility", @@ -114201,8 +54844,8 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "amenity/social_facility/group_home": { - "name": "Group Home", - "terms": "elderly,old,senior living" + "name": "Elderly Group Home", + "terms": "old,senior,living" }, "amenity/social_facility/homeless_shelter": { "name": "Homeless Shelter", @@ -114210,7 +54853,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "amenity/studio": { "name": "Studio", - "terms": "recording studio,studio,radio,radio studio,television,television studio" + "terms": "recording,radio,television" }, "amenity/swimming_pool": { "name": "Swimming Pool", @@ -114234,13 +54877,49 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "amenity/townhall": { "name": "Town Hall", - "terms": "village hall,city government,courthouse,municipal building,municipal center,municipal centre" + "terms": "village,city,government,courthouse,municipal" }, "amenity/university": { - "name": "University", + "name": "University Grounds", "terms": "college" }, - "amenity/vending_machine": { + "amenity/vending_machine/cigarettes": { + "name": "Cigarette Vending Machine", + "terms": "cigarette" + }, + "amenity/vending_machine/condoms": { + "name": "Condom Vending Machine", + "terms": "condom" + }, + "amenity/vending_machine/drinks": { + "name": "Drink Vending Machine", + "terms": "drink,soda,beverage,juice,pop" + }, + "amenity/vending_machine/excrement_bags": { + "name": "Excrement Bag Vending Machine", + "terms": "excrement bags,poop,dog,animal" + }, + "amenity/vending_machine/news_papers": { + "name": "Newspaper Vending Machine", + "terms": "newspaper" + }, + "amenity/vending_machine/parcel_pickup_dropoff": { + "name": "Parcel Pickup/Dropoff Vending Machine", + "terms": "parcel,mail,pickup" + }, + "amenity/vending_machine/parking_tickets": { + "name": "Parking Ticket Vending Machine", + "terms": "parking,ticket" + }, + "amenity/vending_machine/public_transport_tickets": { + "name": "Transit Ticket Vending Machine", + "terms": "bus,train,ferry,rail,ticket,transportation" + }, + "amenity/vending_machine/sweets": { + "name": "Snack Vending Machine", + "terms": "candy,gum,chip,pretzel,cookie,cracker" + }, + "amenity/vending_machine/vending_machine": { "name": "Vending Machine", "terms": "" }, @@ -114250,12 +54929,16 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "amenity/waste_basket": { "name": "Waste Basket", - "terms": "rubbish bin,litter bin,trash can,garbage can" + "terms": "rubbish,litter,trash,garbage" }, "area": { "name": "Area", "terms": "" }, + "area/highway": { + "name": "Road Surface", + "terms": "" + }, "barrier": { "name": "Barrier", "terms": "" @@ -114349,17 +55032,21 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "building/cathedral": { - "name": "Cathedral", + "name": "Cathedral Building", "terms": "" }, "building/chapel": { - "name": "Chapel", + "name": "Chapel Building", "terms": "" }, "building/church": { - "name": "Church", + "name": "Church Building", "terms": "" }, + "building/college": { + "name": "College Building", + "terms": "university" + }, "building/commercial": { "name": "Commercial Building", "terms": "" @@ -114369,8 +55056,8 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "building/detached": { - "name": "Detached Home", - "terms": "" + "name": "Detached House", + "terms": "home,single,family,residence,dwelling" }, "building/dormitory": { "name": "Dormitory", @@ -114402,7 +55089,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "building/house": { "name": "House", - "terms": "" + "terms": "home,family,residence,dwelling" }, "building/hut": { "name": "Hut", @@ -114412,6 +55099,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Industrial Building", "terms": "" }, + "building/kindergarten": { + "name": "Preschool/Kindergarten Building", + "terms": "kindergarden,pre-school" + }, "building/public": { "name": "Public Building", "terms": "" @@ -114430,7 +55121,11 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "building/school": { "name": "School Building", - "terms": "" + "terms": "academy,elementary school,middle school,high school" + }, + "building/semidetached_house": { + "name": "Semi-Detached House", + "terms": "home,double,duplex,twin,family,residence,dwelling" }, "building/shed": { "name": "Shed", @@ -114446,7 +55141,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "building/terrace": { "name": "Row Houses", - "terms": "" + "terms": "home,terrace,brownstone,family,residence,dwelling" }, "building/train_station": { "name": "Train Station", @@ -114454,191 +55149,199 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "building/university": { "name": "University Building", - "terms": "" + "terms": "college" }, "building/warehouse": { "name": "Warehouse", "terms": "" }, + "craft": { + "name": "Craft", + "terms": "" + }, "craft/basket_maker": { "name": "Basket Maker", - "terms": "basket,basketry,basket maker,basket weaver" + "terms": "" }, "craft/beekeeper": { "name": "Beekeeper", - "terms": "bees,beekeeper,bee box" + "terms": "" }, "craft/blacksmith": { "name": "Blacksmith", - "terms": "blacksmith" + "terms": "" }, "craft/boatbuilder": { "name": "Boat Builder", - "terms": "boat builder" + "terms": "" }, "craft/bookbinder": { "name": "Bookbinder", - "terms": "bookbinder,book repair" + "terms": "book repair" }, "craft/brewery": { "name": "Brewery", - "terms": "brewery" + "terms": "beer,bier" }, "craft/carpenter": { "name": "Carpenter", - "terms": "carpenter,woodworker" + "terms": "woodworker" }, "craft/carpet_layer": { "name": "Carpet Layer", - "terms": "carpet layer" + "terms": "" }, "craft/caterer": { "name": "Caterer", - "terms": "Caterer,Catering" + "terms": "" }, "craft/clockmaker": { "name": "Clockmaker", - "terms": "clock,clockmaker,clock repair" + "terms": "" }, - "craft/confectionary": { - "name": "Confectionary", - "terms": "confectionary,sweets,candy" + "craft/confectionery": { + "name": "Confectionery", + "terms": "sweets,candy" }, "craft/dressmaker": { "name": "Dressmaker", - "terms": "dress,dressmaker" + "terms": "seamstress" }, "craft/electrician": { "name": "Electrician", - "terms": "electrician" + "terms": "power,wire" }, "craft/gardener": { "name": "Gardener", - "terms": "gardener,landscaper,grounds keeper" + "terms": "landscaper,grounds keeper" }, "craft/glaziery": { "name": "Glaziery", - "terms": "glass,glass foundry,stained-glass,window" + "terms": "glass,stained-glass,window" }, "craft/handicraft": { "name": "Handicraft", - "terms": "handicraft" + "terms": "" }, "craft/hvac": { "name": "HVAC", - "terms": "heating,ventilating,air-conditioning,air conditioning" + "terms": "heat*,vent*,air conditioning" }, "craft/insulator": { "name": "Insulator", - "terms": "insulation,insulator" + "terms": "" }, "craft/jeweler": { "name": "Jeweler", - "terms": "jeweler,gem,diamond" + "terms": "" }, "craft/key_cutter": { "name": "Key Cutter", - "terms": "key,key cutter" + "terms": "" }, "craft/locksmith": { "name": "Locksmith", - "terms": "locksmith,lock" + "terms": "" }, "craft/metal_construction": { "name": "Metal Construction", - "terms": "metal construction" + "terms": "" }, "craft/optician": { "name": "Optician", - "terms": "glasses,optician" + "terms": "" }, "craft/painter": { "name": "Painter", - "terms": "painter" + "terms": "" }, "craft/photographer": { "name": "Photographer", - "terms": "photographer" + "terms": "" }, "craft/photographic_laboratory": { "name": "Photographic Laboratory", - "terms": "photographic laboratory,film developer" + "terms": "film" }, "craft/plasterer": { "name": "Plasterer", - "terms": "plasterer" + "terms": "" }, "craft/plumber": { "name": "Plumber", - "terms": "pumber" + "terms": "pipe" }, "craft/pottery": { "name": "Pottery", - "terms": "pottery,potter" + "terms": "ceramic" }, "craft/rigger": { "name": "Rigger", - "terms": "rigger" + "terms": "" }, "craft/roofer": { "name": "Roofer", - "terms": "roofer" + "terms": "" }, "craft/saddler": { "name": "Saddler", - "terms": "saddler" + "terms": "" }, "craft/sailmaker": { "name": "Sailmaker", - "terms": "sailmaker" + "terms": "" }, "craft/sawmill": { "name": "Sawmill", - "terms": "sawmill,lumber" + "terms": "lumber" }, "craft/scaffolder": { "name": "Scaffolder", - "terms": "scaffolder" + "terms": "" }, "craft/sculpter": { "name": "Sculpter", - "terms": "sculpter" + "terms": "" }, "craft/shoemaker": { "name": "Shoemaker", - "terms": "shoe repair,shoemaker" + "terms": "cobbler" }, "craft/stonemason": { "name": "Stonemason", - "terms": "stonemason,masonry" + "terms": "masonry" }, "craft/sweep": { "name": "Chimney Sweep", - "terms": "sweep,chimney sweep" + "terms": "" }, "craft/tailor": { "name": "Tailor", - "terms": "tailor,clothes" + "terms": "clothes,suit" }, "craft/tiler": { "name": "Tiler", - "terms": "tiler" + "terms": "" }, "craft/tinsmith": { "name": "Tinsmith", - "terms": "tinsmith" + "terms": "" }, "craft/upholsterer": { "name": "Upholsterer", - "terms": "upholsterer" + "terms": "" }, "craft/watchmaker": { "name": "Watchmaker", - "terms": "watch,watchmaker,watch repair" + "terms": "" }, "craft/window_construction": { "name": "Window Construction", - "terms": "window,window maker,window construction" + "terms": "glass" + }, + "craft/winery": { + "name": "Winery", + "terms": "" }, "embankment": { "name": "Embankment", @@ -114646,7 +55349,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "emergency/ambulance_station": { "name": "Ambulance Station", - "terms": "" + "terms": "EMS,EMT,rescue" }, "emergency/fire_hydrant": { "name": "Fire Hydrant", @@ -114661,8 +55364,12 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "footway/crossing": { - "name": "Crossing", - "terms": "crosswalk,zebra crossing" + "name": "Street Crossing", + "terms": "" + }, + "footway/crosswalk": { + "name": "Pedestrian Crosswalk", + "terms": "zebra crossing" }, "footway/sidewalk": { "name": "Sidewalk", @@ -114682,7 +55389,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "golf/green": { "name": "Putting Green", - "terms": "putting green" + "terms": "" }, "golf/hole": { "name": "Golf Hole", @@ -114710,23 +55417,31 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "highway/bridleway": { "name": "Bridle Path", - "terms": "bridleway,equestrian trail,horse riding path,bridle road,horse trail" + "terms": "bridleway,equestrian,horse" }, "highway/bus_stop": { "name": "Bus Stop", "terms": "" }, + "highway/corridor": { + "name": "Indoor Corridor", + "terms": "gallery,hall,hallway,indoor,passage,passageway" + }, "highway/crossing": { - "name": "Crossing", - "terms": "crosswalk,zebra crossing" + "name": "Street Crossing", + "terms": "" + }, + "highway/crosswalk": { + "name": "Pedestrian Crosswalk", + "terms": "zebra crossing" }, "highway/cycleway": { "name": "Cycle Path", - "terms": "" + "terms": "bike" }, "highway/footway": { "name": "Foot Path", - "terms": "beaten path,boulevard,clearing,course,cut*,drag*,footpath,highway,lane,line,orbit,passage,pathway,rail,rails,road,roadway,route,street,thoroughfare,trackway,trail,trajectory,walk" + "terms": "hike,hiking,trackway,trail,walk" }, "highway/living_street": { "name": "Living Street", @@ -114741,7 +55456,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "highway/motorway_junction": { - "name": "Motorway Junction", + "name": "Motorway Junction / Exit", "terms": "" }, "highway/motorway_link": { @@ -114750,10 +55465,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "highway/path": { "name": "Path", - "terms": "" + "terms": "hike,hiking,trackway,trail,walk" }, "highway/pedestrian": { - "name": "Pedestrian", + "name": "Pedestrian Street", "terms": "" }, "highway/primary": { @@ -114764,13 +55479,17 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Primary Link", "terms": "ramp,on ramp,off ramp" }, + "highway/raceway": { + "name": "Motor Raceway", + "terms": "auto*,race*,nascar" + }, "highway/residential": { "name": "Residential Road", "terms": "" }, "highway/rest_area": { "name": "Rest Area", - "terms": "rest stop,turnout,lay-by" + "terms": "rest stop" }, "highway/road": { "name": "Unknown Road", @@ -114820,6 +55539,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Stop Sign", "terms": "stop sign" }, + "highway/street_lamp": { + "name": "Street Lamp", + "terms": "streetlight,street light,lamp,light,gaslight" + }, "highway/tertiary": { "name": "Tertiary Road", "terms": "" @@ -114830,7 +55553,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "highway/track": { "name": "Track", - "terms": "" + "terms": "woods road,fire road" }, "highway/traffic_signals": { "name": "Traffic Signals", @@ -114846,7 +55569,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "highway/turning_circle": { "name": "Turning Circle", - "terms": "" + "terms": "cul-de-sac" }, "highway/unclassified": { "name": "Unclassified Road", @@ -114888,13 +55611,17 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Wayside Shrine", "terms": "" }, + "junction": { + "name": "Junction", + "terms": "" + }, "landuse": { - "name": "Landuse", + "name": "Land Use", "terms": "" }, "landuse/allotments": { - "name": "Allotments", - "terms": "" + "name": "Community Garden", + "terms": "allotment,garden" }, "landuse/basin": { "name": "Basin", @@ -114909,7 +55636,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "landuse/commercial": { - "name": "Commercial", + "name": "Commercial Area", "terms": "" }, "landuse/construction": { @@ -114917,7 +55644,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "landuse/farm": { - "name": "Farm", + "name": "Farmland", "terms": "" }, "landuse/farmland": { @@ -114930,6 +55657,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "landuse/forest": { "name": "Forest", + "terms": "tree" + }, + "landuse/garages": { + "name": "Garages", "terms": "" }, "landuse/grass": { @@ -114937,7 +55668,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "landuse/industrial": { - "name": "Industrial", + "name": "Industrial Area", "terms": "" }, "landuse/landfill": { @@ -114949,23 +55680,27 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "landuse/military": { - "name": "Military", + "name": "Military Area", "terms": "" }, "landuse/orchard": { "name": "Orchard", "terms": "" }, + "landuse/plant_nursery": { + "name": "Plant Nursery", + "terms": "vivero" + }, "landuse/quarry": { "name": "Quarry", "terms": "" }, "landuse/residential": { - "name": "Residential", + "name": "Residential Area", "terms": "" }, "landuse/retail": { - "name": "Retail", + "name": "Retail Area", "terms": "" }, "landuse/vineyard": { @@ -114976,6 +55711,14 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Leisure", "terms": "" }, + "leisure/adult_gaming_centre": { + "name": "Adult Gaming Center", + "terms": "gambling,slot machine" + }, + "leisure/bowling_alley": { + "name": "Bowling Alley", + "terms": "" + }, "leisure/common": { "name": "Common", "terms": "open space" @@ -115002,7 +55745,11 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "leisure/marina": { "name": "Marina", - "terms": "" + "terms": "boat" + }, + "leisure/nature_reserve": { + "name": "Nature Reserve", + "terms": "protected,wildlife" }, "leisure/park": { "name": "Park", @@ -115010,11 +55757,11 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "leisure/picnic_table": { "name": "Picnic Table", - "terms": "bench,table" + "terms": "bench" }, "leisure/pitch": { "name": "Sport Pitch", - "terms": "" + "terms": "field" }, "leisure/pitch/american_football": { "name": "American Football Field", @@ -115028,6 +55775,14 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Basketball Court", "terms": "" }, + "leisure/pitch/rugby_league": { + "name": "Rugby League Field", + "terms": "" + }, + "leisure/pitch/rugby_union": { + "name": "Rugby Union Field", + "terms": "" + }, "leisure/pitch/skateboard": { "name": "Skate Park", "terms": "" @@ -115048,12 +55803,16 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Playground", "terms": "jungle gym,play area" }, + "leisure/running_track": { + "name": "Running Track", + "terms": "" + }, "leisure/slipway": { "name": "Slipway", - "terms": "" + "terms": "boat launch,boat ramp" }, "leisure/sports_center": { - "name": "Sports Center", + "name": "Sports Center / Gym", "terms": "gym" }, "leisure/stadium": { @@ -115065,7 +55824,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "leisure/track": { - "name": "Race Track", + "name": "Racetrack (non-Motorsport)", "terms": "" }, "line": { @@ -115076,6 +55835,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Man Made", "terms": "" }, + "man_made/adit": { + "name": "Adit", + "terms": "entrance,underground,mine,cave" + }, "man_made/breakwater": { "name": "Breakwater", "terms": "" @@ -115096,10 +55859,18 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Lighthouse", "terms": "" }, + "man_made/mast": { + "name": "Radio Mast", + "terms": "broadcast tower,cell phone tower,cell tower,guyed tower,mobile phone tower,radio tower,television tower,transmission mast,transmission tower,tv tower" + }, "man_made/observation": { "name": "Observation Tower", "terms": "lookout tower,fire tower" }, + "man_made/petroleum_well": { + "name": "Oil Well", + "terms": "drilling rig,oil derrick,oil drill,oil horse,oil rig,oil pump,petroleum well,pumpjack" + }, "man_made/pier": { "name": "Pier", "terms": "" @@ -115108,6 +55879,14 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Pipeline", "terms": "" }, + "man_made/silo": { + "name": "Silo", + "terms": "grain,corn,wheat" + }, + "man_made/storage_tank": { + "name": "Storage Tank", + "terms": "water,oil,gas,petrol" + }, "man_made/survey_point": { "name": "Survey Point", "terms": "" @@ -115118,14 +55897,14 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "man_made/wastewater_plant": { "name": "Wastewater Plant", - "terms": "sewage works,sewage treatment plant,water treatment plant,reclamation plant" + "terms": "sewage*,water treatment plant,reclamation plant" }, "man_made/water_tower": { "name": "Water Tower", "terms": "" }, "man_made/water_well": { - "name": "Water well", + "name": "Water Well", "terms": "" }, "man_made/water_works": { @@ -115144,10 +55923,30 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Bunker", "terms": "" }, + "military/checkpoint": { + "name": "Checkpoint", + "terms": "" + }, + "military/danger_area": { + "name": "Danger Area", + "terms": "" + }, + "military/naval_base": { + "name": "Naval Base", + "terms": "" + }, + "military/obstacle_course": { + "name": "Obstacle Course", + "terms": "" + }, "military/range": { "name": "Military Range", "terms": "" }, + "military/training_area": { + "name": "Training area", + "terms": "" + }, "natural": { "name": "Natural", "terms": "" @@ -115160,6 +55959,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Beach", "terms": "" }, + "natural/cave_entrance": { + "name": "Cave Entrance", + "terms": "cavern,hollow,grotto,shelter,cavity" + }, "natural/cliff": { "name": "Cliff", "terms": "" @@ -115188,13 +55991,17 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Peak", "terms": "acme,aiguille,alp,climax,crest,crown,hill,mount,mountain,pinnacle,summit,tip,top" }, + "natural/saddle": { + "name": "Saddle", + "terms": "pass,mountain pass,top" + }, "natural/scree": { "name": "Scree", "terms": "loose rocks" }, "natural/scrub": { "name": "Scrub", - "terms": "" + "terms": "bush,shrubs" }, "natural/spring": { "name": "Spring", @@ -115204,6 +56011,14 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Tree", "terms": "" }, + "natural/tree_row": { + "name": "Tree row", + "terms": "" + }, + "natural/volcano": { + "name": "Volcano", + "terms": "mountain,crater" + }, "natural/water": { "name": "Water", "terms": "" @@ -115226,7 +56041,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "natural/wood": { "name": "Wood", - "terms": "" + "terms": "tree" }, "office": { "name": "Office", @@ -115254,7 +56069,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "office/employment_agency": { "name": "Employment Agency", - "terms": "" + "terms": "job" }, "office/estate_agent": { "name": "Real Estate Office", @@ -115324,6 +56139,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "City", "terms": "" }, + "place/farm": { + "name": "Farm", + "terms": "" + }, "place/hamlet": { "name": "Hamlet", "terms": "" @@ -115384,6 +56203,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Substation", "terms": "" }, + "power/substation": { + "name": "Substation", + "terms": "" + }, "power/tower": { "name": "High-Voltage Tower", "terms": "" @@ -115421,8 +56244,8 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "break,interrupt,rest,wait,interruption" }, "railway/level_crossing": { - "name": "Level Crossing", - "terms": "crossing,railroad crossing,railway crossing,grade crossing,road through railroad,train crossing" + "name": "Railway Crossing", + "terms": "crossing,railroad crossing,level crossing,grade crossing,road through railroad,train crossing" }, "railway/monorail": { "name": "Monorail", @@ -115460,6 +56283,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Relation", "terms": "" }, + "roundabout": { + "name": "Roundabout", + "terms": "" + }, "route/ferry": { "name": "Ferry Route", "terms": "" @@ -115470,20 +56297,44 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "shop/alcohol": { "name": "Liquor Store", - "terms": "alcohol" + "terms": "alcohol,beer,booze,wine" + }, + "shop/anime": { + "name": "Anime Shop", + "terms": "" + }, + "shop/antiques": { + "name": "Antiques Shop", + "terms": "" }, "shop/art": { - "name": "Art Shop", - "terms": "art store,art gallery" + "name": "Art Gallery", + "terms": "" + }, + "shop/baby_goods": { + "name": "Baby Goods Store", + "terms": "" + }, + "shop/bag": { + "name": "Bag/Luggage Store", + "terms": "handbag,purse" }, "shop/bakery": { "name": "Bakery", "terms": "" }, + "shop/bathroom_furnishing": { + "name": "Bathroom Furnishing Store", + "terms": "" + }, "shop/beauty": { "name": "Beauty Shop", "terms": "nail spa,spa,salon,tanning" }, + "shop/bed": { + "name": "Bedding/Mattress Store", + "terms": "" + }, "shop/beverages": { "name": "Beverage Store", "terms": "" @@ -115497,7 +56348,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "shop/books": { - "name": "Bookstore", + "name": "Book Store", "terms": "" }, "shop/boutique": { @@ -115506,24 +56357,40 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "shop/butcher": { "name": "Butcher", + "terms": "meat" + }, + "shop/candles": { + "name": "Candle Shop", "terms": "" }, "shop/car": { "name": "Car Dealership", - "terms": "" + "terms": "auto" }, "shop/car_parts": { "name": "Car Parts Store", - "terms": "" + "terms": "auto" }, "shop/car_repair": { "name": "Car Repair Shop", + "terms": "auto" + }, + "shop/carpet": { + "name": "Carpet Store", + "terms": "rug" + }, + "shop/cheese": { + "name": "Cheese Store", "terms": "" }, "shop/chemist": { "name": "Chemist", "terms": "" }, + "shop/chocolate": { + "name": "Chocolate Store", + "terms": "" + }, "shop/clothes": { "name": "Clothing Store", "terms": "" @@ -115533,16 +56400,36 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "shop/confectionery": { - "name": "Confectionery", + "name": "Candy Store", "terms": "" }, "shop/convenience": { "name": "Convenience Store", "terms": "" }, + "shop/copyshop": { + "name": "Copy Store", + "terms": "" + }, + "shop/cosmetics": { + "name": "Cosmetics Store", + "terms": "" + }, + "shop/craft": { + "name": "Arts and Crafts Store", + "terms": "" + }, + "shop/curtain": { + "name": "Curtain Store", + "terms": "drape*,window" + }, + "shop/dairy": { + "name": "Dairy Store", + "terms": "milk,egg,cheese" + }, "shop/deli": { "name": "Deli", - "terms": "" + "terms": "lunch,meat,sandwich" }, "shop/department_store": { "name": "Department Store", @@ -115553,36 +56440,56 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "terms": "" }, "shop/dry_cleaning": { - "name": "Dry Cleaners", + "name": "Dry Cleaner", "terms": "" }, "shop/electronics": { "name": "Electronics Store", - "terms": "" + "terms": "appliance,audio,computer,tv" + }, + "shop/erotic": { + "name": "Erotic Store", + "terms": "sex,porn" + }, + "shop/fabric": { + "name": "Fabric Store", + "terms": "sew" }, "shop/farm": { "name": "Produce Stand", "terms": "farm shop,farm stand" }, + "shop/fashion": { + "name": "Fashion Store", + "terms": "" + }, "shop/fishmonger": { "name": "Fishmonger", "terms": "" }, "shop/florist": { "name": "Florist", + "terms": "flower" + }, + "shop/frame": { + "name": "Framing Shop", "terms": "" }, "shop/funeral_directors": { "name": "Funeral Home", - "terms": "undertaker,funeral parlour,funeral parlor,memorial home" + "terms": "undertaker,memorial home" + }, + "shop/furnace": { + "name": "Furnace Store", + "terms": "oven,stove" }, "shop/furniture": { "name": "Furniture Store", - "terms": "" + "terms": "chair,sofa,table" }, "shop/garden_centre": { "name": "Garden Center", - "terms": "garden centre" + "terms": "landscape,mulch,shrub,tree" }, "shop/gift": { "name": "Gift Shop", @@ -115590,7 +56497,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "shop/greengrocer": { "name": "Greengrocer", - "terms": "" + "terms": "fruit,vegetable" }, "shop/hairdresser": { "name": "Hairdresser", @@ -115600,25 +56507,49 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Hardware Store", "terms": "" }, + "shop/hearing_aids": { + "name": "Hearing Aids Store", + "terms": "" + }, + "shop/herbalist": { + "name": "Herbalist", + "terms": "" + }, "shop/hifi": { "name": "Hifi Store", + "terms": "stereo,video" + }, + "shop/houseware": { + "name": "Houseware Store", + "terms": "home,household" + }, + "shop/interior_decoration": { + "name": "Interior Decoration Store", "terms": "" }, "shop/jewelry": { "name": "Jeweler", - "terms": "" + "terms": "diamond,gem,ring" }, "shop/kiosk": { - "name": "Kiosk", + "name": "News Kiosk", + "terms": "" + }, + "shop/kitchen": { + "name": "Kitchen Design Store", "terms": "" }, "shop/laundry": { "name": "Laundry", "terms": "" }, + "shop/leather": { + "name": "Leather Store", + "terms": "" + }, "shop/locksmith": { "name": "Locksmith", - "terms": "keys" + "terms": "key,lockpick" }, "shop/lottery": { "name": "Lottery Shop", @@ -115628,42 +56559,90 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Mall", "terms": "" }, + "shop/massage": { + "name": "Massage Shop", + "terms": "" + }, + "shop/medical_supply": { + "name": "Medical Supply Store", + "terms": "" + }, "shop/mobile_phone": { "name": "Mobile Phone Store", "terms": "" }, + "shop/money_lender": { + "name": "Money Lender", + "terms": "" + }, "shop/motorcycle": { "name": "Motorcycle Dealership", "terms": "" }, "shop/music": { "name": "Music Store", + "terms": "CD,vinyl" + }, + "shop/musical_instrument": { + "name": "Musical Instrument Store", "terms": "" }, "shop/newsagent": { - "name": "Newsagent", + "name": "Newspaper/Magazine Shop", "terms": "" }, "shop/optician": { "name": "Optician", + "terms": "eye,glasses" + }, + "shop/organic": { + "name": "Organic Goods Store", "terms": "" }, "shop/outdoor": { - "name": "Outdoor Store", + "name": "Outdoors Store", + "terms": "camping,climbing,hiking" + }, + "shop/paint": { + "name": "Paint Store", + "terms": "" + }, + "shop/pawnbroker": { + "name": "Pawn Shop", "terms": "" }, "shop/pet": { "name": "Pet Store", - "terms": "" + "terms": "cat,dog,fish" }, "shop/photo": { "name": "Photography Store", + "terms": "camera,film" + }, + "shop/pyrotechnics": { + "name": "Fireworks Store", + "terms": "" + }, + "shop/radiotechnics": { + "name": "Radio/Electronic Component Store", + "terms": "" + }, + "shop/religion": { + "name": "Religious Store", + "terms": "" + }, + "shop/scuba_diving": { + "name": "Scuba Diving Shop", "terms": "" }, "shop/seafood": { "name": "Seafood Shop", "terms": "fishmonger" }, + "shop/second_hand": { + "name": "Consignment/Thrift Store", + "terms": "secondhand,second hand,resale,thrift,used" + }, "shop/shoes": { "name": "Shoe Store", "terms": "" @@ -115674,11 +56653,31 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "shop/stationery": { "name": "Stationery Store", - "terms": "" + "terms": "card,paper" }, "shop/supermarket": { "name": "Supermarket", - "terms": "bazaar,boutique,chain,co-op,cut-rate store,discount store,five-and-dime,flea market,galleria,grocery store,mall,mart,outlet,outlet store,shop,shopping center,shopping centre,shopping plaza,stand,store,supermarket,thrift shop" + "terms": "grocery,store,shop" + }, + "shop/tailor": { + "name": "Tailor", + "terms": "clothes,suit" + }, + "shop/tattoo": { + "name": "Tattoo Parlor", + "terms": "" + }, + "shop/tea": { + "name": "Tea Store", + "terms": "" + }, + "shop/ticket": { + "name": "Ticket Seller", + "terms": "" + }, + "shop/tobacco": { + "name": "Tobacco Shop", + "terms": "" }, "shop/toys": { "name": "Toy Store", @@ -115696,17 +56695,37 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Vacant Shop", "terms": "" }, + "shop/vacuum_cleaner": { + "name": "Vacuum Cleaner Store", + "terms": "" + }, "shop/variety_store": { "name": "Variety Store", "terms": "" }, "shop/video": { "name": "Video Store", + "terms": "DVD" + }, + "shop/video_games": { + "name": "Video Game Store", + "terms": "" + }, + "shop/water_sports": { + "name": "Watersport/Swim Shop", + "terms": "" + }, + "shop/weapons": { + "name": "Weapon Shop", + "terms": "ammo,gun,knife,knives" + }, + "shop/window_blind": { + "name": "Window Blind Store", "terms": "" }, "shop/wine": { "name": "Wine Shop", - "terms": "winery" + "terms": "" }, "tourism": { "name": "Tourism", @@ -115726,11 +56745,11 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "tourism/camp_site": { "name": "Camp Site", - "terms": "camping" + "terms": "Tent" }, "tourism/caravan_site": { "name": "RV Park", - "terms": "" + "terms": "Motor Home,Camper" }, "tourism/chalet": { "name": "Chalet", @@ -115738,7 +56757,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "tourism/guest_house": { "name": "Guest House", - "terms": "B&B,Bed & Breakfast,Bed and Breakfast" + "terms": "B&B,Bed and Breakfast" }, "tourism/hostel": { "name": "Hostel", @@ -115758,11 +56777,11 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "tourism/museum": { "name": "Museum", - "terms": "exhibition,exhibits archive,foundation,gallery,hall,institution,library,menagerie,repository,salon,storehouse,treasury,vault" + "terms": "exhibition,foundation,gallery,hall,institution" }, "tourism/picnic_site": { "name": "Picnic Site", - "terms": "" + "terms": "camp" }, "tourism/theme_park": { "name": "Theme Park", @@ -115776,6 +56795,22 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Zoo", "terms": "" }, + "traffic_calming/bump": { + "name": "Speed Bump", + "terms": "speed hump" + }, + "traffic_calming/hump": { + "name": "Speed Hump", + "terms": "speed bump" + }, + "traffic_calming/rumble_strip": { + "name": "Rumble Strip", + "terms": "sleeper lines,audible lines,growlers" + }, + "traffic_calming/table": { + "name": "Raised Pedestrian Crossing", + "terms": "speed table,flat top hump" + }, "type/boundary": { "name": "Boundary", "terms": "" @@ -115792,6 +56827,34 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Restriction", "terms": "" }, + "type/restriction/no_left_turn": { + "name": "No Left Turn", + "terms": "" + }, + "type/restriction/no_right_turn": { + "name": "No Right Turn", + "terms": "" + }, + "type/restriction/no_straight_on": { + "name": "No Straight On", + "terms": "" + }, + "type/restriction/no_u_turn": { + "name": "No U-turn", + "terms": "" + }, + "type/restriction/only_left_turn": { + "name": "Left Turn Only", + "terms": "" + }, + "type/restriction/only_right_turn": { + "name": "Right Turn Only", + "terms": "" + }, + "type/restriction/only_straight_on": { + "name": "No Turns", + "terms": "" + }, "type/route": { "name": "Route", "terms": "" @@ -115868,6 +56931,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Drain", "terms": "" }, + "waterway/fuel": { + "name": "Marine Fuel Station", + "terms": "petrol,gas,diesel,boat" + }, "waterway/river": { "name": "River", "terms": "beck,branch,brook,course,creek,estuary,rill,rivulet,run,runnel,stream,tributary,watercourse" @@ -115876,6 +56943,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "name": "Riverbank", "terms": "" }, + "waterway/sanitary_dump_station": { + "name": "Marine Toilet Disposal", + "terms": "Boat,Watercraft,Sanitary,Dump Station,Pumpout,Pump out,Elsan,CDP,CTDP,Chemical Toilet" + }, "waterway/stream": { "name": "Stream", "terms": "beck,branch,brook,burn,course,creek,current,drift,flood,flow,freshet,race,rill,rindle,rivulet,run,runnel,rush,spate,spritz,surge,tide,torrent,tributary,watercourse" @@ -116322,9 +57393,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "ENEOS": { "count": 736 }, - "Stacja paliw": { - "count": 94 - }, "Bharat Petroleum": { "count": 64 }, @@ -116735,7 +57803,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," } }, "Taco Bell": { - "count": 1423 + "count": 1423, + "tags": { + "cuisine": "mexican" + } }, "Pizza Nova": { "count": 63 @@ -116752,9 +57823,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Mr. Sub": { "count": 103 }, - "Kebab": { - "count": 182 - }, "Макдоналдс": { "count": 324, "tags": { @@ -116764,9 +57832,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Asia Imbiss": { "count": 111 }, - "Imbiss": { - "count": 199 - }, "Chipotle": { "count": 290, "tags": { @@ -116836,7 +57901,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," } }, "Panda Express": { - "count": 238 + "count": 238, + "tags": { + "cuisine": "chinese" + } }, "Whataburger": { "count": 364 @@ -116892,7 +57960,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," }, "restaurant": { "Pizza Hut": { - "count": 1180 + "count": 1180, + "tags": { + "cuisine": "pizza" + } }, "Little Chef": { "count": 64 @@ -116966,12 +58037,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Hirschen": { "count": 79 }, - "Papa John's": { - "count": 67, - "tags": { - "cuisine": "pizza" - } - }, "Denny's": { "count": 450 }, @@ -117281,9 +58346,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "ジョナサン": { "count": 59 }, - "Arby's": { - "count": 51 - }, "Longhorn Steakhouse": { "count": 66 } @@ -117850,7 +58912,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Security Bank": { "count": 78 }, - "Millenium Bank": { + "Millenium": { "count": 60 }, "Bankia": { @@ -118345,9 +59407,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Second Cup": { "count": 193 }, - "Eisdiele": { - "count": 73 - }, "Dunkin Donuts": { "count": 428, "tags": { @@ -118443,10 +59502,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "count": 547 }, "Lidl": { - "count": 6208 + "count": 7130 }, - "EDEKA": { - "count": 506 + "Edeka": { + "count": 2293 }, "Coles": { "count": 400 @@ -118455,7 +59514,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "count": 315 }, "Coop": { - "count": 1906 + "count": 2100 }, "Tesco": { "count": 1297 @@ -118502,11 +59561,8 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Netto": { "count": 4379 }, - "REWE": { - "count": 1474 - }, "Rewe": { - "count": 1171 + "count": 2645 }, "Aldi Süd": { "count": 594 @@ -118523,9 +59579,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Kiwi": { "count": 167 }, - "Edeka": { - "count": 1787 - }, "Pick n Pay": { "count": 241 }, @@ -118542,7 +59595,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "count": 258 }, "Spar": { - "count": 2100 + "count": 2386 }, "Hofer": { "count": 442 @@ -118550,9 +59603,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "M-Preis": { "count": 76 }, - "LIDL": { - "count": 922 - }, "tegut": { "count": 210 }, @@ -118625,9 +59675,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Hoogvliet": { "count": 53 }, - "COOP": { - "count": 194 - }, "Food Basics": { "count": 75 }, @@ -118755,7 +59802,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "count": 80 }, "Whole Foods": { - "count": 210 + "count": 210, + "tags": { + "shop": "supermarket" + } }, "Pam": { "count": 56 @@ -118874,8 +59924,8 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Unimarc": { "count": 177 }, - "Co-operative Food": { - "count": 59 + "The Co-operative Food": { + "count": 190 }, "Santa Isabel": { "count": 128 @@ -118958,9 +60008,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Carrefour Contact": { "count": 83 }, - "SPAR": { - "count": 286 - }, "No Frills": { "count": 105 }, @@ -118976,9 +60023,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Biedronka": { "count": 1335 }, - "The Co-operative Food": { - "count": 131 - }, "Eurospin": { "count": 155 }, @@ -119200,7 +60244,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "count": 255 }, "Spar": { - "count": 922 + "count": 1119 }, "McColl's": { "count": 100 @@ -119230,7 +60274,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "count": 135 }, "Coop": { - "count": 538 + "count": 678 }, "Sale": { "count": 80 @@ -119274,12 +60318,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Valintatalo": { "count": 62 }, - "SPAR": { - "count": 197 - }, - "COOP": { - "count": 140 - }, "Casino": { "count": 90 }, @@ -119415,9 +60453,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Гастроном": { "count": 152 }, - "Sklep spożywczy": { - "count": 318 - }, "Centra": { "count": 111 }, @@ -119484,6 +60519,9 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Kiosk": { "count": 55 }, + "Sklep spożywczy": { + "count": 130 + }, "24 часа": { "count": 58 }, @@ -119523,9 +60561,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "เซเว่นอีเลฟเว่น": { "count": 185 }, - "Spożywczy": { - "count": 78 - }, "Delikatesy Centrum": { "count": 53 }, @@ -119687,14 +60722,11 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "count": 83 }, "Kwik Fit": { - "count": 75 + "count": 128 }, "ATU": { "count": 261 }, - "Kwik-Fit": { - "count": 53 - }, "Midas": { "count": 202 }, @@ -119743,9 +60775,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Firestone": { "count": 88 }, - "AutoZone": { - "count": 82 - }, "Автосервис": { "count": 361 }, @@ -120379,9 +61408,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Backwerk": { "count": 95 }, - "Bäcker": { - "count": 68 - }, "Schäfer's": { "count": 51 }, @@ -120403,9 +61429,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Хлеб": { "count": 89 }, - "Piekarnia": { - "count": 62 - }, "Пекарня": { "count": 52 }, @@ -120692,9 +61715,6 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," "Стиль": { "count": 51 }, - "Fryzjer": { - "count": 56 - }, "Franck Provost": { "count": 70 }, @@ -120722,5 +61742,186 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081]," } } } - } + }, + "addressFormats": [ + { + "format": [ + [ + "housenumber", + "street" + ], + [ + "city", + "postcode" + ] + ] + }, + { + "countryCodes": [ + "gb" + ], + "format": [ + [ + "housename" + ], + [ + "housenumber", + "street" + ], + [ + "city", + "postcode" + ] + ] + }, + { + "countryCodes": [ + "ie" + ], + "format": [ + [ + "housename" + ], + [ + "housenumber", + "street" + ], + [ + "city" + ], + [ + "postcode" + ] + ] + }, + { + "countryCodes": [ + "ad", + "at", + "ba", + "be", + "ch", + "cz", + "de", + "dk", + "es", + "fi", + "gr", + "hr", + "is", + "it", + "li", + "nl", + "no", + "pl", + "pt", + "se", + "si", + "sk", + "sm", + "va" + ], + "format": [ + [ + "street", + "housenumber" + ], + [ + "postcode", + "city" + ] + ] + }, + { + "countryCodes": [ + "fr", + "lu", + "mo" + ], + "format": [ + [ + "housenumber", + "street" + ], + [ + "postcode", + "city" + ] + ] + }, + { + "countryCodes": [ + "br" + ], + "format": [ + [ + "street" + ], + [ + "housenumber", + "suburb" + ], + [ + "city", + "postcode" + ] + ] + }, + { + "countryCodes": [ + "vn" + ], + "format": [ + [ + "housenumber", + "street" + ], + [ + "subdistrict" + ], + [ + "district" + ], + [ + "city" + ], + [ + "province", + "postcode" + ] + ] + }, + { + "countryCodes": [ + "us" + ], + "format": [ + [ + "housenumber", + "street" + ], + [ + "city", + "state", + "postcode" + ] + ] + }, + { + "countryCodes": [ + "ca" + ], + "format": [ + [ + "housenumber", + "street" + ], + [ + "city", + "province", + "postcode" + ] + ] + } + ] }; \ No newline at end of file