{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///../demo7/src/js/pages/features/maps/leaflet.js"],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,wBAAwB,EAAE,yBAAyB,EAAE,EAAE,EAAE,EAAE,EAAE;AAC7D,uBAAuB;AACvB,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,qDAAqD,oBAAoB;AACzE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,wBAAwB,EAAE,yBAAyB,EAAE,EAAE,EAAE,EAAE,EAAE;AAC7D,uBAAuB;AACvB,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,mDAAmD,oBAAoB;AACvE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,wBAAwB,EAAE,yBAAyB,EAAE,EAAE,EAAE,EAAE,EAAE;AAC7D,uBAAuB;AACvB,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qDAAqD;AACzD,IAAI,uDAAuD;AAC3D,IAAI,iDAAiD;AACrD,IAAI,kDAAkD;AACtD,IAAI,wDAAwD;AAC5D,IAAI,gDAAgD;AACpD,IAAI,sDAAsD;AAC1D,IAAI,sDAAsD;AAC1D,IAAI,mDAAmD;AACvD,IAAI,qDAAqD;AACzD,IAAI,qDAAqD;AACzD,IAAI,mDAAmD;AACvD,IAAI,oDAAoD;AACxD,IAAI,mDAAmD;AACvD,IAAI;AACJ;;AAEA;AACA,2CAA2C,8CAA8C;;AAEzF,4CAA4C,EAAE,yBAAyB,EAAE,EAAE,EAAE,EAAE,EAAE;;AAEjF;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,oCAAoC,oBAAoB;AACxD,iCAAiC,qBAAqB;AACtD,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,CAAC","file":"js/pages/features/maps/leaflet.js","sourcesContent":[" \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// 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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"../demo7/src/js/pages/features/maps/leaflet.js\");\n","\"use strict\";\r\n\r\n// Class definition\r\nvar KTLeaflet = function () {\r\n\r\n\t// Private functions\r\n\tvar demo1 = function () {\r\n\t\t// define leaflet\r\n\t\tvar leaflet = L.map('kt_leaflet_1', {\r\n\t\t\tcenter: [-37.8179793, 144.9671293],\r\n\t\t\tzoom: 11\r\n\t\t});\r\n\r\n\t\t// set leaflet tile layer\r\n\t\tL.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\r\n\t\t\tattribution: '© OpenStreetMap'\r\n\t\t}).addTo(leaflet);\r\n\r\n\t\t// set custom SVG icon marker\r\n\t\tvar leafletIcon = L.divIcon({\r\n\t\t\thtml: ``,\r\n\t\t\tbgPos: [10, 10],\r\n\t\t\ticonAnchor: [20, 37],\r\n\t\t\tpopupAnchor: [0, -37],\r\n\t\t\tclassName: 'leaflet-marker'\r\n\t\t});\r\n\r\n\t\t// bind marker with popup\r\n\t\tvar marker = L.marker([-37.8179793, 144.9671293], { icon: leafletIcon }).addTo(leaflet);\r\n\t\tmarker.bindPopup(\"Flinder's Station
Melbourne, Victoria\").openPopup();\r\n\t}\r\n\r\n\tvar demo2 = function () {\r\n\t\t// define leaflet\r\n\t\tvar leaflet = L.map('kt_leaflet_2', {\r\n\t\t\tcenter: [51.5073219, -0.1276474],\r\n\t\t\tzoom: 11\r\n\t\t})\r\n\r\n\t\t// set leaflet tile layer\r\n\t\tL.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\r\n\t\t\tattribution: '© OpenStreetMap'\r\n\t\t}).addTo(leaflet);\r\n\r\n\t\t// set custom SVG icon marker\r\n\t\tvar leafletIcon = L.divIcon({\r\n\t\t\thtml: ``,\r\n\t\t\tbgPos: [10, 10],\r\n\t\t\ticonAnchor: [20, 37],\r\n\t\t\tpopupAnchor: [0, -37],\r\n\t\t\tclassName: 'leaflet-marker'\r\n\t\t});\r\n\r\n\t\t// bind marker with popup\r\n\t\tvar marker = L.marker([51.5073219, -0.1276474], { icon: leafletIcon }).addTo(leaflet);\r\n\t\tmarker.bindPopup(\"City of London\").openPopup();\r\n\r\n\t\t// set circle polygon\r\n\t\tvar circle = L.circle([51.5073219, -0.1276474], {\r\n\t\t\tcolor: '#4A7DFF',\r\n\t\t\tfillColor: '#6993FF',\r\n\t\t\tfillOpacity: 0.5,\r\n\t\t\tradius: 700\r\n\t\t}).addTo(leaflet);\r\n\t}\r\n\r\n\tvar demo3 = function () {\r\n\t\t// define leaflet\r\n\t\tvar leaflet = L.map('kt_leaflet_3', {\r\n\t\t\tcenter: [47.339, 11.602],\r\n\t\t\tzoom: 3\r\n\t\t})\r\n\r\n\t\t// set leaflet tile layer\r\n\t\tL.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\r\n\t\t\tattribution: '© OpenStreetMap'\r\n\t\t}).addTo(leaflet);\r\n\r\n\r\n\t\t// set custom SVG icon marker\r\n\t\tvar leafletIcon1 = L.divIcon({\r\n\t\t\thtml: ``,\r\n\t\t\tbgPos: [10, 10],\r\n\t\t\ticonAnchor: [20, 37],\r\n\t\t\tpopupAnchor: [0, -37],\r\n\t\t\tclassName: 'leaflet-marker'\r\n\t\t});\r\n\r\n\t\tvar leafletIcon2 = L.divIcon({\r\n\t\t\thtml: ``,\r\n\t\t\tbgPos: [10, 10],\r\n\t\t\ticonAnchor: [20, 37],\r\n\t\t\tpopupAnchor: [0, -37],\r\n\t\t\tclassName: 'leaflet-marker'\r\n\t\t});\r\n\r\n\t\tvar leafletIcon3 = L.divIcon({\r\n\t\t\thtml: ``,\r\n\t\t\tbgPos: [10, 10],\r\n\t\t\ticonAnchor: [20, 37],\r\n\t\t\tpopupAnchor: [0, -37],\r\n\t\t\tclassName: 'leaflet-marker'\r\n\t\t});\r\n\r\n\t\tvar leafletIcon4 = L.divIcon({\r\n\t\t\thtml: ``,\r\n\t\t\tbgPos: [10, 10],\r\n\t\t\ticonAnchor: [20, 37],\r\n\t\t\tpopupAnchor: [0, -37],\r\n\t\t\tclassName: 'leaflet-marker'\r\n\t\t});\r\n\r\n\t\t// bind markers with popup\r\n\t\tvar marker1 = L.marker([39.3262345, -4.8380649], { icon: leafletIcon1 }).addTo(leaflet);\r\n\t\tvar marker2 = L.marker([41.804, 13.843], { icon: leafletIcon2 }).addTo(leaflet);\r\n\t\tvar marker3 = L.marker([51.11, 10.371], { icon: leafletIcon3 }).addTo(leaflet);\r\n\t\tvar marker4 = L.marker([46.74, 2.417], { icon: leafletIcon4 }).addTo(leaflet);\r\n\r\n\t\tmarker1.bindPopup(\"Spain\", { closeButton: false });\r\n\t\tmarker2.bindPopup(\"Italy\", { closeButton: false });\r\n\t\tmarker3.bindPopup(\"Germany\", { closeButton: false });\r\n\t\tmarker4.bindPopup(\"France\", { closeButton: false });\r\n\r\n\t\tL.control.scale().addTo(leaflet);\r\n\t}\r\n\r\n\tvar demo4 = function () {\r\n\t\t// define leaflet\r\n\t\tvar leaflet = L.map('kt_leaflet_4', {\r\n\t\t\tcenter: [51.505, -0.09],\r\n\t\t\tzoom: 13\r\n\t\t})\r\n\r\n\t\t// set leaflet tile layer\r\n\t\tL.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\r\n\t\t\tattribution: '© OpenStreetMap'\r\n\t\t}).addTo(leaflet);\r\n\r\n\t\t// set custom SVG icon marker\r\n\t\tvar leafletIcon = L.divIcon({\r\n\t\t\thtml: ``,\r\n\t\t\tbgPos: [10, 10],\r\n\t\t\ticonAnchor: [20, 37],\r\n\t\t\tpopupAnchor: [0, -37],\r\n\t\t\tclassName: 'leaflet-marker'\r\n\t\t});\r\n\r\n\t\t// bind marker with popup\r\n\t\tvar marker = L.marker([51.5, -0.09], { icon: leafletIcon }).addTo(leaflet);\r\n\r\n\t\t// set circle polygon\r\n\t\tvar circle = L.circle([51.508, -0.11], {\r\n\t\t\tcolor: '#4A7DFF',\r\n\t\t\tfillColor: '#6993FF',\r\n\t\t\tfillOpacity: 0.5,\r\n\t\t\tradius: 700\r\n\t\t}).addTo(leaflet);\r\n\r\n\t\t// set polygon\r\n\t\tvar polygon = L.polygon([\r\n\t\t\t[51.509, -0.08],\r\n\t\t\t[51.503, -0.06],\r\n\t\t\t[51.51, -0.047]\r\n\t\t]).addTo(leaflet);\r\n\t}\r\n\r\n\tvar demo5 = function () {\r\n\t\t// Define Map Location\r\n\t\tvar leaflet = L.map('kt_leaflet_5', {\r\n\t\t\tcenter: [40.725, -73.985],\r\n\t\t\tzoom: 13\r\n\t\t});\r\n\r\n\t\t// Init Leaflet Map\r\n\t\tL.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\r\n\t\t\tattribution: '© OpenStreetMap contributors'\r\n\t\t}).addTo(leaflet);\r\n\r\n\t\t// Set Geocoding\r\n\t\tvar geocodeService;\r\n\t\tif (typeof L.esri.Geocoding === 'undefined') {\r\n\t\t\tgeocodeService = L.esri.geocodeService();\r\n\t\t} else {\r\n\t\t\tgeocodeService = L.esri.Geocoding.geocodeService();\r\n\t\t}\r\n\r\n\t\t// Define Marker Layer\r\n\t\tvar markerLayer = L.layerGroup().addTo(leaflet);\r\n\r\n\t\t// Set Custom SVG icon marker\r\n\t\tvar leafletIcon = L.divIcon({\r\n\t\t\thtml: ``,\r\n\t\t\tbgPos: [10, 10],\r\n\t\t\ticonAnchor: [20, 37],\r\n\t\t\tpopupAnchor: [0, -37],\r\n\t\t\tclassName: 'leaflet-marker'\r\n\t\t});\r\n\r\n\t\t// Map onClick Action\r\n\t\tleaflet.on('click', function (e) {\r\n\t\t\tgeocodeService.reverse().latlng(e.latlng).run(function (error, result) {\r\n\t\t\t\tif (error) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tmarkerLayer.clearLayers(); // remove this line to allow multi-markers on click\r\n\t\t\t\tL.marker(result.latlng, { icon: leafletIcon }).addTo(markerLayer).bindPopup(result.address.Match_addr, { closeButton: false }).openPopup();\r\n\t\t\t\talert(`You've clicked on the following address: ${result.address.Match_addr}`);\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tvar demo6 = function () {\r\n\t\t// add sample location data\r\n\t\tvar data = [\r\n\t\t\t{ \"loc\": [41.575330, 13.102411], \"title\": \"aquamarine\" },\r\n\t\t\t{ \"loc\": [41.575730, 13.002411], \"title\": \"black\" },\r\n\t\t\t{ \"loc\": [41.807149, 13.162994], \"title\": \"blue\" },\r\n\t\t\t{ \"loc\": [41.507149, 13.172994], \"title\": \"chocolate\" },\r\n\t\t\t{ \"loc\": [41.847149, 14.132994], \"title\": \"coral\" },\r\n\t\t\t{ \"loc\": [41.219190, 13.062145], \"title\": \"cyan\" },\r\n\t\t\t{ \"loc\": [41.344190, 13.242145], \"title\": \"darkblue\" },\r\n\t\t\t{ \"loc\": [41.679190, 13.122145], \"title\": \"Darkred\" },\r\n\t\t\t{ \"loc\": [41.329190, 13.192145], \"title\": \"Darkgray\" },\r\n\t\t\t{ \"loc\": [41.379290, 13.122545], \"title\": \"dodgerblue\" },\r\n\t\t\t{ \"loc\": [41.409190, 13.362145], \"title\": \"gray\" },\r\n\t\t\t{ \"loc\": [41.794008, 12.583884], \"title\": \"green\" },\r\n\t\t\t{ \"loc\": [41.805008, 12.982884], \"title\": \"greenyellow\" },\r\n\t\t\t{ \"loc\": [41.536175, 13.273590], \"title\": \"red\" },\r\n\t\t\t{ \"loc\": [41.516175, 13.373590], \"title\": \"rosybrown\" },\r\n\t\t\t{ \"loc\": [41.507175, 13.273690], \"title\": \"royalblue\" },\r\n\t\t\t{ \"loc\": [41.836175, 13.673590], \"title\": \"salmon\" },\r\n\t\t\t{ \"loc\": [41.796175, 13.570590], \"title\": \"seagreen\" },\r\n\t\t\t{ \"loc\": [41.436175, 13.573590], \"title\": \"seashell\" },\r\n\t\t\t{ \"loc\": [41.336175, 13.973590], \"title\": \"silver\" },\r\n\t\t\t{ \"loc\": [41.236175, 13.273590], \"title\": \"skyblue\" },\r\n\t\t\t{ \"loc\": [41.546175, 13.473590], \"title\": \"yellow\" },\r\n\t\t\t{ \"loc\": [41.239290, 13.032145], \"title\": \"white\" }\r\n\t\t];\r\n\r\n\t\t// init leaflet map\r\n\t\tvar leaflet = new L.Map('kt_leaflet_6', { zoom: 10, center: new L.latLng(data[0].loc) });\r\n\r\n\t\tleaflet.addLayer(new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'));\r\n\r\n\t\t// add scale layer\r\n\t\tL.control.scale().addTo(leaflet);\r\n\r\n\t\t// set custom SVG icon marker\r\n\t\tvar leafletIcon = L.divIcon({\r\n\t\t\thtml: ``,\r\n\t\t\tbgPos: [10, 10],\r\n\t\t\ticonAnchor: [20, 37],\r\n\t\t\tpopupAnchor: [0, -37],\r\n\t\t\tclassName: 'leaflet-marker'\r\n\t\t});\r\n\r\n\t\t// set markers\r\n\t\tdata.forEach(function (item) {\r\n\t\t\tvar marker = L.marker(item.loc, { icon: leafletIcon }).addTo(leaflet);\r\n\t\t\tmarker.bindPopup(item.title, { closeButton: false });\r\n\t\t})\r\n\t}\r\n\r\n\treturn {\r\n\t\t// public functions\r\n\t\tinit: function () {\r\n\t\t\t// default charts\r\n\t\t\tdemo1();\r\n\t\t\tdemo2();\r\n\t\t\tdemo3();\r\n\t\t\tdemo4();\r\n\t\t\tdemo5();\r\n\t\t\tdemo6();\r\n\t\t}\r\n\t};\r\n}();\r\n\r\njQuery(document).ready(function () {\r\n\tKTLeaflet.init();\r\n});\r\n"],"sourceRoot":""}