Improve handling of omnivore data loading.

This commit is contained in:
David Molineus
2015-01-18 13:14:32 +01:00
parent 1660f61099
commit 8da943dd9d
2 changed files with 12 additions and 30 deletions

View File

@@ -113,7 +113,7 @@ L.contao = new (L.Class.extend({
* @param customLayer optional custom layer.
* @param map Pass a map object so that the data loading events are passed to the map.
*/
loadLayer: function(hash, type, options, customLayer, map) {
load: function(hash, type, options, customLayer, map) {
var url = this.createRequestUrl(hash);
var layer = omnivore[type](url, options, customLayer);