{"version":3,"sources":["webpack:///./src/components/GoogleMap/GoogleMap.vue?3f86","webpack:///./src/components/GoogleMap/googleMap.js","webpack:///./src/components/GoogleMap/googleMap.js?16d5","webpack:///./src/components/GoogleMap/GoogleMap.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","on","setPlace","addMarker","_v","_s","$t","staticRenderFns","name","data","center","lat","lng","markers","places","currentPlace","mounted","getCurrentPosition","methods","place","marker","geometry","location","push","position","vue","navigator","geolocation","coords","latitude","longitude","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACA,EAAG,oBAAoB,CAACE,GAAG,CAAC,cAAgBN,EAAIO,YAAYH,EAAG,SAAS,CAACE,GAAG,CAAC,MAAQN,EAAIQ,YAAY,CAACR,EAAIS,GAAGT,EAAIU,GAAGV,EAAIW,GAAG,YAAY,QACnQC,EAAkB,GCDP,GACbC,KAAM,YACNC,KAFa,WAGX,MAAO,CAGLC,OAAQ,CAAEC,IAAK,OAAQC,KAAM,QAC7BC,QAAS,GACTC,OAAQ,GACRC,aAAc,OAIlBC,QAba,WAcXpB,KAAKqB,sBAGPC,QAAS,CAEPhB,SAFO,SAEEiB,GACPvB,KAAKmB,aAAeI,GAEtBhB,UALO,WAML,GAAIP,KAAKmB,aAAc,CACrB,IAAIK,EAAS,CACXT,IAAKf,KAAKmB,aAAaM,SAASC,SAASX,MACzCC,IAAKhB,KAAKmB,aAAaM,SAASC,SAASV,OAE3ChB,KAAKiB,QAAQU,KAAK,CAAEC,SAAUJ,IAC9BxB,KAAKkB,OAAOS,KAAK3B,KAAKmB,cACtBnB,KAAKc,OAASU,EACdxB,KAAKmB,aAAe,OAGxBE,mBAAoB,WAClB,IAAMQ,EAAM7B,KACZ8B,UAAUC,YAAYV,oBAAmB,SAACO,GACxCC,EAAIf,OAAS,CACXC,IAAKa,EAASI,OAAOC,SACrBjB,IAAKY,EAASI,OAAOE,iBCvC+P,I,YCO1RC,EAAY,eACd,EACArC,EACAa,GACA,EACA,KACA,KACA,MAIa,aAAAwB,E","file":"js/chunk-2d0ba725.70839389.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',[_c('label',[_c('gmap-autocomplete',{on:{\"place_changed\":_vm.setPlace}}),_c('button',{on:{\"click\":_vm.addMarker}},[_vm._v(_vm._s(_vm.$t('add')))])],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n name: \"GoogleMap\",\n data() {\n return {\n // default to Montreal to keep it simple\n // change this to whatever makes sense\n center: { lat: 45.508, lng: -73.587 },\n markers: [],\n places: [],\n currentPlace: null,\n };\n },\n\n mounted() {\n this.getCurrentPosition();\n },\n\n methods: {\n // receives a place object via the autocomplete component\n setPlace(place) {\n this.currentPlace = place;\n },\n addMarker() {\n if (this.currentPlace) {\n var marker = {\n lat: this.currentPlace.geometry.location.lat(),\n lng: this.currentPlace.geometry.location.lng(),\n };\n this.markers.push({ position: marker });\n this.places.push(this.currentPlace);\n this.center = marker;\n this.currentPlace = null;\n }\n },\n getCurrentPosition: function() {\n const vue = this;\n navigator.geolocation.getCurrentPosition((position) => {\n vue.center = {\n lat: position.coords.latitude,\n lng: position.coords.longitude,\n };\n });\n },\n },\n};\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./googleMap.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./googleMap.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GoogleMap.vue?vue&type=template&id=29d039ec&\"\nimport script from \"./googleMap.js?vue&type=script&lang=js&\"\nexport * from \"./googleMap.js?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}