定制 2amigos/yii2-leaflet-makimarker-plugin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

2amigos/yii2-leaflet-makimarker-plugin

最新稳定版本:1.0.2

Composer 安装命令:

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

包简介

Yii2 Leaflet plugin to create map icons using Maki Icons from MapBox.

README 文档

README

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

Yii 2 LeafletJs Plugin to create map icons using Maki Icons from MapBox. Markers are retrieved from MapBox's Static Marker Api.

This Plugin works in conjunction with LeafLet library for Yii 2 framework.

Installation

The preferred way to install this extension is through composer.

Either run

composer require 2amigos/yii2-leaflet-makimarker-plugin:~1.0

or add

"2amigos/yii2-leaflet-makimarker-plugin" : "~1.0"

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

Usage

Using its make method:


use dosamigos\leaflet\plugins\makimarker\MakiMarker;
use dosamigos\leaflet\types\LatLng;
use dosamigos\leaflet\layers\Marker;

// LeafLet initialization component
// ...

// Initialize plugin
$makimarkers = new MakiMarker(['name' => 'makimarker']);

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

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

// generate icon through its icon
$marker = new Marker([
    'latLng' => $center,
    'icon' => $leafLet->plugins->makimarker->make("rocket",['color' => "#b0b", 'size' => "m"]),
    '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

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 19
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-02-17