Add end-of-file-fixer pre-commit hook (#3176)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -36,4 +36,4 @@ Static assets are ideally uploaded to the [MapLibre Native S3 Bucket](https://ma
|
||||
|
||||
Please open an issue with the ARN of your AWS account to get upload privileges.
|
||||
|
||||
Use the CDN URL `https://dwxvn1oqw6mkc.cloudfront.net/` instead of linking to the S3 bucket directly.
|
||||
Use the CDN URL `https://dwxvn1oqw6mkc.cloudfront.net/` instead of linking to the S3 bucket directly.
|
||||
|
||||
@@ -10,4 +10,4 @@ This example demonstrates how you can add markers in bulk.
|
||||
|
||||
```kotlin title="BulkMarkerActivity.kt"
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/annotation/BulkMarkerActivity.kt"
|
||||
```
|
||||
```
|
||||
|
||||
@@ -24,4 +24,4 @@
|
||||
|
||||
.inline-attribution {
|
||||
font-size: smaller;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,4 +4,4 @@ This example showcases how to use the Animator API to schedule a sequence of map
|
||||
|
||||
```kotlin title="CameraAnimatorActivity.kt"
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/camera/CameraAnimatorActivity.kt"
|
||||
```
|
||||
```
|
||||
|
||||
@@ -30,4 +30,4 @@ And registered with:
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/camera/CameraPositionActivity.kt:addOnCameraMoveListener"
|
||||
```
|
||||
|
||||
Refer to the full example to learn the methods to register the other types of camera change events.
|
||||
Refer to the full example to learn the methods to register the other types of camera change events.
|
||||
|
||||
@@ -25,4 +25,4 @@ You can access an `UISettings` object via `MapLibreMap.uiSettings`. Available se
|
||||
|
||||
```kotlin title="GestureDetectorActivity.kt"
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/camera/GestureDetectorActivity.kt"
|
||||
```
|
||||
```
|
||||
|
||||
@@ -21,4 +21,4 @@ The `createBounds` function uses the `LatLngBounds` API to include all points wi
|
||||
|
||||
```kotlin
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/camera/LatLngBoundsActivity.kt:createBounds"
|
||||
```
|
||||
```
|
||||
|
||||
@@ -24,4 +24,3 @@ You can remove a click listener again with `MapLibreMap.removeOnMapClickListener
|
||||
</video>
|
||||
{{ openmaptiles_caption }}
|
||||
</figure>
|
||||
|
||||
|
||||
@@ -10,4 +10,4 @@ This example shows how you can move the map by x/y pixels.
|
||||
|
||||
<figure markdown="span">
|
||||
{ width="300" }
|
||||
</figure>
|
||||
</figure>
|
||||
|
||||
@@ -41,4 +41,3 @@ Each method uses `MapLibreMap.animateCamera`, but with a different `CameraUpdate
|
||||
```kotlin
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/camera/ManualZoomActivity.kt:zoomToPoint"
|
||||
```
|
||||
|
||||
|
||||
@@ -12,4 +12,4 @@ The neat thing about this style is that it only uses PMTiles vector sources. PMT
|
||||
|
||||
<figure markdown="span">
|
||||
 }}){ width="300" }
|
||||
</figure>
|
||||
</figure>
|
||||
|
||||
@@ -131,4 +131,4 @@ See [this guide](styling/animated-symbol-layer.md) for an advanced example that
|
||||
|
||||
GeoJsonSources have their pros and cons. They are most effective when you want to add additional data to your style or provide features like animating objects on your map.
|
||||
|
||||
However, working with large datasets can be challenging if you need to manipulate and store data within the app; in such cases, it’s better to use a remote data source.
|
||||
However, working with large datasets can be challenging if you need to manipulate and store data within the app; in such cases, it’s better to use a remote data source.
|
||||
|
||||
@@ -45,4 +45,4 @@ You can learn how to use the API from MapLibre Android by stuying the source cod
|
||||
- [Source code on GitHub](https://github.com/maplibre/maplibre-native/tree/main/platform/android)
|
||||
- [Latest releases](https://github.com/maplibre/maplibre-native/releases?q=android-v11&expanded=true)
|
||||
- [GitHub Discussions](https://github.com/maplibre/maplibre-native/discussions/categories/q-a?discussions_q=is%3Aopen+category%3AQ%26A+label%3Aandroid)
|
||||
- [MapLibre on Slack](https://slack.openstreetmap.us). Join the `#maplibre-native` and `#maplibre-android` channels.
|
||||
- [MapLibre on Slack](https://slack.openstreetmap.us). Join the `#maplibre-native` and `#maplibre-android` channels.
|
||||
|
||||
@@ -34,4 +34,4 @@ def define_env(env):
|
||||
<caption>
|
||||
<p class="inline-attribution">Map data [OpenStreetMap](https://www.openstreetmap.org/copyright). © [OpenMapTiles](https://openmaptiles.org/).</p>
|
||||
</caption>
|
||||
"""
|
||||
"""
|
||||
|
||||
@@ -150,4 +150,4 @@ In this example the map on top is a live while the map on the bottom is a snapsh
|
||||
|
||||
```kotlin title="MapSnapshotterWithinExpression.kt"
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/turf/MapSnapshotterWithinExpression.kt"
|
||||
```
|
||||
```
|
||||
|
||||
@@ -19,4 +19,4 @@ We set up an [image source](https://maplibre.org/maplibre-style-spec/sources/#im
|
||||
|
||||
```kotlin title="Updating the image source"
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/style/AnimatedImageSourceActivity.kt:setImage"
|
||||
```
|
||||
```
|
||||
|
||||
@@ -32,4 +32,4 @@ For animating the taxi we use a [`ValueAnimator`](https://developer.android.com/
|
||||
|
||||
```kotlin title="Animate the taxi driving towards the passenger"
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/style/AnimatedSymbolLayerActivity.kt:animateTaxi"
|
||||
```
|
||||
```
|
||||
|
||||
@@ -22,4 +22,4 @@ We use the [OpenFreeMap Bright](https://openfreemap.org/quick_start/) style whic
|
||||
|
||||
```kotlin title="Changing the light color"
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/style/BuildingFillExtrusionActivity.kt:lightColor"
|
||||
```
|
||||
```
|
||||
|
||||
@@ -46,4 +46,4 @@ Lastly we iterate over the array of `Pair`s to create a `CircleLayer` for each e
|
||||
|
||||
```kotlin title="Add different circle layers for clusters of different point amounts"
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/style/CircleLayerActivity.kt:clusteredCircleLayersLoop"
|
||||
```
|
||||
```
|
||||
|
||||
@@ -6,4 +6,4 @@ This example showcases adding a sprite image and using it in a Symbol Layer.
|
||||
|
||||
```kotlin
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/style/CustomSpriteActivity.kt:addImage"
|
||||
```
|
||||
```
|
||||
|
||||
@@ -19,4 +19,4 @@ Next, we only show features from symbol layers that are less than a certain dist
|
||||
|
||||
```kotlin
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/style/DistanceExpressionActivity.kt:distanceExpression"
|
||||
```
|
||||
```
|
||||
|
||||
@@ -33,4 +33,4 @@ We create a custom implementation of `MoveGestureDetector.OnMoveGestureListener`
|
||||
|
||||
```kotlin
|
||||
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/style/DraggableMarkerActivity.kt:DraggableSymbolsManager"
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user