[GeoNetwork-users] Adding custom controls to map viewer

I am trying to add custom controls to the map. I see that all of the
controls are listed in ol_map.js in the form:

action = new GeoExt.Action({
           control: new OpenLayers.Control.ZoomToMaxExtent(),
           map: map,
           iconCls: 'zoomfull',
           tooltip: {title: OpenLayers.i18n("zoomToMaxExtentTooltipTitle"),
                       text: OpenLayers.i18n("zoomToMaxExtentTooltipText")}
});

toolbar.push(action);

However, after adding a new action I don't see anything added to the map
viewer. So I'm sure there is something more to this but I can't figure it
out.

Any help would be greatly appreciated.

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Adding-custom-controls-to-map-viewer-tp6657150p6657150.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.