Download the PHP package boriskorobkov/yii2-leaflet-extension without Composer
On this page you can find all versions of the php package boriskorobkov/yii2-leaflet-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download boriskorobkov/yii2-leaflet-extension
More information about boriskorobkov/yii2-leaflet-extension
Files in boriskorobkov/yii2-leaflet-extension
Package yii2-leaflet-extension
Short Description LeafLet Mobile-Friendly Interactive Maps Extension Library for Yii2.
License BSD-3-Clause
Homepage https://github.com/BorisKorobkov
Informations about the package yii2-leaflet-extension
LeafLet Extension for Yii2
Extension library to display interactive maps with LeafletJs
Installation
The preferred way to install this extension is through
composer. This requires the
composer-asset-plugin,
which is also a dependency for yii2 – so if you have yii2 installed, you are
most likely already set.
Either run
or add
to the require section of your application's composer.json file.
Migration from 1.x to 2.x
- Replace namespace
dosamigos/yii2-leaflet-extensionwithboriskorobkov/yii2-leaflet-extensionin your code - If you use a custom widget, check the correct usage of the
;symbol
Usage
One of the things to take into account when working with LeafletJs is that we need a Tile Provider. Is very important, if we fail to provide a Tile Provider Url, the map will display plain, without any maps at all.
The following example, is making use of MapQuest:
Testing
To test the extension, is better to clone this repository on your computer. After, go to the extensions folder and do
the following (assuming you have composer installed on your computer):
Once all required libraries are installed then do:
Further Information
For further information regarding the multiple settings of LeafLetJS library please visit its API reference
Contributing
Please see CONTRIBUTING for details.
Credits
- Antonio Ramirez
- Boris Korobkov
- All Contributors
License
The BSD License (BSD). Please see License File for more information.
Web development has never been so fun!
www.2amigos.us