You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cswendrowski opened this issue
Jun 13, 2020
· 4 comments
Labels
bugFunctionality which is not working as intendedwa-apiIssues which need additional features from the World Anvil API in order to become possible.wa-inputIssues which need input from the World Anvil team
Imported article that contained map. Map does not display.
Seeing the following error in console:
jquery.min.js:2 Uncaught ReferenceError: L is not defined
at <anonymous>:2:17
at b (jquery.min.js:2)
at Pe (jquery.min.js:2)
at S.fn.init.append (jquery.min.js:2)
at JournalSheet._injectHTML (foundry.js:4018)
at JournalSheet._render (foundry.js:3869)
at async JournalSheet._render (foundry.js:4455)
Presumably related to the following source in the HTML of the article:
var labelIcon = new L.Icon({
iconUrl: '/images/markers/marker-icon-transparent.png',
iconSize: [150, 35],
iconAnchor: [75, 15],
popupAnchor: [0, -20],
})
...
The text was updated successfully, but these errors were encountered:
It feels like trying to include support for maps from WA into FVTT is a bit of an overkill - there is a lot of logic there - but we certainly need to find a way to handle their display / or lack thereof gracefully.
I didn't realize that WA articles could contain inline scripts like this. I'll definitely need to strip those out on the Foundry side - although perhaps they should not be included in the return from the API in the first place.
bugFunctionality which is not working as intendedwa-apiIssues which need additional features from the World Anvil API in order to become possible.wa-inputIssues which need input from the World Anvil team
In GitLab by @vbfischer on Jun 13, 2020, 13:49
Imported article that contained map. Map does not display.
Seeing the following error in console:
Presumably related to the following source in the HTML of the article:
The text was updated successfully, but these errors were encountered: