This commit is contained in:
David Molineus
2016-11-14 09:10:31 +01:00
parent 74f500513a
commit 130848c1f3

View File

@@ -110,7 +110,7 @@ L.Contao = L.Class.extend({
},
/**
* Layer a url into a layer using omnivore.
* Load data from an url into a layer using omnivore.
*
* @param hash The leaflet url hash.
* @param type The response content format.
@@ -126,7 +126,7 @@ L.Contao = L.Class.extend({
// Required because Control.Loading tries to get _leafet_id which is created here.
L.stamp(layer);
// Add listender for map bounds changes.
// Add listener for map bounds changes.
if (map.options.dynamicLoad && layer.options.boundsMode == 'fit') {
layer.options.requestHash = hash;
map.on('moveend', layer.refreshData, layer);