Restore (short) attribution on the map, closes #110
This commit is contained in:
parent
4740048960
commit
59827a524f
5 changed files with 56 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue