Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nebula.gl/layers

Package Overview
Dependencies
Maintainers
9
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nebula.gl/layers - npm Package Versions

1
7

0.17.4-alpha.3

Diff

supersonicclay
published 0.17.4-alpha.2 •

supersonicclay
published 0.17.4-alpha.1 •

supersonicclay
published 0.17.4-alpha.0 •

georgios-uber
published 0.17.3 •

Changelog

Source

0.17.3 - 2020-03-10

Changes

  • Assign key prop to html-overlay children that don't already have one specified (#348)
  • react-map-gl-draw: fix onUpdate to callback when anything is upd… (#339)
  • react-map-gl-draw: fix onUpdate bubbling up when dragging finish… (#337)
  • react-map-gl-draw: Closing polygon drawing on dblclick (#341)
  • Ability to measure angles with MeasureAngleMode (#332)
  • Change documentation to recommend using _subLayerProps (#329)
xintong
published 0.17.2 •

Changelog

Source

0.17.2 - 2020-02-06

Changes

  • v0.17.2
  • react-map-gl-draw: fix lagging between viewport and editor updating (#331)
  • MeasureAreaMode (#325)
  • Implement ability to drag and draw in certain modes (#323)
georgios-uber
published 0.17.1 •

Changelog

Source

0.17.1 - 2020-01-16

Changes

  • Use mjolnir.js for event handling (#319)
  • Bump handlebars from 4.1.2 to 4.7.2 (#321)
  • Fix edit handle icons (#318)
  • Cleanup EditMode adapters (#316)

Breaking changes

  • Call event.cancelPan() instead of event.sourceEvent.stopPropagation() in custom edit modes
  • PointerMoveEvent no longer has an isDragging flag. Instead, use the new handleDragging event.
georgios-uber
published 0.17.0 •

Changelog

Source

0.17.0 - 2020-01-10

Changes

  • Fix deck 8 (#317)
  • Rename DrawCircleByBoundingBoxMode to DrawCircleByDiameterMode (#314)
  • upgrade deckgl to 8.0 using upgrade script
  • update ocular-gatsby
  • Measure distance mode + tooltips (#299)
  • Use deck.gl mesh layer, update example to use it (#296)
  • Fix register events and respect selectedFeatureIndex passed from… (#287)
  • Update readme example

Breaking changes

  • DrawCircleByBoundingBoxMode renamed to DrawCircleByDiameterMode (#314)
  • The following props of EditableGeoJsonLayer are no longer proxied by nebula.gl (instead use deck.gl's _subLayerProps):
    • getLineDashArray
    • lineDashJustified
    • getTentativeLineDashArray
supersonicclay
published 0.16.0 •

Changelog

Source

0.16.0 - 2019-09-25

Changes

  • You can now style edit handles with an outline (which is now also the default) by supplying getEditHandlePointOutlineColor
  • Swap EditableGeoJsonLayer to use edit-modes module (#283)
  • Unwrap guide object when using _subLayerProps (#284)
  • Remove deprecated usage. #281 (#282)

Breaking changes for EditableGeoJsonLayer

  • featureIndexes is now nested under editContext.featureIndexes in parameter passed to onEdit callback
  • Edit handle type is now under properties.editHandleType instead of type for edit handle styling accessors:
    • getEditHandlePointColor
    • getEditHandlePointRadius
    • getEditHandleIcon
    • getEditHandleIconSize
    • getEditHandleIconColor
    • getEditHandleIconAngle
  • Deprecated: The 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.

Breaking changes between ModeHandler and GeoJsonEditMode

If you built a custom ModeHandler, note the following breaking changes:

  • Extend GeoJsonEditMode instead of ModeHandler
  • Each function now takes a props parameter with the state, so use props rather than this.get...() (e.g. this.getFeatureCollection(), this.getModeConfig(), etc).
  • handleClick
    • Call props.onEdit instead of returning an EditAction
  • handlePointerMove
    • Call props.onEdit instead of returning an EditAction
    • Call event.sourceEvent.stopPropagation() instead of returning {cancelMapPan: true}
  • handleStartDragging
    • Call props.onEdit instead of returning an EditAction
  • handleStopDragging
    • Call props.onEdit instead of returning an EditAction
  • Guides
    • Edit handles and tentative features are now encompassed as "guides"
    • Guides are formatted as GeoJSON FeatureCollection
    • Override getGuides instead of getEditHandles
    • Format edit handles as GeoJSON Features instead of custom objects
    • Override getGuides instead of calling this._setTentativeFeature()
  • getCursor
    • Instead of defining a getCursor function, call props.onUpdateCursor
  • groundCoords renamed to mapCoords in event objects
xintong
published 0.15.0 •

Changelog

Source

0.15.0 - 2019-09-16

Changes

  • Improve react-map-gl-draw API (#270)
  • Port ModeHandlers over to edit-modes module (#222)
  • Upgrade jest and istanbul (#267)
  • Fix react-map-gl-draw selectedFeature and event register (#265)
  • bump viewport-mercator-project (#264)
  • refactor react-map-gl-draw part 1 - break down mode handlers (#253)
  • Export ViewHandler (#261)
  • Simplify EditMode interface to be more stateless (#258)
  • Fix clickRadius and insert a point to line segment (#260)
  • Bump js-yaml from 3.12.0 to 3.13.1 in /examples/sf (#259)
  • Modified the Travis configuration file to enable automated FOSSA scans. (#219)
  • Simplify onPan propagation check (#256)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc