Main.map.setVisible(true);
}
}
public synchronized void createMapFrame(Layer firstLayer, ViewportData viewportData) {
MapFrame mapFrame = new MapFrame(contentPanePrivate, viewportData);
setMapFrame(mapFrame);
if (firstLayer != null) {
mapFrame.selectMapMode((MapMode)mapFrame.getDefaultButtonAction(), firstLayer);
}
mapFrame.initializeDialogsPane();
// bootstrapping problem: make sure the layer list dialog is going to
// listen to change events of the very first layer
//
if (firstLayer != null) {
firstLayer.addPropertyChangeListener(LayerListDialog.getInstance().getModel());