yii2-google-maps-library icon indicating copy to clipboard operation
yii2-google-maps-library copied to clipboard

MarkerClusterer with the Google Maps

Open nazakar opened this issue 8 years ago • 4 comments

How to use MarkerClusterer with this extension?

nazakar avatar Mar 12 '16 07:03 nazakar

Wait for answer too..

kongoon avatar Apr 20 '16 07:04 kongoon

@nazakar @kongoon

I managed to get it working, see: https://github.com/Edofre/yii2-marker-clusterer

@amigo-tabin

If you have any suggestions for adding the clusterer to this repo let me know.

Edofre avatar Jun 27 '16 22:06 Edofre

@Edofre great work!

Nevertheless, we provided a https://github.com/2amigos/yii2-google-maps-library/blob/master/PluginAbstract.php for people willing to create their own. The only thing you have to do is extend your plugin from the abstract class and add the correspondent abstracted methods.

Then you just install it: https://github.com/2amigos/yii2-google-maps-library/blob/master/Map.php#L448

After installed, the plugin would be automatically called: https://github.com/2amigos/yii2-google-maps-library/blob/master/Map.php#L421

Its getJs() would return the correspondent js that would return the initialization script from the plugin and the map automatically would append it to its initialization scripts.

tonydspaniard avatar Jul 08 '16 19:07 tonydspaniard

I think is best to keep a separated repo for all plugins as we did with leaflet. If i have time, will include the ones you guys want me to add.

tonydspaniard avatar Jul 08 '16 19:07 tonydspaniard