import { CircleMode, DragCircleMode, DirectMode, SimpleSelectMode } from 'maplibre-gl-draw-circle'; // userProperties has to be enabled const draw = new MapboxDraw({ defaultMode: "draw_circle", userProperties: true, modes: { ...MapboxDraw.modes, draw_circle : CircleMode, drag_circle ...
Supports drawing/editing a circle on a Mapbox map. - maplibre-gl-draw-circle/package.json at main · aws-amplify/maplibre-gl-draw-circle
これまでMapboxとMaplibreでラインやポリゴンを描画したいと思った時には、mapbox-gl-drawを使うのが一般的でしたが、Mapboxがオープンソースからプロプライエタリになったのをきっかけにプラグイン自体があまりメンテされなくなり、かなり使いづらくなってきました。
import { CircleMode, DragCircleMode, DirectMode, SimpleSelectMode } from 'maplibre-gl-draw-circle'; // userProperties has to be enabled const draw = new MapboxDraw({ defaultMode: "draw_circle", userProperties: true, modes: { ...MapboxDraw.modes, draw_circle : CircleMode, drag_circle ...
Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} aws-amplify / maplibre-gl-draw-circle Public Notifications You must be signed in to change notification settings Fork 2 Star 14 ...
.maplibregl-draw-circle-mode { --padding: 10px; --padding-top: var(--padding); --padding-right: var(--padding); --padding-bottom: var(--padding); --padding-left: var(--padding); position: absolute; top: var(--padding-top); right: var(--padding-right); bottom: var(--padding...
maplibre-gl-draw-circle package-lock.json onmain User selector All users DatepickerAll time Commit History Commits on Sep 4, 2024 fix(dependabot): update micromatch, remove yarn.lock (#21) thaddmtauthoredSep 5, 2024 Verified 6169c3c Commits on Jun 20, 2024 chore(deps-dev): bump brace...
Actions: aws-amplify/maplibre-gl-draw-circleActions All workflows publish CodeQL Disabled Management Caches Attestations All workflows Showing runs from all workflows 51 workflow runs Event Status Branch Actor CodeQL CodeQL #51: Scheduled main August 22, 2024 17:01 1m 17s CodeQL ...
classList.add('maplibregl-draw-circle-mode'); this._wrapper = document.createElement('div'); this._wrapper.classList.add('maplibregl-draw-circle-mode-wrapper'); this._circle = document.createElement('div'); this._circle.classList.add('maplibregl-draw-circle-mode-circle'); this._container...
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-'; MapLibreDraw.constants.classes.CONTROL_GROUP = 'maplibregl-ctrl-group'; Mapbox...