未找到传单库(Leaflet library not found)

编程入门 行业动态 更新时间:2024-10-09 16:29:39
未找到传单库(Leaflet library not found)

我决定在我的网站上添加交互式地图,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' > 0

The 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

更多推荐

本文发布于:2023-08-02 07:29:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1372765.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:传单   未找到   library   Leaflet

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!