-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Plotly javascript library fails to load silently if ArcGIS library is added before it. This issue is blocker for me because I can not use both of them in the same time...
Steps to reproduce on Chrome or Firefox on Windows10:
- Open any website that does not have already ArcGIS or Plotly loaded.(ex: google.com)
- Open Chrome developer tools
- Add FIRST ArcGIS in console drawer by copy/paste following lines:
var acrGISlib = document.createElement("script");
acrGISlib.setAttribute("type", "text/javascript");
acrGISlib.setAttribute("src", "https://js.arcgis.com/4.18/");
document.getElementsByTagName("head")[0].prepend(acrGISlib);
- Add the Plotly lib from CDN in console drawer by copy/paste following lines:
var plotlyLib = document.createElement("script");
plotlyLib.setAttribute("type", "text/javascript");
plotlyLib.setAttribute("src", "https://cdn.plot.ly/plotly-latest.min.js");
document.getElementsByTagName("head")[0].prepend(plotlyLib);
- Check if global variable 'Plotly' is available.
Uncaught ReferenceError: Plotly is not defined
Note: If step 3 is skipped everything is working as expected. If step 4 is done before step 3 they will both work but this does not help me...
Metadata
Metadata
Assignees
Labels
No labels
