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:
Bart Louwers
2025-01-24 20:43:50 +01:00
committed by GitHub
parent c7b63cd9a7
commit c79b6dcf52
8187 changed files with 8059 additions and 8199 deletions

View File

@@ -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.

View File

@@ -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"
```
```

View File

@@ -24,4 +24,4 @@
.inline-attribution {
font-size: smaller;
}
}

View File

@@ -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"
```
```

View File

@@ -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.

View File

@@ -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"
```
```

View File

@@ -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"
```
```

View File

@@ -24,4 +24,3 @@ You can remove a click listener again with `MapLibreMap.removeOnMapClickListener
</video>
{{ openmaptiles_caption }}
</figure>

View File

@@ -10,4 +10,4 @@ This example shows how you can move the map by x/y pixels.
<figure markdown="span">
![Screenshot of Example Activity to move the map by some pixels](https://github.com/user-attachments/assets/f8ae0ec7-a165-4fb3-ab9f-bfb5579c7dd8){ width="300" }
</figure>
</figure>

View File

@@ -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"
```

View File

@@ -12,4 +12,4 @@ The neat thing about this style is that it only uses PMTiles vector sources. PMT
<figure markdown="span">
![Screenshot of PMTiles based style using Protomaps basemap with Foursquare POIs]({{ s3_url("pmtiles-demo.png") }}){ width="300" }
</figure>
</figure>

View File

@@ -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.

View File

@@ -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.

View File

@@ -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>
"""
"""

View File

@@ -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"
```
```

View File

@@ -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"
```
```

View File

@@ -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"
```
```

View File

@@ -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"
```
```

View File

@@ -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"
```
```

View File

@@ -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"
```
```

View File

@@ -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"
```
```

View File

@@ -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"
```
```