-
Notifications
You must be signed in to change notification settings - Fork 123
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
492af3d
commit ec9808e
Showing
12 changed files
with
93 additions
and
219 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
46 changes: 0 additions & 46 deletions
46
android/src/main/java/com/mapbox/mapboxgl/MapboxMapOptionsSink.java
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
android/src/main/java/com/mapbox/mapboxgl/MapboxMapOptionsSink.kt
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,45 @@ | ||
// Copyright 2018 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
package com.mapbox.mapboxgl | ||
|
||
import com.mapbox.mapboxsdk.geometry.LatLngBounds | ||
|
||
/** Receiver of MapboxMap configuration options. */ | ||
internal interface MapboxMapOptionsSink { | ||
// todo: dddd replace with CameraPosition.Builder target | ||
fun setCameraTargetBounds(bounds: LatLngBounds) | ||
|
||
fun setCompassEnabled(compassEnabled: Boolean) | ||
|
||
// TODO: styleString is not actually a part of options. consider moving | ||
fun setStyleString(styleString: String) | ||
|
||
fun setMinMaxZoomPreference(min: Float?, max: Float?) | ||
|
||
fun setRotateGesturesEnabled(rotateGesturesEnabled: Boolean) | ||
|
||
fun setScrollGesturesEnabled(scrollGesturesEnabled: Boolean) | ||
|
||
fun setTiltGesturesEnabled(tiltGesturesEnabled: Boolean) | ||
|
||
fun setTrackCameraPosition(trackCameraPosition: Boolean) | ||
|
||
fun setZoomGesturesEnabled(zoomGesturesEnabled: Boolean) | ||
|
||
fun setMyLocationEnabled(myLocationEnabled: Boolean) | ||
|
||
fun setMyLocationTrackingMode(myLocationTrackingMode: Int) | ||
|
||
fun setMyLocationRenderMode(myLocationRenderMode: Int) | ||
|
||
fun setLogoViewMargins(x: Int, y: Int) | ||
|
||
fun setCompassGravity(gravity: Int) | ||
|
||
fun setCompassViewMargins(x: Int, y: Int) | ||
|
||
fun setAttributionButtonGravity(gravity: Int) | ||
|
||
fun setAttributionButtonMargins(x: Int, y: Int) | ||
} |
Oops, something went wrong.