HistoryNavigation

ol-ishare/control/historynavigation~ HistoryNavigation

HistoryNavigation control. Displays back and forward buttons to allow the user to navigate map center and zoom history.

If any of the backHtml, forwardHtml, backTitle and forwardTitle options are unset, the iShare server version is >= v6.0.9, your langauge file contains entries under oli.historyNavigation and the lang UI text lookup is available when this control is created then the entries from the language file will be used. Otherwise the default English values will be used. The lang lookup is automatically loaded when creating a LiteMap and is populated once the load event is dispatched.

If backHtml or forwardHtml are set to a string which is more than a character wide, consider the following CSS to allow the buttons to adapt to their text: .oli-history.ol-control button { width: auto; }

Constructor

new HistoryNavigation(options)

Parameters:
Name Type Description
options Object

Control options, extends ol/control/Control options adding:

Properties
Name Type Attributes Default Description
backHtml String <optional>
&lArr;

Text for back button

forwardHtml String <optional>
&rArr;

Text for forward button

backTitle String <optional>
Navigate back

Title attribute for back button

forwardTitle String <optional>
Navigate forward

Title attribute for forward button

Extends