Skip to content

Commit

Permalink
Improve casting style
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Pardo committed May 31, 2016
1 parent 26ec7de commit d4149f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TileLayer.GeoJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ L.TileLayer.GeoJSON = L.TileLayer.Ajax.extend({
},

_getUniqueId: function() {
return this._leaflet_id || ''; // jshint ignore:line
return String(this._leaflet_id || ''); // jshint ignore:line
},

// Remove clip path elements from other earlier zoom levels
_removeOldClipPaths: function () {
for (var clipPathId in this._clipPathRectangles) {
var prefix = clipPathId.split('tileClipPath')[0];
if (String(this._getUniqueId()) === String(prefix)) {
if (this._getUniqueId() === prefix) {
var clipPathZXY = clipPathId.split('_').slice(1);
var zoom = parseInt(clipPathZXY[0], 10);
if (zoom !== this._map.getZoom()) {
Expand Down

0 comments on commit d4149f7

Please sign in to comment.