extended Layer.toJson to include zIndex, scrollFactor and scale