-
Notifications
You must be signed in to change notification settings - Fork 1
Working with Map
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.
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();
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();
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.