diff --git a/Vue2LeafletMarkercluster.vue b/Vue2LeafletMarkercluster.vue
index facad34..88c0b1f 100644
--- a/Vue2LeafletMarkercluster.vue
+++ b/Vue2LeafletMarkercluster.vue
@@ -15,6 +15,10 @@ const props = {
type: Object,
default() { return {}; },
},
+ bulk: {
+ type: Boolean,
+ default() { return false; },
+ },
};
export default {
@@ -31,6 +35,7 @@ export default {
this.ready = true;
this.parentContainer = findRealParent(this.$parent);
this.parentContainer.addLayer(this);
+ this.childrenLayers = []
},
beforeDestroy() {
this.parentContainer.removeLayer(this);
@@ -38,7 +43,17 @@ export default {
methods: {
addLayer(layer, alreadyAdded) {
if (!alreadyAdded) {
- this.mapObject.addLayer(layer.mapObject);
+ if (!this.bulk) {
+ this.mapObject.addLayer(layer.mapObject);
+ }
+ else {
+ this.childrenLayers.push(layer.mapObject)
+ if (this.$children.length == this.childrenLayers.length) {
+ this.mapObject.addLayers(this.childrenLayers);
+ this.childrenLayers = [];
+ console.log('mounted all')
+ }
+ }
}
},
removeLayer(layer, alreadyRemoved) {
diff --git a/dist/Vue2LeafletMarkercluster.js b/dist/Vue2LeafletMarkercluster.js
index 6e891ba..175394c 100644
--- a/dist/Vue2LeafletMarkercluster.js
+++ b/dist/Vue2LeafletMarkercluster.js
@@ -1,2 +1,2 @@
-(function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("leaflet"),require("leaflet.markercluster"),require("vue2-leaflet")):"function"==typeof define&&define.amd?define(["leaflet","leaflet.markercluster","vue2-leaflet"],t):"object"==typeof exports?exports.Vue2LeafletMarkercluster=t(require("leaflet"),require("leaflet.markercluster"),require("vue2-leaflet")):e.Vue2LeafletMarkercluster=t(e.leaflet,e["leaflet.markercluster"],e["vue2-leaflet"])})(this,function(e,t,r){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=7)}([function(e,t,r){var n=r(2)(r(1),r(3),null,null);e.exports=n.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),o=function(e){return e&&e.__esModule?e:{default:e}}(n);r(5);var u=r(6),a={options:{type:Object,default:function(){return{}}}};t.default={props:a,data:function(){return{ready:!1}},mounted:function(){this.mapObject=o.default.markerClusterGroup(this.options),o.default.DomEvent.on(this.mapObject,this.$listeners),(0,u.propsBinder)(this,this.mapObject,a),this.ready=!0,this.parentContainer=(0,u.findRealParent)(this.$parent),this.parentContainer.addLayer(this)},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{addLayer:function(e,t){t||this.mapObject.addLayer(e.mapObject)},removeLayer:function(e,t){t||this.mapObject.removeLayer(e.mapObject)}}}},function(e,t){e.exports=function(e,t,r,n){var o,u=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(o=e,u=e.default);var i="function"==typeof u?u.options:u;if(t&&(i.render=t.render,i.staticRenderFns=t.staticRenderFns),r&&(i._scopeId=r),n){var f=i.computed||(i.computed={});Object.keys(n).forEach(function(e){var t=n[e];f[e]=function(){return t}})}return{esModule:o,exports:u,options:i}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticStyle:{display:"none"}},[e.ready?e._t("default"):e._e()],2)},staticRenderFns:[]}},function(e,t){e.exports=require("leaflet")},function(e,t){e.exports=require("leaflet.markercluster")},function(e,t){e.exports=require("vue2-leaflet")},function(e,t,r){e.exports=r(0)}])});
+(function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("leaflet"),require("leaflet.markercluster"),require("vue2-leaflet")):"function"==typeof define&&define.amd?define(["leaflet","leaflet.markercluster","vue2-leaflet"],t):"object"==typeof exports?exports.Vue2LeafletMarkercluster=t(require("leaflet"),require("leaflet.markercluster"),require("vue2-leaflet")):e.Vue2LeafletMarkercluster=t(e.leaflet,e["leaflet.markercluster"],e["vue2-leaflet"])})(this,function(e,t,r){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=7)}([function(e,t,r){var n=r(2)(r(1),r(3),null,null);e.exports=n.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),o=function(e){return e&&e.__esModule?e:{default:e}}(n);r(5);var u=r(6),a={options:{type:Object,default:function(){return{}}},bulk:{type:Boolean,default:function(){return!1}}};t.default={props:a,data:function(){return{ready:!1}},mounted:function(){this.mapObject=o.default.markerClusterGroup(this.options),o.default.DomEvent.on(this.mapObject,this.$listeners),(0,u.propsBinder)(this,this.mapObject,a),this.ready=!0,this.parentContainer=(0,u.findRealParent)(this.$parent),this.parentContainer.addLayer(this),this.childrenLayers=[]},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{addLayer:function(e,t){t||(this.bulk?(this.childrenLayers.push(e.mapObject),this.$children.length==this.childrenLayers.length&&(this.mapObject.addLayers(this.childrenLayers),this.childrenLayers=[],console.log("mounted all"))):this.mapObject.addLayer(e.mapObject))},removeLayer:function(e,t){t||this.mapObject.removeLayer(e.mapObject)}}}},function(e,t){e.exports=function(e,t,r,n){var o,u=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(o=e,u=e.default);var i="function"==typeof u?u.options:u;if(t&&(i.render=t.render,i.staticRenderFns=t.staticRenderFns),r&&(i._scopeId=r),n){var l=i.computed||(i.computed={});Object.keys(n).forEach(function(e){var t=n[e];l[e]=function(){return t}})}return{esModule:o,exports:u,options:i}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticStyle:{display:"none"}},[e.ready?e._t("default"):e._e()],2)},staticRenderFns:[]}},function(e,t){e.exports=require("leaflet")},function(e,t){e.exports=require("leaflet.markercluster")},function(e,t){e.exports=require("vue2-leaflet")},function(e,t,r){e.exports=r(0)}])});
//# sourceMappingURL=Vue2LeafletMarkercluster.js.map
\ No newline at end of file
diff --git a/dist/Vue2LeafletMarkercluster.js.map b/dist/Vue2LeafletMarkercluster.js.map
index a6f7a54..bad87b6 100644
--- a/dist/Vue2LeafletMarkercluster.js.map
+++ b/dist/Vue2LeafletMarkercluster.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///Vue2LeafletMarkercluster.js","webpack:///webpack/bootstrap fd2de7ab974e2f7bfaad","webpack:///./Vue2LeafletMarkercluster.vue","webpack:///Vue2LeafletMarkercluster.vue","webpack:///./~/vue-loader/lib/component-normalizer.js","webpack:///./Vue2LeafletMarkercluster.vue?b9ea","webpack:///external \"leaflet\"","webpack:///external \"leaflet.markercluster\"","webpack:///external \"vue2-leaflet\""],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_4__","__WEBPACK_EXTERNAL_MODULE_5__","__WEBPACK_EXTERNAL_MODULE_6__","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","value","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","Component","_leaflet","_leaflet2","obj","default","_vue2Leaflet","props","options","type","data","ready","mounted","mapObject","markerClusterGroup","DomEvent","on","$listeners","propsBinder","parentContainer","findRealParent","$parent","addLayer","beforeDestroy","removeLayer","methods","layer","alreadyAdded","alreadyRemoved","rawScriptExports","compiledTemplate","scopeId","cssModules","esModule","scriptExports","render","staticRenderFns","_scopeId","computed","keys","forEach","key","_vm","_h","$createElement","_self","_c","staticStyle","display","_t","_e"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,WAAAA,QAAA,yBAAAA,QAAA,iBACA,kBAAAC,gBAAAC,IACAD,QAAA,kDAAAJ,GACA,gBAAAC,SACAA,QAAA,yBAAAD,EAAAG,QAAA,WAAAA,QAAA,yBAAAA,QAAA,iBAEAJ,EAAA,yBAAAC,EAAAD,EAAA,QAAAA,EAAA,yBAAAA,EAAA,mBACCO,KAAA,SAAAC,EAAAC,EAAAC,GACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAX,OAGA,IAAAC,GAAAW,EAAAD,IACAE,EAAAF,EACAG,GAAA,EACAd,WAUA,OANAS,GAAAE,GAAAI,KAAAd,EAAAD,QAAAC,IAAAD,QAAAU,GAGAT,EAAAa,GAAA,EAGAb,EAAAD,QAvBA,GAAAY,KA+DA,OAnCAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAG,EAAA,SAAAK,GAA2C,MAAAA,IAG3CR,EAAAS,EAAA,SAAAnB,EAAAoB,EAAAC,GACAX,EAAAY,EAAAtB,EAAAoB,IACAG,OAAAC,eAAAxB,EAAAoB,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAX,EAAAkB,EAAA,SAAA3B,GACA,GAAAoB,GAAApB,KAAA4B,WACA,WAA2B,MAAA5B,GAAA,SAC3B,WAAiC,MAAAA,GAEjC,OADAS,GAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAQ,EAAAC,GAAsD,MAAAR,QAAAS,UAAAC,eAAAlB,KAAAe,EAAAC,IAGtDrB,EAAAwB,EAAA,IAGAxB,IAAAyB,EAAA,KDgBM,SAAUlC,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XAJ,IACAtB,EAAA2B,OAAAL,EAAAK,OACA3B,EAAA4B,gBAAAN,EAAAM,iBAIAL,IACAvB,EAAA6B,SAAAN,GAIAC,EAAA,CACA,GAAAM,GAAA9B,EAAA8B,WAAA9B,EAAA8B,YACAlD,QAAAmD,KAAAP,GAAAQ,QAAA,SAAAC,GACA,GAAA3E,GAAAkE,EAAAS,EACAH,GAAAG,GAAA,WAAmC,MAAA3E,MAInC,OACAmE,WACApE,QAAAqE,EACA1B,aJ0KM,SAAU1C,EAAQD,GKtNxBC,EAAAD,SAAgBsE,OAAA,WAAmB,GAAAO,GAAAxE,KAAayE,EAAAD,EAAAE,cAChD,QAD0EF,EAAAG,MAAAC,IAAAH,GAC1E,OACAI,aACAC,QAAA,UAEGN,EAAA,MAAAA,EAAAO,GAAA,WAAAP,EAAAQ,MAAA,IACFd,qBL4NK,SAAUtE,EAAQD,GMlOxBC,EAAAD,QAAAE,QAAA,YNwOM,SAAUD,EAAQD,GOxOxBC,EAAAD,QAAAE,QAAA,0BP8OM,SAAUD,EAAQD,GQ9OxBC,EAAAD,QAAAE,QAAA,iBRoPM,SAAUD,EAAQD,EAASU,GAEjCT,EAAOD,QAAUU,EAAoB","file":"Vue2LeafletMarkercluster.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"leaflet\"), require(\"leaflet.markercluster\"), require(\"vue2-leaflet\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"leaflet\", \"leaflet.markercluster\", \"vue2-leaflet\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Vue2LeafletMarkercluster\"] = factory(require(\"leaflet\"), require(\"leaflet.markercluster\"), require(\"vue2-leaflet\"));\n\telse\n\t\troot[\"Vue2LeafletMarkercluster\"] = factory(root[\"leaflet\"], root[\"leaflet.markercluster\"], root[\"vue2-leaflet\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"leaflet\"), require(\"leaflet.markercluster\"), require(\"vue2-leaflet\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"leaflet\", \"leaflet.markercluster\", \"vue2-leaflet\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Vue2LeafletMarkercluster\"] = factory(require(\"leaflet\"), require(\"leaflet.markercluster\"), require(\"vue2-leaflet\"));\n\telse\n\t\troot[\"Vue2LeafletMarkercluster\"] = factory(root[\"leaflet\"], root[\"leaflet.markercluster\"], root[\"vue2-leaflet\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 7);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(2)(\n /* script */\n __webpack_require__(1),\n /* template */\n __webpack_require__(3),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _leaflet = __webpack_require__(4);\n\nvar _leaflet2 = _interopRequireDefault(_leaflet);\n\n__webpack_require__(5);\n\nvar _vue2Leaflet = __webpack_require__(6);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar props = {\n options: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n};\n\nexports.default = {\n props: props,\n data: function data() {\n return {\n ready: false\n };\n },\n mounted: function mounted() {\n this.mapObject = _leaflet2.default.markerClusterGroup(this.options);\n _leaflet2.default.DomEvent.on(this.mapObject, this.$listeners);\n (0, _vue2Leaflet.propsBinder)(this, this.mapObject, props);\n this.ready = true;\n this.parentContainer = (0, _vue2Leaflet.findRealParent)(this.$parent);\n this.parentContainer.addLayer(this);\n },\n beforeDestroy: function beforeDestroy() {\n this.parentContainer.removeLayer(this);\n },\n\n methods: {\n addLayer: function addLayer(layer, alreadyAdded) {\n if (!alreadyAdded) {\n this.mapObject.addLayer(layer.mapObject);\n }\n },\n removeLayer: function removeLayer(layer, alreadyRemoved) {\n if (!alreadyRemoved) {\n this.mapObject.removeLayer(layer.mapObject);\n }\n }\n }\n};\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\nmodule.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n scopeId,\n cssModules\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n // inject cssModules\n if (cssModules) {\n var computed = options.computed || (options.computed = {})\n Object.keys(cssModules).forEach(function (key) {\n var module = cssModules[key]\n computed[key] = function () { return module }\n })\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticStyle: {\n \"display\": \"none\"\n }\n }, [(_vm.ready) ? _vm._t(\"default\") : _vm._e()], 2)\n},staticRenderFns: []}\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports) {\n\nmodule.exports = require(\"leaflet\");\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports) {\n\nmodule.exports = require(\"leaflet.markercluster\");\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports) {\n\nmodule.exports = require(\"vue2-leaflet\");\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(0);\n\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// Vue2LeafletMarkercluster.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 7);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap fd2de7ab974e2f7bfaad","var Component = require(\"!./node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!./node_modules/vue-loader/lib/selector?type=script&index=0!./Vue2LeafletMarkercluster.vue\"),\n /* template */\n require(\"!!./node_modules/vue-loader/lib/template-compiler?id=data-v-4687b691!./node_modules/vue-loader/lib/selector?type=template&index=0!./Vue2LeafletMarkercluster.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Vue2LeafletMarkercluster.vue\n// module id = 0\n// module chunks = 0","\n \n \n
\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// Vue2LeafletMarkercluster.vue?72fe91a2","module.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n scopeId,\n cssModules\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n // inject cssModules\n if (cssModules) {\n var computed = options.computed || (options.computed = {})\n Object.keys(cssModules).forEach(function (key) {\n var module = cssModules[key]\n computed[key] = function () { return module }\n })\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/component-normalizer.js\n// module id = 2\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticStyle: {\n \"display\": \"none\"\n }\n }, [(_vm.ready) ? _vm._t(\"default\") : _vm._e()], 2)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler.js?id=data-v-4687b691!./~/vue-loader/lib/selector.js?type=template&index=0!./Vue2LeafletMarkercluster.vue\n// module id = 3\n// module chunks = 0","module.exports = require(\"leaflet\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"leaflet\"\n// module id = 4\n// module chunks = 0","module.exports = require(\"leaflet.markercluster\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"leaflet.markercluster\"\n// module id = 5\n// module chunks = 0","module.exports = require(\"vue2-leaflet\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"vue2-leaflet\"\n// module id = 6\n// module chunks = 0"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///Vue2LeafletMarkercluster.js","webpack:///webpack/bootstrap c0d1e7b3a56a2e279934","webpack:///./Vue2LeafletMarkercluster.vue","webpack:///Vue2LeafletMarkercluster.vue","webpack:///./~/vue-loader/lib/component-normalizer.js","webpack:///./Vue2LeafletMarkercluster.vue?b9ea","webpack:///external \"leaflet\"","webpack:///external \"leaflet.markercluster\"","webpack:///external \"vue2-leaflet\""],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_4__","__WEBPACK_EXTERNAL_MODULE_5__","__WEBPACK_EXTERNAL_MODULE_6__","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","value","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","Component","_leaflet","_leaflet2","obj","default","_vue2Leaflet","props","options","type","bulk","Boolean","data","ready","mounted","mapObject","markerClusterGroup","DomEvent","on","$listeners","propsBinder","parentContainer","findRealParent","$parent","addLayer","childrenLayers","beforeDestroy","removeLayer","methods","layer","alreadyAdded","push","$children","length","addLayers","console","log","alreadyRemoved","rawScriptExports","compiledTemplate","scopeId","cssModules","esModule","scriptExports","render","staticRenderFns","_scopeId","computed","keys","forEach","key","_vm","_h","$createElement","_self","_c","staticStyle","display","_t","_e"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,WAAAA,QAAA,yBAAAA,QAAA,iBACA,kBAAAC,gBAAAC,IACAD,QAAA,kDAAAJ,GACA,gBAAAC,SACAA,QAAA,yBAAAD,EAAAG,QAAA,WAAAA,QAAA,yBAAAA,QAAA,iBAEAJ,EAAA,yBAAAC,EAAAD,EAAA,QAAAA,EAAA,yBAAAA,EAAA,mBACCO,KAAA,SAAAC,EAAAC,EAAAC,GACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAX,OAGA,IAAAC,GAAAW,EAAAD,IACAE,EAAAF,EACAG,GAAA,EACAd,WAUA,OANAS,GAAAE,GAAAI,KAAAd,EAAAD,QAAAC,IAAAD,QAAAU,GAGAT,EAAAa,GAAA,EAGAb,EAAAD,QAvBA,GAAAY,KA+DA,OAnCAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAG,EAAA,SAAAK,GAA2C,MAAAA,IAG3CR,EAAAS,EAAA,SAAAnB,EAAAoB,EAAAC,GACAX,EAAAY,EAAAtB,EAAAoB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AAQD,GOxPxBC,EAAAD,QAAAE,QAAA,0BP8PM,SAAUD,EAAQD,GQ9PxBC,EAAAD,QAAAE,QAAA,iBRoQM,SAAUD,EAAQD,EAASU,GAEjCT,EAAOD,QAAUU,EAAoB","file":"Vue2LeafletMarkercluster.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"leaflet\"), require(\"leaflet.markercluster\"), require(\"vue2-leaflet\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"leaflet\", \"leaflet.markercluster\", \"vue2-leaflet\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Vue2LeafletMarkercluster\"] = factory(require(\"leaflet\"), require(\"leaflet.markercluster\"), require(\"vue2-leaflet\"));\n\telse\n\t\troot[\"Vue2LeafletMarkercluster\"] = factory(root[\"leaflet\"], root[\"leaflet.markercluster\"], root[\"vue2-leaflet\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"leaflet\"), require(\"leaflet.markercluster\"), require(\"vue2-leaflet\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"leaflet\", \"leaflet.markercluster\", \"vue2-leaflet\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Vue2LeafletMarkercluster\"] = factory(require(\"leaflet\"), require(\"leaflet.markercluster\"), require(\"vue2-leaflet\"));\n\telse\n\t\troot[\"Vue2LeafletMarkercluster\"] = factory(root[\"leaflet\"], root[\"leaflet.markercluster\"], root[\"vue2-leaflet\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 7);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(2)(\n /* script */\n __webpack_require__(1),\n /* template */\n __webpack_require__(3),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _leaflet = __webpack_require__(4);\n\nvar _leaflet2 = _interopRequireDefault(_leaflet);\n\n__webpack_require__(5);\n\nvar _vue2Leaflet = __webpack_require__(6);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar props = {\n options: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n bulk: {\n type: Boolean,\n default: function _default() {\n return false;\n }\n }\n};\n\nexports.default = {\n props: props,\n data: function data() {\n return {\n ready: false\n };\n },\n mounted: function mounted() {\n this.mapObject = _leaflet2.default.markerClusterGroup(this.options);\n _leaflet2.default.DomEvent.on(this.mapObject, this.$listeners);\n (0, _vue2Leaflet.propsBinder)(this, this.mapObject, props);\n this.ready = true;\n this.parentContainer = (0, _vue2Leaflet.findRealParent)(this.$parent);\n this.parentContainer.addLayer(this);\n this.childrenLayers = [];\n },\n beforeDestroy: function beforeDestroy() {\n this.parentContainer.removeLayer(this);\n },\n\n methods: {\n addLayer: function addLayer(layer, alreadyAdded) {\n if (!alreadyAdded) {\n if (!this.bulk) {\n this.mapObject.addLayer(layer.mapObject);\n } else {\n this.childrenLayers.push(layer.mapObject);\n if (this.$children.length == this.childrenLayers.length) {\n this.mapObject.addLayers(this.childrenLayers);\n this.childrenLayers = [];\n console.log('mounted all');\n }\n }\n }\n },\n removeLayer: function removeLayer(layer, alreadyRemoved) {\n if (!alreadyRemoved) {\n this.mapObject.removeLayer(layer.mapObject);\n }\n }\n }\n};\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports) {\n\nmodule.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n scopeId,\n cssModules\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n // inject cssModules\n if (cssModules) {\n var computed = options.computed || (options.computed = {})\n Object.keys(cssModules).forEach(function (key) {\n var module = cssModules[key]\n computed[key] = function () { return module }\n })\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticStyle: {\n \"display\": \"none\"\n }\n }, [(_vm.ready) ? _vm._t(\"default\") : _vm._e()], 2)\n},staticRenderFns: []}\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports) {\n\nmodule.exports = require(\"leaflet\");\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports) {\n\nmodule.exports = require(\"leaflet.markercluster\");\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports) {\n\nmodule.exports = require(\"vue2-leaflet\");\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(0);\n\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// Vue2LeafletMarkercluster.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 7);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap c0d1e7b3a56a2e279934","var Component = require(\"!./node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!./node_modules/vue-loader/lib/selector?type=script&index=0!./Vue2LeafletMarkercluster.vue\"),\n /* template */\n require(\"!!./node_modules/vue-loader/lib/template-compiler?id=data-v-4687b691!./node_modules/vue-loader/lib/selector?type=template&index=0!./Vue2LeafletMarkercluster.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Vue2LeafletMarkercluster.vue\n// module id = 0\n// module chunks = 0","\n \n \n
\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// Vue2LeafletMarkercluster.vue?5707ab65","module.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n scopeId,\n cssModules\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n // inject cssModules\n if (cssModules) {\n var computed = options.computed || (options.computed = {})\n Object.keys(cssModules).forEach(function (key) {\n var module = cssModules[key]\n computed[key] = function () { return module }\n })\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/component-normalizer.js\n// module id = 2\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticStyle: {\n \"display\": \"none\"\n }\n }, [(_vm.ready) ? _vm._t(\"default\") : _vm._e()], 2)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler.js?id=data-v-4687b691!./~/vue-loader/lib/selector.js?type=template&index=0!./Vue2LeafletMarkercluster.vue\n// module id = 3\n// module chunks = 0","module.exports = require(\"leaflet\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"leaflet\"\n// module id = 4\n// module chunks = 0","module.exports = require(\"leaflet.markercluster\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"leaflet.markercluster\"\n// module id = 5\n// module chunks = 0","module.exports = require(\"vue2-leaflet\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"vue2-leaflet\"\n// module id = 6\n// module chunks = 0"],"sourceRoot":""}
\ No newline at end of file
diff --git a/example_bulk.vue b/example_bulk.vue
new file mode 100644
index 0000000..ac4e26f
--- /dev/null
+++ b/example_bulk.vue
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/package.json b/package.json
index 36a6336..1dae984 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,8 @@
"scripts": {
"build": "vue build Vue2LeafletMarkercluster.vue --prod --lib --config build.config.js",
"example": "vue build example.vue",
- "example-geojson": "vue build example-geojson.vue"
+ "example-geojson": "vue build example-geojson.vue",
+ "example-bulk": "vue build example_bulk.vue"
},
"repository": {
"type": "git",