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YAAa,CAAC,GAAI,KAEtB,IAEA,uDCAA,IAXsB,SAACnD,EAAmBC,EAAkBlF,EAAeqI,GACzE,IAAIC,GAAa,EAIjB,OAHID,IACFC,EAAaD,GAEXrI,EACKW,EAAAA,OAAS,CAACuE,EAAUD,GAAY,CAAEoD,UAAWC,EAAYtI,KAAMA,IAEjEW,EAAAA,OAAS,CAACuE,EAAUD,GAAY,CAAEoD,UAAWC,GACtD,mFCVMC,EAAcnG,OAAOmG,YAM3B,EAJqB5H,EAAAA,UAAY4H,EAAa,CAC5CC,YAAa,sDCEf,EAJsB7H,EAAAA,UAAY,2DAA4D,CAC5F6H,YAAa,4HCGf,EAJuB7H,EAAAA,UAAY,4DAA6D,CAC9F6H,YAAa,4HCoBf,EAlBoB,SAACxJ,GACnByJ,EAAAA,MAAmBzJ,GACnB,IAAM0J,EAAiB9F,SAASa,eAAe,aACzCkF,EAAgB/F,SAASa,eAAe,YACxCmF,EAAYhG,SAASa,eAAe,QACpCwB,EAAYyD,EAAiBG,WAAWH,EAAe1E,QAAQC,OAAS,WACxEiB,EAAWyD,EAAeE,WAAWF,EAAc3E,QAAQC,OAAS,UACpE6E,EAAOF,EAAY7E,SAAS6E,EAAU5E,QAAQC,OAAS,GAC7DjF,EAAI8G,QAAQ,CAACZ,EAAUD,GAAY6D,GACnC,IAAMC,EAAc,CAClB,2BAAQN,EACR,2DAAeO,EACf,2DAAeC,GAEjBtI,EAAAA,QAAAA,OAAiBoI,GAAavG,MAAMxD,GACpC2B,EAAAA,QAAAA,MAAgB,CAACuI,UAAS,IAAQ1G,MAAMxD,EAC1C","sources":["webpack://app/./app/javascript/images/ sync ^\\.\\/aed_precision_.*\\.png$","webpack://app/./app/javascript/maps/controls/switch_cluster_control.ts","webpack://app/./app/javascript/maps/popups/aed_contents_popup.ts","webpack://app/./app/javascript/aed_map.ts","webpack://app/./app/javascript/apis/search_by_location.ts","webpack://app/./app/javascript/icons/rank_icon.ts","webpack://app/./app/javascript/maps/events/aed_marker_event.ts","webpack://app/./app/javascript/maps/icons/precision_icons.ts","webpack://app/./app/javascript/maps/markers/create_marker.ts","webpack://app/./app/javascript/maps/layers/mapion.ts","webpack://app/./app/javascript/maps/layers/gsi_std.ts","webpack://app/./app/javascript/maps/layers/gsi_pole.ts","webpack://app/./app/javascript/maps/prepare_map.ts"],"sourcesContent":["var map = {\n\t\"./aed_precision_a.png\": 5011,\n\t\"./aed_precision_b.png\": 4051,\n\t\"./aed_precision_c.png\": 354,\n\t\"./aed_precision_d.png\": 6145\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 9790;","import * as L from 'leaflet'\nimport {icon} from '@fortawesome/fontawesome-svg-core'\nimport {faExpandAlt, faCompressArrowsAlt} from '@fortawesome/free-solid-svg-icons'\n\nconst faExpandAltIcon = icon(faExpandAlt)\nconst faCompressArrowsAltIcon = icon(faCompressArrowsAlt)\n\nclass SwitchClusterControl extends L.Control {\n status = false\n marker_layer = null\n clustor_group = null\n constructor(marker_layer: L.LayerGroup, cluster_group: L.MarkerClusterGroup) {\n super({position: 'topleft'})\n this.marker_layer = marker_layer\n this.clustor_group = cluster_group\n }\n onAdd(map: L.Map): HTMLElement {\n const container = L.DomUtil.create('div', 'switch-cluster-control leaflet-bar')\n const link = L.DomUtil.create('a', 'switch-cluster-toggle', container)\n link.appendChild(faExpandAltIcon.node[0])\n const stop = L.DomEvent.stopPropagation\n const _updateButton = () => {\n if (this.status) {\n const svg = link.getElementsByTagName('svg')\n link.removeChild(svg[0])\n link.appendChild(faCompressArrowsAltIcon.node[0])\n link.title = \"ピンを展開します\"\n } else {\n const svg = link.getElementsByTagName('svg')\n link.removeChild(svg[0])\n link.appendChild(faExpandAltIcon.node[0])\n link.title = \"ピンをまとめます\"\n }\n }\n const _toggle = () => {\n if (!this.status) {\n map.removeLayer(this.marker_layer)\n map.addLayer(this.clustor_group)\n } else {\n map.removeLayer(this.clustor_group)\n map.addLayer(this.marker_layer)\n }\n this.status = !this.status\n _updateButton()\n }\n L.DomEvent\n .on(link, 'click', stop)\n .on(link, 'mousedown', stop)\n .on(link, 'dblclick', stop)\n .on(link, 'click', L.DomEvent.preventDefault)\n .on(link, 'click', _toggle, this)\n return container\n } \n}\n\nexport default SwitchClusterControl","import * as L from 'leaflet'\nimport AED from '../../interfaces/aed'\n\nconst popup_contents = (aed: AED): string => {\n const title = \"\" + (aed.install_location_name || \"\") + \"\"\n let body = \"\"\n if (aed.install_address_detail) {\n body += \"
\" + aed.install_address_detail\n }\n if (aed.everyone_allow) {\n if (aed.everyone_allow === \"認めない\") {\n body += \"
外部の使用を\" + aed.everyone_allow + \"\"\n } else {\n body += \"
外部の使用を\" + aed.everyone_allow\n }\n }\n if (aed.conditions_for_everyone) {\n body += \"
条件: \" + aed.conditions_for_everyone\n }\n return title + body\n}\n\nconst aed_content_popup = (marker: L.Marker, aed: AED): void => {\n const content = popup_contents(aed)\n marker.bindPopup(content).openPopup()\n}\n\nexport default aed_content_popup","import * as screenfull from 'screenfull'\nwindow.screenfull = screenfull\nimport * as L from 'leaflet'\n//import './stylesheets/leaflet'\nimport 'leaflet/dist/leaflet.css'\nimport 'leaflet.markercluster'\nimport 'leaflet.markercluster/dist/MarkerCluster.css'\nimport 'leaflet.markercluster/dist/MarkerCluster.Default.css'\nimport 'leaflet.fullscreen'\nimport 'leaflet.fullscreen/Control.FullScreen.css'\nimport SwitchClusterControl from './maps/controls/switch_cluster_control'\nimport prepare_map from './maps/prepare_map'\nimport search_by_location from './apis/search_by_location'\nimport precision_icons from './maps/icons/precision_icons'\nimport create_marker from './maps/markers/create_marker'\nimport aed_content_popup from './maps/popups/aed_contents_popup'\nimport aed_marker_event from './maps/events/aed_marker_event'\n\nconst map = L.map('aed_map', {'tap': false})\nprepare_map(map)\nconst layer = L.layerGroup()\nlayer.addTo(map)\nconst markerClusterGroup = L.markerClusterGroup({showCoverageOnHover: false, maxClusterRadius: 10})\nconst fullscreenEnabled =\n document.fullscreenEnabled ||\n document.mozFullScreenEnabled ||\n document.documentElement.webkitRequestFullScreen\nif (fullscreenEnabled) {\n L.control.fullscreen({\n position: 'topleft',\n title: 'フルスクリーン表示',\n titleCancel: 'フルスクリーンを閉じる',\n forceSeparateButton: true,\n forcePseudoFullscreen: true,\n fullscreenElement: false\n }).addTo(map)\n map.on('enterFullscreen', () => {\n console.log('enter')\n document.body.style.overflow = 'hidden'\n document.getElementById('banner-overlay').style.display = 'block'\n })\n map.on('exitFullscreen', () => {\n document.body.style.overflow = 'auto'\n document.getElementById('banner-overlay').style.display = 'none'\n })\n}\nmap.addControl(new SwitchClusterControl(layer, markerClusterGroup))\nconst aed_map = document.getElementById('aed_map')\nconst id_html = document.getElementById('id') as HTMLInputElement\nlet aed_id = 0\nif (id_html) {\n aed_id = parseInt(id_html.dataset.value)\n}\nif (aed_map.getAttribute('data-realtime') == 'true') {\n const aeds: Array = []\n const show_current_position_aeds = () => {\n const latlng = map.getCenter()\n search_by_location(latlng.lat, latlng.lng)\n .then((_aeds) => {\n _aeds.forEach(aed => {\n if (!(aeds.includes(aed.id))) {\n aeds.push(aed.id)\n const location = aed.location\n const marker = create_marker(location.longitude, location.latitude, precision_icons[aed.rank])\n aed_content_popup(marker, aed)\n aed_marker_event(marker, aed)\n layer.addLayer(marker)\n markerClusterGroup.addLayer(marker)\n if (aed_id === aed.id) {\n marker.fire('click')\n }\n }\n })\n })\n }\n map.on('moveend', () => {\n show_current_position_aeds()\n })\n\n const move_to_browser_position:PositionCallback = (success: GeolocationPosition):void => {\n const move_to = L.latLng(success.coords.latitude, success.coords.longitude)\n map.setView(move_to, 18, {animate: true})\n }\n if (navigator.geolocation && aed_map.getAttribute('data-geolocation') == 'true') {\n navigator.geolocation.getCurrentPosition(move_to_browser_position)\n }\n show_current_position_aeds()\n}\n","import AED from '../interfaces/aed'\n\ninterface APIResponse {\n readonly aeds: [AED];\n}\n\nconst search_by_location = async (latitude: number, longitude: number): Promise<[AED]> => {\n const response = await fetch(`/api/aed/search_by_location?latitude=${latitude}&longitude=${longitude}`, {\n method: 'GET',\n mode: 'same-origin',\n headers: {\n 'Content-Type': 'application/json'\n }\n })\n const json:APIResponse = await response.json()\n const aeds = json.aeds\n return aeds\n}\n\nexport default search_by_location","const rank_icon = (precision:string):string => require('../images/' + `aed_precision_${precision.toLowerCase()}.png`)\nexport default rank_icon","import * as L from 'leaflet'\nimport AED from '../../interfaces/aed'\nimport rank_icon from '../../icons/rank_icon'\n\nconst set_string_field = (base: string, value?: string): void => {\n const field_dom = `${base}_field`\n const field = document.getElementById(field_dom)\n if (field) {\n if (value) {\n if (document.getElementById(base)) {\n document.getElementById(base).innerHTML = value\n }\n field.style.display = ''\n } else {\n field.style.display = 'none'\n }\n }\n}\n\nconst set_number_field = (base: string, value?: number): void => {\n const field_dom = `${base}_field`\n const field = document.getElementById(field_dom)\n if (field) {\n if (value) {\n if (document.getElementById(base)) {\n document.getElementById(base).innerHTML = value.toString()\n }\n field.style.display = ''\n } else {\n field.style.display = 'none'\n }\n }\n}\n\nconst aed_merker_event = (marker: L.Marker, aed: AED): void => {\n marker.on('click', (e) => {\n set_string_field('install_location_name', aed.install_location_name)\n set_number_field('register_number', aed.register_number)\n set_string_field('install_address_detail', aed.install_address_detail)\n set_string_field('install_prefecture_name', aed.install_prefecture_name)\n set_string_field('install_address', aed.install_address)\n set_string_field('install_type_name', aed.install_type_name)\n set_string_field('conditions_for_everyone', aed.conditions_for_everyone)\n set_string_field('note', aed.note)\n set_string_field('checker', aed.checker)\n set_string_field('install_date', aed.install_date)\n // rank\n const rank_html = `精度${aed.rank} `\n if (document.getElementById('rank')) {\n document.getElementById('rank').innerHTML = rank_html\n }\n // others\n const available_time_field = document.getElementById(\"available_time_field\")\n if (available_time_field) {\n available_time_field.style.display = 'none'\n }\n const open_days_field = document.getElementById(\"open_days_field\")\n if (open_days_field) {\n open_days_field.style.display = 'none'\n }\n const utility_time_note_field = document.getElementById(\"utility_time_note_field\")\n if (utility_time_note_field) {\n utility_time_note_field.style.display = 'none'\n }\n if (aed.utility_time_type) {\n const available_time_message = aed.available_time\n if (document.getElementById('available_time')) {\n document.getElementById('available_time').innerHTML = available_time_message\n }\n if (available_time_field) {\n available_time_field.style.display = ''\n }\n if (!aed.use_everyday) {\n if (document.getElementById('open_days')) {\n document.getElementById('open_days').innerHTML = aed.open_days\n }\n if (open_days_field) {\n open_days_field.style.display = ''\n }\n }\n if (aed.utility_time_note) {\n const utility_time_note = document.getElementById('utility_time_note')\n if (utility_time_note) {\n utility_time_note.innerHTML = aed.utility_time_note\n }\n if (utility_time_note_field) {\n utility_time_note_field.style.display = ''\n }\n }\n }\n })\n}\n\nexport default aed_merker_event\n","import * as L from 'leaflet'\nimport rank_icon from '../../icons/rank_icon'\n\nconst precision_icons: {[name: string]: L.Icon} = {}\nvoid ['A', 'B', 'C', 'D'].forEach(precision => {\n precision_icons[precision] = L.icon({\n iconUrl: rank_icon(precision),\n iconSize: [31, 41],\n iconAnchor: [15, 40],\n popupAnchor: [0, -32],\n })\n})\n\nexport default precision_icons","import * as L from 'leaflet'\n\nconst create_marker = (longitude: number, latitude: number, icon?: L.Icon, draggable?: boolean): L.Marker => {\n let _draggable = false\n if (draggable) {\n _draggable = draggable\n }\n if (icon) {\n return L.marker([latitude, longitude], { draggable: _draggable, icon: icon })\n }\n return L.marker([latitude, longitude], { draggable: _draggable })\n}\n\nexport default create_marker","import * as L from 'leaflet'\nconst mapion_tile = window.mapion_tile\n\nconst mapion_layer = L.tileLayer(mapion_tile, {\n attribution: \"©ONE COMPATH Map data ©GeoTechnologies Inc.\"\n})\n\nexport default mapion_layer","import * as L from 'leaflet'\n\nconst gsi_std_layer = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png', {\n attribution: \"国土地理院\"\n})\n\nexport default gsi_std_layer\n","import * as L from 'leaflet'\n\nconst gsi_pole_layer = L.tileLayer('https://cyberjapandata.gsi.go.jp/xyz/pale/{z}/{x}/{y}.png', {\n attribution: \"国土地理院\"\n})\n\nexport default gsi_pole_layer","import * as L from 'leaflet'\nimport mapion_layer from './layers/mapion'\nimport gsi_std_layer from './layers/gsi_std'\nimport gsi_pole_layer from './layers/gsi_pole'\n\nconst prepare_map = (map: L.Map): void => {\n mapion_layer.addTo(map)\n const longitude_html = document.getElementById('longitude') as HTMLInputElement\n const latitude_html = document.getElementById('latitude') as HTMLInputElement\n const zoom_html = document.getElementById('zoom') as HTMLInputElement\n const longitude = longitude_html ? parseFloat(longitude_html.dataset.value) : 139.766865\n const latitude = latitude_html? parseFloat(latitude_html.dataset.value) : 35.681109\n const zoom = zoom_html ? parseInt(zoom_html.dataset.value) : 10\n map.setView([latitude, longitude], zoom)\n const base_layers = {\n \"マピオン\": mapion_layer,\n \"地理院地図: 標準地図\": gsi_std_layer,\n \"地理院地図: 淡色地図\": gsi_pole_layer,\n }\n L.control.layers(base_layers).addTo(map)\n L.control.scale({imperial:false}).addTo(map)\n}\n\nexport default prepare_map"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","faExpandAltIcon","icon","faExpandAlt","faCompressArrowsAltIcon","faCompressArrowsAlt","SwitchClusterControl","marker_layer","cluster_group","position","status","clustor_group","container","L","link","appendChild","node","stop","on","removeLayer","addLayer","svg","getElementsByTagName","removeChild","title","_updateButton","this","marker","aed","content","install_location_name","body","install_address_detail","everyone_allow","conditions_for_everyone","popup_contents","bindPopup","openPopup","window","screenfull","prepare_map","layer","addTo","markerClusterGroup","showCoverageOnHover","maxClusterRadius","document","fullscreenEnabled","mozFullScreenEnabled","documentElement","webkitRequestFullScreen","titleCancel","forceSeparateButton","forcePseudoFullscreen","fullscreenElement","console","log","style","overflow","getElementById","display","addControl","aed_map","id_html","aed_id","parseInt","dataset","value","getAttribute","aeds","show_current_position_aeds","latlng","getCenter","search_by_location","lat","lng","then","_aeds","forEach","includes","push","location","create_marker","longitude","latitude","precision_icons","rank","aed_content_popup","aed_marker_event","fire","navigator","geolocation","getCurrentPosition","success","move_to","coords","setView","animate","fetch","method","mode","headers","response","json","precision","require","toLowerCase","set_string_field","base","field_dom","field","innerHTML","register_number","toString","install_prefecture_name","install_address","install_type_name","note","checker","install_date","rank_html","rank_icon","available_time_field","open_days_field","utility_time_note_field","utility_time_type","available_time_message","available_time","use_everyday","open_days","utility_time_note","iconUrl","iconSize","iconAnchor","popupAnchor","draggable","_draggable","mapion_tile","attribution","mapion_layer","longitude_html","latitude_html","zoom_html","parseFloat","zoom","base_layers","gsi_std_layer","gsi_pole_layer","imperial"],"sourceRoot":""}