From 63c7f1ed4ae92fcd3ae26ea10d83892ad0d520d2 Mon Sep 17 00:00:00 2001 From: Rae Kevin Turno Monzon Date: Fri, 1 Jul 2022 20:23:17 +0800 Subject: [PATCH 1/2] add uniformScaling --- README.md | 1 + Vue2LeafletPathTransform.vue | 6 ++++++ example.vue | 1 + 3 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 488e060..8f5f6c3 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ something like this :draggable='true' :rotation='true' :scaling='true' + :uniformScaling='true' :color='colors[index]' :handlerOptions="handlerOptions" @transformed='handlePathTransformed'> diff --git a/Vue2LeafletPathTransform.vue b/Vue2LeafletPathTransform.vue index f3c4fce..f29f6e1 100644 --- a/Vue2LeafletPathTransform.vue +++ b/Vue2LeafletPathTransform.vue @@ -116,6 +116,11 @@ const props = { custom: true, default: true }, + uniformScaling: { + type: Boolean, + custom: true, + default: true + }, options: { type: Object, default: () => ({ @@ -168,6 +173,7 @@ export default { this.mapObject.transform.setOptions({ rotation: this.rotation, scaling: this.scaling, + uniformScaling: this.uniformScaling, handlerOptions: this.handlerOptions }).enable(); diff --git a/example.vue b/example.vue index 137afc4..a907c4b 100644 --- a/example.vue +++ b/example.vue @@ -9,6 +9,7 @@ :draggable='true' :rotation='true' :scaling='true' + :uniformScaling='true' :color='colors[index]' :handlerOptions="handlerOptions" @transformed='handlePathTransformed'> From 4b7c285e465a41e4a5610e093c326896392659e0 Mon Sep 17 00:00:00 2001 From: Rae Kevin Turno Monzon Date: Fri, 1 Jul 2022 20:47:41 +0800 Subject: [PATCH 2/2] build updates --- dist/Vue2LeafletPathTransform.js | 2 +- dist/Vue2LeafletPathTransform.js.map | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/Vue2LeafletPathTransform.js b/dist/Vue2LeafletPathTransform.js index 3e7d49a..749e93a 100644 --- a/dist/Vue2LeafletPathTransform.js +++ b/dist/Vue2LeafletPathTransform.js @@ -1,2 +1,2 @@ -(function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("leaflet"),require("leaflet-path-transform"),require("vue2-leaflet")):"function"==typeof define&&define.amd?define(["leaflet","leaflet-path-transform","vue2-leaflet"],e):"object"==typeof exports?exports.Vue2LeafletPathTransform=e(require("leaflet"),require("leaflet-path-transform"),require("vue2-leaflet")):t.Vue2LeafletPathTransform=e(t.leaflet,t["leaflet-path-transform"],t["vue2-leaflet"])})(this,function(t,e,n){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=7)}([function(t,e,n){var o=n(2)(n(1),n(3),null,null);t.exports=o.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),i=function(t){return t&&t.__esModule?t:{default:t}}(o),a=n(6);n(5),i.default.Util.merge=i.default.Util.extend;var s={latLngs:{type:Array,default:function(){return[]}},lStyle:{type:Object,custom:!0},visible:{type:Boolean,custom:!0,default:!0},smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!0},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null},draggable:{type:Boolean,custom:!0,default:!0},rotation:{type:Boolean,custom:!0,default:!0},scaling:{type:Boolean,custom:!0,default:!0},options:{type:Object,default:function(){return{transform:!0}}},handlerOptions:{type:Object,default:function(){return{}}}};e.default={name:"LPathTransform",props:s,data:function(){return{ready:!1}},mounted:function(){if(this.color&&(this.options.color=this.color),this.lStyle)for(var t in this.lStyle)this.options[t]=this.lStyle[t];for(var e=["smoothFactor","noClip","stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className"],n=0;n\n
\n \n
\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// Vue2LeafletPathTransform.vue?94113116","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-4247fbbe!./~/vue-loader/lib/selector.js?type=template&index=0!./Vue2LeafletPathTransform.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-path-transform\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"leaflet-path-transform\"\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:///webpack/bootstrap 5122b393b138e5d3771f","webpack:///Vue2LeafletPathTransform.js","webpack:///./Vue2LeafletPathTransform.vue","webpack:///Vue2LeafletPathTransform.vue","webpack:///./~/vue-loader/lib/component-normalizer.js","webpack:///./Vue2LeafletPathTransform.vue?49c3","webpack:///external \"leaflet\"","webpack:///external \"leaflet-path-transform\"","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__","__webpack_require__","moduleId","installedModules","i","l","modules","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","latLngs","type","Array","lStyle","custom","visible","Boolean","smoothFactor","Number","noClip","stroke","color","String","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className","draggable","rotation","scaling","uniformScaling","options","handlerOptions","props","data","ready","mounted","style","undefined","propName","mapObject","parentContainer","addLayer","transform","setOptions","$emit","beforeDestroy","disable","dragging","removeLayer","methods","setDraggable","newVal","enable","setVisible","oldVal","setLatLngs","newLatLngs","setLStyle","setStyle","setSmoothFactor","setNoClip","setStroke","setColor","setWeight","setOpacity","setLineCap","setLineJoin","setDashArray","setDashOffset","setFill","setFillColor","setFillOpacity","setFillRule","setClassName","addLatLng","getGeoJSONData","toGeoJSON","rawScriptExports","compiledTemplate","scopeId","cssModules","esModule","scriptExports","render","staticRenderFns","_scopeId","computed","keys","forEach","key","_vm","_h","$createElement","_self","_c","staticStyle","_t","_e"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,EAAQG,QAAQ,WAAYA,QAAQ,0BAA2BA,QAAQ,iBAC/D,kBAAXC,SAAyBA,OAAOC,IAC9CD,QAAQ,UAAW,yBAA0B,gBAAiBJ,GACpC,gBAAZC,SACdA,QAAkC,yBAAID,EAAQG,QAAQ,WAAYA,QAAQ,0BAA2BA,QAAQ,iBAE7GJ,EAA+B,yBAAIC,EAAQD,EAAc,QAAGA,EAAK,0BAA2BA,EAAK,mBAChGO,KAAM,SAASC,EAA+BC,EAA+BC,GAChF,M,aCNE,QAASC,GAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,MAAOC,GAAiBD,GAAUV,OAGnC,IAAIC,GAASU,EAAiBD,IAC7BE,EAAGF,EACHG,GAAG,EACHb,WAUD,OANAc,GAAQJ,GAAUK,KAAKd,EAAOD,QAASC,EAAQA,EAAOD,QAASS,GAG/DR,EAAOY,GAAI,EAGJZ,EAAOD,QAvBf,GAAIW,KA+DJ,OAnCAF,GAAoBO,EAAIF,EAGxBL,EAAoBQ,EAAIN,EAGxBF,EAAoBG,EAAI,SAASM,GAAS,MAAOA,IAGjDT,EAAoBU,EAAI,SAASnB,EAASoB,EAAMC,GAC3CZ,EAAoBa,EAAEtB,EAASoB,IAClCG,OAAOC,eAAexB,EAASoB,GAC9BK,cAAc,EACdC,YAAY,EACZC,IAAKN,KAMRZ,EAAoBmB,EAAI,SAAS3B,GAChC,GAAIoB,GAASpB,GAAUA,EAAO4B,W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ACEuH,SAAUA,EACVxH,QAASyH,EACTpD,QAASA,KHubP,SAAUpE,EAAQD,GInexBC,EAAOD,SAAS0H,OAAO,WAAY,GAAIO,GAAI5H,KAAS6H,EAAGD,EAAIE,cACzD,QAD+EF,EAAIG,MAAMC,IAAIH,GACnF,OACRI,aACE,QAAW,UAEVL,EAAS,MAAIA,EAAIM,GAAG,WAAaN,EAAIO,MAAO,IACjDb,qBJyeI,SAAU1H,EAAQD,GK/exBC,EAAOD,QAAUE,QAAQ,YLqfnB,SAAUD,EAAQD,GMrfxBC,EAAOD,QAAUE,QAAQ,2BN2fnB,SAAUD,EAAQD,GO3fxBC,EAAOD,QAAUE,QAAQ,iBPigBnB,SAAUD,EAAQD,EAASS,GAEjCR,EAAOD,QAAUS,EAAoB","file":"Vue2LeafletPathTransform.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"leaflet\"), require(\"leaflet-path-transform\"), require(\"vue2-leaflet\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"leaflet\", \"leaflet-path-transform\", \"vue2-leaflet\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Vue2LeafletPathTransform\"] = factory(require(\"leaflet\"), require(\"leaflet-path-transform\"), require(\"vue2-leaflet\"));\n\telse\n\t\troot[\"Vue2LeafletPathTransform\"] = factory(root[\"leaflet\"], root[\"leaflet-path-transform\"], 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"," \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 5122b393b138e5d3771f","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"leaflet\"), require(\"leaflet-path-transform\"), require(\"vue2-leaflet\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"leaflet\", \"leaflet-path-transform\", \"vue2-leaflet\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Vue2LeafletPathTransform\"] = factory(require(\"leaflet\"), require(\"leaflet-path-transform\"), require(\"vue2-leaflet\"));\n\telse\n\t\troot[\"Vue2LeafletPathTransform\"] = factory(root[\"leaflet\"], root[\"leaflet-path-transform\"], 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\nvar _vue2Leaflet = __webpack_require__(6);\n\n__webpack_require__(5);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_leaflet2.default.Util.merge = _leaflet2.default.Util.extend;\n\nvar props = {\n latLngs: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n lStyle: {\n type: Object,\n custom: true\n },\n visible: {\n type: Boolean,\n custom: true,\n default: true\n },\n smoothFactor: {\n type: Number,\n custom: true,\n default: 1.0\n },\n noClip: {\n type: Boolean,\n custom: true,\n default: false\n },\n stroke: {\n type: Boolean,\n custom: true,\n default: true\n },\n color: {\n type: String,\n custom: true,\n default: '#3388ff'\n },\n weight: {\n type: Number,\n custom: true,\n default: 3\n },\n opacity: {\n type: Number,\n custom: true,\n default: 1.0\n },\n lineCap: {\n type: String,\n custom: true,\n default: 'round'\n },\n lineJoin: {\n type: String,\n custom: true,\n default: 'round'\n },\n dashArray: {\n type: String,\n custom: true,\n default: null\n },\n dashOffset: {\n type: String,\n custom: true,\n default: null\n },\n fill: {\n type: Boolean,\n custom: true,\n default: true\n },\n fillColor: {\n type: String,\n custom: true,\n default: '#3388ff'\n },\n fillOpacity: {\n type: Number,\n custom: true,\n default: 0.2\n },\n fillRule: {\n type: String,\n custom: true,\n default: 'evenodd'\n },\n className: {\n type: String,\n custom: true,\n default: null\n },\n draggable: {\n type: Boolean,\n custom: true,\n default: true\n },\n rotation: {\n type: Boolean,\n custom: true,\n default: true\n },\n scaling: {\n type: Boolean,\n custom: true,\n default: true\n },\n uniformScaling: {\n type: Boolean,\n custom: true,\n default: true\n },\n options: {\n type: Object,\n default: function _default() {\n return {\n transform: true\n };\n }\n },\n handlerOptions: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n};\nexports.default = {\n name: 'LPathTransform',\n props: props,\n data: function data() {\n return {\n ready: false\n };\n },\n mounted: function mounted() {\n if (this.color) {\n this.options.color = this.color;\n }\n if (this.lStyle) {\n for (var style in this.lStyle) {\n this.options[style] = this.lStyle[style];\n }\n }\n var otherPropertytoInitialize = ['smoothFactor', 'noClip', 'stroke', 'color', 'weight', 'opacity', 'lineCap', 'lineJoin', 'dashArray', 'dashOffset', 'fill', 'fillColor', 'fillOpacity', 'fillRule', 'className'];\n for (var i = 0; i < otherPropertytoInitialize.length; i += 1) {\n var propName = otherPropertytoInitialize[i];\n if (this[propName] !== undefined) {\n this.options[propName] = this[propName];\n }\n }\n\n this.options.draggable = this.draggable;\n\n this.mapObject = _leaflet2.default.polygon(this.latLngs, 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, !this.visible);\n\n this.mapObject.transform.setOptions({\n rotation: this.rotation,\n scaling: this.scaling,\n uniformScaling: this.uniformScaling,\n handlerOptions: this.handlerOptions\n }).enable();\n\n this.$emit('ready', this.mapObject);\n },\n beforeDestroy: function beforeDestroy() {\n if (this.mapObject) {\n this.mapObject.transform.disable();\n this.mapObject.dragging.disable();\n }\n\n this.parentContainer.removeLayer(this);\n },\n\n methods: {\n setDraggable: function setDraggable(newVal) {\n if (this.mapObject.dragging) {\n if (newVal) {\n this.mapObject.dragging.enable();\n } else {\n this.mapObject.dragging.disable();\n }\n }\n },\n setVisible: function setVisible(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (this.mapObject) {\n if (newVal) {\n this.parentContainer.addLayer(this);\n } else {\n this.parentContainer.removeLayer(this);\n }\n }\n },\n setLatLngs: function setLatLngs(newLatLngs) {\n if (newLatLngs === null) {\n return;\n }\n if (this.mapObject) {\n var oldLatLngs = this.mapObject.getLatLngs();\n\n if (newLatLngs === oldLatLngs) {\n this.mapObject.setLatLngs(newLatLngs);\n }\n }\n },\n setLStyle: function setLStyle(newVal, oldVal) {\n if (newVal === oldVal) return;\n this.mapObject.setStyle(newVal);\n },\n setSmoothFactor: function setSmoothFactor(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ smoothFactor: newVal });\n }\n },\n setNoClip: function setNoClip(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ noClip: newVal });\n }\n },\n setStroke: function setStroke(newVal, oldVal) {\n if (newVal === oldVal) return;\n this.mapObject.setStyle({ stroke: newVal });\n },\n setColor: function setColor(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ color: newVal });\n }\n },\n setWeight: function setWeight(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ weight: newVal });\n }\n },\n setOpacity: function setOpacity(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ opacity: newVal });\n }\n },\n setLineCap: function setLineCap(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ lineCap: newVal });\n }\n },\n setLineJoin: function setLineJoin(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ lineJoin: newVal });\n }\n },\n setDashArray: function setDashArray(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ dashArray: newVal });\n }\n },\n setDashOffset: function setDashOffset(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ dashOffset: newVal });\n }\n },\n setFill: function setFill(newVal, oldVal) {\n if (newVal === oldVal) return;\n this.mapObject.setStyle({ fill: newVal });\n },\n setFillColor: function setFillColor(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ fillColor: newVal });\n }\n },\n setFillOpacity: function setFillOpacity(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ fillOpacity: newVal });\n }\n },\n setFillRule: function setFillRule(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ fillRule: newVal });\n }\n },\n setClassName: function setClassName(newVal, oldVal) {\n if (newVal === oldVal) return;\n if (newVal) {\n this.mapObject.setStyle({ className: newVal });\n }\n },\n addLatLng: function addLatLng(value) {\n this.mapObject.addLatLng(value);\n },\n getGeoJSONData: function getGeoJSONData() {\n return this.mapObject.toGeoJSON();\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-path-transform\");\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// Vue2LeafletPathTransform.js","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!./Vue2LeafletPathTransform.vue\"),\n /* template */\n require(\"!!./node_modules/vue-loader/lib/template-compiler?id=data-v-4247fbbe!./node_modules/vue-loader/lib/selector?type=template&index=0!./Vue2LeafletPathTransform.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./Vue2LeafletPathTransform.vue\n// module id = 0\n// module chunks = 0","\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// Vue2LeafletPathTransform.vue?e70b2efc","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-4247fbbe!./~/vue-loader/lib/selector.js?type=template&index=0!./Vue2LeafletPathTransform.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-path-transform\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"leaflet-path-transform\"\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