Exemplo n.º 1
0
 public void hideRelationsPerPoint(MapPoint point)
 {
     //Debug.Log("llamando a HIDE relations per point");
     if (relationsPerPoint.ContainsKey(point))
     {
         RelationShip relation = relationsPerPoint[point];
         relation.hide();
         center.hideClusterRelations(point);
     }
 }
Exemplo n.º 2
0
    /**
     * Function that add a RelationShip named <name> fromt this point with <point>
     * @returns the added RelationShip instance
     * */
    public RelationShip addRelationWith(MapPoint point, string name)
    {
        RelationShip relation = null;

        if (!this.hasRelationShipWith(point, name))
        {
            relation = new RelationShip(this, point, name);
            this.relations.Add(relation);
            RelationShip inverseRelation = point.addInverseRelationWith(this, name);
            inverseRelation.hide();
        }

        return(relation);
    }