Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Working with Map

Percy Mamedy edited this page Jun 8, 2016 · 3 revisions

Map object

A Map object is an array of MapAnchor objects and MapNode objects. See structure.

Get all MapAnchor objects

//Array of MapAnchor objects
$anchors = $map->getAnchors();

Get all MapNode object

//Array of MapNode objects
$nodes = $map->getNodes();

A Map object is also a Collection and shares all methods with collection.

MapAnchor object

A MapAnchor objects represent the vertices for the objectives and their positions on the map visualization. See structure.

Get MapNodeCoordinates object of the Anchor point

$coordinates = $mapAnchor->getCoordinates();

MapNode object

A MapNode represents the positions of Solutions on the Map, it contains a MapNodeCoordinates object which represents the position of the cell and an array solution_refs which contains all solution keys at this position. See structure.

Get MapNodeCoordinates object of the Node point

$coordinates = $mapNode->getCoordinates();

MapNodeCoordinates object

A MapNodeCoordinates contains the x and y position on the Map. See structure.

A MapNodeCoordinates object is also a Collection and shares all methods with Collection.