Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

-[MGLMapViewDelegate mapView:strokeColorForShapeAnnotation:] does not work properly for pattern collor #7712

Closed
andrewstay opened this issue Jan 13, 2017 · 2 comments
Labels
annotations Annotations on iOS and macOS or markers on Android bug iOS Mapbox Maps SDK for iOS
Milestone

Comments

@andrewstay
Copy link

Platform: iOS
Mapbox SDK version: ios-v3.4.0-beta.7

Steps to trigger behavior

  1. Instantiate MGLMapView
  2. Set a delegate
  3. Add a multiline shape using MGLPolyline
  4. Implement - (UIColor *)mapView:(MGLMapView *)aMapView strokeColorForShapeAnnotation:(MGLShape *)anAnnotation
  5. Return UIColor instantiated with a pattern image:
- (UIColor *)mapView:(MGLMapView *)aMapView strokeColorForShapeAnnotation:(MGLShape *)anAnnotation
{
     return [UIColor colorWithPatternImage:myImage];
}

Please review image attached

Expected behavior

Stroke should be perfectly rendered

Actual behavior

Stroke is not dispalyed

out-of-bounds

@tobrun tobrun added the iOS Mapbox Maps SDK for iOS label Jan 13, 2017
@boundsj boundsj added annotations Annotations on iOS and macOS or markers on Android bug labels Jan 13, 2017
@boundsj boundsj added this to the ios-3.4.1 milestone Jan 13, 2017
@friedbunny
Copy link
Contributor

Related: #5033

@1ec5
Copy link
Contributor

1ec5 commented Jan 24, 2017

Duplicate of #5033.

@1ec5 1ec5 closed this as completed Jan 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
annotations Annotations on iOS and macOS or markers on Android bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

5 participants