Details
Description
MapContent has the private checkViewportCRS method to set the CRS of the viewport based on the first layer with a non-null CRS. Presently, this only gets called through the LayerList.addIfAbsent method. As a result, if layers are added using LayerList.addAll(Collection) or some other methods, the default viewport CRS will fail to be set.