Updating UI to also fit on mobile devices. Fix #34
This commit is contained in:
parent
1e26cb1027
commit
d7e476db82
44 changed files with 555 additions and 1305 deletions
|
|
@ -6,7 +6,7 @@ BR.Search = L.Control.Geocoder.extend({
|
|||
position: 'topleft'
|
||||
},
|
||||
|
||||
onAdd: function (map) {
|
||||
onAdd: function (map) {
|
||||
map.attributionControl.addAttribution(
|
||||
'search by <a href="http://wiki.openstreetmap.org/wiki/Nominatim" target="_blank">Nominatim</a>');
|
||||
|
||||
|
|
@ -14,19 +14,19 @@ BR.Search = L.Control.Geocoder.extend({
|
|||
},
|
||||
|
||||
markGeocode: function(result) {
|
||||
this._map.fitBounds(result.bbox, {
|
||||
this._map.fitBounds(result.geocode.bbox, {
|
||||
maxZoom: 17
|
||||
});
|
||||
|
||||
this.clear();
|
||||
this._geocodeMarker = new L.CircleMarker(result.center, {
|
||||
this._geocodeMarker = new L.CircleMarker(result.geocode.center, {
|
||||
clickable: false,
|
||||
color: 'red',
|
||||
opacity: 1,
|
||||
weight: 3
|
||||
}).addTo(this._map);
|
||||
|
||||
return this;
|
||||
return this;
|
||||
},
|
||||
|
||||
clear: function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue