• CommentAuthorTim Scott
    • CommentTimeJan 7th 2011
     
    I am creating a custom canvas layer like so:

    CanvasLayer.define(function(canvas) {...});

    In the body, I add some lines based on current data then call canvas.update(). When the data changes, I need to remove all the lines and add new ones. So, when data has changed I simply loop through the lines and call line.destroy() on each one.

    This works if there are a just one or two lines. But when there are lots of lines, canvas.update() throws:

    this._canvas is null
    http://localhost:49573/oviss/Scripts/telogis.geobase.min.js
    Line 1

    Telogis code is minfied so I can't tell exactly where the throw happens.

    If I do not destroy the old lines, there is no error, but then the old lines hang around.
    • CommentAuthorSharonD
    • CommentTimeJan 10th 2011
     
    Hi Tim,

    Would you be able to send us a sample file? Please send it to gbsupport@telogis.com, along with the problem description above. Please also let us know the version of your GeoBase DLLs (e.g. 3.x.x.x).

    Kind regards,
    Sharon
    GeoBase Support