AnsweredAssumed Answered

Load local vector pack

Question asked by armandzwan on May 10, 2017
Latest reply on May 17, 2017 by armandzwan

How do I load a vtpk file as a base map?

 

When I do it like this, the App loads the whole vector map in to memory -> crash !

 

self.vectorTiledLayer = [[AGSArcGISVectorTiledLayer alloc] initWithName:@"..."];

[self.vectorTiledLayer loadWithCompletion:^(NSError * _Nullable error) {
                if (error){
                    NSLog(@"Error: %@", error);
                }
                weakSelf.arcGISMap.map =  [AGSMap mapWithBasemap:[[AGSBasemap alloc] initWithBaseLayer: self.vectorTiledLayer]];
            }];

Outcomes