The function append(basemap, thumbnailUrl, tooltip) is sometimes called with just a basemap provided as argument, which causes the thumbnailUrl and tooltip to be undefined.
This causes a massive wave of errors when running the tool. Fortunately, fixing it was simple enough.
With this modification, the behavior did not change, but the errors all went away.
The function
append(basemap, thumbnailUrl, tooltip)
is sometimes called with just abasemap
provided as argument, which causes thethumbnailUrl
andtooltip
to beundefined
.This causes a massive wave of errors when running the tool. Fortunately, fixing it was simple enough.
With this modification, the behavior did not change, but the errors all went away.