【文件属性】:
文件名称:yii2-mapbox-leaflet-helper:使用 Mapbox 和 Leaflet 的助手
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-16 05:02:08
PHP
带有传单助手的 Yii2 Mapbox
使用 Leaflet 为 Mapbox 调用 javascripts 的助手
用法
在视图文件中注册..
<?php
use perspectivain\mapbox\MapboxAPIHelper;
MapBoxAPIHelper::registerScript($this, ['drawing', 'fullScreen', 'minimap', 'omnivore']);
并使用它...
L.mapbox.accessToken = 'XXXX';
var map = L.mapbox
.map('map', 'XXX.kjkb4j0a')
.setView([LAT, LON], 13)
.on('ready', function() {
new L.C
【文件预览】:
yii2-mapbox-leaflet-helper-master
----README.md(844B)
----LICENSE(1KB)
----composer.json(868B)
----lib()
--------MapBoxAPIHelper.php(3KB)
----DEMO.md(2KB)