mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-30 20:13:49 +01:00
Ongoing development.
This commit is contained in:
7
module/assets/.htaccess
Normal file
7
module/assets/.htaccess
Normal file
@@ -0,0 +1,7 @@
|
||||
<IfModule !mod_authz_core.c>
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</IfModule>
|
||||
<IfModule mod_authz_core.c>
|
||||
Require all granted
|
||||
</IfModule>
|
||||
BIN
module/assets/img/leaflet.png
Normal file
BIN
module/assets/img/leaflet.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
23
module/assets/js/contao-leaflet.js
Normal file
23
module/assets/js/contao-leaflet.js
Normal file
@@ -0,0 +1,23 @@
|
||||
L.Contao = L.Class.extend( {
|
||||
includes: L.Mixin.Events,
|
||||
|
||||
maps: {},
|
||||
|
||||
addMap: function (id, map) {
|
||||
this.maps[id] = map;
|
||||
|
||||
this.fire('mapadded', { id: id, map: map});
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
getMap: function (id) {
|
||||
if (typeof (this.map[id]) === 'undefined') {
|
||||
return null;
|
||||
}
|
||||
|
||||
return this.map[id]
|
||||
}
|
||||
});
|
||||
|
||||
window.ContaoLeaflet = new L.Contao();
|
||||
Reference in New Issue
Block a user