Remove source functions

This commit is contained in:
Leith Bade
2014-11-06 20:52:50 +11:00
parent bc375763f8
commit 4caf8b5b50
3 changed files with 0 additions and 61 deletions

View File

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

View File

@@ -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);