SMK Usage Guide

A versatile and lightweight toolkit for building a simple web map.

This project is maintained by bcgov

SMK / Configuration / Tools

Zoom Tool

If this tool is enabled, then the user is able to change the zoom level of the map.

This is default configuration for the Zoom tool (click on a property name for more information):

{ "tools": [ {
    "type":        "zoom",
    "enabled":     false,
    "mouseWheel":  true
    "doubleClick": true
    "box":         true
    "control":     true
} ] }

Type Property

"type": String (Required)

The name of the type of this tool. Identifies the tool in the configuration, this is required.

Must be one of these values: "about", "basemaps", "bespoke", "coordinate", "directions", "identify", "layers", "legend", "list-menu", "location", "markup", "measure", "minimap", "pan", "query", "scale", "search", "select", "shortcut-menu", "toolbar", "version", or "zoom".

Enabled Property

"enabled": Boolean

If true then the tool will be available when the map starts. If false, then the tool will not be available.

MouseWheel Property

"mouseWheel": Boolean

If true, then the map can be zoomed with the mouse wheel.

DoubleClick Property

"doubleClick": Boolean

If true, then the map will zoom-in on a double-click.

Box Property

"box": Boolean

If true, then the user can hold the SHIFT key and drag a box on the map to zoom in.

Control Property

"control": Boolean

If true, then there are zoom-in, zoom-out buttons on the map.