Add min and max pitch options (#199)

* Add min and max pitch options

* Add min and max pitch into attrs

* Update gl-native submodule
This commit is contained in:
Kevin Li
2020-02-28 18:17:08 +08:00
committed by GitHub
parent 53f5015ca6
commit 17b19b3b4a
13 changed files with 287 additions and 8 deletions

View File

@@ -268,6 +268,24 @@ class NativeMapViewTest : AppCenter() {
assertEquals("Max zoom should match", expected, actual)
}
@Test
@UiThreadTest
fun testSetMinPitch() {
val expected = 60.0
nativeMapView.minPitch = expected
val actual = nativeMapView.minPitch
assertEquals("Min Pitch should match", expected, actual, 0.01)
}
@Test
@UiThreadTest
fun testSetMaxPitch() {
val expected = 60.0
nativeMapView.maxPitch = expected
val actual = nativeMapView.maxPitch
assertEquals("Max Pitch should match", expected, actual, 0.01)
}
@Test
@UiThreadTest
fun testGetProjectedMetersAtLatitude() {