]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Sidebar work
[rails.git] / app / assets / javascripts / index.js
index 7f4887469c6c8f13ef8702430792446ced01d954..d09213c5d34b90c458d693d73b1e4051bb6a4791 100644 (file)
@@ -48,6 +48,12 @@ $(document).ready(function () {
       code: "Q",
       keyid: "mapquest",
       name: I18n.t("javascripts.map.base.mapquest")
+    }),
+    new L.OSM.HOT({
+      attribution: copyright + ". Tiles courtesy of <a href='http://hot.openstreetmap.org/' target='_blank'>Humanitarian OpenStreetMap Team</a>",
+      code: "H",
+      keyid: "hot",
+      name: I18n.t("javascripts.map.base.hot")
     })
   ];
 
@@ -85,10 +91,6 @@ $(document).ready(function () {
   map.dataLayer = new L.OSM.DataLayer(null);
   map.dataLayer.options.code = 'D';
 
-  $("#sidebar").on("opened closed", function () {
-    map.invalidateSize();
-  });
-
   var position = $('html').attr('dir') === 'rtl' ? 'topleft' : 'topright';
 
   L.OSM.zoom({position: position})