Skip to content

Commit

Permalink
docs: operator quick start config guide (#3010)
Browse files Browse the repository at this point in the history
#### Motivation

Expand the quick start guide to include how to bundle configuration

#### Modification

- Applies prettier to all of /docs
- adds quick start guide for bundling config

#### Checklist

_If not applicable, provide explanation of why._

- [ ] Tests updated
- [ ] Docs updated
- [ ] Issue linked in Title
  • Loading branch information
blacha authored Nov 20, 2023
1 parent bee7815 commit 8ee4b1e
Show file tree
Hide file tree
Showing 7 changed files with 304 additions and 256 deletions.
65 changes: 32 additions & 33 deletions docs/examples/index.leaflet.xyz.3857.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Leaflet WGS84 Basemaps Demo</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script
src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha384-cxOPjt7s7Iz04uaHJceBmS+qpjv2JkIHNVcuOrM+YHwZOmJGBXI00mdUXEq65HTH"
crossorigin="anonymous"
></script>
<style>
html,
body {
height: 100%;
margin: 0;
}
</style>
</head>

<head>
<meta charset="UTF-8" />
<title>Leaflet WGS84 Basemaps Demo</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha384-cxOPjt7s7Iz04uaHJceBmS+qpjv2JkIHNVcuOrM+YHwZOmJGBXI00mdUXEq65HTH"
crossorigin="anonymous"></script>
<style>
html,
body {
height: 100%;
margin: 0;
}
</style>
</head>
<body>
<div id="map" style="width: 100%; height: 500px"></div>
<script>
const startPos = [-40.5, 173];
const startZoom = 6;

<body>
<div id="map" style="width: 100%; height: 500px;"></div>
<script>
const startPos = [-40.5, 173];
const startZoom = 6;
const url =
'https://basemaps.linz.govt.nz/v1/tiles/aerial/WebMercatorQuad/{z}/{x}/{y}.webp?api=d01hep5551e30kxb7w85hck49tp';

const url = 'https://basemaps.linz.govt.nz/v1/tiles/aerial/WebMercatorQuad/{z}/{x}/{y}.webp?api=d01hep5551e30kxb7w85hck49tp';
const tiles = L.tileLayer(url, {
attribution:
'<a href="https://www.linz.govt.nz/data/linz-data/linz-basemaps/data-attribution">LINZ CC BY 4.0 © Imagery Basemap contributors</a>',
});

const tiles = L.tileLayer(url, {
attribution: '<a href="https://www.linz.govt.nz/data/linz-data/linz-basemaps/data-attribution">LINZ CC BY 4.0 © Imagery Basemap contributors</a>'
});

L.map('map')
.addLayer(tiles)
.setView(startPos, startZoom);

</script>
</body>

</html>
L.map('map').addLayer(tiles).setView(startPos, startZoom);
</script>
</body>
</html>
Loading

0 comments on commit 8ee4b1e

Please sign in to comment.