Namespace: Control

cercaliax.Control

Type Definitions

cercaliax.Control.CustomControlOptions{Object}

Properties:
Name Type Argument Description
name string

Control name. Use it for obtaining this control using the function getControlsByName, cercalia.Map class

icon string | undefined <optional>

CSS class to define the icon.

click function

Function to execute on click the control.

tooltipText string | undefined <optional>

Tooltip. Default ''.

cercaliax.Control.CustomSwitcherControlOptions{Object}

Properties:
Name Type Description
label string

Label to show on the map.

name string

Control name

menuOptions Array.<cercaliax.Control.CustomSwitcherControlOptions.MenuOption>

Objects array to specify the label, the style and the action list element.

cercaliax.Control.LayerSwitcherOptions{Object}

Properties:
Name Type Argument Description
listMaptypes Array.<string> | undefined <optional>

Maps array to be painted. Admitted values: cercalia.MapTypes.CERCALIA
cercalia.MapTypes.OPENSTREETMAP
cercalia.MapTypes.HYBRID
cercalia.MapTypes.OSM
cercalia.MapTypes.SATELLITE

cercaliax.Control.MeasureControlOptions{Object}

Properties:
Name Type Argument Description
scaleUnits string | undefined <optional>

Change units. Supported values are 'metric', 'imperial'. Default metric.

cercaliax.Control.StreetViewOptions{Object}

Properties:
Name Type Argument Description
height number | undefined <optional>

Height of StreetView div. Default 640.

width number | undefined <optional>

Width of StreetView div. Default 480.

cercaliax.Control.ZoomOptions{Object}

Properties:
Name Type Argument Description
top number | undefined <optional>

Position respect the upper edge of the map, in pixels. Default value 0.

position string | undefined <optional>

Horizontal position. Default value left.

cercaliax.Control.ZoomSliderOptions{Object}

Properties:
Name Type Argument Description
top number | undefined <optional>

Position respect the upper edge of the map, in pixels. Default value 0.

position string | undefined <optional>

Horizontal position. Default value left.