UNPKG

@nebula.gl/layers

Version:

A suite of 3D-enabled data editing layers, suitable for deck.gl

15 lines (13 loc) 456 B
import { ClickEvent } from '../event-types'; import { EditAction, ModeHandler } from './mode-handler'; // TODO edit-modes: delete handlers once EditMode fully implemented export class DrawPointHandler extends ModeHandler { handleClick({ groundCoords }: ClickEvent): EditAction | null | undefined { const geometry = { type: 'Point', coordinates: groundCoords, }; // @ts-ignore return this.getAddFeatureAction(geometry); } }