But I don’t want to clutter my markdown with 7675 lines of code!
You could put the JS into a shortcode
Thank you - but I’ve not much experience with shortcodes. I can simply add a link to the file, of course, but it would be nice for the map to appear on the page of its explanatory post.
Yep, this can be accomplished with a shortcode. You would place your JS in the shortcode, then call it from your content file. I recommend giving the docs on them a read
Thank you again - so far I haven’t found what I want in the docs, but I’ll keep looking. I was hoping something like
would work, but clearly I need something more sophisticated than that.
I solved it by putting it into an iframe. Simple and effective!