Hi Steve,
Currently, we don’t such Api for the PanZoomBar. But here is a way we can override it and custom the functions:
<script type="text/javascript">
OnMapCreating = function (map) {
OpenLayers.Control.PanZoom.prototype.buttonDown = function (evt) {
if (!OpenLayers.Event.isLeftClick(evt)) {
return;
}
switch (this.action) {
case "panup":
this.map.pan(0, -this.getSlideFactor("h"));
break;
case "pandown":
this.map.pan(0, this.getSlideFactor("h"));
break;
case "panleft":
this.map.pan(-this.getSlideFactor("w"), 0);
break;
case "panright":
this.map.pan(this.getSlideFactor("w"), 0);
break;
case "zoomin":
this.map.zoomIn();
break;
case "zoomout":
this.map.zoomOut();
break;
case "zoomworld":
alert("zoomworld click");
break;
}
OpenLayers.Event.stop(evt);
}
}
</script>
Please let us know if it is not fit for you.
Best regards,
Johnny