Class: MapZone

ol.control. MapZone


new MapZone( [options])

A control to jump from one zone to another.

Parameters:
Name Type Argument Description
options Object <optional>

Control options.

Properties
Name Type Description
className string

class name

layer ol.layer.Layer

layer to display in the control

projection ol.ProjectionLike

projection of the control, Default is EPSG:3857 (Spherical Mercator).

zone Array.<any>

an array of zone: { name, extent (in EPSG:4326) }

centerOnClick bolean

center on click when click on zones, default true

Fires:
  • event:select

Extends

Members


<static> zones

Pre-defined zones

Methods


setVisible(b)

Set the control visibility

Parameters:
Name Type Description
b boolean