Skip to content

Commit

Permalink
Merge pull request #54 from Woosmap/dev/add-shape-localities-support
Browse files Browse the repository at this point in the history
Adding display for shape in localities
  • Loading branch information
gaelsimon authored Jun 13, 2024
2 parents 07b0868 + 4c8e839 commit 990bbe8
Show file tree
Hide file tree
Showing 4 changed files with 659 additions and 0 deletions.
35 changes: 35 additions & 0 deletions samples/localities-api-shape/index.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---json
{
"countries": [
{ "code": "FR", "name": "France" },
{ "code": "GB", "name": "United Kingdom"},
{ "code": "DE", "name": "Germany"},
{ "code": "ES", "name": "Spain"}
]
}
---
{% extends '../../src/_includes/layout.njk' %}
{% block html %}
<!-- [START woosmap_{{ tag }}_div] -->
<div id="app">
<div id="map"></div>
<div class="addressDetails">
<div class="addressOptions"></div>
</div>
<div id="autocomplete-container">
{% svgIcon 'search.svg' %}
<input
type="text"
id="autocomplete-input"
placeholder="Search an Address..."
autocomplete="off"
/>
<button aria-label="Clear" class="clear-searchButton" type="button">
{% svgIcon 'clear.svg' %}
</button>
<ul id="suggestions-list"></ul>
</div>
{% include '../../src/_includes/country-selector.njk' %}
</div>
<!-- [END woosmap_{{ tag }}_div] -->
{% endblock %}
Loading

0 comments on commit 990bbe8

Please sign in to comment.