src/gm3/trackers/hash.js
/* Track which layers are on in the hash.
     */
Track which layers are on in the hash.
Track which layers are on in the hash .
trackLayers() {
        const map_sources = this.store.getState().mapSources;
        const visible_layers = getVisibleLayers(map_sources);
        const trackable_layers = [];
        for(const layer of visible_layers) {
            const ms_name = util.getMapSourceName(layer);
            if(!this.isAlwaysOn(map_sources[ms_name])) {
                trackable_layers.push(layer);
            }
        }
        return trackable_layers;
    }
trackLayers ( ) { const map_sources = this . store . getState ( ) . mapSources ; const visible_layers = getVisibleLayers ( map_sources ) ; const trackable_layers = [ ] ; for ( const layer of visible_layers ) { const ms_name = util . getMapSourceName ( layer ) ; if ( ! this . isAlwaysOn ( map_sources [ ms_name ] ) ) { trackable_layers . push ( layer ) ; } } return trackable_layers ; }
Track which layers are on in the hash.
Track which layers are on in the hash .