aboutsummaryrefslogtreecommitdiff
path: root/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64/WhirlyGlobeMaplyComponent.framework/Headers/MapboxVectorInterpreter.h
blob: 622960488a03268f69c1d63656518472cd76cc6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 *  MapboxVectorTilesImageDelegate.h
 *  WhirlyGlobe-MaplyComponent
 *
 *  Created by Steve Gifford on January 24 2018
 *  Copyright 2011-2022 Saildrone
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 */


#import <Foundation/Foundation.h>
#import <WhirlyGlobeMaplyComponent/MaplyTileSourceNew.h>
#import <WhirlyGlobeMaplyComponent/MaplyCoordinate.h>
#import <WhirlyGlobeMaplyComponent/MaplyVectorStyle.h>
#import <WhirlyGlobeMaplyComponent/MapboxVectorTiles.h>
#import <WhirlyGlobeMaplyComponent/MaplyQuadImageFrameLoader.h>

@class MapboxVectorStyleSet;

/**
 An interpreter for Mapbox Vector Tiles.
 
 This will turn vector tiles into images, visual objects, or a combination of the two.  Loader interpreters like
    this one can be used by Loaders that talk to ondevice objects (such as MBTiles files) or remote tile
    sources.
 */
@interface MapboxVectorInterpreter : NSObject<MaplyLoaderInterpreter>

/** This version of the init takes an image style set, a vector style set,
    and an offline renderer to build the image tiles.
 
    Image tiles will be used as a background and vectors put on top of them.
    This is very nice for the globe, but requires specialized style sheets.
  */
- (instancetype _Nullable ) initWithImageStyle:(NSObject<MaplyVectorStyleDelegate> *__nonnull)imageStyle
                         offlineRender:(MaplyRenderController *__nonnull)renderControl
                           vectorStyle:(NSObject<MaplyVectorStyleDelegate> *__nonnull)vectorStyle
                                 viewC:(NSObject<MaplyRenderControllerProtocol> *__nonnull)viewC;

/** This version of the init builds visual features for vector tiles.
 
    This interpreter can be used as overlay data or a full map, depending
    on how your style is configured.
  */
- (instancetype __nullable) initWithVectorStyle:(NSObject<MaplyVectorStyleDelegate> *__nonnull)vectorStyle
                                          viewC:(NSObject<MaplyRenderControllerProtocol> *__nonnull)viewC;

/**
 Set an optional list of unique features we'll filter on.
 Any feature we want to pass through must have the given attribute name and one of the values.
 */
- (void)setUUIDName:(NSString * __nonnull)uuidName uuidValues:(NSArray<NSString *> * __nonnull)uuids;

@end