AnsweredAssumed Answered

AGSSketchGraphicsLayer - line/polygon symbols not showing

Question asked by Oyvind.Idlandgeodata-no-esridist Employee on Dec 4, 2014
Latest reply on Dec 5, 2014 by Oyvind.Idlandgeodata-no-esridist

I am working on an app that's using AGSSketchGraphicsLayer for editing.


When editing starts, the vertices, midpoints, and selected vertex shows and responds. However, there are no line drawn between the vertices.


I also tried creating my own composite symbol for the mainSymbol:


    _renderSymbols = [AGSCompositeSymbol compositeSymbol];

    AGSSimpleLineSymbol* lineSymbol = [[AGSSimpleLineSymbol alloc] init];

    lineSymbol.color= [UIColor redColor];

    lineSymbol.width = 2; = AGSSimpleLineSymbolStyleSolid;

    [_renderSymbols addSymbol:lineSymbol];

    AGSSimpleFillSymbol* fillSymbol = [[AGSSimpleFillSymbol alloc] init];

    fillSymbol.color = [UIColor colorWithRed:0.0 green:1.0 blue:0 alpha:.4] ;

    [_renderSymbols addSymbol:fillSymbol];


    _featureSketchLayer = [[AGSSketchGraphicsLayer alloc]initWithGeometry:nil];

    _featureSketchLayer.mainSymbol = _renderSymbols;

    [self.mapView addMapLayer:_featureSketchLayer withName:@"Feature sketch layer"];


Still, it looks the same, with only vertices/midpoints rendered.


I am using Runtime for iOS v.10.2.4.