Lines Matching refs:map
135 setMap(map) { argument
142 super.setMap(map);
143 if (map) {
151 this.mapListeners.push(map.on('pointerdown', () => {
229 static renderPanel(map, panel, options) { argument
236 LayerSwitcher.ensureTopVisibleBaseLayerShown(map, options.groupSelectStyle);
242 LayerSwitcher.forEachRecursive(map, function (l, _idx, _a) {
249 LayerSwitcher.setGroupVisibility(map);
253 LayerSwitcher.setChildVisibility(map);
258 LayerSwitcher.renderLayers_(map, map, ul, options, function render(_changedLyr) {
259 LayerSwitcher.renderPanel(map, panel, options);
279 static setGroupVisibility(map) { argument
281 const groups = LayerSwitcher.getGroupsAndLayers(map, function (l) {
289 const descendantVisibility = grp.getLayersArray().map(function (l) {
313 static setChildVisibility(map) { argument
315 const groups = LayerSwitcher.getGroupsAndLayers(map, function (l) {
342 static ensureTopVisibleBaseLayerShown(map, groupSelectStyle) { argument
344 LayerSwitcher.forEachRecursive(map, function (lyr, _idx, _arr) {
350 LayerSwitcher.setVisible_(map, lastVisibleBaseLyr, true, groupSelectStyle);
385 static setVisible_(map, lyr, visible, groupSelectStyle) { argument
390 LayerSwitcher.forEachRecursive(map, function (l, _idx, _arr) {
400 LayerSwitcher.setVisible_(map, l, lyr.getVisible(), groupSelectStyle);
412 static renderLayer_(map, lyr, idx, options, render) { argument
443 LayerSwitcher.setVisible_(map, lyr, target.checked, options.groupSelectStyle);
453 LayerSwitcher.renderLayers_(map, lyr, ul, options, render);
469 LayerSwitcher.setVisible_(map, lyr, target.checked, options.groupSelectStyle);
475 const rsl = map.getView().getResolution();
480 const zoom = map.getView().getZoom();
497 static renderLayers_(map, lyr, elm, options, render) { argument
504 elm.appendChild(LayerSwitcher.renderLayer_(map, l, i, options, render));