getCursor()

in modules/layers/src/layers/editable-geojson-layer.ts [590:602]


  getCursor({ isDragging }: { isDragging: boolean }) {
    if (this.state === null || this.state === undefined) {
      // Layer in 'Awaiting state'
      return null;
    }

    let { cursor } = this.state;
    if (!cursor) {
      // default cursor
      cursor = isDragging ? 'grabbing' : 'grab';
    }
    return cursor;
  }