2017 © Pedro Peláez
 

yii2-extension yii2-leaflet-awesome-plugin

Yii2 Leaflet plugin to create map icons using Font Awesome Icons.

image

2amigos/yii2-leaflet-awesome-plugin

Yii2 Leaflet plugin to create map icons using Font Awesome Icons.

  • Saturday, September 10, 2016
  • by tonydspaniard
  • Repository
  • 21 Watchers
  • 0 Stars
  • 2,346 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Awesome Plugin

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

Yii 2 LeafletJs Plugin to create map icons using Font Awesome and GlyphIcon Icons., (*2)

This Plugin works in conjunction with LeafLet library for Yii 2 framework, Bootstrap and/or Font Awesome iconic font and css toolkit., (*3)

In order to make it work with GlyphIcon (included with Bootstrap) or Font Awesome files you need to add the required files your self., (*4)

To swap betwen GlyphIcon (default) and FontAwesome, you just need to modify its prefix. Should work with other Font Toolkits as long as it follows the following class signature: "prefix prefix-iconname"., (*5)

Installation

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

Either run, (*7)

php composer.phar require "2amigos/yii2-leaflet-awesome-plugin" "*"

or add, (*8)

"2amigos/yii2-leaflet-awesome-plugin" : "*"

to the require section of your application's composer.json file., (*9)

Usage

// LeafLet initialization component
// ...

// Initialize plugin
$awesomeMarkers = new dosamigos\leaflet\plugins\awesome\AwesomeMarker(['name' => 'awesome']);

// install
$leafLet->installPlugin($awesomeMarkers);

// sample location
$center = new dosamigos\leaflet\types\LatLng(['lat' => 51.508, 'lng' => -0.11]);

// generate icon through its icon
$marker = new dosamigos\leaflet\layers\Marker([
    'latLng' => $center,
    'icon' => $leafLet->plugins->awesome->make("star",['markerColor' => "green", 'prefix' => "fa"]),
    'popupContent' => 'Hey! I am a marker'
]);

Testing

$ ./vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details., (*10)

Credits

License

The BSD License (BSD). Please see License File for more information., (*11)

2amigOS!
Web development has never been so fun!
www.2amigos.us, (*12)

The Versions

10/09 2016

dev-master

9999999-dev

Yii2 Leaflet plugin to create map icons using Font Awesome Icons.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin extension yii2 2amigos yii maps yii 2 widget leaflet icon

10/09 2016

1.0.3

1.0.3.0

Yii2 Leaflet plugin to create map icons using Font Awesome Icons.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin extension yii2 2amigos yii maps yii 2 widget leaflet icon

08/04 2015

1.0.1

1.0.1.0

Yii2 Leaflet plugin to create map icons using Font Awesome Icons.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin extension yii2 2amigos yii maps yii 2 widget leaflet icon

08/04 2015

1.0.2

1.0.2.0

Yii2 Leaflet plugin to create map icons using Font Awesome Icons.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin extension yii2 2amigos yii maps yii 2 widget leaflet icon

03/04 2015

1.0.0

1.0.0.0

Yii2 Leaflet plugin to create map icons using Font Awesome Icons.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin extension yii2 2amigos yii maps yii 2 widget leaflet icon

03/07 2014

0.1.0

0.1.0.0

Yii2 Leaflet plugin to create map icons using Font Awesome Icons.

  Sources   Download

BSD-3-Clause

The Requires

 

plugin extension yii maps widget leaflet icon