feat: Add Intaleq Native Android Kotlin & iOS Swift SDKs, Incline slope routing, Topographic contours and modular tactical app
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
import Foundation
|
||||
import UIKit
|
||||
|
||||
/**
|
||||
* Defines Marker options and overlays for iOS Native.
|
||||
* Fully compatible with Google Maps SDK (GMSMarker).
|
||||
*/
|
||||
public class InlqMarker {
|
||||
public var position: InlqLatLng
|
||||
public var title: String?
|
||||
public var snippet: String?
|
||||
public var icon: UIImage?
|
||||
public var isDraggable: Bool = false
|
||||
public var zIndex: Int32 = 0
|
||||
public var isVisible: Bool = true
|
||||
|
||||
public init(position: InlqLatLng, title: String? = nil, snippet: String? = nil) {
|
||||
self.position = position
|
||||
self.title = title
|
||||
self.snippet = snippet
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines Polyline path options for routes and paths on iOS.
|
||||
* Fully compatible with Google Maps SDK (GMSPolyline).
|
||||
*/
|
||||
public class InlqPolyline {
|
||||
public var points: [InlqLatLng]
|
||||
public var strokeColor: UIColor = UIColor(red: 0.0, green: 0.44, blue: 0.89, alpha: 1.0)
|
||||
public var strokeWidth: CGFloat = 4.0
|
||||
public var isGeodesic: Bool = true
|
||||
public var zIndex: Int32 = 0
|
||||
public var isVisible: Bool = true
|
||||
|
||||
public init(points: [InlqLatLng] = []) {
|
||||
self.points = points
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines Polygon options for military sectors and reachability polygons on iOS.
|
||||
* Fully compatible with Google Maps SDK (GMSPolygon).
|
||||
*/
|
||||
public class InlqPolygon {
|
||||
public var points: [InlqLatLng]
|
||||
public var holes: [[InlqLatLng]] = []
|
||||
public var strokeColor: UIColor = UIColor(red: 0.0, green: 0.44, blue: 0.89, alpha: 1.0)
|
||||
public var strokeWidth: CGFloat = 2.0
|
||||
public var fillColor: UIColor = UIColor(red: 0.0, green: 0.44, blue: 0.89, alpha: 0.2)
|
||||
public var zIndex: Int32 = 0
|
||||
public var isVisible: Bool = true
|
||||
|
||||
public init(points: [InlqLatLng] = []) {
|
||||
self.points = points
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines Circle options for accuracy zones and buffer areas on iOS.
|
||||
* Fully compatible with Google Maps SDK (GMSCircle).
|
||||
*/
|
||||
public class InlqCircle {
|
||||
public var center: InlqLatLng
|
||||
public var radiusMeters: Double
|
||||
public var strokeColor: UIColor = UIColor(red: 0.13, green: 0.77, blue: 0.36, alpha: 1.0)
|
||||
public var strokeWidth: CGFloat = 2.0
|
||||
public var fillColor: UIColor = UIColor(red: 0.13, green: 0.77, blue: 0.36, alpha: 0.2)
|
||||
public var zIndex: Int32 = 0
|
||||
public var isVisible: Bool = true
|
||||
|
||||
public init(center: InlqLatLng, radiusMeters: Double) {
|
||||
self.center = center
|
||||
self.radiusMeters = radiusMeters
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user