| param div: | String The element where the map will be rendered (or the id for that element). |
|---|---|
| param config: | Object options (optional). |
| return: | OpenLayers.Map |
|---|
Create an Openlayers.Map containing the GeoAdmin layer and configuration
Sample code to create a map (see also demo):
var map = new GeoAdmin.Map("mapdiv", {doZoomToMaxExtent: true});
Configuration properties in addition to those listed for OpenLayers.Map.
OpenLayers.StyleMap custom style map for the vector layer.
Public methods in addition to those listed for OpenLayers.Map.
| Parameters: |
|
|---|
Add a layer overlay to the map.
| Parameters: | state – Object The state to apply. |
|---|
Apply the state provided as argument
| Returns: | String - List with data owner of layers displayed in the map. |
|---|
Return the layers attribution
| Returns: | Object OpenLayers.StyleMap the default style map for map.vector layer |
|---|
Destroy the map
| Parameters: | layername – String Layer name id. The layer list can be found here |
|---|---|
| Returns: | OpenLayers.Layer |
Get a layer of the map by its name
| Returns: | Object The state. |
|---|
Returns the current state of the map
| Parameters: |
|
|---|---|
| Returns: | OpenLayers:Layer |
Switch the complementary layer.