Viewer with Buttons
![]()
Further notes
To be able to display the buttons on the map, you must set a reference to the panel and another reference to the navigation history, if the buttons "Previous" and "Next" are used:
<controls> <olc:Navigation /> <olc:ScaleLine /> <lb:Reference target="NavigationHistory" /> <lb:Reference target="Panel" /> </controls>
This history and the panel for positioning the buttons will be defined in the configuration file config.xml below. The desired buttons are listed within the panel tags in the order they are to appear in the viewer (from left to right), here: Move, Zoom out, Zoom in, Zoom to pre-defined map section, Previous, Next):
<olc:NavigationHistory/>
<olc:Navigation/>
<olc:Panel>
<controls>
<lb:Reference target="Navigation" />
<olc:ZoomBox displayClass="olControlZoomInBox" out="false" />
<olc:ZoomBox displayClass="olControlZoomOutBox" out="true" />
<olc:ZoomToMaxExtent />
<lb:Field name="previous">
<target>
<lb:Reference target="NavigationHistory"/>
</target>
</lb:Field>
<lb:Field name="next">
<target>
<lb:Reference target="NavigationHistory"/>
</target>
</lb:Field>
</controls>
</olc:Panel>
![]()
powered by disy Informationssysteme GmbH
