This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] #5610 - Runtime style api - part 2
- Loading branch information
1 parent
ed821c0
commit 10b2cc6
Showing
73 changed files
with
6,974 additions
and
297 deletions.
There are no files selected for viewing
23 changes: 0 additions & 23 deletions
23
...orm/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/layers/CustomLayer.java
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...rm/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/layers/package-info.java
This file was deleted.
Oops, something went wrong.
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
30 changes: 30 additions & 0 deletions
30
...droid/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/CustomLayer.java
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,30 @@ | ||
package com.mapbox.mapboxsdk.style.layers; | ||
|
||
/** | ||
* Custom layer. | ||
* <p/> | ||
* Experimental feature. Do not use. | ||
*/ | ||
public class CustomLayer extends Layer { | ||
|
||
public CustomLayer(String id, | ||
long context, | ||
long initializeFunction, | ||
long renderFunction, | ||
long deinitializeFunction) { | ||
initialize(id, initializeFunction, renderFunction, deinitializeFunction, context); | ||
} | ||
|
||
public CustomLayer(long nativePtr) { | ||
super(nativePtr); | ||
} | ||
|
||
public void invalidate() { | ||
nativeUpdate(); | ||
} | ||
|
||
protected native void initialize(String id, long initializeFunction, long renderFunction, long deinitializeFunction, long context); | ||
|
||
protected native void nativeUpdate(); | ||
|
||
} |
Oops, something went wrong.