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
This is a feature request. Currently, you can return strings in POIs/markers, and HTML seems to work fine. However, JavaScript does not load or execute.
In testing, I cannot get any JavaScript to execute through <script> tags with the code returned from within Python (example: <script> console.log("Test");) or from another source (via <script src=...>). The code is visible if you view the page source in-browser or through the browser's developer tools, but nothing executes (in the example, the message does not show up in the console), however the code is (as expected) hidden from the user otherwise.
If this could be fixed, that would open up many possibilities for more custom map markers/POIs.
I thank you for your time.
The text was updated successfully, but these errors were encountered:
Unless it is just because of my limited knowledge of web development (if so, please let me know and I will do further research), I am unsure if using custom web assets would be as powerful as I'd like it to be.
My specific use of returning HTML/JS is to render player inventories with all of their items (including custom names, enchantments) and chest contents so viewers of the map can click on a player or chest and easily view its contents. I wrote the code to do this (with HTML5 Canvas + JavaScript), but getting it to display on the map/outside of a test webpage is where I am stopped.
This is a feature request. Currently, you can return strings in POIs/markers, and HTML seems to work fine. However, JavaScript does not load or execute.
In testing, I cannot get any JavaScript to execute through
<script>
tags with the code returned from within Python (example:<script> console.log("Test");
) or from another source (via<script src=...>
). The code is visible if you view the page source in-browser or through the browser's developer tools, but nothing executes (in the example, the message does not show up in the console), however the code is (as expected) hidden from the user otherwise.If this could be fixed, that would open up many possibilities for more custom map markers/POIs.
I thank you for your time.
The text was updated successfully, but these errors were encountered: