Skip to content

Commit

Permalink
docs: upgrade maplibre-gl-terradraw to v1.0.1 (#5444)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinIgarashi authored Feb 2, 2025
1 parent bb75ae7 commit cc9f170
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/examples/maplibre-gl-terradraw.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
</head>
<body>

<script src="https://cdn.jsdelivr.net/npm/@watergis/maplibre-gl-terradraw@0.6.4/dist/maplibre-gl-terradraw.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@watergis/maplibre-gl-terradraw@1.0.1/dist/maplibre-gl-terradraw.umd.js"></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@watergis/maplibre-gl-terradraw@0.6.4/dist/maplibre-gl-terradraw.css"
href="https://cdn.jsdelivr.net/npm/@watergis/maplibre-gl-terradraw@1.0.1/dist/maplibre-gl-terradraw.css"
/>
<div id="map"></div>

Expand All @@ -34,7 +34,7 @@
// you can disable some of modes in the constructor options if you want.
const draw = new MaplibreTerradrawControl.MaplibreTerradrawControl({
modes: [
'render',
// 'render', comment this to always show drawing tool
'point',
'linestring',
'polygon',
Expand All @@ -46,11 +46,12 @@
'sector',
'select',
'delete-selection',
'delete'
'delete',
'download'
],
open: true,
});
map.addControl(draw, 'top-right');
map.addControl(draw, 'top-left');
</script>
</body>
</html>

0 comments on commit cc9f170

Please sign in to comment.