From b20817f41e8899357a360a54ff5a92fac5101a44 Mon Sep 17 00:00:00 2001 From: jonataswalker Date: Sat, 30 Apr 2016 14:00:50 -0300 Subject: [PATCH] Release v2.0.1 --- build/ol3-geocoder-debug.js | 4 ++-- build/ol3-geocoder.css | 4 ++-- build/ol3-geocoder.js | 4 ++-- build/ol3-geocoder.min.css | 4 ++-- package.json | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build/ol3-geocoder-debug.js b/build/ol3-geocoder-debug.js index 1237087..b121ca5 100644 --- a/build/ol3-geocoder-debug.js +++ b/build/ol3-geocoder-debug.js @@ -1,8 +1,8 @@ /** * A geocoder extension for OpenLayers 3. * https://github.com/jonataswalker/ol3-geocoder - * Version: v2.0.0 - * Built: 2016-04-30T13:32:44-0300 + * Version: v2.0.1 + * Built: 2016-04-30T13:57:19-0300 */ (function (global, factory) { diff --git a/build/ol3-geocoder.css b/build/ol3-geocoder.css index c91159f..55dc08c 100644 --- a/build/ol3-geocoder.css +++ b/build/ol3-geocoder.css @@ -1,8 +1,8 @@ /** * A geocoder extension for OpenLayers 3. * https://github.com/jonataswalker/ol3-geocoder - * Version: v2.0.0 - * Built: 2016-04-22T16:55:20-0300 + * Version: v2.0.1 + * Built: 2016-04-30T13:57:19-0300 */ .ol3-geocoder-container { diff --git a/build/ol3-geocoder.js b/build/ol3-geocoder.js index 8aa8230..f0f7951 100644 --- a/build/ol3-geocoder.js +++ b/build/ol3-geocoder.js @@ -1,8 +1,8 @@ /** * A geocoder extension for OpenLayers 3. * https://github.com/jonataswalker/ol3-geocoder - * Version: v2.0.0 - * Built: 2016-04-30T13:32:44-0300 + * Version: v2.0.1 + * Built: 2016-04-30T13:57:19-0300 */ !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="ol3-geocoder",t="-container",r="-search",s="-btn-search",n="-loading",a="-input-search",o="-result",i="-search-expanded",l="-country",c="-city",d="-road",u="ol-control",p={ADDRESSCHOSEN:"addresschosen"},h=[new ol.style.Style({image:new ol.style.Icon({anchor:[.5,1],src:["data:image/png;base64,","iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAABmJLR0QA/wD/AP+gvaeT","AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AQWCiErd9Z21AAABAJJREFUWMPVm","U1oXFUUx3/3zatJx04SDOgiVUMSgrXJwpqIKy26SrKoLjQgCkIFW7otuCvdllbo1q6Epg","vNQvtx710lEFdihwpSjdikJLGJWEhrM9MyX7nPxbypwzBv5n3cqXpgmOHOuff/mzPn3Pf","ueWDBpqZnrPq1M5EUVitZ+9wPvA0cAgaALqAIbAI3gAWt5HbjvCcGXROdmp4RwDDwBfBW","iKmLwKfAqlbSiwvvJAAeAeaBWyGB8f1uAfNT0zMj/jqdjXQd8Ds+sJsguyrAe1rJb6NGX","MQAPgJ8k7QefPOAd7WSl6OAi4jAk8D3cdKqhRngda3k9bDgUSL9NLAO9GPftoEXtZIPrR","WiXyzHwwAbA8WyoFAUFMsCY0JB9wPHwxalGyH3T4RxHByo8MZEgf4+w/ZfDt9lu9n4I5T","MCeBzP8+tQL8KDAZuA7swOljh4yM5JsaKGAPGA0fABzN5sje7+PJyht/WXNxU8O/1dbK2","9ulPWn05tL/CqWP3GR8tUSgKSmVBpVJ9LxQF46MlTh27z9D+SiKdqNCBFw/jwexUnr4eg","xfwx3oe9PUYZqfyGC+eThzo4SCYTNpweLLQtuCMgcOTBTLp4B8XpBMXuqnfroGxkTIi5M","YpRNV/1yTjCQv9oHmkBXu7vRD1/s/1b2+3h+eJSDpxoa83G0w5HisbLqRCrpKClQ2XlON","F0okL/XXTyQ6sbe1h/Y7bNkWEgPU7Lmtbe3CcaDpxoS8CuaYbfcpj7mqmVXE9Ltq5qxnc","VKBjztexBl0Azgd9uZTt4spimlJZkHKqUa29Ug6UyoIri2mWsl2tNM77OlZvmIaBn4B00","6tiRfDSUIk3JwocerlIzz7DTt7hxi9dLGW7+fX2U7huYJQfAeNayduduDX9Cni/3X5sPI","HnVSPtCK9VDj/OZa3krPVbUx++J+y2FNF6tZI71s+IfhR2gNOWgU9rJXeinBUjnxGBF4A","fgWcsAN8DXgE2OnJGbIC/CHxoAXpOK/lRx1sIvn1mKTVirRO377EFnE0IfFYrudXxvkdD","bvcCvwOZGEvkgOeBB0+kwwTU9tIccClmlC8Bubj9vKQNyAPAzxHX8YCDWsnluLpOAmB84","fmIU+e1kstJ2r42OkVH/S5R2G7S0aSCsaFrHU+tZB44F3LaOa1k/l/pTzfZSQ4APwD7Wr","jmgdeA5STAttKjltsLbdwWkhSf1UjXRfxZ4M8WLs9pJe/a0HIsAeMDnQlwOaOVvPufeFD","UJLcH/H27t6EtcBDYTJrLViNdl9ubwLWG4Wv+uDUTWDb/LLlSNzSilVy1qeFYBsYHvOAP","XdBKrtrK5Y5A19lJqo8kTnZi8U6kRy0YY8BNwNgqwP+1/Q09w5giQWRk7AAAAABJRU5Er","kJggg=="].join("")})})],m={OSM:"osm",MAPQUEST:"mapquest",GOOGLE:"google",PHOTON:"photon",PELIAS:"pelias"},g={provider:m.OSM,placeholder:"Search for an address",featureStyle:h,lang:"en-US",limit:5,keepOpen:!1,debug:!1},y={toQueryString:function(e){var t=this;return Object.keys(e).reduce(function(r,s){return r.push("object"==typeof e[s]?t.toQueryString(e[s]):encodeURIComponent(s)+"="+encodeURIComponent(e[s])),r},[]).join("&")},encodeUrlXhr:function(e,t){if(t&&"object"==typeof t){var r=this.toQueryString(t);e+=(/\?/.test(e)?"&":"?")+r}return e},json:function(e,t){var r=new XMLHttpRequest,s={},n=function(){200===r.status&&s.ready.call(void 0,JSON.parse(r.response))},a=function(){console.info("Cannot XHR "+JSON.stringify(e))};return e=this.encodeUrlXhr(e,t),r.open("GET",e,!0),r.setRequestHeader("Accept","application/json"),r.onload=n,r.onerror=a,r.send(null),{when:function(e){s.ready=e.ready}}},now:function(){if("performance"in window==0&&(window.performance={}),Date.now=Date.now||function(){return(new Date).getTime()},"now"in window.performance==0){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()},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,r){var s=this;if(Array.isArray(e))return void e.forEach(function(e){s.addClass(e,t)});for(var n=Array.isArray(t)?t:t.split(/\s+/),a=n.length;a--;)s.hasClass(e,n[a])||s._addClass(e,n[a],r)},_addClass:function(e,t,r){var s=this;e.classList?e.classList.add(t):e.className=(e.className+" "+t).trim(),r&&this.isNumeric(r)&&window.setTimeout(function(){s._removeClass(e,t)},r)},removeClass:function(e,t,r){var s=this;if(Array.isArray(e))return void e.forEach(function(e){s.removeClass(e,t,r)});for(var n=Array.isArray(t)?t:t.split(/\s+/),a=n.length;a--;)s.hasClass(e,n[a])&&s._removeClass(e,n[a],r)},_removeClass:function(e,t,r){var s=this;e.classList?e.classList.remove(t):e.className=e.className.replace(this.classRegex(t)," ").trim(),r&&this.isNumeric(r)&&window.setTimeout(function(){s._addClass(e,t)},r)},hasClass:function(e,t){return e.classList?e.classList.contains(t):this.classRegex(t).test(e.className)},toggleClass:function(e,t){var r=this;return Array.isArray(e)?void e.forEach(function(e){r.toggleClass(e,t)}):void(e.classList?e.classList.toggle(t):this.hasClass(e,t)?this._removeClass(e,t):this._addClass(e,t))},$: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){void 0===t&&(t=!1);for(var r in e)this.isEmpty(e[r])||(t=!0);return 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 r=this;return e.replace(/\{ *([\w_-]+) *\}/g,function(e,s){var n=void 0===t[s]?"":t[s];return r.htmlEscape(n)})},htmlEscape:function(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},mergeOptions:function(e,t){var r={};for(var s in e)r[s]=e[s];for(var n in t)r[n]=t[n];return r},createElement:function(e,t){var r;if(Array.isArray(e)){if(r=document.createElement(e[0]),e[1].id&&(r.id=e[1].id),e[1].classname&&(r.className=e[1].classname),e[1].attr){var s=e[1].attr;if(Array.isArray(s))for(var n=-1;++n-1?e.lang:this.settings.params.lang}}},f.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 v=function(){this.settings={url:"http://nominatim.openstreetmap.org/search/",params:{q:"",format:"json",addressdetails:1,limit:10,countrycodes:"","accept-language":"en-US"}}};v.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"]}}},v.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 A=function(){this.settings={url:"http://open.mapquestapi.com/nominatim/v1/search.php",params:{q:"",key:"",format:"json",addressdetails:1,limit:10,countrycodes:"","accept-language":"en-US"}}};A.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"]}}},A.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 w=function(){this.settings={url:"https://search.mapzen.com/v1/search",params:{text:"",key:"",size:10}}};w.prototype.getParameters=function(e){return{url:this.settings.url,params:{text:e.query,key:e.key,size:e.limit||this.settings.params.size}}},w.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:"https://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"],r=["street_address","route","sublocality_level_5","intersection"],s=["postal_code"],n=["locality"],a=["administrative_area_level_1"],o=["country"],i=function(e){var i={name:"",road:"",postcode:"",city:"",state:"",country:""};return e.forEach(function(e){y.anyMatchInArray(e.types,t)?i.name=e.long_name:y.anyMatchInArray(e.types,r)?i.road=e.long_name:y.anyMatchInArray(e.types,s)?i.postcode=e.long_name:y.anyMatchInArray(e.types,n)?i.city=e.long_name:y.anyMatchInArray(e.types,a)?i.state=e.long_name:y.anyMatchInArray(e.types,o)&&(i.country=e.long_name)}),i},l=[];return e.forEach(function(e){var t=i(e.address_components);y.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 S=function(e){return this.Base=e,this.layer_name=y.randomId("geocoder-layer-"),this.layer=new ol.layer.Vector({name:this.layer_name,source:new ol.source.Vector}),this.options=e.options,this.options.provider=this.options.provider.toLowerCase(),this.els=this.createControl(),this.container=this.els.container,this.registered_listeners={map_click:!1},this.setListeners(),this.Photon=new f,this.OpenStreet=new v,this.MapQuest=new A,this.Pelias=new w,this.Google=new C,this};S.prototype.createControl=function(){var n=y.createElement(["div",{classname:e+t}],S.html),i={container:n,control:n.querySelector("."+(e+r)),btn_search:n.querySelector("."+(e+s)),input_search:n.querySelector("."+(e+a)),result_container:n.querySelector("."+(e+o))};return i.input_search.placeholder=this.options.placeholder,i},S.prototype.setListeners=function(){var t=this,r=function(){y.hasClass(t.els.control,e+i)?t.collapse():t.expand()},s=function(e){if(13==e.keyCode){var r=y.htmlEscape(t.els.input_search.value);t.query(r)}};this.els.input_search.addEventListener("keydown",s,!1),this.els.btn_search.addEventListener("click",r,!1)},S.prototype.query=function(t){var r=this,s=this.options,a=this.els.input_search,o=this.getProvider({query:t,provider:s.provider,key:s.key,lang:s.lang,countrycodes:s.countrycodes,limit:s.limit});this.clearResults(),y.addClass(a,e+n),y.json(o.url,o.params).when({ready:function(t){s.debug&&console.info(t),y.removeClass(a,e+n);var o;switch(s.provider){case m.OSM:o=t.length>0?r.OpenStreet.handleResponse(t):void 0;break;case m.MAPQUEST:o=t.length>0?r.MapQuest.handleResponse(t):void 0;break;case m.PELIAS:o=t.features.length>0?r.Pelias.handleResponse(t.features):void 0;break;case m.PHOTON:o=t.features.length>0?r.Photon.handleResponse(t.features):void 0;break;case m.GOOGLE:o=t.results.length>0?r.Google.handleResponse(t.results):void 0}o&&(r.createList(o),r.listenMapClick())},error:function(){y.removeClass(a,e+n);var t=y.createElement("li","
Error! No internet connection?
");r.els.result_container.appendChild(t)}})},S.prototype.createList=function(e){var t=this,r=this.els.result_container;e.forEach(function(e){var s=t.addressTemplate(e.address),n=''+s+"",a=y.createElement("li",n);a.addEventListener("click",function(r){r.preventDefault(),t.chosen(e,s,e.address,e.original)},!1),r.appendChild(a)})},S.prototype.chosen=function(e,t,r,s){this.options.keepOpen===!1&&this.clearResults(!0);var n=this.Base.getMap(),a=n.getView(),o=a.getProjection(),i=ol.proj.transform([parseFloat(e.lon),parseFloat(e.lat)],"EPSG:4326",o),l=2.388657133911758,c=500,d={coord:i,address_html:t,address_obj:r,address_original:s},u=ol.animation.pan({duration:c,source:a.getCenter()}),p=ol.animation.zoom({duration:c,resolution:a.getResolution()});n.beforeRender(u,p),a.setCenter(i),a.setResolution(l),this.createFeature(d)},S.prototype.createFeature=function(e){var t=new ol.Feature({address_html:e.address_html,address_obj:e.address_obj,address_original:e.address_original,geometry:new ol.geom.Point(e.coord)});this.addLayer(),t.setStyle(this.options.featureStyle),t.setId(y.randomId("geocoder-ft-")),this.getSource().addFeature(t),this.Base.dispatchEvent({type:p.ADDRESSCHOSEN,feature:t,coordinate:e.coord})},S.prototype.addressTemplate=function(t){var r=[];return t.name&&r.push('{name}'),(t.road||t.building||t.house_number)&&r.push('{building} {road} {house_number}'),(t.city||t.town||t.village)&&r.push('{postcode} {city} {town} {village}'),(t.state||t.country)&&r.push('{state} {country}'),y.template(r.join("
"),t)},S.prototype.getProvider=function(e){var t;switch(e.provider){case m.OSM:t=this.OpenStreet.getParameters(e);break;case m.MAPQUEST:t=this.MapQuest.getParameters(e);break;case m.PHOTON:t=this.Photon.getParameters(e);break;case m.GOOGLE:t=this.Google.getParameters(e);break;case m.PELIAS:t=this.Pelias.getParameters(e)}return t},S.prototype.expand=function(){var t=this;y.removeClass(this.els.input_search,e+n),y.addClass(this.els.control,e+i),window.setTimeout(function(){t.els.input_search.focus()},100),this.listenMapClick()},S.prototype.collapse=function(){this.els.input_search.value="",this.els.input_search.blur(),y.removeClass(this.els.control,e+i),this.clearResults()},S.prototype.listenMapClick=function(){if(!this.registered_listeners.map_click){var e=this,t=this.Base.getMap().getTargetElement();this.registered_listeners.map_click=!0,t.addEventListener("click",{handleEvent:function(r){e.clearResults(!0),t.removeEventListener(r.type,this,!1),e.registered_listeners.map_click=!1}},!1)}},S.prototype.clearResults=function(e){e?this.collapse():y.removeAllChildren(this.els.result_container)},S.prototype.getSource=function(){return this.layer.getSource()},S.prototype.addLayer=function(){var e=this,t=!1,r=this.Base.getMap();r.getLayers().forEach(function(r){r===e.layer&&(t=!0)}),t||r.addLayer(this.layer)},S.html=['
','','',"
",''].join("");var E=function e(t,r){void 0===t&&(t="nominatim"),void 0===r&&(r={}),y.assert("string"==typeof t,"@param `control_type` should be string type!"),y.assert("object"==typeof r,"@param `opt_options` should be object type!"),this.options=y.mergeOptions(g,r),e.Nominatim=new S(this),ol.control.Control.call(this,{element:e.Nominatim.container})};return ol.inherits(E,ol.control.Control),E.prototype.getLayer=function(){return E.Nominatim.layer},E.prototype.getSource=function(){return this.getLayer().getSource()},E}); diff --git a/build/ol3-geocoder.min.css b/build/ol3-geocoder.min.css index 69c3d7f..ba804b5 100644 --- a/build/ol3-geocoder.min.css +++ b/build/ol3-geocoder.min.css @@ -1,8 +1,8 @@ /** * A geocoder extension for OpenLayers 3. * https://github.com/jonataswalker/ol3-geocoder - * Version: v2.0.0 - * Built: 2016-04-22T16:55:20-0300 + * Version: v2.0.1 + * Built: 2016-04-30T13:57:19-0300 */ .ol3-geocoder-container{position:absolute;top:calc(.5em + 65px);left:.5em;box-sizing:border-box}.ol3-geocoder-container *,.ol3-geocoder-container ::after,.ol3-geocoder-container ::before{box-sizing:inherit}.ol3-geocoder-search{width:31px;height:31px;overflow:hidden;-webkit-transition:width .2s,height .2s;transition:width .2s,height .2s}.ol3-geocoder-search-expanded{width:220px;height:35px}.ol3-geocoder-input-search{position:absolute;top:2px;left:32px;width:180px;padding:5px;border:1px solid #ccc;font-family:inherit;font-size:.875rem}.ol3-geocoder-input-search:focus{border-color:#35b5f4}ul.ol3-geocoder-result{position:absolute;top:37px;left:32px;width:260px;max-height:300px;white-space:normal;list-style:none;padding:0;margin:0;background-color:#fff;border-radius:0 0 4px 4px;border-top:none;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}ul.ol3-geocoder-result>li{width:100%;overflow:hidden;border-bottom:1px solid #eee;padding:0;line-height:.875rem}ul.ol3-geocoder-result>li>a{display:block;text-decoration:none;padding:3px 5px}ul.ol3-geocoder-result>li>a:hover{background-color:#d4d4d4}ul.ol3-geocoder-result>li:nth-child(odd){background-color:#e0ffe0}.ol3-geocoder-road{font-size:.875rem;font-weight:700;color:#000}.ol3-geocoder-city{font-size:.75rem;font-weight:400;color:#000}.ol3-geocoder-country{font-size:.75rem;font-weight:lighter;color:#444}.ol3-geocoder-btn-search{position:absolute;width:25px;height:25px;top:2px;left:2px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAABPUlEQVQoU41SwXHCQAzUHh58eoUOIBWEDkI6oAToIKkg7iAuwakgpAIowXRACcnrzp6BzchjMx4wE/S6kW5XK60gvQghzJIkmVoqSZI9gJ9+/fINS5Cc1HX9QXIlIr/tpwcRyb33b7cIGnAIYQdg4pxbjcfj0nJ1Xc+Px+PGObdN03Q9RIAQwgpAnqbp7FKmjQGgJLlU1d2V7BjjRkQO3vvXIXarkyxVNbsCm2QR2Q0V7XOMMReRmfd+OQQubN6hYgs22ZtbnRcAtiRfLueqqmpJ8ovko6oeBq0KIWQA3gFkzrlmMafTaUEyI/mpqmbhVTRWWbRdbClPbeobQNES5KPRqOxs7DBn8K1DsAOKMZYApiTXqlrcDe4d0XN7jWeCfzt351tVle2iGalTcBd4gGDvvZ/fDe4RmCOFLe8Pr7mvEP2N9PQAAAAASUVORK5CYII=);background-repeat:no-repeat;background-position:center center}.ol3-geocoder-loading{background-image:url(data:image/gif;base64,R0lGODlhFAAUAKUAAAQCBISChMTCxERCRKSipOTi5GRiZJSSlNTS1LSytPTy9CQiJHRydExOTIyKjMzKzKyqrOzq7JyanNza3Ly6vPz6/CwuLHx6fBwaHExKTGxubFRWVAQGBISGhMTGxERGRKSmpOTm5GRmZJSWlNTW1LS2tPT29CQmJHR2dFRSVIyOjMzOzKyurOzu7JyenNze3Ly+vPz+/DQyNHx+fP7+/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCQA0ACwAAAAAFAAUAAAG80CaUKgw0RAAAIJWqQyftBjEAqIpOBwF7UUpxKBMDSbjPC2EAtbqO4w5TR8MiZbJ0FoJgTPGLqGMBRYzNAwMRyVGFQ8FVhkyG4wCKE8IEVYwCRQmJgkGMgMeYEIhJSUCL2xbBx2iRyRaQi+wrWAVLQ0pBjMjqVAxCB4UCSW4IgEuvU8VJA+YCQVGtLWwMQUgBK0rCC1sJgIBIgxzohHCMKgmFyIdlhMsUU4rliaYFE4PLk4RHRQ0HqEkKGipsCKEEDc0TIwIYLCUFRYCovWSMsOFEAhVaAhI8CBZFAQqVjCRIMHJCxheWjWhEUHCiBZMnDwJAgAh+QQJCQAwACwAAAAAFAAUAIUEAgSEgoTEwsRERkTk4uSkoqRsamzU0tT08vS0srQkIiSUlpRcWlyMiozMyszs6uysqqx0dnTc2tz8+vy8urw0MjQUFhRMTkycnpxkYmQ8OjyEhoTExsRMSkzk5uSkpqRsbmzU1tT09vS0trScmpxcXlyMjozMzszs7uysrqx8fnzc3tz8/vy8vrw0NjQcGhz+/v4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG90CYUIgQwUKvVwgmQgyfMFaik4IhXgrn4lVgQWETVa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No newline at end of file diff --git a/package.json b/package.json index d1dd5c2..aaa2a30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ol3-geocoder", - "version": "2.0.0", + "version": "2.0.1", "description": "A geocoder extension for OpenLayers 3.", "author": "Jonatas Walker", "homepage": "https://github.com/jonataswalker/ol3-geocoder",