重写direct_select 这里是编辑模式控制拖拽圆的可编辑顶点时改变圆的半径(否则圆会被当成普通多边形拽变形) letDirectModeOverride=MapboxDraw.modes.direct_select;// 拖拽顶点改变圆的半径DirectModeOverride.dragVertex=function(state, e, delta) {constselectedCoords = state.selectedCoordPaths.map((coord_path) =...
描述:编辑图形 setMeasureOptions: (options: MapboxDraw.MapboxDrawOptions['measureOptions']) => this 描述:设置测量选项 changeMode: (mode: 'cut_polygon', options?: { featureIds?: string[]; highlightColor?: string; continuous?: boolean; bufferWidth?: number; bufferWidthUnit?: MapboxDraw.Area...
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...