Skip to content

Commit

Permalink
doc: updated maplibre-gl-terradraw version to 0.6.4 (#5189)
Browse files Browse the repository at this point in the history
* doc: updated maplibre-gl-terradraw version to 0.6.4

* revert: docs/index.md changes
  • Loading branch information
JinIgarashi authored Dec 12, 2024
1 parent f8ab4b4 commit 9ca3f20
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 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.1.1/dist/maplibre-gl-terradraw.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@watergis/maplibre-gl-terradraw@0.6.4/dist/maplibre-gl-terradraw.umd.js"></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@watergis/maplibre-gl-terradraw@0.1.1/dist/maplibre-gl-terradraw.css"
href="https://cdn.jsdelivr.net/npm/@watergis/maplibre-gl-terradraw@0.6.4/dist/maplibre-gl-terradraw.css"
/>
<div id="map"></div>

Expand All @@ -32,16 +32,21 @@

// By default, all terra-draw drawing modes are enabled.
// you can disable some of modes in the constructor options if you want.
const draw = new MaplibreTerradrawControl({
const draw = new MaplibreTerradrawControl.MaplibreTerradrawControl({
modes: [
'render',
'point',
'linestring',
'polygon',
'rectangle',
'angled-rectangle',
'circle',
'freehand',
'select'
'angled-rectangle',
'sensor',
'sector',
'select',
'delete-selection',
'delete'
],
open: true,
});
Expand Down

0 comments on commit 9ca3f20

Please sign in to comment.