Yes:
================
var nav = new OpenLayers.Control.NavigationHistory();
map.addControl(nav);
nav.activate();
var buttonPrevious = new Ext.Toolbar.Button({
iconCls: 'back',
tooltip: 'Previous view',
disabled: true,
handler: nav.previous.trigger
});
var buttonNext = new Ext.Toolbar.Button({
iconCls: 'next',
tooltip: 'Next view',
disabled: true,
handler: nav.next.trigger
});
=========================
I suspect you have to size your icons appropriately before hand and
configure your relevant CSS snippet:
=========================
.next {
background-image:url(mfbase/mapfish/img/resultset_next.png)
!important;
height:20px !important;
width:20px !important;
}
.back {
background-image:url(mfbase/mapfish/img/resultset_previous.png)
!important;
height:20px !important;
width:20px !important;
}
=========================
That's about it.
Alex
On Mon, Sep 6, 2010 at 5:45 PM, Phil Scadden <[email protected]> wrote:
> Has anyone ever achieved this? I tried with actions but cant get the
> icon to be correct size and portion of the image.
>
> Notice: This email and any attachments are confidential. If received in error
> please destroy and immediately notify us. Do not copy or disclose the
> contents.
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users