Remove source functions
This commit is contained in:
@@ -127,9 +127,6 @@ public class MapView extends SurfaceView {
|
||||
|
||||
// Create the NativeMapView
|
||||
mNativeMapView = new NativeMapView(this, mDefaultStyleJSON);
|
||||
mNativeMapView.addDefaultSource();
|
||||
// mNativeMapView.addSource("countries",
|
||||
// "http://192.168.20.103/%d/%d/%d.pbf");
|
||||
|
||||
// Load the attributes
|
||||
TypedArray typedArray = context.obtainStyledAttributes(attrs,
|
||||
|
||||
@@ -92,22 +92,6 @@ class NativeMapView {
|
||||
nativeCleanup(mNativeMapViewPtr);
|
||||
}
|
||||
|
||||
public void addDefaultSource() {
|
||||
nativeAddDefaultSource(mNativeMapViewPtr);
|
||||
}
|
||||
|
||||
public void removeDefaultSource() {
|
||||
nativeRemoveDefaultSource(mNativeMapViewPtr);
|
||||
}
|
||||
|
||||
public void addSource(String name, String url) {
|
||||
nativeAddSource(mNativeMapViewPtr, name, url);
|
||||
}
|
||||
|
||||
public void removeSource(String name) {
|
||||
nativeRemoveSource(mNativeMapViewPtr, name);
|
||||
}
|
||||
|
||||
public void resize(int width, int height) {
|
||||
resize(width, height, 1.0f);
|
||||
}
|
||||
@@ -402,15 +386,6 @@ class NativeMapView {
|
||||
|
||||
private native void nativeCleanup(long nativeMapViewPtr);
|
||||
|
||||
private native void nativeAddDefaultSource(long nativeMapViewPtr);
|
||||
|
||||
private native void nativeRemoveDefaultSource(long nativeMapViewPtr);
|
||||
|
||||
private native void nativeAddSource(long nativeMapViewPtr, String name,
|
||||
String url);
|
||||
|
||||
private native void nativeRemoveSource(long nativeMapViewPtr, String name);
|
||||
|
||||
private native void nativeResize(long nativeMapViewPtr, int width,
|
||||
int height, float ratio);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user