Radar, fillcolor, linecolor update problem

  • Hello,

    I've a little problem with Radar Plugin.

    When autorotate is disabled, if I change scale, the radar is immediately updated
    but if I change fillcolor or linecolor the radar is not updated:
    the change (fillcolor, lineclor) are done only if I move the view or the radar.

    An "updatescreen" has no effect.

    Have a look:
    http://www.jphd360.net/visites/LesOub…0&pano.fov=90.0

    Stop autorotate
    Open the Map, the Radar is small and yellow *smile*

    Now,
    Clic on button english-"Light!" german:"Beleuchten!" french-"Lumière!"
    Open the Map, the Radar is larger but still yellow.. It should be blank *sad*
    If you move the radar, fillcolor becomes blank

  • Hi,

    at the moment the radar will be only updated/redrawn when the pano moves,

    internally there is this check in the radar source code:

    Code
    if (Math.abs(hlookat-last_hlookat) > 1 || Math.abs(fov-last_fov) > 2)

    that means the radar will be only redrawn when the hlookat changes more than 1 value
    or the fov changes more than 2 values,

    note - the source code of the radar plugin is included in the viewer download package (examples\as3-interface\plugin-sources\radar),
    if you want could remove that line and recompile it (on Windows just follow the instructions in the compile.bat file), then it will constantly redraw it,

    best regards,
    Klaus

  • Hello Klaus,

    Thanks for these indications, probably I try to follow them but I'm under Mac OS X...

    Best Regards,

  • Re,

    Following your indications, I've managed an additional boolean parameter "forceredraw" (default value "false") and modified the source code :

    ...
    radarinterface.registerattribute("forceredraw", Boolean( false ) );
    ...

    var forceredraw:Boolean = Boolean( radarinterface.forceredraw );

    hlookat += heading;

    if (forceredraw || Math.abs(hlookat-last_hlookat) > 1 || Math.abs(fov-last_fov) > 2)
    {
    ...

    After a compilation the result is ok !!!

    I'm happy *smile* *smile*

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!