Skip to content

Commit

Permalink
use latest turf
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum committed Nov 21, 2024
1 parent b46f8d8 commit db637f5
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test/examples/maplibre-gl-draw.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,21 @@
font-size: 13px;
}
</style>

<script src="https://www.unpkg.com/turf@3.0.14/turf.min.js"></script>
<link
rel="stylesheet"
href="https://esm.sh/jsr/@birkskyum/maplibre-gl-draw@^2/dist/maplibre-gl-draw.css"
/>
<div id="map"></div>
<div class="calculation-box">
<p>Draw a polygon using the draw tools.</p>
<div id="calculated-area"></div>
</div>
/>
<div id="map"></div>
<div class="calculation-box">
<p>Draw a polygon using the draw tools.</p>
<div id="calculated-area"></div>
</div>

<script type="module">


import * as turf from 'https://esm.sh/@turf/turf@7.1.0';

<script type="module">
import {MapLibreDraw} from 'https://esm.sh/jsr/@birkskyum/maplibre-gl-draw@^2';
MapLibreDraw.constants.classes.CONTROL_BASE = 'maplibregl-ctrl';
MapLibreDraw.constants.classes.CONTROL_PREFIX = 'maplibregl-ctrl-';
Expand Down

0 comments on commit db637f5

Please sign in to comment.