Restore (short) attribution on the map, closes #110

This commit is contained in:
Norbert Renner 2018-07-03 20:41:26 +02:00
parent 4740048960
commit 59827a524f
5 changed files with 56 additions and 26 deletions

View file

@ -6,13 +6,6 @@ BR.Search = L.Control.Geocoder.extend({
position: 'topleft'
},
onAdd: function (map) {
map.attributionControl.addAttribution(
'search by <a href="https://wiki.openstreetmap.org/wiki/Nominatim" target="_blank">Nominatim</a>');
return L.Control.Geocoder.prototype.onAdd.call(this, map);
},
markGeocode: function(result) {
this._map.fitBounds(result.geocode.bbox, {
maxZoom: 17