-
Notifications
You must be signed in to change notification settings - Fork 4
feat(samples): implement easter eggs #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dkhawk
wants to merge
14
commits into
main
Choose a base branch
from
feat/monster-tour
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0297b97
feat(samples): implement monster tour, long-press, and altitude modes
dkhawk a7fe7bd
refactor(java): use formal imports instead of fully qualified class n…
dkhawk 773f7c9
feat(sample): refactor monster data parsing and implement robust test…
dkhawk dedb4e1
fix(samples): synchronize tour with steady map state and add tour can…
dkhawk b35b0f1
feat(samples): port missing popovers and map interaction samples to Java
dkhawk 39edc94
test(mainactivity): add tests verifying all samples present in launch…
dkhawk 9697b43
feat(samples): disable auto-panning for Giant Ape popover
dkhawk b85daba
style: minor formatting and UI opacity tweaks
dkhawk fd1992f
refactor(samples): introduce Coroutine extensions for Maps 3D callbacks
dkhawk 605c105
docs(samples): add educational comments to Java markers sample
dkhawk 424c30c
refactor(samples): convert long literals to Duration inWholeMilliseconds
dkhawk 40349c3
refactor(samples): introduce CompletableFuture extensions for Java app
dkhawk 1824bb0
fix(samples): ensure map steady is awaited after camera flight comple…
dkhawk 9c0b660
docs(samples): add extensive inline comments to Java CompletableFutur…
dkhawk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
|
|
||
| ### Task: Implement Monster Tour and Long Press popup (Project: Maps3D Samples) | ||
| * **Start:** [Unknown] (Branch: main) | ||
| * **End:** $(date +"%I:%M:%S %p %Z") | ||
| * **Time Spent:** [Unknown] | ||
| * **Purpose:** The user wanted to automate the traversal of the various monster markers in the map, and add a quick-select popup menu to the random button, configuring properties like altitude mode via JSON. | ||
| * **Summary of Work:** Shifted marker definitions to a central `monsters.json` data file. Implemented an asynchronous touring sequence in both Kotlin (Coroutines) and Java (Handlers) to fly to, orbit, and display info popovers for each character. Wired up a standard `android.widget.PopupMenu` for the random button long-press. Adjusted altitude modes in JSON. | ||
| * **Status:** **[IN PROGRESS (Unmerged)]** |
This file contains hidden or 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
130 changes: 130 additions & 0 deletions
130
Maps3DSamples/ApiDemos/common/src/main/assets/monsters.json
This file contains hidden or 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,130 @@ | ||
| [ | ||
| { | ||
| "id": "alien", | ||
| "label": "Devil's Tower Alien", | ||
| "blurb": "They didn't just come to sculpt mashed potatoes.", | ||
| "drawable": "alien", | ||
| "latitude": 44.589994, | ||
| "longitude": -104.715326, | ||
| "altitude": 1508.9, | ||
| "markerLatitude": 44.59054845363309, | ||
| "markerLongitude": -104.715177415273, | ||
| "markerAltitude": 10.0, | ||
| "heading": 1.0, | ||
| "tilt": 75.0, | ||
| "range": 1635.0, | ||
| "altitudeMode": "RELATIVE_TO_MESH" | ||
| }, | ||
| { | ||
| "id": "bigfoot", | ||
| "label": "Mt. St. Helens Bigfoot", | ||
| "blurb": "Leaves some pretty big footprints, very camera shy.", | ||
| "drawable": "bigfoot", | ||
| "latitude": 46.199837, | ||
| "longitude": -122.205541, | ||
| "altitude": 2272.5, | ||
| "markerLatitude": 46.199837, | ||
| "markerLongitude": -122.205541, | ||
| "markerAltitude": 2272.5, | ||
| "heading": 318.0, | ||
| "tilt": 58.0, | ||
| "range": 6088.0, | ||
| "altitudeMode": "ABSOLUTE" | ||
| }, | ||
| { | ||
| "id": "frank", | ||
| "label": "Castle Frankenstein", | ||
| "blurb": "It's alive! Quite misunderstood, honestly.", | ||
| "drawable": "frank", | ||
| "latitude": 49.793566, | ||
| "longitude": 8.669903, | ||
| "altitude": 380.1, | ||
| "markerLatitude": 49.793570448322434, | ||
| "markerLongitude": 8.668253367313627, | ||
| "markerAltitude": 100.0, | ||
| "heading": 90.0, | ||
| "tilt": 45.0, | ||
| "range": 1246.0, | ||
| "altitudeMode": "RELATIVE_TO_MESH" | ||
| }, | ||
| { | ||
| "id": "godzilla", | ||
| "label": "Tokyo Bay Godzilla", | ||
| "blurb": "King of the Monsters. Loves a quick swim in the bay.", | ||
| "drawable": "godzilla", | ||
| "latitude": 35.5391, | ||
| "longitude": 139.8001, | ||
| "altitude": 100.0, | ||
| "markerLatitude": 35.5391, | ||
| "markerLongitude": 139.8001, | ||
| "markerAltitude": 100.0, | ||
| "heading": 0.0, | ||
| "tilt": 60.0, | ||
| "range": 3000.0, | ||
| "altitudeMode": "RELATIVE_TO_GROUND" | ||
| }, | ||
| { | ||
| "id": "mothra", | ||
| "label": "Tokyo Tower Mothra", | ||
| "blurb": "Like a butterfly, but much, much bigger. Attracted to bright lights.", | ||
| "drawable": "mothra", | ||
| "latitude": 35.658588, | ||
| "longitude": 139.745496, | ||
| "altitude": 247.9, | ||
| "markerLatitude": 35.658588, | ||
| "markerLongitude": 139.745496, | ||
| "markerAltitude": 333.0, | ||
| "heading": 270.0, | ||
| "tilt": 48.0, | ||
| "range": 810.0, | ||
| "altitudeMode": "RELATIVE_TO_GROUND" | ||
| }, | ||
| { | ||
| "id": "mummy", | ||
| "label": "Giza Mummy", | ||
| "blurb": "Woke up on the wrong side of the sarcophagus.", | ||
| "drawable": "mummy", | ||
| "latitude": 29.9792, | ||
| "longitude": 31.1342, | ||
| "altitude": 150.0, | ||
| "markerLatitude": 29.9792, | ||
| "markerLongitude": 31.1342, | ||
| "markerAltitude": 150.0, | ||
| "heading": 45.0, | ||
| "tilt": 60.0, | ||
| "range": 1500.0, | ||
| "altitudeMode": "ABSOLUTE" | ||
| }, | ||
| { | ||
| "id": "nessie", | ||
| "label": "Loch Ness Monster", | ||
| "blurb": "The original cryptid. Probably just a log, but we want to believe.", | ||
| "drawable": "nessie", | ||
| "latitude": 57.320312, | ||
| "longitude": -4.43019, | ||
| "altitude": 14.4, | ||
| "markerLatitude": 57.320312, | ||
| "markerLongitude": -4.43019, | ||
| "markerAltitude": 14.4, | ||
| "heading": 0.0, | ||
| "tilt": 45.0, | ||
| "range": 20303.0, | ||
| "altitudeMode": "ABSOLUTE" | ||
| }, | ||
| { | ||
| "id": "yeti", | ||
| "label": "Everest Yeti", | ||
| "blurb": "Abominable? More like adorable if you get to know him.", | ||
| "drawable": "yeti", | ||
| "latitude": 27.9881, | ||
| "longitude": 86.925, | ||
| "altitude": 8848.0, | ||
| "markerLatitude": 27.9881, | ||
| "markerLongitude": 86.925, | ||
| "markerAltitude": 8848.0, | ||
| "heading": 0.0, | ||
| "tilt": 46.0, | ||
| "range": 5000.0, | ||
| "altitudeMode": "ABSOLUTE" | ||
| } | ||
| ] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
Maps3DSamples/ApiDemos/common/src/main/res/drawable/pill_background.xml
This file contains hidden or 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,7 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:shape="rectangle"> | ||
| <solid android:color="@android:color/transparent" /> | ||
| <corners android:radius="24dp" /> | ||
| <stroke android:width="1dp" android:color="?attr/colorControlHighlight" /> | ||
| </shape> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / Android Lint
Hardcoded text Warning