This class implements the basic functions such as centering the map, converting the geometry and more.
| OpenLayersTools. | This class implements the basic functions such as centering the map, converting the geometry and more. |
| Functions | |
| BaseFunc | Initialize the object BaseFunc. |
| extendConfigFromDefault | Expands the list of object parameters. |
| centerMap | Centers the map on the specified coordinates. |
| bindEventToObject | Wire up the event to the object. |
| checkUndefined | Checks the variable to exist. |
| geometryToString | Converts the geometry into a string. |
| stringToGeometry | Converts a string to geometry. |
extendConfigFromDefault: function ( existsConfig, defaultConfig )
Expands the list of object parameters.
| existsConfig | The object to add parameters (expand). |
| defaultConfig | Object from which to take the value to extend. |
The object, which includes a fields of two objects.
MapOptions = OpenLayersTools.BaseFunc.extendConfigFromDefault(mapOptions, defaultOptions.mapOptions);
checkUndefined: function ( object )
Checks the variable to exist.
| object | Variable you want to check. |
True if the object does not exist, and false if the object exists.
if (OpenLayersTools.BaseFunc.checkUndefined(layer)) {
OpenLayersTools.Console.writeError('layer is undefined!');
return false;
}Initialize the object BaseFunc.
function BaseFunc( parent )
Expands the list of object parameters.
extendConfigFromDefault: function ( existsConfig, defaultConfig )
Centers the map on the specified coordinates.
centerMap: function ( lon, lat, projection )
Wire up the event to the object.
bindEventToObject: function ( object, listeners )
Checks the variable to exist.
checkUndefined: function ( object )
Converts the geometry into a string.
geometryToString: function ( geometry )
Converts a string to geometry.
stringToGeometry: function ( string )