Vue.component("Vue2LeafletMarkerCluster",{props:{options:{type:Object,default:()=>({})}},data:()=>({ready:!1}),mounted(){this.mapObject=new L.markerClusterGroup(this.options),L.DomEvent.on(this.mapObject,this.$listeners),window.Vue2Leaflet.propsBinder(this,this.mapObject,this.props),this.ready=!0,this.parentContainer=window.Vue2Leaflet.findRealParent(this.$parent),this.parentContainer.addLayer(this),this.$nextTick(()=>{this.$emit("ready",this.mapObject)})},beforeDestroy(){this.parentContainer.removeLayer(this)},methods:{addLayer(e,t){t||this.mapObject.addLayer(e.mapObject)},removeLayer(e,t){t||this.mapObject.removeLayer(e.mapObject)}},template:'<div style="display: none;">\n    <slot v-if="ready"></slot>\n  </div>\n  '});