fun init() { Environment.init(this) Debug.init( this, arrayOf("debug.basic", "debug.cspec", "debug.layer", "debug.mapbean", "debug.plugin") ) val propValue: String = getParameter(PropertiesProperty) var propHandler: PropertyHandler? = null try { if (propValue != null) { val builder: PropertyHandler.Builder = Builder().setPropertiesFile(propValue) propHandler = PropertyHandler(builder) if (Debug.debugging("app")) { Debug.output("OpenMapApplet: Using properties from $propValue") } } } catch (murle: MalformedURLException) { Debug.error("OpenMap: property file specified: $propValue doesn't exist, searching for default openmap.properties file...") } catch (ioe: IOException) { Debug.error("OpenMap: There is a problem using the property file specified: $propValue, searching for default openmap.properties file...") } if (propHandler == null) { propHandler = PropertyHandler() } val mapPanel: MapPanel = BasicMapPanel(propHandler) mapPanel.getMapHandler().add(this) Debug.message("app", "OpenMapApplet.init()") }
Called by the browser or applet viewer to inform this applet that it has been loaded into the system . It is always called before the first time that the < code > start < /code > method is called . < p > The implementation of this method provided by the < code > Applet < /code > class does nothing .