Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions inst/htmlwidgets/leaflet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ var LayerManager = function () {
if (layerInfo.ctGroup) {
var ctGroup = this._byCrosstalkGroup[layerInfo.ctGroup];
var layersForKey = ctGroup[layerInfo.ctKey];
var idx = layersForKey ? layersForKey.indexOf(stamp) : -1;
var idx = layersForKey ? layersForKey.indexOf(+stamp) : -1;
if (idx >= 0) {
if (layersForKey.length === 1) {
delete ctGroup[layerInfo.ctKey];
Expand Down Expand Up @@ -2348,7 +2348,6 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
// pixel of the original image has some contribution to the downscaled image)
// as opposed to a single-step downscaling which will discard a lot of data
// (and with sparse images at small scales can give very surprising results).

var Mipmapper = function () {
function Mipmapper(img) {
_classCallCheck(this, Mipmapper);
Expand Down
2 changes: 1 addition & 1 deletion javascript/src/layer-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export default class LayerManager {
if (layerInfo.ctGroup) {
let ctGroup = this._byCrosstalkGroup[layerInfo.ctGroup];
let layersForKey = ctGroup[layerInfo.ctKey];
let idx = layersForKey ? layersForKey.indexOf(stamp) : -1;
let idx = layersForKey ? layersForKey.indexOf(+stamp) : -1;
if (idx >= 0) {
if (layersForKey.length === 1) {
delete ctGroup[layerInfo.ctKey];
Expand Down