SMK Usage Guide

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

This project is maintained by qqnluaq

SMK / Initialization

Initializing the Map ID

This is a unique identifier for SMK map object. It is generated automatically if it is not specified. If you need to refer to a specific instance of the map (a specific key of SMK.MAP), then you may want to set this value. If this value is set to "my-map", then the map object will be available at SMK.MAP[ "my-map" ].

smk-id Attribute

Not required

Used by the SMK <script> element. Sets the unique identifier for the map object.

<script src="smk/dist/smk.js"
    smk-container-sel="#smk-map-frame"
    smk-id="my-map"
></script>

id Option

Not required

Used by SMK.INIT. Sets the unique identifier for the map object.

SMK.INIT( {
    containerSel: '#smk-map-frame',
    id:           'my-map'
} )