-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
Showing
46 changed files
with
1,074 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
bazel-bin | ||
.git | ||
node_modules | ||
bazel-out | ||
bazel-bin | ||
bazel-testlogs | ||
node_modules | ||
.cache | ||
.idea | ||
.vscode | ||
.cxx |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
run: ./gradlew dokkaGenerate | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected].2 | ||
uses: JamesIves/[email protected].3 | ||
with: | ||
branch: gh-pages | ||
folder: platform/android/MapLibreAndroid/build/dokka/html | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
run: make mkdocs-build | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected].2 | ||
uses: JamesIves/[email protected].3 | ||
with: | ||
branch: gh-pages | ||
folder: platform/android/site | ||
|
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
run: doxygen | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected].2 | ||
uses: JamesIves/[email protected].3 | ||
with: | ||
branch: gh-pages | ||
folder: docs/doxygen/html | ||
|
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 |
---|---|---|
|
@@ -67,7 +67,7 @@ jobs: | |
rm docs.zip | ||
- name: Deploy DocC documentation (main) 🚀 | ||
uses: JamesIves/[email protected].2 | ||
uses: JamesIves/[email protected].3 | ||
with: | ||
branch: gh-pages | ||
folder: build/docs | ||
|
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 |
---|---|---|
|
@@ -43,7 +43,7 @@ jobs: | |
name: book | ||
path: artifacts/book | ||
- name: Deploy | ||
uses: JamesIves/[email protected].2 | ||
uses: JamesIves/[email protected].3 | ||
with: | ||
branch: gh-pages | ||
folder: artifacts/book | ||
|
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
Binary file not shown.
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
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
Binary file modified
BIN
+122 Bytes
(100%)
platform/android/MapLibrePlugin/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
platform/android/MapLibrePlugin/gradle/wrapper/gradle-wrapper.properties
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
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,13 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
typedef NS_ENUM(NSInteger, MLNTileOperation) { | ||
MLNTileOperationRequestedFromCache, ///< A read request from the cache | ||
MLNTileOperationRequestedFromNetwork, ///< A read request from the online source | ||
MLNTileOperationLoadFromNetwork, ///< Tile data from the network has been retrieved | ||
MLNTileOperationLoadFromCache, ///< Tile data from the cache has been retrieved | ||
MLNTileOperationStartParse, ///< Background processing of tile data has been initiated | ||
MLNTileOperationEndParse, ///< Background processing of tile data has been completed | ||
MLNTileOperationError, ///< An error occurred while loading the tile | ||
MLNTileOperationCancelled, ///< Loading of a tile was cancelled | ||
MLNTileOperationNullOp, ///< No operation has taken place | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# Observe Low-Level Events | ||
|
||
Learn about the ``MLNMapViewDelegate`` methods for observing map events. | ||
|
||
> Warning: These methods are not thread-safe. | ||
You can observe certain low-level events as they happen. Use these methods to collect metrics or investigate issues during map rendering. This feature is intended primarily for power users. We are always interested in improving observability, so if you have a special use case, feel free to [open an issue or pull request](https://github.com/maplibre/maplibre-native) to extend the types of observability methods. | ||
|
||
## Shader Events | ||
|
||
Observe shader compilation with ``MLNMapViewDelegate/mapView:shaderWillCompile:backend:defines:`` and ``MLNMapViewDelegate/mapView:shaderDidCompile:backend:defines:``. | ||
|
||
<!-- include-example(ObserverExampleShaders) --> | ||
|
||
```swift | ||
func mapView(_: MLNMapView, shaderWillCompile id: Int, backend: Int, defines: String) { | ||
print("A new shader is being compiled - shaderID:\(id), backend type:\(backend), program configuration:\(defines)") | ||
} | ||
|
||
func mapView(_: MLNMapView, shaderDidCompile id: Int, backend: Int, defines: String) { | ||
print("A shader has been compiled - shaderID:\(id), backend type:\(backend), program configuration:\(defines)") | ||
} | ||
``` | ||
|
||
See also: ``MLNMapViewDelegate/mapView:shaderDidFailCompile:backend:defines:``. | ||
|
||
## Glyph Loading | ||
|
||
Observe glyph loading events with ``MLNMapViewDelegate/mapView:glyphsWillLoad:range:`` and ``MLNMapViewDelegate/mapView:glyphsDidLoad:range:``. | ||
|
||
<!-- include-example(ObserverExampleGlyphs) --> | ||
|
||
```swift | ||
func mapView(_: MLNMapView, glyphsWillLoad fontStack: [String], range: NSRange) { | ||
print("Glyphs are being requested for the font stack \(fontStack), ranging from \(range.location) to \(range.location + range.length)") | ||
} | ||
|
||
func mapView(_: MLNMapView, glyphsDidLoad fontStack: [String], range: NSRange) { | ||
print("Glyphs have been loaded for the font stack \(fontStack), ranging from \(range.location) to \(range.location + range.length)") | ||
} | ||
``` | ||
|
||
See also: ``MLNMapViewDelegate/mapView:glyphsDidError:range:``. | ||
|
||
## Tile Events | ||
|
||
Monitor tile-related actions using the delegate method ``MLNMapViewDelegate/mapView:tileDidTriggerAction:x:y:z:wrap:overscaledZ:sourceID:`` with the ``MLNTileOperation`` type. | ||
|
||
<!-- include-example(ObserverExampleTiles) --> | ||
|
||
```swift | ||
func mapView(_: MLNMapView, tileDidTriggerAction operation: MLNTileOperation, | ||
x: Int, | ||
y: Int, | ||
z: Int, | ||
wrap: Int, | ||
overscaledZ: Int, | ||
sourceID: String) | ||
{ | ||
let tileStr = String(format: "(x: %ld, y: %ld, z: %ld, wrap: %ld, overscaledZ: %ld, sourceID: %@)", | ||
x, y, z, wrap, overscaledZ, sourceID) | ||
|
||
switch operation { | ||
case MLNTileOperation.requestedFromCache: | ||
print("Requesting tile \(tileStr) from cache") | ||
|
||
case MLNTileOperation.requestedFromNetwork: | ||
print("Requesting tile \(tileStr) from network") | ||
|
||
case MLNTileOperation.loadFromCache: | ||
print("Loading tile \(tileStr), requested from the cache") | ||
|
||
case MLNTileOperation.loadFromNetwork: | ||
print("Loading tile \(tileStr), requested from the network") | ||
|
||
case MLNTileOperation.startParse: | ||
print("Parsing tile \(tileStr)") | ||
|
||
case MLNTileOperation.endParse: | ||
print("Completed parsing tile \(tileStr)") | ||
|
||
case MLNTileOperation.error: | ||
print("An error occured during proccessing for tile \(tileStr)") | ||
|
||
case MLNTileOperation.cancelled: | ||
print("Pending work on tile \(tileStr)") | ||
|
||
case MLNTileOperation.nullOp: | ||
print("An unknown tile operation was emitted for tile \(tileStr)") | ||
|
||
@unknown default: | ||
assertionFailure() | ||
} | ||
} | ||
``` | ||
|
||
## Sprite Loading | ||
|
||
Observe sprite loading events with ``MLNMapViewDelegate/mapView:spriteWillLoad:url:`` and ``MLNMapViewDelegate/mapView:spriteDidLoad:url:``. | ||
|
||
<!-- include-example(ObserverExampleSprites) --> | ||
|
||
```swift | ||
func mapView(_: MLNMapView, spriteWillLoad id: String, url: String) { | ||
print("The sprite \(id) has been requested from \(url)") | ||
} | ||
|
||
func mapView(_: MLNMapView, spriteDidLoad id: String, url: String) { | ||
print("The sprite \(id) has been loaded from \(url)") | ||
} | ||
``` | ||
|
||
See also: ``MLNMapViewDelegate/mapView:spriteDidError:url:``. |
Oops, something went wrong.