API

Namespaces

api
MapIFrameAPI

Events


button

Event when a user button is clicked in the edit bar


edit

Event when a feature are changed with the edit bar

Properties:
Name Type Description
edit Object

the map position

Properties
Name Type Description
action string

select, addfeature, drawend, removefeature, modifyfeature, attributes, import:start, import:end, export:start, export:end

features Array.<GeoJSONFeature>
attributes Array.<string>

list of modified attributes

layerId number

move

Listen to position change

Properties:
Name Type Description
position Object

the map position

Properties
Name Type Description
center Array.<number>

the center of the maps as an array of longitude, latitude

zoom number

the zoom level

Listeners of This Event:

select

Listen to new selection

Properties:
Name Type Description
selection Array.<GeoJSONFeature>

an array of features in a GeoJSON format

Listeners of This Event:

step

Listen to step change (model 'etape' only)

Properties:
Name Type Description
step number

current step