Class Index

Global Variables

Classes


Global Variables

Variable Summary
Field Attributes Field Name and Description
 
A global Array variable that specifies functions that are invoked by the Oracle Maps client right after the map is initialized.
Variable Detail
MVMapInitializers
A global Array variable that specifies functions that are invoked by the Oracle Maps client right after the map is initialized. The Oracle Maps client instance, the MVMapView object, is passed as a parameter to every function specified in MVMapInitializers.

A function specified in MVMapInitializers is similar to a MVEvent.INITIALIZE listener function registered with MVMapView#attachEventListener. The only difference is the way how the function is registered with the Oracle Maps client.

The MVEvent.INITIALIZE listener function is registered with MVMapView#attachEventListener. The function specified in MVMapInitializers is registered by simply adding the function to the MVMapInitializers array after the function is defined. Of course the code that defines the function and adds the function to MVMapInitializers needs to be loaded to the page where the map is displayed.

Example:
  function myPlugin(mapview)
  {
    // do something with the mapview object.
    ...
  }
  
  // Depending on the order in which scripts are loaded into the application web 
  // page, it's possible that this piece of code is executed before the Oracle Maps 
  // library is loaded. So it's important to first check whether MVMapInitializers 
  // already has been defined and define it if necessary. 
  var MVMapInitializers = MVMapInitializers || new Array() ;
  MVMapInitializers.push(myPlugin) ;

Documentation generated by JsDoc Toolkit 2.1.0 on Fri Feb 25 2011 12:34:44 GMT-0500 (EST)