From f3ded5656eae5115f40b94557ddc8617bfd6b8f0 Mon Sep 17 00:00:00 2001 From: Jonatas Walker Date: Tue, 21 Feb 2017 09:00:12 -0300 Subject: [PATCH] Release v2.5.0 --- build/ol3-geocoder-debug.js | 23 +++++++---------------- build/ol3-geocoder.css | 6 +++--- build/ol3-geocoder.js | 8 ++++---- build/ol3-geocoder.js.map | 2 +- build/ol3-geocoder.min.css | 6 +++--- package.json | 4 ++-- 6 files changed, 20 insertions(+), 29 deletions(-) diff --git a/build/ol3-geocoder-debug.js b/build/ol3-geocoder-debug.js index be4efff..a1e12fa 100644 --- a/build/ol3-geocoder-debug.js +++ b/build/ol3-geocoder-debug.js @@ -1,8 +1,8 @@ /*! - * ol3-geocoder - v2.4.1 - * A geocoder extension for OpenLayers 3. + * ol3-geocoder - v2.5.0 + * A geocoder extension for OpenLayers. * https://github.com/jonataswalker/ol3-geocoder - * Built: Fri Dec 30 2016 09:33:16 GMT-0200 (BRST) + * Built: Tue Feb 21 2017 08:59:29 GMT-0300 (BRT) */ (function (global, factory) { @@ -205,20 +205,9 @@ var utils = { flyTo: function flyTo(map, coord, duration, resolution) { resolution = resolution || 2.388657133911758; duration = duration || 500; - var view = map.getView(); - var pan = ol.animation.pan({ - duration: duration, - source: view.getCenter() - }); - var zoom = ol.animation.zoom({ - duration: duration, - resolution: view.getResolution() - }); - - map.beforeRender(pan, zoom); - view.setCenter(coord); - view.setResolution(resolution); + view.animate({ duration: duration, resolution: resolution }, + { duration: duration, center: coord }); }, randomId: function randomId(prefix) { var id = this.now().toString(36); @@ -1263,6 +1252,8 @@ var Base = (function (superclass) { if (!(this instanceof Base)) { return new Base(); } utils.assert(typeof type === 'string', '@param `type` should be string!'); + utils.assert(type === controlType.NOMINATIM || type === controlType.REVERSE, + ("@param 'type' should be '" + (controlType.NOMINATIM) + "' or \n '" + (controlType.REVERSE) + "'!")); utils.assert(typeof options === 'object', '@param `options` should be object!'); diff --git a/build/ol3-geocoder.css b/build/ol3-geocoder.css index 7bb38c4..9854da9 100644 --- a/build/ol3-geocoder.css +++ b/build/ol3-geocoder.css @@ -1,8 +1,8 @@ /*! - * ol3-geocoder - v2.4.1 - * A geocoder extension for OpenLayers 3. + * ol3-geocoder - v2.5.0 + * A geocoder extension for OpenLayers. * https://github.com/jonataswalker/ol3-geocoder - * Built: Fri Dec 30 2016 09:33:20 GMT-0200 (BRST) + * Built: Tue Feb 21 2017 08:59:32 GMT-0300 (BRT) */ .ol-geocoder.gcd-gl-container { position: absolute; diff --git a/build/ol3-geocoder.js b/build/ol3-geocoder.js index f289450..b34f7a9 100644 --- a/build/ol3-geocoder.js +++ b/build/ol3-geocoder.js @@ -1,8 +1,8 @@ /*! - * ol3-geocoder - v2.4.1 - * A geocoder extension for OpenLayers 3. + * ol3-geocoder - v2.5.0 + * A geocoder extension for OpenLayers. * https://github.com/jonataswalker/ol3-geocoder - * Built: Fri Dec 30 2016 09:33:16 GMT-0200 (BRST) + * Built: Tue Feb 21 2017 08:59:29 GMT-0300 (BRT) */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Geocoder=t()}(this,function(){"use strict";var e="gcd-input-query",t="gcd-input-reset",s={namespace:"ol-geocoder",spin:"gcd-pseudo-rotate",hidden:"gcd-hidden",country:"gcd-country",city:"gcd-city",road:"gcd-road",olControl:"ol-control",glass:{container:"gcd-gl-container",control:"gcd-gl-control",button:"gcd-gl-btn",input:"gcd-gl-input",expanded:"gcd-gl-expanded",reset:"gcd-gl-reset",result:"gcd-gl-result"},inputText:{container:"gcd-txt-container",control:"gcd-txt-control",input:"gcd-txt-input",reset:"gcd-txt-reset",icon:"gcd-txt-glass",result:"gcd-txt-result"}},n={inputQueryId:e,inputResetId:t,cssClasses:s},r=Object.freeze({inputQueryId:e,inputResetId:t,cssClasses:s,default:n}),a={ADDRESSCHOSEN:"addresschosen"},o={NOMINATIM:"nominatim",REVERSE:"reverse"},i={GLASS:"glass-button",INPUT:"text-input"},l=r,c=[new ol.style.Style({image:new ol.style.Icon({anchor:[.5,1],scale:.7,src:"//cdn.rawgit.com/jonataswalker/map-utils/master/images/marker.png"})})],u={OSM:"osm",MAPQUEST:"mapquest",GOOGLE:"google",PHOTON:"photon",BING:"bing",PELIAS:"pelias"},d={provider:u.OSM,placeholder:"Search for an address",featureStyle:c,targetType:i.GLASS,lang:"en-US",limit:5,keepOpen:!1,preventDefault:!1,autoComplete:!1,autoCompleteMinLength:2,debug:!1},p={toQueryString:function(e){var t=this;return Object.keys(e).reduce(function(s,n){return s.push("object"==typeof e[n]?t.toQueryString(e[n]):encodeURIComponent(n)+"="+encodeURIComponent(e[n])),s},[]).join("&")},encodeUrlXhr:function(e,t){if(t&&"object"==typeof t){var s=this.toQueryString(t);e+=(/\?/.test(e)?"&":"?")+s}return e},json:function(e,t){var s=new XMLHttpRequest,n="",r="",a={},o=function(){200===s.status&&a.ready.call(void 0,JSON.parse(s.response))},i=function(){console.error("Cannot XHR "+JSON.stringify(e))};return"object"==typeof e?(n=e.url,t=e.data,r=e.data_type||"json"):n=e,n=this.encodeUrlXhr(n,t),"jsonp"===r?this.jsonp(n,e.callbackName,function(e){a.ready.call(void 0,e)}):(s.open("GET",n,!0),s.setRequestHeader("Accept","application/json"),s.onload=o,s.onerror=i,s.send(null)),{when:function(e){a.ready=e.ready}}},jsonp:function(e,t,s){var n=document.head,r=document.createElement("script"),a="f"+Math.round(Math.random()*Date.now());r.setAttribute("src",e+(e.indexOf("?")>0?"&":"?")+t+"="+a),window[a]=function(e){window[a]=void 0,setTimeout(function(){n.removeChild(r)},0),s(e)},n.appendChild(r)},now:function(){if("performance"in window==!1&&(window.performance={}),Date.now=Date.now||function(){return(new Date).getTime()},"now"in window.performance==!1){var e=Date.now();performance.timing&&performance.timing.navigationStart&&(e=performance.timing.navigationStart),window.performance.now=function(){return Date.now()-e}}return window.performance.now()},flyTo:function(e,t,s,n){n=n||2.388657133911758,s=s||500;var r=e.getView(),a=ol.animation.pan({duration:s,source:r.getCenter()}),o=ol.animation.zoom({duration:s,resolution:r.getResolution()});e.beforeRender(a,o),r.setCenter(t),r.setResolution(n)},randomId:function(e){var t=this.now().toString(36);return e?e+t:t},isNumeric:function(e){return/^\d+$/.test(e)},classRegex:function(e){return new RegExp("(^|\\s+) "+e+" (\\s+|$)")},addClass:function(e,t,s){var n=this;if(Array.isArray(e))return void e.forEach(function(e){n.addClass(e,t)});for(var r=Array.isArray(t)?t:t.split(/\s+/),a=r.length;a--;)n.hasClass(e,r[a])||n._addClass(e,r[a],s)},_addClass:function(e,t,s){var n=this;e.classList?e.classList.add(t):e.className=(e.className+" "+t).trim(),s&&this.isNumeric(s)&&window.setTimeout(function(){n._removeClass(e,t)},s)},removeClass:function(e,t,s){var n=this;if(Array.isArray(e))return void e.forEach(function(e){n.removeClass(e,t,s)});for(var r=Array.isArray(t)?t:t.split(/\s+/),a=r.length;a--;)n.hasClass(e,r[a])&&n._removeClass(e,r[a],s)},_removeClass:function(e,t,s){var n=this;e.classList?e.classList.remove(t):e.className=e.className.replace(this.classRegex(t)," ").trim(),s&&this.isNumeric(s)&&window.setTimeout(function(){n._addClass(e,t)},s)},hasClass:function(e,t){return e.classList?e.classList.contains(t):this.classRegex(t).test(e.className)},toggleClass:function(e,t){var s=this;return Array.isArray(e)?void e.forEach(function(e){s.toggleClass(e,t)}):void(e.classList?e.classList.toggle(t):this.hasClass(e,t)?this._removeClass(e,t):this._addClass(e,t))},find:function(e,t,s){void 0===t&&(t=window.document);var n=/^(#?[\w-]+|\.[\w-.]+)$/,r=/\./g,a=Array.prototype.slice,o=[];if(n.test(e))switch(e[0]){case"#":o=[this.$(e.substr(1))];break;case".":o=a.call(t.getElementsByClassName(e.substr(1).replace(r," ")));break;default:o=a.call(t.getElementsByTagName(e))}else o=a.call(t.querySelectorAll(e));return s?o:o[0]},$:function(e){return e="#"===e[0]?e.substr(1,e.length):e,document.getElementById(e)},isElement:function(e){return"HTMLElement"in window?!!e&&e instanceof HTMLElement:!!e&&"object"==typeof e&&1===e.nodeType&&!!e.nodeName},getAllChildren:function(e,t){return[].slice.call(e.getElementsByTagName(t))},isEmpty:function(e){return!e||0===e.length},emptyArray:function(e){for(;e.length;)e.pop()},anyMatchInArray:function(e,t){return e.some(function(e){return t.indexOf(e)>=0})},everyMatchInArray:function(e,t){return t.every(function(t){return e.indexOf(t)>=0})},anyItemHasValue:function(e,t){var s=this;void 0===t&&(t=!1);var n=Object.keys(e);return n.forEach(function(n){s.isEmpty(e[n])||(t=!0)}),t},removeAllChildren:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},removeAll:function(e){for(var t;t=e[0];)t.parentNode.removeChild(t)},getChildren:function(e,t){return[].filter.call(e.childNodes,function(e){return t?1===e.nodeType&&e.tagName.toLowerCase()===t:1===e.nodeType})},template:function(e,t){var s=this;return e.replace(/\{ *([\w_-]+) *\}/g,function(e,n){var r=void 0===t[n]?"":t[n];return s.htmlEscape(r)})},htmlEscape:function(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},mergeOptions:function(e,t){var s={};for(var n in e)s[n]=e[n];for(var r in t)s[r]=t[r];return s},createElement:function(e,t){var s;if(Array.isArray(e)){if(s=document.createElement(e[0]),e[1].id&&(s.id=e[1].id),e[1].classname&&(s.className=e[1].classname),e[1].attr){var n=e[1].attr;if(Array.isArray(n))for(var r=-1;++r','','',"","",'
    '].join(""),m.input=['
    ','','','","
    ",'
      '].join("");var g=function(){this.settings={url:"//photon.komoot.de/api/",params:{q:"",limit:10,lang:"en"},langs:["de","it","fr","en"]}};g.prototype.getParameters=function(e){return e.lang=e.lang.toLowerCase(),{url:this.settings.url,params:{q:e.query,limit:e.limit||this.settings.params.limit,lang:this.settings.langs.indexOf(e.lang)>-1?e.lang:this.settings.params.lang}}},g.prototype.handleResponse=function(e){return e.map(function(e){return{lon:e.geometry.coordinates[0],lat:e.geometry.coordinates[1],address:{name:e.properties.name,postcode:e.properties.postcode,city:e.properties.city,state:e.properties.state,country:e.properties.country},original:{formatted:e.properties.name,details:e.properties}}})};var y=function(){this.settings={url:"//nominatim.openstreetmap.org/search/",params:{q:"",format:"json",addressdetails:1,limit:10,countrycodes:"","accept-language":"en-US"}}};y.prototype.getParameters=function(e){return{url:this.settings.url,params:{q:e.query,format:"json",addressdetails:1,limit:e.limit||this.settings.params.limit,countrycodes:e.countrycodes||this.settings.params.countrycodes,"accept-language":e.lang||this.settings.params["accept-language"]}}},y.prototype.handleResponse=function(e){return e.map(function(e){return{lon:e.lon,lat:e.lat,address:{name:e.address.neighbourhood||"",road:e.address.road||"",postcode:e.address.postcode,city:e.address.city||e.address.town,state:e.address.state,country:e.address.country},original:{formatted:e.display_name,details:e.address}}})};var f=function(){this.settings={url:"//open.mapquestapi.com/nominatim/v1/search.php",params:{q:"",key:"",format:"json",addressdetails:1,limit:10,countrycodes:"","accept-language":"en-US"}}};f.prototype.getParameters=function(e){return{url:this.settings.url,params:{q:e.query,key:e.key,format:"json",addressdetails:1,limit:e.limit||this.settings.params.limit,countrycodes:e.countrycodes||this.settings.params.countrycodes,"accept-language":e.lang||this.settings.params["accept-language"]}}},f.prototype.handleResponse=function(e){return e.map(function(e){return{lon:e.lon,lat:e.lat,address:{name:e.address.neighbourhood||"",road:e.address.road||"",postcode:e.address.postcode,city:e.address.city||e.address.town,state:e.address.state,country:e.address.country},original:{formatted:e.display_name,details:e.address}}})};var v=function(){this.settings={url:"//search.mapzen.com/v1/search",params:{text:"",key:"",size:10}}};v.prototype.getParameters=function(e){return{url:this.settings.url,params:{text:e.query,key:e.key,size:e.limit||this.settings.params.size}}},v.prototype.handleResponse=function(e){return e.map(function(e){return{lon:e.geometry.coordinates[0],lat:e.geometry.coordinates[1],address:{name:e.properties.name,house_number:e.properties.housenumber,postcode:e.properties.postalcode,road:e.properties.street,city:e.properties.city,state:e.properties.region,country:e.properties.country},original:{formatted:e.properties.label,details:e.properties}}})};var C=function(){this.settings={url:"//maps.googleapis.com/maps/api/geocode/json",params:{address:"",key:"",language:"en-US"}}};C.prototype.getParameters=function(e){return{url:this.settings.url,params:{address:e.query,key:e.key,language:e.lang||this.settings.params.language}}},C.prototype.handleResponse=function(e){var t=["point_of_interest","establishment","natural_feature","airport"],s=["street_address","route","sublocality_level_5","intersection"],n=["postal_code"],r=["locality"],a=["administrative_area_level_1"],o=["country"],i=function(e){var i={name:"",road:"",postcode:"",city:"",state:"",country:""};return e.forEach(function(e){p.anyMatchInArray(e.types,t)?i.name=e.long_name:p.anyMatchInArray(e.types,s)?i.road=e.long_name:p.anyMatchInArray(e.types,n)?i.postcode=e.long_name:p.anyMatchInArray(e.types,r)?i.city=e.long_name:p.anyMatchInArray(e.types,a)?i.state=e.long_name:p.anyMatchInArray(e.types,o)&&(i.country=e.long_name)}),i},l=[];return e.forEach(function(e){var t=i(e.address_components);p.anyItemHasValue(t)&&l.push({lon:e.geometry.location.lng,lat:e.geometry.location.lat,address:{name:t.name,postcode:t.postcode,road:t.road,city:t.city,state:t.state,country:t.country},original:{formatted:e.formatted_address,details:e.address_components}})}),l};var w=function(){this.settings={url:"//dev.virtualearth.net/REST/v1/Locations",callbackName:"jsonp",params:{query:"",key:"",includeNeighborhood:0,maxResults:10}}};w.prototype.getParameters=function(e){return{url:this.settings.url,callbackName:this.settings.callbackName,params:{query:e.query,key:e.key,includeNeighborhood:e.includeNeighborhood||this.settings.params.includeNeighborhood,maxResults:e.maxResults||this.settings.params.maxResults}}},w.prototype.handleResponse=function(e){return e.map(function(e){return{lon:e.point.coordinates[1],lat:e.point.coordinates[0],address:{name:e.name},original:{formatted:e.address.formattedAddress,details:e.address}}})};var b=l.cssClasses,E=function(e,t){this.Base=e,this.layerName=p.randomId("geocoder-layer-"),this.layer=new ol.layer.Vector({name:this.layerName,source:new ol.source.Vector}),this.options=e.options,this.options.provider=this.options.provider.toLowerCase(),this.els=t,this.lastQuery="",this.container=this.els.container,this.registeredListeners={mapClick:!1},this.setListeners(),this.Photon=new g,this.OpenStreet=new y,this.MapQuest=new f,this.Pelias=new v,this.Google=new C,this.Bing=new w};E.prototype.setListeners=function(){var e,t,s=this,n=function(){p.hasClass(s.els.control,b.glass.expanded)?s.collapse():s.expand()},r=function(e){var t=e.target.value.trim(),n=e.key?"Enter"===e.key:e.which?13===e.which:!!e.keyCode&&13===e.keyCode;n&&(e.preventDefault(),s.query(t))},a=function(e){s.els.input.focus(),s.els.input.value="",s.lastQuery="",p.addClass(s.els.reset,b.hidden),s.clearResults()},o=function(n){var r=n.target.value.trim();r.length?p.removeClass(s.els.reset,b.hidden):p.addClass(s.els.reset,b.hidden),s.options.autoComplete&&r!==t&&(t=r,e&&clearTimeout(e),e=setTimeout(function(){r.length>=s.options.autoCompleteMinLength&&s.query(r)},200))};this.els.input.addEventListener("keyup",r,!1),this.els.input.addEventListener("input",o,!1),this.els.reset.addEventListener("click",a,!1),this.options.targetType===i.GLASS&&this.els.button.addEventListener("click",n,!1)},E.prototype.query=function(e){var t=this,s={},n=this.options,r=this.getProvider({query:e,provider:n.provider,key:n.key,lang:n.lang,countrycodes:n.countrycodes,limit:n.limit});this.lastQuery===e&&this.els.result.firstChild||(this.lastQuery=e,this.clearResults(),p.addClass(this.els.reset,b.spin),s.url=document.location.protocol+r.url,s.data=r.params,n.provider===u.BING&&(s.data_type="jsonp",s.callbackName=r.callbackName),p.json(s).when({ready:function(e){n.debug&&console.info(e),p.removeClass(t.els.reset,b.spin);var s;switch(n.provider){case u.OSM:s=e.length?t.OpenStreet.handleResponse(e):void 0;break;case u.MAPQUEST:s=e.length?t.MapQuest.handleResponse(e):void 0;break;case u.PELIAS:s=e.features.length?t.Pelias.handleResponse(e.features):void 0;break;case u.PHOTON:s=e.features.length?t.Photon.handleResponse(e.features):void 0;break;case u.GOOGLE:s=e.results.length?t.Google.handleResponse(e.results):void 0;break;case u.BING:s=e.resourceSets[0].resources.length?t.Bing.handleResponse(e.resourceSets[0].resources):void 0;break;default:console.log("Unknown provider!")}s&&(t.createList(s),t.listenMapClick())},error:function(){p.removeClass(t.els.reset,b.spin);var e=p.createElement("li","
      Error! No internet connection?
      ");t.els.result.appendChild(e)}}))},E.prototype.createList=function(e){var t=this,s=this.els.result;e.forEach(function(e){var n=t.addressTemplate(e.address),r=['',n,""].join(""),a=p.createElement("li",r);a.addEventListener("click",function(s){s.preventDefault(),t.chosen(e,n,e.address,e.original)},!1),s.appendChild(a)})},E.prototype.chosen=function(e,t,s,n){var r=this.Base.getMap(),o=[parseFloat(e.lon),parseFloat(e.lat)],i=r.getView().getProjection(),l=ol.proj.transform(o,"EPSG:4326",i),c={formatted:t,details:s,original:n};if(this.options.keepOpen===!1&&this.clearResults(!0),this.options.preventDefault===!0)this.Base.dispatchEvent({type:a.ADDRESSCHOSEN,address:c,coordinate:l});else{p.flyTo(r,l);var u=this.createFeature(l,c);this.Base.dispatchEvent({type:a.ADDRESSCHOSEN,address:c,feature:u,coordinate:l})}},E.prototype.createFeature=function(e){var t=new ol.Feature(new ol.geom.Point(e));return this.addLayer(),t.setStyle(this.options.featureStyle),t.setId(p.randomId("geocoder-ft-")),this.getSource().addFeature(t),t},E.prototype.addressTemplate=function(e){var t=[];return e.name&&t.push(['{name}'].join("")),(e.road||e.building||e.house_number)&&t.push(['{building} {road} {house_number}'].join("")),(e.city||e.town||e.village)&&t.push(['{postcode} {city} {town} {village}'].join("")),(e.state||e.country)&&t.push(['{state} {country}'].join("")),p.template(t.join("
      "),e)},E.prototype.getProvider=function(e){var t;switch(e.provider){case u.OSM:t=this.OpenStreet.getParameters(e);break;case u.MAPQUEST:t=this.MapQuest.getParameters(e);break;case u.PHOTON:t=this.Photon.getParameters(e);break;case u.GOOGLE:t=this.Google.getParameters(e);break;case u.PELIAS:t=this.Pelias.getParameters(e);break;case u.BING:t=this.Bing.getParameters(e)}return t},E.prototype.expand=function(){var e=this;p.removeClass(this.els.input,b.spin),p.addClass(this.els.control,b.glass.expanded),window.setTimeout(function(){return e.els.input.focus()},100),this.listenMapClick()},E.prototype.collapse=function(){this.els.input.value="",this.els.input.blur(),p.addClass(this.els.reset,b.hidden),p.removeClass(this.els.control,b.glass.expanded),this.clearResults()},E.prototype.listenMapClick=function(){if(!this.registeredListeners.mapClick){var e=this,t=this.Base.getMap().getTargetElement();this.registeredListeners.mapClick=!0,t.addEventListener("click",{handleEvent:function(s){e.clearResults(!0),t.removeEventListener(s.type,this,!1),e.registeredListeners.mapClick=!1}},!1)}},E.prototype.clearResults=function(e){e&&this.options.targetType===i.GLASS?this.collapse():p.removeAllChildren(this.els.result)},E.prototype.getSource=function(){return this.layer.getSource()},E.prototype.addLayer=function(){var e=this,t=!1,s=this.Base.getMap();s.getLayers().forEach(function(s){s===e.layer&&(t=!0)}),t||s.addLayer(this.layer)};var S=function(e){function t(s,n){if(void 0===s&&(s=o.NOMINATIM),void 0===n&&(n={}),!(this instanceof t))return new t;p.assert("string"==typeof s,"@param `type` should be string!"),p.assert("object"==typeof n,"@param `options` should be object!"),this.options=p.mergeOptions(d,n),this.container=void 0;var r,a=new m(this);s===o.NOMINATIM?(this.container=a.els.container,r=new E(this,a.els),this.layer=r.layer):s===o.REVERSE,e.call(this,{element:this.container})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getLayer=function(){return this.layer},t.prototype.getSource=function(){return this.getLayer().getSource()},t}(ol.control.Control);return S}); +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Geocoder=t()}(this,function(){"use strict";var e="gcd-input-query",t="gcd-input-reset",s={namespace:"ol-geocoder",spin:"gcd-pseudo-rotate",hidden:"gcd-hidden",country:"gcd-country",city:"gcd-city",road:"gcd-road",olControl:"ol-control",glass:{container:"gcd-gl-container",control:"gcd-gl-control",button:"gcd-gl-btn",input:"gcd-gl-input",expanded:"gcd-gl-expanded",reset:"gcd-gl-reset",result:"gcd-gl-result"},inputText:{container:"gcd-txt-container",control:"gcd-txt-control",input:"gcd-txt-input",reset:"gcd-txt-reset",icon:"gcd-txt-glass",result:"gcd-txt-result"}},n={inputQueryId:e,inputResetId:t,cssClasses:s},r=Object.freeze({inputQueryId:e,inputResetId:t,cssClasses:s,default:n}),a={ADDRESSCHOSEN:"addresschosen"},o={NOMINATIM:"nominatim",REVERSE:"reverse"},i={GLASS:"glass-button",INPUT:"text-input"},l=r,c=[new ol.style.Style({image:new ol.style.Icon({anchor:[.5,1],scale:.7,src:"//cdn.rawgit.com/jonataswalker/map-utils/master/images/marker.png"})})],u={OSM:"osm",MAPQUEST:"mapquest",GOOGLE:"google",PHOTON:"photon",BING:"bing",PELIAS:"pelias"},d={provider:u.OSM,placeholder:"Search for an address",featureStyle:c,targetType:i.GLASS,lang:"en-US",limit:5,keepOpen:!1,preventDefault:!1,autoComplete:!1,autoCompleteMinLength:2,debug:!1},p={toQueryString:function(e){var t=this;return Object.keys(e).reduce(function(s,n){return s.push("object"==typeof e[n]?t.toQueryString(e[n]):encodeURIComponent(n)+"="+encodeURIComponent(e[n])),s},[]).join("&")},encodeUrlXhr:function(e,t){if(t&&"object"==typeof t){var s=this.toQueryString(t);e+=(/\?/.test(e)?"&":"?")+s}return e},json:function(e,t){var s=new XMLHttpRequest,n="",r="",a={},o=function(){200===s.status&&a.ready.call(void 0,JSON.parse(s.response))},i=function(){console.error("Cannot XHR "+JSON.stringify(e))};return"object"==typeof e?(n=e.url,t=e.data,r=e.data_type||"json"):n=e,n=this.encodeUrlXhr(n,t),"jsonp"===r?this.jsonp(n,e.callbackName,function(e){a.ready.call(void 0,e)}):(s.open("GET",n,!0),s.setRequestHeader("Accept","application/json"),s.onload=o,s.onerror=i,s.send(null)),{when:function(e){a.ready=e.ready}}},jsonp:function(e,t,s){var n=document.head,r=document.createElement("script"),a="f"+Math.round(Math.random()*Date.now());r.setAttribute("src",e+(e.indexOf("?")>0?"&":"?")+t+"="+a),window[a]=function(e){window[a]=void 0,setTimeout(function(){n.removeChild(r)},0),s(e)},n.appendChild(r)},now:function(){if("performance"in window==!1&&(window.performance={}),Date.now=Date.now||function(){return(new Date).getTime()},"now"in window.performance==!1){var e=Date.now();performance.timing&&performance.timing.navigationStart&&(e=performance.timing.navigationStart),window.performance.now=function(){return Date.now()-e}}return window.performance.now()},flyTo:function(e,t,s,n){n=n||2.388657133911758,s=s||500;var r=e.getView();r.animate({duration:s,resolution:n},{duration:s,center:t})},randomId:function(e){var t=this.now().toString(36);return e?e+t:t},isNumeric:function(e){return/^\d+$/.test(e)},classRegex:function(e){return new RegExp("(^|\\s+) "+e+" (\\s+|$)")},addClass:function(e,t,s){var n=this;if(Array.isArray(e))return void e.forEach(function(e){n.addClass(e,t)});for(var r=Array.isArray(t)?t:t.split(/\s+/),a=r.length;a--;)n.hasClass(e,r[a])||n._addClass(e,r[a],s)},_addClass:function(e,t,s){var n=this;e.classList?e.classList.add(t):e.className=(e.className+" "+t).trim(),s&&this.isNumeric(s)&&window.setTimeout(function(){n._removeClass(e,t)},s)},removeClass:function(e,t,s){var n=this;if(Array.isArray(e))return void e.forEach(function(e){n.removeClass(e,t,s)});for(var r=Array.isArray(t)?t:t.split(/\s+/),a=r.length;a--;)n.hasClass(e,r[a])&&n._removeClass(e,r[a],s)},_removeClass:function(e,t,s){var n=this;e.classList?e.classList.remove(t):e.className=e.className.replace(this.classRegex(t)," ").trim(),s&&this.isNumeric(s)&&window.setTimeout(function(){n._addClass(e,t)},s)},hasClass:function(e,t){return e.classList?e.classList.contains(t):this.classRegex(t).test(e.className)},toggleClass:function(e,t){var s=this;return Array.isArray(e)?void e.forEach(function(e){s.toggleClass(e,t)}):void(e.classList?e.classList.toggle(t):this.hasClass(e,t)?this._removeClass(e,t):this._addClass(e,t))},find:function(e,t,s){void 0===t&&(t=window.document);var n=/^(#?[\w-]+|\.[\w-.]+)$/,r=/\./g,a=Array.prototype.slice,o=[];if(n.test(e))switch(e[0]){case"#":o=[this.$(e.substr(1))];break;case".":o=a.call(t.getElementsByClassName(e.substr(1).replace(r," ")));break;default:o=a.call(t.getElementsByTagName(e))}else o=a.call(t.querySelectorAll(e));return s?o:o[0]},$:function(e){return e="#"===e[0]?e.substr(1,e.length):e,document.getElementById(e)},isElement:function(e){return"HTMLElement"in window?!!e&&e instanceof HTMLElement:!!e&&"object"==typeof e&&1===e.nodeType&&!!e.nodeName},getAllChildren:function(e,t){return[].slice.call(e.getElementsByTagName(t))},isEmpty:function(e){return!e||0===e.length},emptyArray:function(e){for(;e.length;)e.pop()},anyMatchInArray:function(e,t){return e.some(function(e){return t.indexOf(e)>=0})},everyMatchInArray:function(e,t){return t.every(function(t){return e.indexOf(t)>=0})},anyItemHasValue:function(e,t){var s=this;void 0===t&&(t=!1);var n=Object.keys(e);return n.forEach(function(n){s.isEmpty(e[n])||(t=!0)}),t},removeAllChildren:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},removeAll:function(e){for(var t;t=e[0];)t.parentNode.removeChild(t)},getChildren:function(e,t){return[].filter.call(e.childNodes,function(e){return t?1===e.nodeType&&e.tagName.toLowerCase()===t:1===e.nodeType})},template:function(e,t){var s=this;return e.replace(/\{ *([\w_-]+) *\}/g,function(e,n){var r=void 0===t[n]?"":t[n];return s.htmlEscape(r)})},htmlEscape:function(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},mergeOptions:function(e,t){var s={};for(var n in e)s[n]=e[n];for(var r in t)s[r]=t[r];return s},createElement:function(e,t){var s;if(Array.isArray(e)){if(s=document.createElement(e[0]),e[1].id&&(s.id=e[1].id),e[1].classname&&(s.className=e[1].classname),e[1].attr){var n=e[1].attr;if(Array.isArray(n))for(var r=-1;++r','','',"","",'
        '].join(""),m.input=['
        ','','','","
        ",'
          '].join("");var g=function(){this.settings={url:"//photon.komoot.de/api/",params:{q:"",limit:10,lang:"en"},langs:["de","it","fr","en"]}};g.prototype.getParameters=function(e){return e.lang=e.lang.toLowerCase(),{url:this.settings.url,params:{q:e.query,limit:e.limit||this.settings.params.limit,lang:this.settings.langs.indexOf(e.lang)>-1?e.lang:this.settings.params.lang}}},g.prototype.handleResponse=function(e){return e.map(function(e){return{lon:e.geometry.coordinates[0],lat:e.geometry.coordinates[1],address:{name:e.properties.name,postcode:e.properties.postcode,city:e.properties.city,state:e.properties.state,country:e.properties.country},original:{formatted:e.properties.name,details:e.properties}}})};var y=function(){this.settings={url:"//nominatim.openstreetmap.org/search/",params:{q:"",format:"json",addressdetails:1,limit:10,countrycodes:"","accept-language":"en-US"}}};y.prototype.getParameters=function(e){return{url:this.settings.url,params:{q:e.query,format:"json",addressdetails:1,limit:e.limit||this.settings.params.limit,countrycodes:e.countrycodes||this.settings.params.countrycodes,"accept-language":e.lang||this.settings.params["accept-language"]}}},y.prototype.handleResponse=function(e){return e.map(function(e){return{lon:e.lon,lat:e.lat,address:{name:e.address.neighbourhood||"",road:e.address.road||"",postcode:e.address.postcode,city:e.address.city||e.address.town,state:e.address.state,country:e.address.country},original:{formatted:e.display_name,details:e.address}}})};var f=function(){this.settings={url:"//open.mapquestapi.com/nominatim/v1/search.php",params:{q:"",key:"",format:"json",addressdetails:1,limit:10,countrycodes:"","accept-language":"en-US"}}};f.prototype.getParameters=function(e){return{url:this.settings.url,params:{q:e.query,key:e.key,format:"json",addressdetails:1,limit:e.limit||this.settings.params.limit,countrycodes:e.countrycodes||this.settings.params.countrycodes,"accept-language":e.lang||this.settings.params["accept-language"]}}},f.prototype.handleResponse=function(e){return e.map(function(e){return{lon:e.lon,lat:e.lat,address:{name:e.address.neighbourhood||"",road:e.address.road||"",postcode:e.address.postcode,city:e.address.city||e.address.town,state:e.address.state,country:e.address.country},original:{formatted:e.display_name,details:e.address}}})};var v=function(){this.settings={url:"//search.mapzen.com/v1/search",params:{text:"",key:"",size:10}}};v.prototype.getParameters=function(e){return{url:this.settings.url,params:{text:e.query,key:e.key,size:e.limit||this.settings.params.size}}},v.prototype.handleResponse=function(e){return e.map(function(e){return{lon:e.geometry.coordinates[0],lat:e.geometry.coordinates[1],address:{name:e.properties.name,house_number:e.properties.housenumber,postcode:e.properties.postalcode,road:e.properties.street,city:e.properties.city,state:e.properties.region,country:e.properties.country},original:{formatted:e.properties.label,details:e.properties}}})};var w=function(){this.settings={url:"//maps.googleapis.com/maps/api/geocode/json",params:{address:"",key:"",language:"en-US"}}};w.prototype.getParameters=function(e){return{url:this.settings.url,params:{address:e.query,key:e.key,language:e.lang||this.settings.params.language}}},w.prototype.handleResponse=function(e){var t=["point_of_interest","establishment","natural_feature","airport"],s=["street_address","route","sublocality_level_5","intersection"],n=["postal_code"],r=["locality"],a=["administrative_area_level_1"],o=["country"],i=function(e){var i={name:"",road:"",postcode:"",city:"",state:"",country:""};return e.forEach(function(e){p.anyMatchInArray(e.types,t)?i.name=e.long_name:p.anyMatchInArray(e.types,s)?i.road=e.long_name:p.anyMatchInArray(e.types,n)?i.postcode=e.long_name:p.anyMatchInArray(e.types,r)?i.city=e.long_name:p.anyMatchInArray(e.types,a)?i.state=e.long_name:p.anyMatchInArray(e.types,o)&&(i.country=e.long_name)}),i},l=[];return e.forEach(function(e){var t=i(e.address_components);p.anyItemHasValue(t)&&l.push({lon:e.geometry.location.lng,lat:e.geometry.location.lat,address:{name:t.name,postcode:t.postcode,road:t.road,city:t.city,state:t.state,country:t.country},original:{formatted:e.formatted_address,details:e.address_components}})}),l};var C=function(){this.settings={url:"//dev.virtualearth.net/REST/v1/Locations",callbackName:"jsonp",params:{query:"",key:"",includeNeighborhood:0,maxResults:10}}};C.prototype.getParameters=function(e){return{url:this.settings.url,callbackName:this.settings.callbackName,params:{query:e.query,key:e.key,includeNeighborhood:e.includeNeighborhood||this.settings.params.includeNeighborhood,maxResults:e.maxResults||this.settings.params.maxResults}}},C.prototype.handleResponse=function(e){return e.map(function(e){return{lon:e.point.coordinates[1],lat:e.point.coordinates[0],address:{name:e.name},original:{formatted:e.address.formattedAddress,details:e.address}}})};var E=l.cssClasses,b=function(e,t){this.Base=e,this.layerName=p.randomId("geocoder-layer-"),this.layer=new ol.layer.Vector({name:this.layerName,source:new ol.source.Vector}),this.options=e.options,this.options.provider=this.options.provider.toLowerCase(),this.els=t,this.lastQuery="",this.container=this.els.container,this.registeredListeners={mapClick:!1},this.setListeners(),this.Photon=new g,this.OpenStreet=new y,this.MapQuest=new f,this.Pelias=new v,this.Google=new w,this.Bing=new C};b.prototype.setListeners=function(){var e,t,s=this,n=function(){p.hasClass(s.els.control,E.glass.expanded)?s.collapse():s.expand()},r=function(e){var t=e.target.value.trim(),n=e.key?"Enter"===e.key:e.which?13===e.which:!!e.keyCode&&13===e.keyCode;n&&(e.preventDefault(),s.query(t))},a=function(e){s.els.input.focus(),s.els.input.value="",s.lastQuery="",p.addClass(s.els.reset,E.hidden),s.clearResults()},o=function(n){var r=n.target.value.trim();r.length?p.removeClass(s.els.reset,E.hidden):p.addClass(s.els.reset,E.hidden),s.options.autoComplete&&r!==t&&(t=r,e&&clearTimeout(e),e=setTimeout(function(){r.length>=s.options.autoCompleteMinLength&&s.query(r)},200))};this.els.input.addEventListener("keyup",r,!1),this.els.input.addEventListener("input",o,!1),this.els.reset.addEventListener("click",a,!1),this.options.targetType===i.GLASS&&this.els.button.addEventListener("click",n,!1)},b.prototype.query=function(e){var t=this,s={},n=this.options,r=this.getProvider({query:e,provider:n.provider,key:n.key,lang:n.lang,countrycodes:n.countrycodes,limit:n.limit});this.lastQuery===e&&this.els.result.firstChild||(this.lastQuery=e,this.clearResults(),p.addClass(this.els.reset,E.spin),s.url=document.location.protocol+r.url,s.data=r.params,n.provider===u.BING&&(s.data_type="jsonp",s.callbackName=r.callbackName),p.json(s).when({ready:function(e){n.debug&&console.info(e),p.removeClass(t.els.reset,E.spin);var s;switch(n.provider){case u.OSM:s=e.length?t.OpenStreet.handleResponse(e):void 0;break;case u.MAPQUEST:s=e.length?t.MapQuest.handleResponse(e):void 0;break;case u.PELIAS:s=e.features.length?t.Pelias.handleResponse(e.features):void 0;break;case u.PHOTON:s=e.features.length?t.Photon.handleResponse(e.features):void 0;break;case u.GOOGLE:s=e.results.length?t.Google.handleResponse(e.results):void 0;break;case u.BING:s=e.resourceSets[0].resources.length?t.Bing.handleResponse(e.resourceSets[0].resources):void 0;break;default:console.log("Unknown provider!")}s&&(t.createList(s),t.listenMapClick())},error:function(){p.removeClass(t.els.reset,E.spin);var e=p.createElement("li","
          Error! No internet connection?
          ");t.els.result.appendChild(e)}}))},b.prototype.createList=function(e){var t=this,s=this.els.result;e.forEach(function(e){var n=t.addressTemplate(e.address),r=['',n,""].join(""),a=p.createElement("li",r);a.addEventListener("click",function(s){s.preventDefault(),t.chosen(e,n,e.address,e.original)},!1),s.appendChild(a)})},b.prototype.chosen=function(e,t,s,n){var r=this.Base.getMap(),o=[parseFloat(e.lon),parseFloat(e.lat)],i=r.getView().getProjection(),l=ol.proj.transform(o,"EPSG:4326",i),c={formatted:t,details:s,original:n};if(this.options.keepOpen===!1&&this.clearResults(!0),this.options.preventDefault===!0)this.Base.dispatchEvent({type:a.ADDRESSCHOSEN,address:c,coordinate:l});else{p.flyTo(r,l);var u=this.createFeature(l,c);this.Base.dispatchEvent({type:a.ADDRESSCHOSEN,address:c,feature:u,coordinate:l})}},b.prototype.createFeature=function(e){var t=new ol.Feature(new ol.geom.Point(e));return this.addLayer(),t.setStyle(this.options.featureStyle),t.setId(p.randomId("geocoder-ft-")),this.getSource().addFeature(t),t},b.prototype.addressTemplate=function(e){var t=[];return e.name&&t.push(['{name}'].join("")),(e.road||e.building||e.house_number)&&t.push(['{building} {road} {house_number}'].join("")),(e.city||e.town||e.village)&&t.push(['{postcode} {city} {town} {village}'].join("")),(e.state||e.country)&&t.push(['{state} {country}'].join("")),p.template(t.join("
          "),e)},b.prototype.getProvider=function(e){var t;switch(e.provider){case u.OSM:t=this.OpenStreet.getParameters(e);break;case u.MAPQUEST:t=this.MapQuest.getParameters(e);break;case u.PHOTON:t=this.Photon.getParameters(e);break;case u.GOOGLE:t=this.Google.getParameters(e);break;case u.PELIAS:t=this.Pelias.getParameters(e);break;case u.BING:t=this.Bing.getParameters(e)}return t},b.prototype.expand=function(){var e=this;p.removeClass(this.els.input,E.spin),p.addClass(this.els.control,E.glass.expanded),window.setTimeout(function(){return e.els.input.focus()},100),this.listenMapClick()},b.prototype.collapse=function(){this.els.input.value="",this.els.input.blur(),p.addClass(this.els.reset,E.hidden),p.removeClass(this.els.control,E.glass.expanded),this.clearResults()},b.prototype.listenMapClick=function(){if(!this.registeredListeners.mapClick){var e=this,t=this.Base.getMap().getTargetElement();this.registeredListeners.mapClick=!0,t.addEventListener("click",{handleEvent:function(s){e.clearResults(!0),t.removeEventListener(s.type,this,!1),e.registeredListeners.mapClick=!1}},!1)}},b.prototype.clearResults=function(e){e&&this.options.targetType===i.GLASS?this.collapse():p.removeAllChildren(this.els.result)},b.prototype.getSource=function(){return this.layer.getSource()},b.prototype.addLayer=function(){var e=this,t=!1,s=this.Base.getMap();s.getLayers().forEach(function(s){s===e.layer&&(t=!0)}),t||s.addLayer(this.layer)};var S=function(e){function t(s,n){if(void 0===s&&(s=o.NOMINATIM),void 0===n&&(n={}),!(this instanceof t))return new t;p.assert("string"==typeof s,"@param `type` should be string!"),p.assert(s===o.NOMINATIM||s===o.REVERSE,"@param 'type' should be '"+o.NOMINATIM+"' or \n '"+o.REVERSE+"'!"),p.assert("object"==typeof n,"@param `options` should be object!"),this.options=p.mergeOptions(d,n),this.container=void 0;var r,a=new m(this);s===o.NOMINATIM?(this.container=a.els.container,r=new b(this,a.els),this.layer=r.layer):s===o.REVERSE,e.call(this,{element:this.container})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getLayer=function(){return this.layer},t.prototype.getSource=function(){return this.getLayer().getSource()},t}(ol.control.Control);return S}); //# sourceMappingURL=ol3-geocoder.js.map \ No newline at end of file diff --git a/build/ol3-geocoder.js.map b/build/ol3-geocoder.js.map index 12a1768..d7af5a1 100644 --- a/build/ol3-geocoder.js.map +++ b/build/ol3-geocoder.js.map @@ -1 +1 @@ -{"version":3,"sources":["?"],"names":["global","factory","exports","module","define","amd","Geocoder","this","inputQueryId","inputResetId","cssClasses","namespace","spin","hidden","country","city","road","olControl","glass","container","control","button","input","expanded","reset","result","inputText","icon","vars$1","_VARS","Object","freeze","default","eventType","ADDRESSCHOSEN","controlType","NOMINATIM","REVERSE","targetType","GLASS","INPUT","vars","featureStyle","ol","style","Style","image","Icon","anchor","scale","src","providers","OSM","MAPQUEST","GOOGLE","PHOTON","BING","PELIAS","defaultOptions","provider","placeholder","lang","limit","keepOpen","preventDefault","autoComplete","autoCompleteMinLength","debug","utils","toQueryString","obj","this$1","keys","reduce","a","k","push","encodeURIComponent","join","encodeUrlXhr","url","data","str_data","test","json","xhr","XMLHttpRequest","url_","data_type","when","onload","status","ready","call","undefined","JSON","parse","response","onerror","console","error","stringify","jsonp","callbackName","res","open","setRequestHeader","send","key","callback","head","document","script","createElement","Math","round","random","Date","now","setAttribute","indexOf","window","setTimeout","removeChild","appendChild","performance","getTime","nowOffset","timing","navigationStart","flyTo","map","coord","duration","resolution","view","getView","pan","animation","source","getCenter","zoom","getResolution","beforeRender","setCenter","setResolution","randomId","prefix","id","toString","isNumeric","str","classRegex","classname","RegExp","addClass","element","timeout","Array","isArray","forEach","each","array","split","i","length","hasClass","_addClass","el","klass","classList","add","className","trim","_removeClass","removeClass","remove","replace","c","contains","toggleClass","toggle","find","selector","context","find_all","simpleRe","periodRe","slice","prototype","matches","$","substr","getElementsByClassName","getElementsByTagName","querySelectorAll","getElementById","isElement","HTMLElement","nodeType","nodeName","getAllChildren","node","tag","isEmpty","emptyArray","pop","anyMatchInArray","target","some","everyMatchInArray","arr1","arr2","every","anyItemHasValue","has","removeAllChildren","firstChild","removeAll","collection","parentNode","getChildren","filter","childNodes","tagName","toLowerCase","template","html","row","htm","value","htmlEscape","String","mergeOptions","obj1","obj2","obj3","attr1","attr2","elem","attr","name","innerHTML","frag","createDocumentFragment","assert","condition","message","Error","klasses","Html","base","options","els","createControl","containerClass","elements","Photon","settings","params","q","langs","getParameters","query","handleResponse","results","lon","geometry","coordinates","lat","address","properties","postcode","state","original","formatted","details","OpenStreet","format","addressdetails","countrycodes","accept-language","neighbourhood","town","display_name","MapQuest","Pelias","text","size","house_number","housenumber","postalcode","street","region","label","Google","language","getDetails","parts","detail","types","long_name","address_components","location","lng","formatted_address","Bing","includeNeighborhood","maxResults","point","formattedAddress","klasses$1","Nominatim","Base","layerName","layer","Vector","lastQuery","registeredListeners","mapClick","setListeners","openSearch","collapse","expand","evt","hit","which","keyCode","focus","clearResults","handleValue","clearTimeout","addEventListener","ajax","getProvider","protocol","info","res_","features","resourceSets","resources","log","createList","listenMapClick","li","ul","addressHtml","addressTemplate","chosen","place","addressObj","addressOriginal","getMap","coord_","parseFloat","projection","getProjection","proj","transform","dispatchEvent","type","coordinate","feature","createFeature","Feature","geom","Point","addLayer","setStyle","setId","getSource","addFeature","building","village","blur","this_","mapElement","getTargetElement","handleEvent","removeEventListener","found","getLayers","superclass","$nominatim","$html","__proto__","create","constructor","getLayer","Control"],"mappings":";;;;;;CAOC,SAAUA,EAAQC,GACC,gBAAZC,UAA0C,mBAAXC,QAAyBA,OAAOD,QAAUD,IAC9D,kBAAXG,SAAyBA,OAAOC,IAAMD,OAAOH,GACnDD,EAAOM,SAAWL,KAClBM,KAAM,WAAe,YAEvB,IAAIC,GAAe,kBACfC,EAAe,kBACfC,GAAcC,UAAY,cAAcC,KAAO,oBAAoBC,OAAS,aAAaC,QAAU,cAAcC,KAAO,WAAWC,KAAO,WAAWC,UAAY,aAAaC,OAASC,UAAY,mBAAmBC,QAAU,iBAAiBC,OAAS,aAAaC,MAAQ,eAAeC,SAAW,kBAAkBC,MAAQ,eAAeC,OAAS,iBAAiBC,WAAaP,UAAY,oBAAoBC,QAAU,kBAAkBE,MAAQ,gBAAgBE,MAAQ,gBAAgBG,KAAO,gBAAgBF,OAAS,mBACrgBG,GACHpB,aAAcA,EACdC,aAAcA,EACdC,WAAYA,GAGTmB,EAAQC,OAAOC,QAClBvB,aAAcA,EACdC,aAAcA,EACdC,WAAYA,EACZsB,QAASJ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AQ,SAAUqE,GACpB,QAASrE,GAAK+C,EAAM5G,GAKlB,GAJc,SAAT4G,IAAkBA,EAAOrU,EAAYC,WACzB,SAAZwN,IAAqBA,QAGpBrP,eAAgBkT,IAAS,MAAO,IAAIA,EAE1CrP,GAAMiL,OAAuB,gBAATmH,GAAmB,mCACvCpS,EAAMiL,OAA0B,gBAAZO,GAChB,sCAEJrP,KAAKqP,QAAUxL,EAAMqK,aAAa/K,EAAgBkM,GAClDrP,KAAKY,UAAY2E,MAEjB,IAAIiS,GACAC,EAAQ,GAAItI,GAAKnP,KAEjBiW,KAASrU,EAAYC,WACvB7B,KAAKY,UAAY6W,EAAMnI,IAAI1O,UAC3B4W,EAAa,GAAIvE,GAAUjT,KAAMyX,EAAMnI,KACvCtP,KAAKoT,MAAQoE,EAAWpE,OACf6C,IAASrU,EAAYE,QAIhCyV,EAAWjS,KAAKtF,MAAQqJ,QAASrJ,KAAKY,YAqBxC,MAlBK2W,KAAarE,EAAKwE,UAAYH,GACnCrE,EAAK5H,UAAY/J,OAAOoW,OAAQJ,GAAcA,EAAWjM,WACzD4H,EAAK5H,UAAUsM,YAAc1E,EAK7BA,EAAK5H,UAAUuM,SAAW,WACxB,MAAO7X,MAAKoT,OAMdF,EAAK5H,UAAUqL,UAAY,WACzB,MAAO3W,MAAK6X,WAAWlB,aAGlBzD,GACP9Q,GAAGvB,QAAQiX,QAEb,OAAO5E","file":"ol3-geocoder.js"} \ No newline at end of file +{"version":3,"sources":["?"],"names":["global","factory","exports","module","define","amd","Geocoder","this","inputQueryId","inputResetId","cssClasses","namespace","spin","hidden","country","city","road","olControl","glass","container","control","button","input","expanded","reset","result","inputText","icon","vars$1","_VARS","Object","freeze","default","eventType","ADDRESSCHOSEN","controlType","NOMINATIM","REVERSE","targetType","GLASS","INPUT","vars","featureStyle","ol","style","Style","image","Icon","anchor","scale","src","providers","OSM","MAPQUEST","GOOGLE","PHOTON","BING","PELIAS","defaultOptions","provider","placeholder","lang","limit","keepOpen","preventDefault","autoComplete","autoCompleteMinLength","debug","utils","toQueryString","obj","this$1","keys","reduce","a","k","push","encodeURIComponent","join","encodeUrlXhr","url","data","str_data","test","json","xhr","XMLHttpRequest","url_","data_type","when","onload","status","ready","call","undefined","JSON","parse","response","onerror","console","error","stringify","jsonp","callbackName","res","open","setRequestHeader","send","key","callback","head","document","script","createElement","Math","round","random","Date","now","setAttribute","indexOf","window","setTimeout","removeChild","appendChild","performance","getTime","nowOffset","timing","navigationStart","flyTo","map","coord","duration","resolution","view","getView","animate","center","randomId","prefix","id","toString","isNumeric","str","classRegex","classname","RegExp","addClass","element","timeout","Array","isArray","forEach","each","array","split","i","length","hasClass","_addClass","el","klass","classList","add","className","trim","_removeClass","removeClass","remove","replace","c","contains","toggleClass","toggle","find","selector","context","find_all","simpleRe","periodRe","slice","prototype","matches","$","substr","getElementsByClassName","getElementsByTagName","querySelectorAll","getElementById","isElement","HTMLElement","nodeType","nodeName","getAllChildren","node","tag","isEmpty","emptyArray","pop","anyMatchInArray","source","target","some","everyMatchInArray","arr1","arr2","every","anyItemHasValue","has","removeAllChildren","firstChild","removeAll","collection","parentNode","getChildren","filter","childNodes","tagName","toLowerCase","template","html","row","htm","value","htmlEscape","String","mergeOptions","obj1","obj2","obj3","attr1","attr2","elem","attr","name","innerHTML","frag","createDocumentFragment","assert","condition","message","Error","klasses","Html","base","options","els","createControl","containerClass","elements","Photon","settings","params","q","langs","getParameters","query","handleResponse","results","lon","geometry","coordinates","lat","address","properties","postcode","state","original","formatted","details","OpenStreet","format","addressdetails","countrycodes","accept-language","neighbourhood","town","display_name","MapQuest","Pelias","text","size","house_number","housenumber","postalcode","street","region","label","Google","language","getDetails","parts","detail","types","long_name","address_components","location","lng","formatted_address","Bing","includeNeighborhood","maxResults","point","formattedAddress","klasses$1","Nominatim","Base","layerName","layer","Vector","lastQuery","registeredListeners","mapClick","setListeners","openSearch","collapse","expand","evt","hit","which","keyCode","focus","clearResults","handleValue","clearTimeout","addEventListener","ajax","getProvider","protocol","info","res_","features","resourceSets","resources","log","createList","listenMapClick","li","ul","addressHtml","addressTemplate","chosen","place","addressObj","addressOriginal","getMap","coord_","parseFloat","projection","getProjection","proj","transform","dispatchEvent","type","coordinate","feature","createFeature","Feature","geom","Point","addLayer","setStyle","setId","getSource","addFeature","building","village","blur","this_","mapElement","getTargetElement","handleEvent","removeEventListener","found","getLayers","superclass","$nominatim","$html","__proto__","create","constructor","getLayer","Control"],"mappings":";;;;;;CAOC,SAAUA,EAAQC,GACC,gBAAZC,UAA0C,mBAAXC,QAAyBA,OAAOD,QAAUD,IAC9D,kBAAXG,SAAyBA,OAAOC,IAAMD,OAAOH,GACnDD,EAAOM,SAAWL,KAClBM,KAAM,WAAe,YAEvB,IAAIC,GAAe,kBACfC,EAAe,kBACfC,GAAcC,UAAY,cAAcC,KAAO,oBAAoBC,OAAS,aAAaC,QAAU,cAAcC,KAAO,WAAWC,KAAO,WAAWC,UAAY,aAAaC,OAASC,UAAY,mBAAmBC,QAAU,iBAAiBC,OAAS,aAAaC,MAAQ,eAAeC,SAAW,kBAAkBC,MAAQ,eAAeC,OAAS,iBAAiBC,WAAaP,UAAY,oBAAoBC,QAAU,kBAAkBE,MAAQ,gBAAgBE,MAAQ,gBAAgBG,KAAO,gBAAgBF,OAAS,mBACrgBG,GACHpB,aAAcA,EACdC,aAAcA,EACdC,WAAYA,GAGTmB,EAAQC,OAAOC,QAClBvB,aAAcA,EACdC,aAAcA,EACdC,WAAYA,EACZsB,QAASJ,IAGNK,GACFC,cAAe,iBAGbC,GACFC,UAAW,YACXC,QAAS,WAGPC,GACFC,MAAO,eACPC,MAAO,cAGLC,EAAOZ,EAEPa,GACF,GAAIC,IAAGC,MAAMC,OACXC,MAAO,GAAIH,IAAGC,MAAMG,MAClBC,QAAS,GAAK,GACdC,MAAO,GACPC,IAAK,yEAKPC,GACFC,IAAK,MACLC,SAAU,WACVC,OAAQ,SACRC,OAAQ,SACRC,KAAM,OACNC,OAAQ,UAGNC,GACFC,SAA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KY,UAAYuW,EAAMnI,IAAIpO,UAC3BsW,EAAa,GAAIvE,GAAU3S,KAAMmX,EAAMnI,KACvChP,KAAK8S,MAAQoE,EAAWpE,OACf6C,IAAS/T,EAAYE,QAIhCmV,EAAW3R,KAAKtF,MAAQ8I,QAAS9I,KAAKY,YAqBxC,MAlBKqW,KAAarE,EAAKwE,UAAYH,GACnCrE,EAAK7H,UAAYxJ,OAAO8V,OAAQJ,GAAcA,EAAWlM,WACzD6H,EAAK7H,UAAUuM,YAAc1E,EAK7BA,EAAK7H,UAAUwM,SAAW,WACxB,MAAOvX,MAAK8S,OAMdF,EAAK7H,UAAUsL,UAAY,WACzB,MAAOrW,MAAKuX,WAAWlB,aAGlBzD,GACPxQ,GAAGvB,QAAQ2W,QAEb,OAAO5E","file":"ol3-geocoder.js"} \ No newline at end of file diff --git a/build/ol3-geocoder.min.css b/build/ol3-geocoder.min.css index d566938..1b98006 100644 --- a/build/ol3-geocoder.min.css +++ b/build/ol3-geocoder.min.css @@ -1,7 +1,7 @@ /*! - * ol3-geocoder - v2.4.1 - * A geocoder extension for OpenLayers 3. + * ol3-geocoder - v2.5.0 + * A geocoder extension for OpenLayers. * https://github.com/jonataswalker/ol3-geocoder - * Built: Fri Dec 30 2016 09:33:20 GMT-0200 (BRST) + * Built: Tue Feb 21 2017 08:59:32 GMT-0300 (BRT) */ .ol-geocoder.gcd-gl-container{position:absolute;top:4.875em;left:.5em;box-sizing:border-box}.ol-geocoder.gcd-gl-container *,.ol-geocoder.gcd-gl-container :after,.ol-geocoder.gcd-gl-container :before{box-sizing:inherit}.ol-geocoder .gcd-gl-control{width:2.1875em;height:2.1875em;overflow:hidden;-webkit-transition:width .2s,height .2s;transition:width .2s,height .2s}.ol-geocoder .gcd-gl-expanded{width:15.625em;height:2.1875em}.ol-geocoder .gcd-gl-input{position:absolute;z-index:1;top:.25em;left:2.5em;width:14.84375em;padding:5px;border:1px solid #ccc;font-family:inherit;font-size:.875em;background-color:#fff;color:#222}.ol-geocoder .gcd-gl-input:focus{border:none;outline:none;box-shadow:inset 0 0 0 1px #4d90fe,inset 0 0 5px #4d90fe}.ol-geocoder .gcd-gl-reset{position:absolute;z-index:2;top:0;right:0;width:1.5625em;height:100%;line-height:1.4;border:none;background-color:transparent;display:inline-block;outline:0;cursor:pointer}.ol-geocoder .gcd-gl-reset:after{content:"\d7";display:inline-block;color:#333;font-size:1.5em;cursor:pointer}.ol-geocoder .gcd-gl-btn{position:absolute;width:1.5625em;height:1.5625em;top:.125em;left:.125em;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAABPUlEQVQoU41SwXHCQAzUHh58eoUOIBWEDkI6oAToIKkg7iAuwakgpAIowXRACcnrzp6BzchjMx4wE/S6kW5XK60gvQghzJIkmVoqSZI9gJ9+/fINS5Cc1HX9QXIlIr/tpwcRyb33b7cIGnAIYQdg4pxbjcfj0nJ1Xc+Px+PGObdN03Q9RIAQwgpAnqbp7FKmjQGgJLlU1d2V7BjjRkQO3vvXIXarkyxVNbsCm2QR2Q0V7XOMMReRmfd+OQQubN6hYgs22ZtbnRcAtiRfLueqqmpJ8ovko6oeBq0KIWQA3gFkzrlmMafTaUEyI/mpqmbhVTRWWbRdbClPbeobQNES5KPRqOxs7DBn8K1DsAOKMZYApiTXqlrcDe4d0XN7jWeCfzt351tVle2iGalTcBd4gGDvvZ/fDe4RmCOFLe8Pr7mvEP2N9PQAAAAASUVORK5CYII=");background-repeat:no-repeat;background-position:50%}.ol-geocoder ul.gcd-gl-result{position:absolute;top:2.1875em;left:2em;width:16.25em;max-height:18.75em;white-space:normal;list-style:none;padding:0;margin:0;background-color:#fff;border-radius:4px;border-top:none;border-top-left-radius:0;border-top-right-radius:0;overflow-x:hidden;overflow-y:auto;box-shadow:0 1px 7px rgba(0,0,0,.8);-webkit-transition:max-height .3s ease-in;transition:max-height .3s ease-in}.ol-geocoder ul.gcd-gl-result>li{width:100%;overflow:hidden;border-bottom:1px solid #eee;padding:0;line-height:.875rem}.ol-geocoder ul.gcd-gl-result>li>a{display:block;text-decoration:none;padding:3px 5px}.ol-geocoder ul.gcd-gl-result>li>a:hover{background-color:#d4d4d4}.ol-geocoder ul.gcd-gl-result>li:nth-child(odd){background-color:#e0ffe0}.ol-geocoder.gcd-txt-container{position:absolute;width:25em;height:4.375em;top:.5em;left:calc(50% - 12.5em);box-sizing:border-box}.ol-geocoder.gcd-txt-container *,.ol-geocoder.gcd-txt-container :after,.ol-geocoder.gcd-txt-container :before{box-sizing:inherit}.ol-geocoder .gcd-txt-control{position:relative;width:100%;height:4.375em;border:1px solid #ccc;background-color:#fff;overflow:hidden}.ol-geocoder .gcd-txt-input{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;padding:5px 30px 5px 40px;border:none;text-indent:6px;background-color:transparent;font-family:inherit;font-size:.875em}.ol-geocoder .gcd-txt-input:focus{outline:none;box-shadow:inset 0 0 0 1px #4d90fe,inset 0 0 6px #4d90fe}.ol-geocoder .gcd-txt-reset{position:absolute;z-index:2;top:0;right:0;width:2.5em;height:100%;line-height:100%;border:none;background-color:transparent;display:inline-block;vertical-align:middle;outline:0;cursor:pointer}.ol-geocoder .gcd-txt-reset:after{content:"\d7";display:inline-block;color:#333;font-size:2em;cursor:pointer}.ol-geocoder .gcd-txt-glass{position:absolute;top:0;left:0;z-index:2;display:inline-block;width:2.5em;height:100%;background-size:1.38889em;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23333' d='M29.156 29.961l-.709.709a2.006 2.006 0 0 1-2.838 0l-5.676-5.674c-.656-.658-.729-1.644-.281-2.412l-3.104-3.102a9.975 9.975 0 0 1-5.965 1.979C5.043 21.461.552 16.97.552 11.43S5.043 1.398 10.583 1.398c5.541 0 10.031 4.491 10.031 10.032 0 2.579-.98 4.923-2.58 6.7l3.035 3.035c.768-.447 1.754-.375 2.41.283l5.676 5.674c.784.785.784 2.056.001 2.839zM18.088 11.389a7.524 7.524 0 0 0-7.524-7.523 7.523 7.523 0 1 0-.001 15.046 7.525 7.525 0 0 0 7.525-7.523z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:50%}.ol-geocoder ul.gcd-txt-result{position:absolute;top:4.575em;left:0;width:25em;max-height:18.75em;white-space:normal;list-style:none;padding:0;margin:0;background-color:#fff;border-radius:4px;border-top:none;border-top-left-radius:0;border-top-right-radius:0;overflow-x:hidden;overflow-y:auto;box-shadow:0 1px 7px rgba(0,0,0,.8);-webkit-transition:max-height .3s ease-in;transition:max-height .3s ease-in}.ol-geocoder ul.gcd-txt-result>li{width:100%;overflow:hidden;border-bottom:1px solid #eee;padding:0;line-height:.875rem}.ol-geocoder ul.gcd-txt-result>li>a{display:block;text-decoration:none;padding:3px 5px}.ol-geocoder ul.gcd-txt-result>li>a:hover{background-color:#d4d4d4}.ol-geocoder ul.gcd-txt-result>li:nth-child(odd){background-color:#e0ffe0}.ol-geocoder .gcd-hidden{opacity:0;visibility:hidden}.ol-geocoder .gcd-pseudo-rotate:after{-webkit-animation:a .7s linear infinite;animation:a .7s linear infinite}@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.gcd-road{font-size:.875em;font-weight:500;color:#000}.gcd-city{font-size:.75em;font-weight:400;color:#000}.gcd-country{font-size:.75em;font-weight:lighter;color:#444} \ No newline at end of file diff --git a/package.json b/package.json index 350db7c..56a2f8f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ol3-geocoder", - "version": "2.4.1", - "description": "A geocoder extension for OpenLayers 3.", + "version": "2.5.0", + "description": "A geocoder extension for OpenLayers.", "author": "Jonatas Walker", "homepage": "https://github.com/jonataswalker/ol3-geocoder", "license": "MIT",