Projet

Général

Profil

0001-maps-don-t-add-zoom-controls-if-zoom-level-is-fixed-.patch

Frédéric Péters, 15 juin 2018 11:28

Télécharger (1,13 ko)

Voir les différences:

Subject: [PATCH] maps: don't add zoom controls if zoom level is fixed (#24569)

 combo/apps/maps/static/js/combo.map.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
combo/apps/maps/static/js/combo.map.js
101 101
        }
102 102
        var map = L.map($map_widget[0], map_options);
103 103
        var map_controls_position = $('body').data('map-controls-position') || 'topleft';
104
        new L.Control.Zoom({position: map_controls_position}).addTo(map);
104
        if (map_options.maxZoom != map_options.minZoom) {
105
          new L.Control.Zoom({position: map_controls_position}).addTo(map);
106
        }
105 107
        if (L.Control.Gps) {
106 108
          var gps_control = new L.Control.Gps({position: map_controls_position});
107 109
          map.addControl(gps_control);
108
-