@interface MaplyLinearTextureBuilder : NSObject
The Maply Linear Texture Builder is used to construct linear textures for use on widened vectors.
Linear textures of this type are used to represent dotted and dashed lines. These may come from Mapnik configuration files or you can just make them up yourself.
After creating an image with this object, you’ll want to pass it as a parameter to the widened vector add method.
Set the pattern of dots and empty spaces.
This is an array of NSNumbers (treated as integers) that specify how big an element in the given pattern is. The first element is on, the next off and so forth.
- (void)setPattern:(NSArray *)elements;
func setPattern(_ elements: Any!)
Build the image from the size and elements specified.
If you’ve set a reasonable size and added a pattern, this will render the pattern into the image and return it. If the size of the image differs from the size of the elements, they will be scaled to the image.
func makeImage() -> Any!