Rename packages. Add GPS arrow.
@@ -1,5 +1,5 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.mapbox.mapboxgl.lib">
|
||||
package="com.mapbox.mapboxgl.views">
|
||||
|
||||
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxgl.lib.constants;
|
||||
package com.mapbox.mapboxgl.constants;
|
||||
|
||||
public class GeoConstants {
|
||||
// http://en.wikipedia.org/wiki/Earth_radius#Equatorial_radius
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxgl.lib.constants;
|
||||
package com.mapbox.mapboxgl.constants;
|
||||
|
||||
public class MathConstants {
|
||||
public static final double DEG2RAD = (Math.PI / 180.0);
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxgl.lib.geometry;
|
||||
package com.mapbox.mapboxgl.geometry;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxgl.lib.geometry;
|
||||
package com.mapbox.mapboxgl.geometry;
|
||||
|
||||
/**
|
||||
* Implementation of iOS MKCoordinateRegion
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxgl.lib.geometry;
|
||||
package com.mapbox.mapboxgl.geometry;
|
||||
|
||||
/**
|
||||
* Implementation of iOS MKCoordinateSpan
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxgl.lib.geometry;
|
||||
package com.mapbox.mapboxgl.geometry;
|
||||
|
||||
/**
|
||||
* A Latitude, Longitude point.
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxgl.lib.geometry;
|
||||
package com.mapbox.mapboxgl.geometry;
|
||||
|
||||
public interface IProjectedMeters {
|
||||
double getNorthing();
|
||||
@@ -1,11 +1,11 @@
|
||||
package com.mapbox.mapboxgl.lib.geometry;
|
||||
package com.mapbox.mapboxgl.geometry;
|
||||
|
||||
import android.location.Location;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import com.mapbox.mapboxgl.lib.constants.GeoConstants;
|
||||
import com.mapbox.mapboxgl.lib.constants.MathConstants;
|
||||
import com.mapbox.mapboxgl.constants.GeoConstants;
|
||||
import com.mapbox.mapboxgl.constants.MathConstants;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxgl.lib.geometry;
|
||||
package com.mapbox.mapboxgl.geometry;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxgl.lib.geometry;
|
||||
package com.mapbox.mapboxgl.geometry;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxgl.lib;
|
||||
package com.mapbox.mapboxgl.views;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.BroadcastReceiver;
|
||||
@@ -29,8 +29,8 @@ import android.widget.ZoomButtonsController;
|
||||
|
||||
import com.almeros.android.multitouch.gesturedetectors.RotateGestureDetector;
|
||||
import com.almeros.android.multitouch.gesturedetectors.TwoFingerGestureDetector;
|
||||
import com.mapbox.mapboxgl.lib.geometry.LatLng;
|
||||
import com.mapbox.mapboxgl.lib.geometry.LatLngZoom;
|
||||
import com.mapbox.mapboxgl.geometry.LatLng;
|
||||
import com.mapbox.mapboxgl.geometry.LatLngZoom;
|
||||
|
||||
import org.apache.commons.validator.routines.UrlValidator;
|
||||
|
||||
@@ -777,7 +777,7 @@ public class MapView extends SurfaceView {
|
||||
}
|
||||
|
||||
// TODO complex decision between rotate or scale or both (see Google
|
||||
// Maps app)
|
||||
// Maps testapp)
|
||||
|
||||
// Cancel any animation
|
||||
mNativeMapView.cancelTransitions();
|
||||
@@ -842,7 +842,7 @@ public class MapView extends SurfaceView {
|
||||
}
|
||||
|
||||
// TODO complex decision between rotate or scale or both (see Google
|
||||
// Maps app). It seems if you start one or the other it takes more
|
||||
// Maps testapp). It seems if you start one or the other it takes more
|
||||
// to start the other too. Haven't figured out what it uses to
|
||||
// decide when to transition to both at the same time.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package com.mapbox.mapboxgl.lib;
|
||||
package com.mapbox.mapboxgl.views;
|
||||
|
||||
import android.graphics.PointF;
|
||||
import android.view.Surface;
|
||||
|
||||
import com.mapbox.mapboxgl.lib.geometry.LatLng;
|
||||
import com.mapbox.mapboxgl.lib.geometry.LatLngZoom;
|
||||
import com.mapbox.mapboxgl.lib.geometry.ProjectedMeters;
|
||||
import com.mapbox.mapboxgl.geometry.LatLng;
|
||||
import com.mapbox.mapboxgl.geometry.LatLngZoom;
|
||||
import com.mapbox.mapboxgl.geometry.ProjectedMeters;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -38,7 +38,7 @@ android {
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.mapbox.mapboxgl.app"
|
||||
applicationId "com.mapbox.mapboxgl.testapp"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 21
|
||||
versionCode 4
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.mapbox.mapboxgl.app">
|
||||
package="com.mapbox.mapboxgl.testapp">
|
||||
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
@@ -12,7 +12,7 @@
|
||||
android:theme="@style/AppTheme"
|
||||
android:supportsRtl="true">
|
||||
<activity
|
||||
android:name="com.mapbox.mapboxgl.app.MainActivity"
|
||||
android:name="com.mapbox.mapboxgl.testapp.MainActivity"
|
||||
android:label="@string/app_name">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxgl.app;
|
||||
package com.mapbox.mapboxgl.testapp;
|
||||
|
||||
import android.location.Location;
|
||||
import android.os.Bundle;
|
||||
@@ -15,8 +15,8 @@ import android.widget.ImageView;
|
||||
import android.widget.Spinner;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.mapbox.mapboxgl.lib.geometry.LatLngZoom;
|
||||
import com.mapbox.mapboxgl.lib.MapView;
|
||||
import com.mapbox.mapboxgl.geometry.LatLngZoom;
|
||||
import com.mapbox.mapboxgl.views.MapView;
|
||||
import com.mapzen.android.lost.LocationClient;
|
||||
import com.mapzen.android.lost.LocationListener;
|
||||
import com.mapzen.android.lost.LocationRequest;
|
||||
@@ -125,7 +125,7 @@ public class MainActivity extends ActionBarActivity {
|
||||
});
|
||||
}
|
||||
|
||||
// Called when our app goes into the background
|
||||
// Called when our testapp goes into the background
|
||||
@Override
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
@@ -137,7 +137,7 @@ public class MainActivity extends ActionBarActivity {
|
||||
}
|
||||
}
|
||||
|
||||
// Called when our app comes into the foreground
|
||||
// Called when our testapp comes into the foreground
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxgl.app;
|
||||
package com.mapbox.mapboxgl.testapp;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.Fragment;
|
||||
@@ -7,7 +7,7 @@ import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.mapbox.mapboxgl.lib.MapView;
|
||||
import com.mapbox.mapboxgl.views.MapView;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
|
After Width: | Height: | Size: 7.9 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
@@ -29,7 +29,7 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<fragment
|
||||
android:name="com.mapbox.mapboxgl.app.MapFragment"
|
||||
android:name="com.mapbox.mapboxgl.testapp.MapFragment"
|
||||
android:id="@+id/fragment_map"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.mapbox.mapboxgl.lib.MapView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
<com.mapbox.mapboxgl.views.MapView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||