Environment.init(this);
Debug.init(this, new String[] { "debug.basic", "debug.cspec",
"debug.layer", "debug.mapbean", "debug.plugin" });
String propValue = getParameter(PropertiesProperty);
PropertyHandler propHandler = null;
try {
if (propValue != null) {
propHandler = new PropertyHandler(propValue);
if (Debug.debugging("app")) {
Debug.output("OpenMapApplet: Using properties from "
+ propValue);
}
}
} catch (MalformedURLException murle) {
Debug.error("OpenMap: property file specified: "
+ propValue
+ " doesn't exist, searching for default openmap.properties file...");
} catch (IOException ioe) {
Debug.error("OpenMap: There is a problem using the property file specified: "
+ propValue
+ ", searching for default openmap.properties file...");
}
if (propHandler == null) {
propHandler = new PropertyHandler();
}
MapPanel mapPanel = new BasicMapPanel(propHandler);
mapPanel.getMapHandler().add(this);
Debug.message("app", "OpenMapApplet.init()");