Skip to content
Last updated

API / geotoolkit / selection / from

Module: from

Table of contents

Functions

Contents

Functions

from

▸ from(node, direction?): QueryBuilder<any&gt;

Query all nodes from the specified node and do the specified action

Example

import {from} from '@int/geotoolkit/selection/from';
from(node)
.where((node) =&gt; return node.getId() === 'line')
.select((node) =&gt; node.setLineStyle(mystyle));

Parameters

Name Type Description
nodeanynode or enumerable item to start search
Optional directionDirectiontraverse direction, for Node type

Returns

QueryBuilder<any&gt;

a new node query builder