When a layer is added after the initial creation, any groups vanish. The _update() function clears out the html of the base and overlay divs, and then recreates all the items using _addItem. However the _groups hash still contains the previous html element, so new groups do not get created. This change clears out the _groups hash before calling _update.
When a layer is added after the initial creation, any groups vanish. The
_update()
function clears out the html of the base and overlay divs, and then recreates all the items using_addItem
. However the_groups
hash still contains the previous html element, so new groups do not get created. This change clears out the_groups
hash before calling_update
.