-
Notifications
You must be signed in to change notification settings - Fork 165
nebula
The Nebula
class is a subclass of the React [Component] class that you can use as the main class.
Define a composite layer that renders a set of sublayers.
<Nebula
viewport={viewport}
layers={layers}
selectionType={selectionType}
onSelection={onSelection}
onMapMouseEvent={onMapMouseEvent}
logger={logger}
/>
The viewport as explained in react-map-gl docs
An array of layers you want to render. Include Deck.gl or Nebula.gl layers but not overlays. The order matters.
Value of SELECTION_TYPE
. The default is NONE
.
Set it to a different value to start selection of objects.
Callback. Called when user object selection is completed.
You can set selectionType
to NONE
in this callback if you are done selecting objects.
Callback. Called when mouse is moved over the map.
Optional. Pass an object that will be used to log messages like console
.
Update all objects in all layers and re-render.
Parameters: None.
Update objects with specified ids in all layers and re-render.
Parameters:
-
ids
(Array)- Array of strings with ids that need updating.
Footer
Sidebar