简体   繁体   English

传单 mapbox 矢量平铺 javascript 文件

[英]leaflet mapbox vector tile javascript file

I am not familiar with nodejs environment, I want to get the js file of Leaflet.MapboxVectorTile对nodejs环境不熟悉,想获取Leaflet.MapboxVectorTile的js文件

Is it possible to use it without installing nodejs?不安装nodejs可以用吗?

Yes, all you have to do is download the file from GitHub.是的,您所要做的就是从 GitHub 下载文件。 Here is the link to the source javascript file, here is the link to the minified file. 是源 javascript 文件的链接, 是缩小文件的链接。 The minified file is recommended, as it is smaller and takes less time for the browser to fetch.建议使用缩小文件,因为它更小并且浏览器获取所需时间更短。

Once you have downloaded the file, put it in the same directory as your html document, and then place the following code in the head section of your html document:下载文件后,将其放在与 html 文档相同的目录中,然后将以下代码放在 html 文档的head部分:

<script src="Leaflet.MapboxVectorTile.min.js"></script>

If you searched a little bit, you could find answers for this, as all you have to do is download a file from GitHub.如果你稍微搜索一下,你可以找到答案,因为你所要做的就是从 GitHub 下载一个文件。 Please see How much research effort is expected of Stack Overflow users?请参阅Stack Overflow 用户需要做多少研究工作?

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

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