2017 © Pedro Peláez
 

library yii2-mapbox-leaflet-helper

Helper to use Mapbox with Leaflet

image

perspectivain/yii2-mapbox-leaflet-helper

Helper to use Mapbox with Leaflet

  • Saturday, March 28, 2015
  • by jsopra
  • Repository
  • 5 Watchers
  • 1 Stars
  • 352 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Yii2 Mapbox with Leaflet helper

Helper to call javascripts for Mapbox using Leaflet, (*1)

Usage

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

    ...

Installing

The preferred way to install this extension is through composer., (*4)

{
  "require": {
    "perspectivain/yii2-mapbox-leaflet-helper": "dev-master"
  }
}

The Versions

28/03 2015

dev-master

9999999-dev https://github.com/perspectivain/yii2-mapbox-leaflet-helper

Helper to use Mapbox with Leaflet

  Sources   Download

MIT

The Requires

 

by Juliano Baggio di Sopra

yii2 helper leaflet mapbox