Skip to content

Commit

Permalink
refactor: apply formatter to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Nov 15, 2023
1 parent 7067158 commit 6dd747a
Show file tree
Hide file tree
Showing 7 changed files with 260 additions and 260 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 6dd747a

Please sign in to comment.