Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed Jan 6, 2014
1 parent 34151a9 commit 4b84934
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
9 changes: 6 additions & 3 deletions examples/lib/esri-leaflet/esri-leaflet-src.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Esri-Leaflet - v0.0.1-rc.2 - 2014-01-05
/*! Esri-Leaflet - v0.0.1-beta.3 - 2014-01-05
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/
(function (root, factory) {
Expand Down Expand Up @@ -2658,7 +2658,7 @@ L.esri.RequestHandlers = {
params.f="json";
params.callback="L.esri._callback."+callbackId;

var script = document.createElement('script');
var script = L.DomUtil.create('script', null, document.body);
script.type = 'text/javascript';
script.src = url + L.esri.Util.serialize(params);
script.id = callbackId;
Expand All @@ -2673,7 +2673,6 @@ L.esri.RequestHandlers = {
delete L.esri._callback[callbackId];
};

document.body.appendChild(script);
}
};

Expand Down Expand Up @@ -3144,6 +3143,10 @@ L.esri.Mixins.identifiableLayer = {
bounds: null,
zoom: null,
onAdd: function(map){
if(!map.attributionControl && console){
console.warn("L.esri.BasemapLayer requires attribution. Please set attributionControl to true on your map");
return;
}
L.TileLayer.prototype.onAdd.call(this, map);
if(this._dynamicAttribution){
this.on("load", this._handleTileUpdates, this);
Expand Down
6 changes: 3 additions & 3 deletions examples/lib/esri-leaflet/esri-leaflet.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Esri-Leaflet - v0.0.1-rc.2 - 2014-01-05
/*! Esri-Leaflet - v0.0.1-beta.3 - 2014-01-05
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/
/* globals Terraformer, L */
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions examples/lib/esri-leaflet/extras/esri-basemaps-src.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Esri-Leaflet - v0.0.1-rc.2 - 2014-01-05
/*! Esri-Leaflet - v0.0.1-beta.3 - 2014-01-05
* Copyright (c) 2014 Environmental Systems Research Institute, Inc.
* Apache License*/
/* globals L */
Expand Down Expand Up @@ -47,7 +47,7 @@ L.esri.RequestHandlers = {
params.f="json";
params.callback="L.esri._callback."+callbackId;

var script = document.createElement('script');
var script = L.DomUtil.create('script', null, document.body);
script.type = 'text/javascript';
script.src = url + L.esri.Util.serialize(params);
script.id = callbackId;
Expand All @@ -62,7 +62,6 @@ L.esri.RequestHandlers = {
delete L.esri._callback[callbackId];
};

document.body.appendChild(script);
}
};

Expand Down Expand Up @@ -533,6 +532,10 @@ L.esri.Mixins.identifiableLayer = {
bounds: null,
zoom: null,
onAdd: function(map){
if(!map.attributionControl && console){
console.warn("L.esri.BasemapLayer requires attribution. Please set attributionControl to true on your map");
return;
}
L.TileLayer.prototype.onAdd.call(this, map);
if(this._dynamicAttribution){
this.on("load", this._handleTileUpdates, this);
Expand Down
4 changes: 2 additions & 2 deletions examples/lib/esri-leaflet/extras/esri-basemaps.js

Large diffs are not rendered by default.

0 comments on commit 4b84934

Please sign in to comment.