Port over the LayerModel, LayerStore and MapPanel