Leaflet 1.0: "L.geoJson" renamed to "L.geoJSON" (for consistency)
This commit is contained in:
parent
c17726513f
commit
7a4eefed17
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ L.BRouter = L.Class.extend({
|
|||
|
||||
try {
|
||||
geojson = JSON.parse(xhr.responseText);
|
||||
layer = L.geoJson(geojson).getLayers()[0];
|
||||
layer = L.geoJSON(geojson).getLayers()[0];
|
||||
|
||||
return cb(null, layer);
|
||||
} catch(e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue