Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Geo: Use more precise map markers in geo activities. (#2940)
* Geo: Use more precise map marker icons. * Geo: Use crossshairs to indicate location in GoogleMapFragment. * Geo: Fix up polygon drawing in GoogleMapFragment to match OsmMapFragment. * Fix Robolectric breakage of GoogleMap in tests. * Remove unnecessary testMode guard in getBitmapDescriptor method. * Move colour constants used in geo activities into named colour resources. * Make getBitmap properly handle different kinds of Drawables. * Fix incorrect colour constants. Fix clearing of features from GoogleMapFragment. * Fixed the arrow position in OSM maps The default marker used by OSM is a person. The location of the person marker's feet is adjusted based on display density. Since we are using crosshairs which are square instead of the person marker, the marker location needs to be adjusted.
- Loading branch information
1 parent
32d73b8
commit ea35ea2
Showing
6 changed files
with
131 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="48dp" | ||
android:height="48dp" | ||
android:viewportWidth="48" | ||
android:viewportHeight="48"> | ||
<path | ||
android:fillColor="@color/locationCrosshairs" | ||
android:pathData="M18,23v2h-18v-2h18z m12,0h18v2h-18v-2z m-7,-5v-18h2v18h-2z m0,12h2v18h-2v-18z" /> | ||
</vector> |
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,8 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="36dp" | ||
android:height="36dp" | ||
android:viewportWidth="36" | ||
android:viewportHeight="36"> | ||
<path android:fillColor="@color/mapPointCircle" android:pathData="M18,13c-2.77,0 -5,2.24 -5,5s2.24,5 5,5s5,-2.24 5,-5s-2.24,-5 -5,-5z"/> | ||
<path android:fillColor="@color/mapPointFill" android:pathData="M18,21.33c-1.84,0 -3.33,-1.5 -3.33,-3.33s1.5,-3.33 3.33,-3.33s3.33,1.5 3.33,3.33s-1.5,3.33 -3.33,3.33z"/> | ||
</vector> |
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