SMK Usage Guide

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

This project is maintained by qqnluaq

SMK / Initialization

Initializing the Base URL

The Base URL is what resources used by SMK used to resolve their relative URLs when they are loaded. This value defaults to base path of smk.js that is loaded by the src of the containing <script> element.

smk-base-url Attribute

Not required, default is base path of smk.js

Used by the SMK <script> element. Sets the base URL for SMK resources.

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

baseUrl Option

Not required, default is base path of smk.js

Used by SMK.INIT. Sets the base URL for SMK resources.

SMK.INIT( {
    containerSel: '#smk-map-frame',
    baseUrl:      'smk/dist'
} )