Title: implement Leaflet.markercluster
Last modified: August 31, 2016

---

# implement Leaflet.markercluster

 *  [webfr](https://wordpress.org/support/users/webfr/)
 * (@webfr)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/implement-leafletmarkercluster/)
 * Hello,
    Your plugin works really great, I am only having real big problems formatting
   the google map v3 infowindow. I am not able to remove the right and bottom margins
   which mess up my desired output. With leaflet map everything is much more customizable
   since all divs have classes so editing css is easy, but it doesn’t have clustering!
   Any way to implement Leaflet.markercluster to enable this awesome feature for
   leaflet? or any script to remove that ugly margin from googlemap v3 infowindow?
   tried with jquery but no success.
 * I have tried to use
 *     ```
       GeoMashup.addAction( 'loadedMap', function ( properties, mxn_map ) {
   
         	var google_map = mxn_map.getMap();
   
       	google.maps.event.addListener(infowindow, 'domready', function() {
   
       	   /* The DIV we want to change is above the .gm-style-iw DIV.
       	    * So, we use jQuery and create a iwBackground variable,
       	    * and took advantage of the existing reference to .gm-style-iw for the previous DIV with .prev().
       	    */
       	   var iwBackground = jQuery('.gm-style-iw').prev();
   
       	   // Remove the background shadow DIV
       	   iwBackground.children(':nth-child(2)').css({'display' : 'none'});
   
       	   // Remove the white background DIV
       	   iwBackground.children(':nth-child(4)').css({'display' : 'none'});
   
       	});
       });
       ```
   
 * like explained [here](http://en.marnoto.com/2014/09/5-formas-de-personalizar-infowindow.html)
   but its not working
 * Thanks
 * [https://wordpress.org/plugins/geo-mashup/](https://wordpress.org/plugins/geo-mashup/)

The topic ‘implement Leaflet.markercluster’ is closed to new replies.

 * ![](https://ps.w.org/geo-mashup/assets/icon.svg?rev=1631806)
 * [Geo Mashup](https://wordpress.org/plugins/geo-mashup/)
 * [Support Threads](https://wordpress.org/support/plugin/geo-mashup/)
 * [Active Topics](https://wordpress.org/support/plugin/geo-mashup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geo-mashup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geo-mashup/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [webfr](https://wordpress.org/support/users/webfr/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/implement-leafletmarkercluster/)
 * Status: not resolved