MKPolyLineRenderer change color without removing overlay
Asked Answered
D

1

2

I am developing an application that almost replicates Apple maps application behavior. When i touch a route, i need to change its color to blue and change the other ones colors to gray. Is there an efficient way to accomplish this without having to remove the overlays and adding them again ? Thanks.

Dependence answered 15/6, 2014 at 3:26 Comment(1)
This answer solves it perfectly. https://mcmap.net/q/1465309/-mkpolyline-mkpolylinerenderer-changing-color-without-remove-itExtracellular
C
0

Yes:

  1. Make sure your annotation view has enabled = YES.

  2. Implement -[MKMapViewDelegate mapView:didSelectAnnotationView:].

  3. In that callback, get view and change its properties.

Cabman answered 17/6, 2014 at 17:56 Comment(1)
This is for the annotation not the MKPolylineRenderer.Extracellular

© 2022 - 2024 — McMap. All rights reserved.