Example #1
0
        public static bool Remove(CKNode node, MKAnnotation annotation)
        {
            if (CKNode.Drop(node, annotation))
            {
                return(true);
            }

            if (node.SW != null)
            {
                if (CKNode.Remove(node.NW, annotation))
                {
                    return(true);
                }

                if (CKNode.Remove(node.NE, annotation))
                {
                    return(true);
                }

                if (CKNode.Remove(node.SW, annotation))
                {
                    return(true);
                }

                if (CKNode.Remove(node.SE, annotation))
                {
                    return(true);
                }
            }

            return(false);
        }
Example #2
0
 public static void Remove(CKTree tree, MKAnnotation annotation)
 {
     CKNode.Remove(tree.Root, annotation);
 }