承接 2amigos/yii2-leaflet-awesome-plugin 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

2amigos/yii2-leaflet-awesome-plugin

最新稳定版本:1.0.3

Composer 安装命令:

composer require 2amigos/yii2-leaflet-awesome-plugin

包简介

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

README 文档

README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

Yii 2 LeafletJs Plugin to create map icons using Font Awesome and GlyphIcon Icons.

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

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

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".

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

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

to the require section of your application's composer.json file.

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.

Credits

License

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

2amigOS!
Web development has never been so fun!
www.2amigos.us

统计信息

  • 总下载量: 5.09k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 20
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-07-03