Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Cleaning annotations on a layer

Last post 12 Aug 2008, 4:13 PM by DeveloperSupportKevin. 1 replies.
Sort Posts: Previous Next
  •  29 May 2008, 4:36 AM 14201

    Cleaning annotations on a layer

    how can i remove all annotations from the annotations viewer on a specific layer from the client side (javascript)?
  •  12 Aug 2008, 4:13 PM 15225 in reply to 14201

    Re: Cleaning annotations on a layer

    Good Afternoon Susan,

    On the javascript side you can delete all the annotations in a layer. Call the WebAnnotationViewer.setCurrentLayer(index) then WebAnnotationViewer.getCurrentLayer(). Then you have all the annotations in an array from myAtalaLayer.getAnnotations(). You can loop through them and get their Z-Index. With their Z-indexes you can delete them all individually with the WebAnnotationViewer.DeleteAnnotation(zindex) function.

     

    ~Kevin

View as RSS news feed in XML