react-map-gl-draw
Advanced tools
Changelog
0.17.3 - 2020-03-10
Changelog
0.17.1 - 2020-01-16
event.cancelPan()
instead of event.sourceEvent.stopPropagation()
in custom edit modesPointerMoveEvent
no longer has an isDragging
flag. Instead, use the new handleDragging
event.Changelog
0.17.0 - 2020-01-10
EditableGeoJsonLayer
are no longer proxied by nebula.gl (instead use deck.gl's _subLayerProps):
getLineDashArray
lineDashJustified
getTentativeLineDashArray
Changelog
0.16.0 - 2019-09-25
getEditHandlePointOutlineColor
_subLayerProps
(#284)EditableGeoJsonLayer
featureIndexes
is now nested under editContext.featureIndexes
in parameter passed to onEdit
callbackproperties.editHandleType
instead of type
for edit handle styling accessors:
getEditHandlePointColor
getEditHandlePointRadius
getEditHandleIcon
getEditHandleIconSize
getEditHandleIconColor
getEditHandleIconAngle
mode
prop is intended to take a constructor or instance rather than a string.
import {DrawPolygonMode} from 'nebula.gl'; new EditableGeoJsonLayer({mode: DrawPolygonMode})
editHandleType
no longer supports passing a function/constructor. Use _subLayerProps
instead.editHandleParameters
removed. Use _subLayerProps
instead.editHandleLayerProps
removed. Use _subLayerProps
instead.ModeHandler
and GeoJsonEditMode
If you built a custom ModeHandler
, note the following breaking changes:
GeoJsonEditMode
instead of ModeHandler
props
parameter with the state, so use props
rather than this.get...()
(e.g. this.getFeatureCollection()
, this.getModeConfig()
, etc).handleClick
props.onEdit
instead of returning an EditAction
handlePointerMove
props.onEdit
instead of returning an EditAction
event.sourceEvent.stopPropagation()
instead of returning {cancelMapPan: true}
handleStartDragging
props.onEdit
instead of returning an EditAction
handleStopDragging
props.onEdit
instead of returning an EditAction
getGuides
instead of getEditHandles
getGuides
instead of calling this._setTentativeFeature()
getCursor
getCursor
function, call props.onUpdateCursor
groundCoords
renamed to mapCoords
in event objectsChangelog
0.15.0 - 2019-09-16