I am working on a notebook to demonstrate mapping an ArcGIS REST service with Leaflet and some Leaflet plugins. I admit, I am not up to speed with the require() and more used to loading libraries via script tags but found this notebook’s Leaflet loading code. I think it makes a bit of sense and appears to work well for that particular notebook.
However, I seem to be running into a situation where the plugins, even if I get a response when I require them, don’t end up extending the Leaflet object. All of the plugins I’m attempting to use (esri-leaflet, leaflet-heat, and esri-leaflet-heatmap) have failed, though the Esri ones seem to do so most consistently. In other words, after creating my Leaflet object,
L, if I check
L.esri in the next cell, it returns
Does anyone have any recommendations on how I might better structure my notebook to be able to extend Leaflet with plugins?