GASで楽天モバイル地図表示

こちらのコードを参考にCSVデータを作成

github.com

マップ

https://script.google.com/macros/s/AKfycbzstmPbiibwhPjF8sOHLVxmYXYqg0uqxodmb_KHc3GU4stFy61ICOYCIzrKcZlwZwwk9w/exec

f:id:imabari_ehime:20210706151002p:plain

CSV

https://docs.google.com/spreadsheets/d/e/2PACX-1vQ5De3t_hQfGZ4yMqsFaV8osRqeNSn1Qn2HuwdZqE-XJr8uiWfyLgL4rCCoyEL7A4zbCmRs-qMCunws/pub?gid=135190842&single=true&output=csv

コード.gs

function doGet() {
  var template = 'index';
  return HtmlService.createTemplateFromFile(template).evaluate();
}

index.html

<!DOCTYPE html>
<html>

<head>
   <meta charset="utf-8">
   <meta name="viewport" content="width=device-width">
   <title>楽天モバイル基地局マップ(愛媛県)</title>
   <style>
        body {
            margin: 0;
            text-align: center;
        }
    </style>
</head>

<body>
    <script type="module" src="https://js.sabae.cc/csv-map.js"></script>
    <csv-map
        src="https://docs.google.com/spreadsheets/d/e/2PACX-1vQ5De3t_hQfGZ4yMqsFaV8osRqeNSn1Qn2HuwdZqE-XJr8uiWfyLgL4rCCoyEL7A4zbCmRs-qMCunws/pub?gid=135190842&single=true&output=csv"
        icon="data:image/png;base64,R0lGODlhyADIAHAAACwAAAAAyADIAIX////+9fr83vD+/f7wsdX4K5z3CIz6fsP5S6v7sdLcRZr7tt3rlMX8zOL90+r23Of34O38+Pn05Or+/v797fHv4+fnwdf+8ff7nNH4Y6by5+7upc791uf7j8v8pdXyutrqyt356fLvwtXwxt/68/QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/0CAcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvter/gsHhMLpvP6LR6zW673/C4fE6v2+/4vH7P7/v/gIGCg4SFhoeIiYqLjI2Oj5CRkpOUlZaXmJmam5ydnp+goaKjpKWmp6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8Nvu2QEjKbUNW9xcFYJuwKzY0NzFbXY9ihrxtVdnzJ2FVrr9awrbGvjrhRJ6xW2KgTA6vffBxQtBgF0AW74qwxsEBeojDfu+OOQRy755JRXbvnlmGeueVMcbHD456CHLvropJf+dwcefKD6ByCEsHgiLKsquwHvMGC7CKRCgljZs+Nkpe0j5I7J03G9i4X4AmeD8lrxXCKeQPKn5M38P86PAL0rcU/PlfN7y+PAX727auXzfxJflfgHMDDwpuaT5KrtS0MufUnOI7/5ENnjfLzw9xdxgQLlEB8DEkCC/kkhAODDGOIYYD8DZuh36nOgBCdIwQpa8IIYzKAGNyLIwQ568IMgDKEIR0jCEprwhChMoQpXyMIWuvCFMIxhSIIAADs="
        height="85vh" iconsize=40 filter="title,open,type"></csv-map>
    <footer>
        <p><a href="https://github.com/code4sabae/js/blob/master/LICENSE">ライセンス MIT Code for Sabae / Taisuke Fukuno</a></p>
        <p><a href="https://c4.sabae.cc/">Code for Sabae</a></p>
    </footer>
</body>

</html>

data:image/png;base64,R0lGODlhyADIAHAAACwAAAAAyADIAISAgICAcHmBW3B+d3uNX3nnGIr3CIzCPYaoRXyVTXWdVX3kOZehf5K2WYy/P4aua5DmGIqLf4amZImXeofGGXmZWn26RYWwT4SAeHx/fn8AAAAAAAAAAAAAAAAAAAAAAAAF/yAgjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvter/gsHhMLpvP6LR6zW673/C4fE6v2+/4vH7P7/v/gIGCg4SFhoeIiYqLjI2Oj5CRkowBApaXmJmam5kDk1EEBQajpKWmp6imBQesBwgCAZ9JAqm1trekq6+eskMJuMDBpwUIvL0/tMLKwqsKxz6/y9LABc7PO8nT2rXEsdc4CNvi3NbfNQfj6cMI3uYy6OrxueXuL/Dy8tX1MPf48fr7WvTzpw5gQBUDCaYzePBEQoXjGDYk8RCiuALtJo6oaHEbAo0lOHacJnGiyJHSSlUePJlqAYMGDmI2eDmzwcwHLx1A+GfMp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