The Geoportal.Map class, as shown in the User chapter, exposes methods that allows to create, configure a map. The functionnalities it delivers should be enough for common use cases. For advanced users, the OpenLayers components should give all the additional functions they are looking for!
To ease the link between Geoportal and OpenLayers APIs, the Geoportal.Map class is an OpenLayers.Map subclass. If one use the Geoportal.Viewer classes, the Geoportal.Map can be obtained through the getMap() method :
//olMap is an instance of OpenLayers.Map class var olMap = viewer.getMap();
This object contains all the references to the objects embedded in the map (layers, controls, ...). Once got, the webmaster can modify all the components through the use of the relevant OpenLayers methods.
//the OpenLayers map object and embedded objects are all accessible var layer = new OpenLayers.Layer.WMS(....); olMap.addLayer(layer);