2amigos / yii2-leaflet-extension

Yii 2 Extension library to display interactive maps with Leaflet .
http://yiiwheels.com
Other
30 stars 26 forks source link

documentation: how to create a Plugin? #30

Open squio opened 8 years ago

squio commented 8 years ago

Hi there,

Question: how does one create a Leaflet Plugin?

I found a possible starting point under tests: tests/functional/views/map-leaflet-config.php

But the referenced tests\TestPlugin; is missing in the GitHub repository.

I would like to use or create the Leaflet.heat Javascript plugin as a real Yii2 Leaflet plugin. I created a quick and dirty solution based on a regular Yii2 component LeafletHeatmap.php.zip but would really like a more robust "official" solution and it looks like a Leaflet Plugin is the intended way to do so.

tonydspaniard commented 7 years ago

You can see how they look here: https://github.com/2amigos/yii2-leaflet-makimarker-plugin

tonydspaniard commented 7 years ago

@squio I didn't see the file there :) checking it!

Edit: Seems quite easy to implement... are you going to implement it or?