MediaWiki:Kartographer.js: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 71: Zeile 71:
   }
   }


   // Hook into Kartographer
   // Inline maps
   mw.hook("wikipage.maps").add(function (maps) {
   mw.hook("wikipage.maps").add(maps => maps.forEach(addCustomLayers));
    maps.forEach(addCustomLayers);
 
   });
  // Full-screen maps
  mw.hook("kartographer.bootstrap.map").add(addCustomLayers);
   mw.hook("kartographer.bootstrap.mapWindow").add(addCustomLayers);
})(mediaWiki);
})(mediaWiki);