SMK Usage Guide

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

This project is maintained by bcgov

SMK / Configuration / Tools

Location Tool

If this tool is enabled, then clicking on the map will show a popup giving the clicked point’s location. If the "identify" tool or "directions" tool are enabled, then buttons are visible on this popup with additional actions.

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

{ "tools": [ {
    "type":        "location",
    "enabled":     true,
    "showHeader":  false
} ] }

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.

ShowHeader Property

"showHeader": Boolean

If true, then the tool panel will have a header, showing title and close button.