[ka-Map-users] Kamap removeMapLayer

Paul Spencer pspencer at dmsolutions.ca
Mon Sep 3 20:34:08 EDT 2007

this appears to be a bug in kaLegend draw() method, it rebuilds the  
legend based on the layers in the map but in doing so it only removes  
legend entries for layers that are in the map - so once a layer is  
removed, and draw is called (through KAMAP_LAYERS_CHANGED event), the  
legend entry will not be removed.

Patches welcome.



On 31-Aug-07, at 10:57 AM, Stéphane RIFF wrote:

> Hi,
> I use the removeMapLayer but I have a problem.
> With addMapLayer, the layer is added to the legend too but with  
> removeMapLayer the layer isn't remove from legend.
> Can someone tell me how to remove a layer from the legend ?
> Thanks
> Steff
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

|Paul Spencer                          pspencer at dmsolutions.ca    |
|Chief Technology Officer                                         |
|DM Solutions Group Inc                http://www.dmsolutions.ca/ |

More information about the ka-Map-users mailing list