}
} else {
// Source is vector layer:
int fromIndex = event.getFromIndex() - htmlContainer.getChildCount();
int toIndex = event.getToIndex() - htmlContainer.getChildCount();
VectorObject layerContainer = vectorContainer.getVectorObject(fromIndex);
if (layerContainer != null) {
vectorContainer.remove(layerContainer);
vectorContainer.insert(layerContainer, toIndex);
}
}