leaflet-zoomfs-rails 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,9 +4,9 @@
|
|
4
4
|
* https://github.com/elidupuis/leaflet.zoomfs
|
5
5
|
*/
|
6
6
|
L.Control.ZoomFS = L.Control.Zoom.extend({
|
7
|
-
options: {
|
8
|
-
|
9
|
-
},
|
7
|
+
//options: {
|
8
|
+
// onlyfs: false
|
9
|
+
//},
|
10
10
|
includes: L.Mixin.Events,
|
11
11
|
onAdd: function (map) {
|
12
12
|
var zoomName = 'leaflet-control-zoom',
|
@@ -23,7 +23,7 @@ L.Control.ZoomFS = L.Control.Zoom.extend({
|
|
23
23
|
partName + '-top',
|
24
24
|
container, this.fullscreen, this);
|
25
25
|
|
26
|
-
if (!this.options.onlyfs) {
|
26
|
+
//if (!this.options.onlyfs) {
|
27
27
|
this._zoomInButton = this._createButton('+', 'Zoom in',
|
28
28
|
zoomName + '-in ' +
|
29
29
|
partName + ' ',
|
@@ -34,7 +34,7 @@ L.Control.ZoomFS = L.Control.Zoom.extend({
|
|
34
34
|
partName + ' ' +
|
35
35
|
partName + '-bottom',
|
36
36
|
container, this._zoomOut, this);
|
37
|
-
}
|
37
|
+
//}
|
38
38
|
|
39
39
|
map.on('zoomend zoomlevelschange', this._updateDisabled, this);
|
40
40
|
|