@opensystemslab/map 1.0.0-alpha.6 → 1.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -85,6 +85,13 @@
85
85
  labelStyle="static"
86
86
  />
87
87
  </div>
88
+ <div style="margin-bottom: 1em; background-color: white">
89
+ <geocode-autocomplete
90
+ id="example-geocode-autocomplete"
91
+ arrowStyle="light"
92
+ labelStyle="static"
93
+ />
94
+ </div>
88
95
  </div>
89
96
  <script>
90
97
  // --- MAP --- //
@@ -150,6 +157,16 @@
150
157
  console.debug({ detail: address });
151
158
  },
152
159
  );
160
+
161
+ // -- GEOCODE AUTOCOMPLETE -- //
162
+ const geocodeAutocomplete = document.querySelector('geocode-autocomplete')
163
+
164
+ geocodeAutocomplete.addEventListener(
165
+ "addressSelection",
166
+ ({ detail: address }) => {
167
+ console.debug({ detail: address });
168
+ },
169
+ );
153
170
  </script>
154
171
  </body>
155
172
  </html>