Skip to content

Commit

Permalink
removing commented out implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
hactar committed Jul 25, 2024
1 parent 5b3a19d commit 43b2fff
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,6 @@ public struct SymbolStyleLayer: SourceBoundVectorStyleLayerDefinition {
return copy
}

// FIXME: This appears to be broken upstream; waiting for a new release
// public func iconImage(attribute: String, mappings: [AnyHashable: UIImage], default defaultImage: UIImage) -> Self
// {
// return modified(self) { it in
// it.iconImageName = NSExpression(forMLNMatchingKey: NSExpression(forConstantValue: attribute),
// in: Dictionary(uniqueKeysWithValues: mappings.map({ (k, v) in
// (NSExpression(forConstantValue: k), NSExpression(forConstantValue: v.sha256()))
// })),
// default: NSExpression(forConstantValue: defaultImage.sha256()))
// it.iconImages = mappings.values + [defaultImage]
// }
// }

/// Add an icon image that can be dynamic and use UIImages in your app, based on a feature property of the source.
/// For example, your feature could have a property called "icon-name". This name is then resolved against the key
/// in the mappings dictionary and used to find a UIImage to display on the map for that feature.
Expand Down

0 comments on commit 43b2fff

Please sign in to comment.