rename top/bottom to first/last in control classes, thanks @yohanboniface
This commit is contained in:
parent
b5c9a16ffb
commit
57c0ac408e
8
dist/leaflet.css
vendored
8
dist/leaflet.css
vendored
@ -199,11 +199,11 @@
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-bottom: 1px solid rgba(0,0,0,0.2);
|
border-bottom: 1px solid rgba(0,0,0,0.2);
|
||||||
}
|
}
|
||||||
.leaflet-bar-part-top {
|
.leaflet-bar-part-first {
|
||||||
-webkit-border-radius: 4px 4px 0 0;
|
-webkit-border-radius: 4px 4px 0 0;
|
||||||
border-radius: 4px 4px 0 0;
|
border-radius: 4px 4px 0 0;
|
||||||
}
|
}
|
||||||
.leaflet-bar-part-bottom {
|
.leaflet-bar-part-last {
|
||||||
-webkit-border-radius: 0 0 4px 4px;
|
-webkit-border-radius: 0 0 4px 4px;
|
||||||
border-radius: 0 0 4px 4px;
|
border-radius: 0 0 4px 4px;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
@ -213,11 +213,11 @@
|
|||||||
-webkit-border-radius: 10px;
|
-webkit-border-radius: 10px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
.leaflet-touch .leaflet-bar-part-top {
|
.leaflet-touch .leaflet-bar-part-first {
|
||||||
-webkit-border-radius: 7px 7px 0 0;
|
-webkit-border-radius: 7px 7px 0 0;
|
||||||
border-radius: 7px 7px 0 0;
|
border-radius: 7px 7px 0 0;
|
||||||
}
|
}
|
||||||
.leaflet-touch .leaflet-bar-part-bottom {
|
.leaflet-touch .leaflet-bar-part-last {
|
||||||
-webkit-border-radius: 0 0 7px 7px;
|
-webkit-border-radius: 0 0 7px 7px;
|
||||||
border-radius: 0 0 7px 7px;
|
border-radius: 0 0 7px 7px;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
@ -18,13 +18,13 @@ L.Control.Zoom = L.Control.extend({
|
|||||||
this._zoomInButton = this._createButton('+', 'Zoom in',
|
this._zoomInButton = this._createButton('+', 'Zoom in',
|
||||||
zoomName + '-in ' +
|
zoomName + '-in ' +
|
||||||
partName + ' ' +
|
partName + ' ' +
|
||||||
partName + '-top',
|
partName + '-first',
|
||||||
container, this._zoomIn, this);
|
container, this._zoomIn, this);
|
||||||
|
|
||||||
this._zoomOutButton = this._createButton('-', 'Zoom out',
|
this._zoomOutButton = this._createButton('-', 'Zoom out',
|
||||||
zoomName + '-out ' +
|
zoomName + '-out ' +
|
||||||
partName + ' ' +
|
partName + ' ' +
|
||||||
partName + '-bottom',
|
partName + '-last',
|
||||||
container, this._zoomOut, this);
|
container, this._zoomOut, this);
|
||||||
|
|
||||||
map.on('zoomend', this._updateDisabled, this);
|
map.on('zoomend', this._updateDisabled, this);
|
||||||
|
Loading…
Reference in New Issue
Block a user