Files
noodl-docs/library/modules/mapbox/nodes/v2/mapbox-polygon.md
Eric Tuvesson 53f0d6320e Initial commit
Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com>
Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com>
Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com>
Co-Authored-By: Michael Cartner <32543275+michaelcartner@users.noreply.github.com>
2023-09-05 12:08:55 +02:00

2.5 KiB

title, hide_title
title hide_title
Mapbox Polygon true

<##head##>

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],
  ],
];

<##head##>

Inputs

Data Description
Coordinates Sets the current coordinates.
Enabled Enable / Disable user interaction.
Signal Description
Edit Send a signal to start polygon editing.

Outputs

Data Description
Mapbox Object The mapbox object.
Mapbox Draw Object The mapbox draw object.
Feature Id The feature id.
Coordinates The coordinates of the polygon.
Signal Description
Updated Sends a signal when the polygon is getting updated.
Selected Sends a signal when the polygon is getting selected.
Unselected Sends a signal when the polygon is unselected.
Did Mount Sends a signal when the polygon is loaded.
Will Unmount Sends a signal when the polygon is unloaded.