A drawing component for Mapbox GL JS. Latest version: 1.4.2-beta.107, last published: 4 months ago. Start using @ttfn/mapbox-gl-draw in your project by running `npm i @ttfn/mapbox-gl-draw`. There are no other projects in the npm registry using @ttfn/mapb
git clone git@github.com:mapbox/mapbox-gl-draw.git npm ci npm start & open "http://localhost:9967/debug/?access_token=<token>" Testing npm run test Publishing To GitHub and NPM: npm version (major|minor|patch) git push --tags git push npm publish ...
安装mapbox-gl和mapbox-gl-draw:npm install mapbox-gl mapbox-gl-draw --save 在项目根目录下创建一个名为webpack.config.js的文件,并添加以下内容:const path = require('path'); module.exports = { 代码语言:txt 复制 entry: './src/index.js', ...
.npmignore .travis.yml CHANGELOG.md ISSUE_TEMPLATE.md LICENSE README.md circle.yml index.js package.json server.js yarn.lock README ISC license Note This fork ofmapbox-gl-drawis only intended to be used temporarily with ourreact-map-glsetup. Please don't use this fork elsewhere!
mapbox-gl-js version: 1.12.0 (but doesn't really matter) mapbox-gl-draw version: 1.2.0 Steps to Trigger Behavior Init an npm repo using "npm init" and pressing "Enter" for all prompts Run "npm i @mapbox/mapbox-gl-draw" Run "npm audit" Ex...
12npm install mapbox-gl-draw 13``` 14 15Draw ships with CSS, make sure you include it in your build. It can be found on our CDN or at`require('mapbox-gl-draw/dist/mapbox-gl-draw.css')`. 16 17```html 18 19``` 20 21### Usage in your application 22 23**When using module...
Icon Name Size Content Type .nyc_output-- bench-- coverage-- debug-- dist-- src-- test-- .babelrc144 Btext/plain .editorconfig76 Btext/plain .eslintrc780 Btext/plain .npmignore9 Btext/plain API.md18.1 kBtext/markdown CHANGELOG.md8.79 kBtext/markdown ...
draw-tool Draw vector elements online (mapbox-gl + mapbox-gl-draw + nebula.gl) 在地图中绘制编辑点线面等矢量要素 Project setup npm install Compiles and hot-reloads for development npm run serve Compiles and minifies for production npm run build Lints and fixes files npm run lint...
在这个案例里,插件mapbox-gl-draw用来绘制多边形,Turf.js用来计算绘制的多边形的总面积。想要探索更多...
npm run start 运行效果 更改DrawArrays的mode: gl.POINTS: Draws a single dot,更改pointSize为50之后的效果 gl.LINE_STRIP: Draws a straight line to the next vertex. gl.LINE_LOOP: Draws a straight line to the next vertex, and connects the last vertex back to the first. gl.LINES: Draws a ...