简体   繁体   English

Leaflet.js 图像叠加现在显示

[英]Leaflet.js image overlay now showing

So I have been making a map for a game called starscape.所以我一直在为一款名为starscape的游戏制作map。 For adding all the different systems to this leaflet map I use an image overlay to then add the systems respectively, but now after some time of development the image doesn't show even in the DOM on the overlaylayer, and no errors show up.为了将所有不同的系统添加到此 leaflet map 我使用图像叠加层然后分别添加系统,但现在经过一段时间的开发,图像甚至在叠加层的 DOM 中也没有显示,也没有出现错误。 The source is on github and I usually don't compile/serve it with webpack or firebase when testing but I do when deploying it ( https://github.com/robigan/Starscape-Utils and the website I deployed to https://starscape-maps.web.app/ ). The source is on github and I usually don't compile/serve it with webpack or firebase when testing but I do when deploying it ( https://github.com/robigan/Starscape-Utils and the website I deployed to https:/ /starscape-maps.web.app/ )。 I have been scratching my head at this for a couple hours and Idk what to do anymore.几个小时以来,我一直在为此挠头,我不知道该怎么办了。 I use the python3 module LittleHTTPServer when testing.我在测试时使用 python3 模块 LittleHTTPServer。 Note that this has been happening for some while now and I had forgot to init git some I have no history to revert to.请注意,这已经发生了一段时间,我忘了初始化 git 一些我没有历史可以恢复。

Oh ffs, found out, but I am gonna leave this post open because I find this interesting , in the end I added the image overlay function towards the end.哦,ffs,发现了,但我会留下这篇文章,因为我觉得这很有趣,最后我在最后添加了图像叠加 function。 So after my population function was running and my custom controller was called.因此,在我的人口 function 运行后,我的自定义 controller 被调用。 It finally showed up终于出现了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM