src/gm3/trackers/hash.js
/** Issue the set of commands that will 'restore'
     *  the previous state.
     */
Issue the set of commands that will 'restore'
the previous state.
Issue the set of commands that will ' restore ' the previous state .
restore() {
        const parsed = url.parse('?' + window.location.hash.substring(1), true);
        if(parsed.query) {
            if(parsed.query.loc) {
                this.restoreLocation(parsed.query.loc);
            }
            if(parsed.query.on) {
                this.restoreLayers(parsed.query.on);
            }
        }
    }
restore ( ) { const parsed = url . parse ( '?' + window . location . hash . substring ( 1 ) , true ) ; if ( parsed . query ) { if ( parsed . query . loc ) { this . restoreLocation ( parsed . query . loc ) ; } if ( parsed . query . on ) { this . restoreLayers ( parsed . query . on ) ; } } }
Issue the set of commands that will 'restore'
  the previous state.
Issue the set of commands that will ' restore ' the previous state .
// take the hash and parse it like a query string. // The "substring(1)" removes the "#" from the leading edge, //  replacing it with the '?' then cuases the hash to be parsed like //  a normal query string.