Skip to main content

Mapbox Polygon

This node should be placed as a child in the Mapbox Map node, it can be used in a repeater.

Here is the code that is inside the "Get Polygon" Function node:

Outputs.Coordinates = [
[
[-118.446802, 34.061877],
[-118.456802, 34.061877],
[-118.456802, 34.051877],
[-118.446802, 34.051877],
[-118.446802, 34.061877],
],
];

Inputs

DataDescription
CoordinatesSets the current coordinates.
EnabledEnable / Disable user interaction.
SignalDescription
EditSend a signal to start polygon editing.

Outputs

DataDescription
Mapbox ObjectThe mapbox object.
Mapbox Draw ObjectThe mapbox draw object.
Feature IdThe feature id.
CoordinatesThe coordinates of the polygon.
SignalDescription
UpdatedSends a signal when the polygon is getting updated.
SelectedSends a signal when the polygon is getting selected.
UnselectedSends a signal when the polygon is unselected.
Did MountSends a signal when the polygon is loaded.
Will UnmountSends a signal when the polygon is unloaded.