NMACLE2AttributeRequest
Class Summary
class NMACLE2AttributeRequest
Derived from: NMACLE2Request
Represents a custom geometry search request to retrieve all user-defined geometries along with its attribute on a specified layer.
Include: NMAKit.framework/headers/NMACLE2AttributeRequest.h
[For complete information, see the section Class Details]
Instance Method Summary
Instance Method Summary |
---|
Creates an Attribute Search Request |
Creates an Attribute Search Request that searches through multiple layers |
Class Details
Represents a custom geometry search request to retrieve all user-defined geometries along with its attribute on a specified layer.
A new NMACLE2AttributeRequest should be created for each distinct search.
this class is currently only supported in online mode.
Instance Method Details
-(nullable instancetype) initWithLayer:(nonnull NSString *) layerId query:(nonnull NSString *) query
Creates an Attribute Search Request. This method returns nil if initialization failed.
The query assures that only expressions that evaluate to true are returned. An example of a query is: "RATING > 3 && NAME != 'MyPlace23'"
Parameters:
-
layerId
Layer name to search.
-
query
A JavaScript expression as a string being evaluated for each geometry.
-(nullable instancetype) initWithLayers:(nonnull NSArray< NSString * > *) layerIds query:(nonnull NSString *) query
Creates an Attribute Search Request that searches through multiple layers. This method returns nil if initialization failed.
the query assures that only expression which evaluates to true will be returned.
Parameters:
-
layerIds
An NSArray with names specifying the layers to search.
-
query
A JavaScript expression as a string being evaluated for each geometry.