-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
278 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,36 @@ block append scripts | |
link(rel='stylesheet' href='https://unpkg.com/[email protected]/dist/leaflet.css') | ||
script(src='https://unpkg.com/[email protected]/dist/leaflet.js') | ||
|
||
block header | ||
|
||
svg.d-none(xmlns='http://www.w3.org/2000/svg') | ||
symbol#house-door-fill(viewbox='0 0 16 16') | ||
path(d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5z') | ||
|
||
- let linkSelf = content.links.find(i => i.rel == 'self').href.split('?')[0] | ||
- let links = [ linkSelf ] | ||
- while (links[0] != serviceUrl) { | ||
- links.unshift(links[0].substr(0, links[0].lastIndexOf("/"))) } | ||
|
||
nav(aria-label='breadcrumb') | ||
ol.breadcrumb.breadcrumb-chevron.p-3.bg-body-tertiary.rounded-3 | ||
li.breadcrumb-item | ||
a.link-body-emphasis(href=serviceUrl) | ||
svg.bi(width='16' height='16') | ||
use(xlink:href='#house-door-fill') | ||
span.visually-hidden serviceUrl | ||
li.breadcrumb-item | ||
a.link-body-emphasis.fw-semibold.text-decoration-none(href=links[1]) Data | ||
- let pathElement = links[2].substring(links[2].lastIndexOf("/") + 1); | ||
li.breadcrumb-item | ||
a.link-body-emphasis.fw-semibold.text-decoration-none(href=links[2]) #{pathElement} | ||
li.breadcrumb-item | ||
a.link-body-emphasis.fw-semibold.text-decoration-none(href=links[3]) Items | ||
- let pathElement2 = links[4].substring(links[4].lastIndexOf("/") + 1); | ||
li.breadcrumb-item.active(aria-current='page') | ||
| #{pathElement2} | ||
|
||
|
||
block content | ||
|
||
.content | ||
|
@@ -19,5 +49,5 @@ block content | |
script. | ||
var map = L.map("map").setView([52.300, 4.867], 12); | ||
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map); | ||
var features = !{JSON.stringify(geometry)} | ||
var features = !{JSON.stringify(content.geometry)} | ||
L.geoJSON(features).addTo(map); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,32 @@ block append scripts | |
link(rel='stylesheet' href='https://unpkg.com/[email protected]/dist/leaflet.css') | ||
script(src='https://unpkg.com/[email protected]/dist/leaflet.js') | ||
|
||
block header | ||
|
||
svg.d-none(xmlns='http://www.w3.org/2000/svg') | ||
symbol#house-door-fill(viewbox='0 0 16 16') | ||
path(d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5z') | ||
|
||
- let linkSelf = content.links.find(i => i.rel == 'self').href.split('?')[0] | ||
- let links = [ linkSelf ] | ||
- while (links[0] != serviceUrl) { | ||
- links.unshift(links[0].substr(0, links[0].lastIndexOf("/"))) } | ||
|
||
nav(aria-label='breadcrumb') | ||
ol.breadcrumb.breadcrumb-chevron.p-3.bg-body-tertiary.rounded-3 | ||
li.breadcrumb-item | ||
a.link-body-emphasis(href=serviceUrl) | ||
svg.bi(width='16' height='16') | ||
use(xlink:href='#house-door-fill') | ||
span.visually-hidden serviceUrl | ||
li.breadcrumb-item | ||
a.link-body-emphasis.fw-semibold.text-decoration-none(href=links[1]) Data | ||
- let pathElement = links[2].substring(links[2].lastIndexOf("/") + 1); | ||
li.breadcrumb-item | ||
a.link-body-emphasis.fw-semibold.text-decoration-none(href=links[2]) #{pathElement} | ||
li.breadcrumb-item.active(aria-current='page') | ||
| Items | ||
|
||
block content | ||
|
||
.content | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,20 @@ block append scripts | |
link(rel='stylesheet' href='https://unpkg.com/[email protected]/dist/leaflet.css') | ||
script(src='https://unpkg.com/[email protected]/dist/leaflet.js') | ||
|
||
block content | ||
block header | ||
svg.d-none(xmlns='http://www.w3.org/2000/svg') | ||
symbol#house-door-fill(viewbox='0 0 16 16') | ||
path(d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5z') | ||
|
||
nav(aria-label='breadcrumb') | ||
ol.breadcrumb.breadcrumb-chevron.p-3.bg-body-tertiary.rounded-3 | ||
li.breadcrumb-item.active | ||
a.link-body-emphasis(href=serviceUrl) | ||
svg.bi(width='16' height='16') | ||
use(xlink:href='#house-door-fill') | ||
span.visually-hidden serviceUrl | ||
|
||
block content | ||
svg.d-none(xmlns='http://www.w3.org/2000/svg') | ||
symbol#arrow-right-circle(viewbox='0 0 16 16') | ||
path(d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.