-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49ccef3
commit 288a5f8
Showing
7 changed files
with
112 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// import Foundation | ||
// import MapLibre | ||
// import InternalUtils | ||
// import MapLibreSwiftMacros | ||
// | ||
//// TODO: background opacity property (and resolved image properties in general) | ||
//// TODO: Generalization: color properties and numeric properties | ||
// @MLNStyleProperty<UIColor>("backgroundColor", supportsInterpolation: true) | ||
// @MLNStyleProperty<Float>("backgroundOpacity", supportsInterpolation: true) | ||
// public struct FillLayer: SourceBoundStyleLayerDefinition { | ||
// public let identifier: String | ||
// public var insertionPosition: LayerInsertionPosition = .belowOthers | ||
// public var isVisible: Bool = true | ||
// public var maximumZoomLevel: Float? = nil | ||
// public var minimumZoomLevel: Float? = nil | ||
// | ||
// public var source: StyleLayerSource | ||
// | ||
// public init(identifier: String, source: Source) { | ||
// self.identifier = identifier | ||
// self.source = .source(source) | ||
// } | ||
// | ||
// public init(identifier: String, source: MLNSource) { | ||
// self.identifier = identifier | ||
// self.source = .mglSource(source) | ||
// } | ||
// | ||
// public func makeStyleLayer(style: MLNStyle) -> StyleLayer { | ||
// let styleSource = addSource(to: style) | ||
// | ||
// let result = MLNFillStyleLayer(identifier: identifier, source: source) | ||
// | ||
// // TODO: Macro-ize this | ||
// result.backgroundColor = backgroundColor | ||
// result.backgroundOpacity = backgroundOpacity | ||
// | ||
// return result | ||
// } | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters