Rename packages. Add GPS arrow.

This commit is contained in:
Leith Bade
2015-02-16 16:46:15 -08:00
parent 5c79baedf9
commit 921309730b
31 changed files with 34 additions and 34 deletions

View File

@@ -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" />

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
package com.mapbox.mapboxgl.lib.geometry;
package com.mapbox.mapboxgl.geometry;
import android.os.Parcel;
import android.os.Parcelable;

View File

@@ -1,4 +1,4 @@
package com.mapbox.mapboxgl.lib.geometry;
package com.mapbox.mapboxgl.geometry;
/**
* Implementation of iOS MKCoordinateRegion

View File

@@ -1,4 +1,4 @@
package com.mapbox.mapboxgl.lib.geometry;
package com.mapbox.mapboxgl.geometry;
/**
* Implementation of iOS MKCoordinateSpan

View File

@@ -1,4 +1,4 @@
package com.mapbox.mapboxgl.lib.geometry;
package com.mapbox.mapboxgl.geometry;
/**
* A Latitude, Longitude point.

View File

@@ -1,4 +1,4 @@
package com.mapbox.mapboxgl.lib.geometry;
package com.mapbox.mapboxgl.geometry;
public interface IProjectedMeters {
double getNorthing();

View File

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

View File

@@ -1,4 +1,4 @@
package com.mapbox.mapboxgl.lib.geometry;
package com.mapbox.mapboxgl.geometry;
import android.os.Parcel;
import android.os.Parcelable;

View File

@@ -1,4 +1,4 @@
package com.mapbox.mapboxgl.lib.geometry;
package com.mapbox.mapboxgl.geometry;
import android.os.Parcel;
import android.os.Parcelable;

View File

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

View File

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

View File

@@ -38,7 +38,7 @@ android {
}
defaultConfig {
applicationId "com.mapbox.mapboxgl.app"
applicationId "com.mapbox.mapboxgl.testapp"
minSdkVersion 14
targetSdkVersion 21
versionCode 4

View File

@@ -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" />

View File

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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

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

View File

@@ -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" />