SymbolixAU / mapdeck

R interface to Deck.gl and Mapbox

Home Page:https://symbolixau.github.io/mapdeck/articles/mapdeck.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`globalThis` undefined

dcooley opened this issue · comments

commented

in deck.gl 6407 deck.gl replaced global with globalThis.

Rstudio doesn't appear to like this and can't find globalThis.


I don't know if this is correct, but this solution at the top of mapdeck.js seems to solve it. But I have no idea of the downstream consequences

if( typeof globalThis === 'undefined') {
	var globalThis = window;
}