Use minus character instead of hyphen in the zoom control (#5501)

* Using proper minus character in the zoom control which means CSS workaround isn't needed

* Using HTML escaping of unicode minus character for added browser support
This commit is contained in:
Damian Moore 2017-06-04 11:56:23 +01:00 committed by Per Liedman
parent 652946947d
commit 60e1965e33
2 changed files with 3 additions and 9 deletions

8
dist/leaflet.css vendored
View File

@ -325,16 +325,10 @@
font: bold 18px 'Lucida Console', Monaco, monospace;
text-indent: 1px;
}
.leaflet-control-zoom-out {
font-size: 20px;
}
.leaflet-touch .leaflet-control-zoom-in {
.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
font-size: 22px;
}
.leaflet-touch .leaflet-control-zoom-out {
font-size: 24px;
}
/* layers control */

View File

@ -26,9 +26,9 @@ export var Zoom = Control.extend({
// The title set on the 'zoom in' button.
zoomInTitle: 'Zoom in',
// @option zoomOutText: String = '-'
// @option zoomOutText: String = '−'
// The text set on the 'zoom out' button.
zoomOutText: '-',
zoomOutText: '−',
// @option zoomOutTitle: String = 'Zoom out'
// The title set on the 'zoom out' button.