displaying polyline shape file in android

3725
1
02-16-2015 10:30 PM
BryceBurr
New Contributor

Hi everyone

So i have a polyline shape file of roads - i can display them on the map as points

e.g.

FeatureLayer featureLayer = new FeatureLayer(shapeFileTable) ;

featureLayer.setRenderer(new SimpleRenderer(new SimpleMarkerSymbol(Color.BLACK,3, STYLE.CROSS)));

mMapView.addLayer(featureLayer);

and that works brilliantly

My question is  - how do i show the polyline shape fine as proper lines on the mapview? Would someone be so kind as to point me in the right direction

cheers

0 Kudos
1 Reply
BryceBurr
New Contributor

yeah *ahem*

solved.

SimpleLineSymbol sym = new SimpleLineSymbol(Color.BLUE,1);

  featureLayer.setRenderer(new SimpleRenderer(sym));//new SimpleMarkerSymbol(Color.BLUE,1, STYLE.CROSS)));

cheers

B

0 Kudos