我决定在我的网站上添加交互式地图,Leaflet模块似乎提供了适合移动设备的地图。 我遵循安装步骤,一切都很好,直到最后。 出于某种原因,我得到Leaflet JavaScript library could not be detected error 。 我确认该库已上传到正确的目录中; sites/all/libraries/leaflet/但删除并再次上传,以防万一。 我花了2个多小时来解决它,但我现在真的很想要一些帮助!
网站地址: http : //www.kampuster.com/tr/home-inner-new
I've decided to add interactive maps to my website and Leaflet module seems to provide mobile-friendly maps. I followed the installation steps, everything was fine until the end. For some reason, I get Leaflet JavaScript library could not be detected error. I verified that the library is uploaded inside the correct directory; sites/all/libraries/leaflet/ but deleted and uploaded it again just in case. I spent over 2 hours to resolve it but I'd really like some help now!
Website address: http://www.kampuster.com/tr/home-inner-new
最满意答案
原来代码中有错误。 我将版本控制更改为以下版本,并且工作正常。
'version' > 0该版本必须添加到leaflet_libraries_info()挂钩中。 这里的Leaflet模块问题队列中存在一个公开问题,其中概述了问题
Turns out that there is an error in the code. I changed version control to the following and it worked.
'version' > 0The version has to be added to the leaflet_libraries_info() hook. There is an open issue in the Leaflet module issue queue here which outlines the problem
更多推荐
发布评论