1.1.0 • Published 1 year ago

@lightcyphers/maplibre-gl-draw v1.1.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
1 year ago

maplibre-gl-draw by Lightcyphers

API Reference

To use Draw

// Create a Maplibre GL JS/TS map
var map = new Map(mapOptions);

// Create a Draw control
var draw = new MaplibreDraw(drawOptions);

// Add the Draw control to your map
map.addControl(draw) //if JS
map.addControl(draw as IControl)// if TS

Draw only works after the Mapbox GL JS map has loaded, so you must interact with Draw only after your map's load event:

map.on('load', function() {
  draw.add({ .. });
});

cd existing_repo git remote add origin https://gitlab.com/lightcyphers-open/maplibre/maplibre-gl-draw.git git branch -M main git push -uf origin main

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.10

1 year ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago