|
| 1 | +<!DOCTYPE html> |
| 2 | +<!-- |
| 3 | + @license |
| 4 | + Copyright 2019 Google LLC. All Rights Reserved. |
| 5 | + SPDX-License-Identifier: Apache-2.0 |
| 6 | +--> |
| 7 | +<!-- [START maps_dds_region_viewer] --> |
| 8 | +<html> |
| 9 | + <head> |
| 10 | + <title>Region Coverage Viewer</title> |
| 11 | + |
| 12 | + <link rel="stylesheet" type="text/css" href="./style.css" /> |
| 13 | + <script type="module" src="./index.js"></script> |
| 14 | + <!-- prettier-ignore --> |
| 15 | + <script>(g => { var h, a, k, p = "The Google Maps JavaScript API", c = "google", l = "importLibrary", q = "__ib__", m = document, b = window; b = b[c] || (b[c] = {}); var d = b.maps || (b.maps = {}), r = new Set, e = new URLSearchParams, u = () => h || (h = new Promise(async (f, n) => { await (a = m.createElement("script")); e.set("libraries", [...r] + ""); for (k in g) e.set(k.replace(/[A-Z]/g, t => "_" + t[0].toLowerCase()), g[k]); e.set("callback", c + ".maps." + q); a.src = `https://maps.${c}apis.com/maps/api/js?` + e; d[q] = f; a.onerror = () => h = n(Error(p + " could not load.")); a.nonce = m.querySelector("script[nonce]")?.nonce || ""; m.head.append(a) })); d[l] ? console.warn(p + " only loads once. Ignoring:", g) : d[l] = (f, ...n) => r.add(f) && u().then(() => d[l](f, ...n)) }) |
| 16 | + ({ key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly" });</script> |
| 17 | + </head> |
| 18 | + <body> |
| 19 | + <gmp-map |
| 20 | + center="39.32,-95" |
| 21 | + zoom="2" |
| 22 | + map-type-control="false" |
| 23 | + street-view-control="false" |
| 24 | + map-id="1bf5295b744a394a" |
| 25 | + > |
| 26 | + <div id="container" slot="control-inline-start-block-start"> |
| 27 | + <div id="sidebar"> |
| 28 | + <div id="title">Region Coverage Viewer</div> |
| 29 | + <div id="country-menu-div"> |
| 30 | + <!-- Country selection dropdown --> |
| 31 | + <select id="country-select" class="pac-controls"></select> |
| 32 | + </div> |
| 33 | + <div id="feature-menu-div"> |
| 34 | + <!-- Feature type dropdown --> |
| 35 | + <select id="feature-type-select" class="pac-controls"> |
| 36 | + <option id="country" value="country">Country</option> |
| 37 | + <option |
| 38 | + id="administrative_area_level_1" |
| 39 | + value="administrative_area_level_1" |
| 40 | + selected |
| 41 | + > |
| 42 | + Administrative Area Level 1 |
| 43 | + </option> |
| 44 | + <option |
| 45 | + id="administrative_area_level_2" |
| 46 | + value="administrative_area_level_2" |
| 47 | + > |
| 48 | + Administrative Area Level 2 |
| 49 | + </option> |
| 50 | + <option id="locality" value="locality">Locality</option> |
| 51 | + <option id="postal_code" value="postal_code">Postal code</option> |
| 52 | + <option id="school_district" value="school_district"> |
| 53 | + School district |
| 54 | + </option> |
| 55 | + </select> |
| 56 | + </div> |
| 57 | + <!-- Autocomplete control --> |
| 58 | + <gmp-place-autocomplete class="pac-controls"></gmp-place-autocomplete> |
| 59 | + <div id="filter-checkbox"> |
| 60 | + <label for="pac-filter-option" |
| 61 | + ><input id="pac-filter-option" type="checkbox" /> Restrict search |
| 62 | + to selected feature type</label |
| 63 | + > |
| 64 | + </div> |
| 65 | + <!-- Color controls --> |
| 66 | + <div id="color-controls" class="pac-controls"> |
| 67 | + <label for="head" |
| 68 | + >Fill: <input |
| 69 | + type="color" |
| 70 | + id="fill-color-picker" |
| 71 | + name="head" |
| 72 | + value="#810FCB" |
| 73 | + /></label> |
| 74 | + |
| 75 | + <label for="body" |
| 76 | + >Stroke: <input |
| 77 | + type="color" |
| 78 | + id="stroke-color-picker" |
| 79 | + name="body" |
| 80 | + value="#810FCB" |
| 81 | + /></label> |
| 82 | + </div> |
| 83 | + <!-- Place details, photo, etc. --> |
| 84 | + <div id="pac-content"></div> |
| 85 | + </div> |
| 86 | + </div> |
| 87 | + </gmp-map> |
| 88 | + </body> |
| 89 | +</html> |
| 90 | +<!-- [END maps_dds_region_viewer] --> |
0 commit comments