mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 06:36:03 +02:00
Add reference layer.
This commit is contained in:
1 parent
efb36256c7
commit
8e35dc1fef
15 files changed
+149
-24
No files matched your search
@@ -30,8 +30,10 @@ L.Contao = L.Class.extend({
|
||||
var map = this;
|
||||
|
||||
this.on('layeradd', function(e) {
|
||||
e.layer.on('data:loading', function() { map.fire('dataloading'); });
|
||||
e.layer.on('data:loaded', function() { map.fire('dataload'); });
|
||||
if (e.layer.on) {
|
||||
e.layer.on('data:loading', function() { map.fire('dataloading'); });
|
||||
e.layer.on('data:loaded', function() { map.fire('dataload'); });
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user