@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/README.md +6 -2
- package/dist/component-lib.es.js +4 -3
- package/dist/component-lib.umd.js +133 -111
- package/dist/{index-D01mRj0Z.mjs → index-yh__5vWy.mjs} +15856 -15664
- package/dist/{index.es-DVcWaq6t.mjs → index.es-ApGkgZbJ.mjs} +1783 -1745
- package/dist/index.html +17 -0
- package/dist/map.css +1 -1
- package/package.json +5 -5
- package/types/components/geocode-autocomplete/index.d.ts +49 -0
- package/types/components/geocode-autocomplete/main.test.d.ts +6 -0
- package/types/index.d.ts +1 -0
- package/types/lib/ordnanceSurvey.d.ts +1 -1
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>
|