Mapbender
3.0.7
  • English
    • Systemrequirements and Installation
    • Mapbender Quickstart: First steps with Mapbender
    • Functions
      • Base functions
        • Map
        • Navigation Toolbar (Zoombar)
        • Overview
        • Layertree - Table of Content (TOC)
        • Legend
        • Activity Indicator
        • BaseSourceSwitcher
        • Feature Info
        • Coordinates Display
        • Line/Area Ruler
        • Scale Selector
        • ScaleBar
        • ScaleDisplay
        • Spatial Reference System Selector (SRS Selector)
      • Search
      • Export / Print
      • Editing
      • WMC
      • Backend
      • FOMUserBundle - Users and Security
      • Other
    • Customization / Tipps and tricks
    • FAQ - Frequently Asked Questions
    • Architecture
    • Development
    • How to write Mapbender Documentation?
    • Version history
    • Indizes und Tabellen
  • Deutsch
Mapbender
  • Docs »
  • Welcome to the Mapbender documentation »
  • Functions »
  • Base functions »
  • Navigation Toolbar (Zoombar)
  • Edit on GitHub

Navigation Toolbar (Zoombar)¶

The Navigation Toolbar element provides a control to pan and zoom, similar to the OpenLayers PanZoomBar control.

../../../_images/zoom_bar1.png

Configuration¶

../../../_images/zoom_bar_configuration1.png
  • Draggable: element is draggable or not, default true.
  • Title: Title of the element. The title will be listed in “Layouts” and allows to distinguish between different buttons. It will be indicated if “Show label” is activated.
  • Tooltip: text to use as tooltip.
  • Components: components of the navigation toolbar, default all selected.
  • Target: Id of Map element to query.
  • Step size: step value for pan.
  • Step by pixel: step type “by pixel”/”percent”, false = percent, default is false.
  • Anchor: navigation toolbar alignment, default is ‘left-top’ (use inline f.e. in sidebar).

YAML-Definition:¶

tooltip: 'Navigation Toolbar' # text to use as tooltip
components: array("pan",      # components of the navigation toolbar, default all selected
  "history","zoom_box",
  "zoom_max","zoom_in_out",
  "zoom_slider")
target: ~                     # Id of Map element to query
stepSize: 50                  # step value for pan
stepByPixel: false            # step type "by pixel"/"percent", false = percent, default is false
anchor: 'inline'/'left-top'/  # navigation toolbar alignment, default is 'left-top'
  'left-bottom'/'right-top'/  # use inline f.e. in sidebar
  'right-bottom'
draggable: true               # element is draggable or not, default true

Class, Widget & Style¶

  • Class: Mapbender\CoreBundle\Element\ZoomBar
  • Widget: mapbender.element.zoombar.js
  • Style: mapbender.element.zoombar.css

HTTP Callbacks¶

None.

Next Previous

© Copyright 2018, The Mapbender Team.

Built with Sphinx using a theme provided by Read the Docs.