dev-master
9999999-dev https://github.com/perspectivain/yii2-mapbox-leaflet-helperHelper to use Mapbox with Leaflet
MIT
The Requires
by Juliano Baggio di Sopra
yii2 helper leaflet mapbox
Helper to use Mapbox with Leaflet
Helper to call javascripts for Mapbox using Leaflet, (*1)
Register in view file.., (*2)
<?php use perspectivain\mapbox\MapboxAPIHelper; MapBoxAPIHelper::registerScript($this, ['drawing', 'fullScreen', 'minimap', 'omnivore']);
And use it..., (*3)
L.mapbox.accessToken = 'XXXX'; var map = L.mapbox .map('map', 'XXX.kjkb4j0a') .setView([LAT, LON], 13) .on('ready', function() { new L.Control.MiniMap(L.mapbox.tileLayer('XXX.kjkb4j0a')) //minimap plugin use .addTo(map); }); L.control.fullscreen().addTo(map); //fullscreen plugin use ...
The preferred way to install this extension is through composer., (*4)
{ "require": { "perspectivain/yii2-mapbox-leaflet-helper": "dev-master" } }
Helper to use Mapbox with Leaflet
MIT
yii2 helper leaflet mapbox