You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: android/src/main/kotlin/com/mapbox/maps/mapbox_maps/pigeons/Settings.kt
+60-24Lines changed: 60 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,25 @@ enum class ModelElevationReference(val raw: Int) {
140
140
}
141
141
}
142
142
143
+
/**
144
+
* Supported distance unit types.
145
+
* Default value: "metric".
146
+
*/
147
+
enumclassDistanceUnits(valraw:Int) {
148
+
/** Metric units using meters and kilometers. The scale bar will automatically choose between meters and kilometers based on the distance being displayed for optimal readability. */
149
+
METRIC(0),
150
+
/** Imperial units using feet for short distances and miles for longer distances. The scale bar will display distances in feet for small distances and automatically switch to miles for longer distances. */
151
+
IMPERIAL(1),
152
+
/** Nautical units using fathoms for short distances and nautical miles for longer distances. The scale bar will display distances in fathoms for small distances and automatically switch to nautical miles for longer distances. Commonly used for marine and aviation navigation. */
153
+
NAUTICAL(2);
154
+
155
+
companionobject {
156
+
funofRaw(raw:Int): DistanceUnits? {
157
+
return values().firstOrNull { it.raw == raw }
158
+
}
159
+
}
160
+
}
161
+
143
162
/**
144
163
* Gesture configuration allows to control the user touch interaction.
145
164
*
@@ -712,6 +731,11 @@ data class ScaleBarSettings(
712
731
* Default value: true.
713
732
*/
714
733
valisMetricUnits:Boolean? = null,
734
+
/**
735
+
* Supported distance unit types.
736
+
* Default value: "metric".
737
+
*/
738
+
valdistanceUnits:DistanceUnits? = null,
715
739
/**
716
740
* Configures minimum refresh interval, in millisecond, default is 15.
717
741
* Default value: 15.
@@ -750,11 +774,12 @@ data class ScaleBarSettings(
750
774
val textBorderWidth = pigeonVar_list[12] asDouble?
751
775
val textSize = pigeonVar_list[13] asDouble?
752
776
val isMetricUnits = pigeonVar_list[14] asBoolean?
753
-
val refreshInterval = pigeonVar_list[15] asLong?
754
-
val showTextBorder = pigeonVar_list[16] asBoolean?
755
-
val ratio = pigeonVar_list[17] asDouble?
756
-
val useContinuousRendering = pigeonVar_list[18] asBoolean?
Copy file name to clipboardExpand all lines: ios/mapbox_maps_flutter/Sources/mapbox_maps_flutter/Classes/Generated/Settings.swift
+49-23Lines changed: 49 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,17 @@ enum ModelElevationReference: Int {
109
109
case gROUND =1
110
110
}
111
111
112
+
/// Supported distance unit types.
113
+
/// Default value: "metric".
114
+
enumDistanceUnits:Int{
115
+
/// Metric units using meters and kilometers. The scale bar will automatically choose between meters and kilometers based on the distance being displayed for optimal readability.
116
+
case mETRIC =0
117
+
/// Imperial units using feet for short distances and miles for longer distances. The scale bar will display distances in feet for small distances and automatically switch to miles for longer distances.
118
+
case iMPERIAL =1
119
+
/// Nautical units using fathoms for short distances and nautical miles for longer distances. The scale bar will display distances in fathoms for small distances and automatically switch to nautical miles for longer distances. Commonly used for marine and aviation navigation.
120
+
case nAUTICAL =2
121
+
}
122
+
112
123
/// Gesture configuration allows to control the user touch interaction.
113
124
///
114
125
/// Generated class from Pigeon that represents data sent in messages.
@@ -529,6 +540,9 @@ struct ScaleBarSettings {
529
540
/// Whether the scale bar is using metric unit. True if the scale bar is using metric system, false if the scale bar is using imperial units.
530
541
/// Default value: true.
531
542
varisMetricUnits:Bool?=nil
543
+
/// Supported distance unit types.
544
+
/// Default value: "metric".
545
+
vardistanceUnits:DistanceUnits?=nil
532
546
/// Configures minimum refresh interval, in millisecond, default is 15.
0 commit comments