Skip to content

Commit

Permalink
Docs: Example minor fixes
Browse files Browse the repository at this point in the history
- Remove unnecessary `type="text/css"` - not needed for HTML5 and not recommended.
- Update `@maplibre/maplibre-gl-geocoder` to latest version on the demo (seems to work fine)
- Accessibility fix for filter-within-layers example with radio matching the labels.
  • Loading branch information
coliff committed Jun 17, 2024
1 parent 7706d47 commit 8966ae1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions test/examples/filter-within-layer.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
<input id="tsunami" type="checkbox" />
<label for="tsunami">Apply <code>tsunami</code> filter</label>
<div id="radio-tsunamis">
<input type="radio" id="t0" name="tsunami" value="0" /><label>0</label>
<input type="radio" id="t1" name="tsunami" value="1" /><label>1</label>
<input type="radio" id="t0" name="tsunami" value="0" /><label for="t0">0</label>
<input type="radio" id="t1" name="tsunami" value="1" /><label for="t1">1</label>
</div>
</fieldset>
</nav>
Expand Down Expand Up @@ -189,4 +189,4 @@

</script>
</body>
</html>
</html>
7 changes: 3 additions & 4 deletions test/examples/geocoder.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
</head>
<body>
<!-- Load the `maplibre-gl-geocoder` plugin. -->
<script src="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.2.0/dist/maplibre-gl-geocoder.min.js"></script>
<script src="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.5.0/dist/maplibre-gl-geocoder.min.js"></script>
<link
rel="stylesheet"
href="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.2.0/dist/maplibre-gl-geocoder.css"
type="text/css"
href="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.5.0/dist/maplibre-gl-geocoder.css"
/>
<div id="map"></div>
<script>
Expand Down Expand Up @@ -110,4 +109,4 @@
);
</script>
</body>
</html>
</html>
1 change: 0 additions & 1 deletion test/examples/mapbox-gl-draw.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
<link
rel="stylesheet"
href="https://www.unpkg.com/@mapbox/mapbox-gl-draw@1.4.3/dist/mapbox-gl-draw.css"
type="text/css"
/>
<div id="map"></div>
<div class="calculation-box">
Expand Down
2 changes: 1 addition & 1 deletion test/examples/mouse-position.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</style>
</head>
<body>
<style type="text/css">
<style>
#info {
display: block;
position: absolute;
Expand Down

0 comments on commit 8966ae1

Please sign in to comment.