Skip to content

Instantly share code, notes, and snippets.

@anupcowkur
Created September 2, 2018 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anupcowkur/ef55d3491e3a845725cd4340d510998a to your computer and use it in GitHub Desktop.
Save anupcowkur/ef55d3491e3a845725cd4340d510998a to your computer and use it in GitHub Desktop.
Map Selector
Map Selector
Waiting for Map Ready
map ready -> Waiting for GPS
map ready with intent -> Loading Intent Location GPS Disabled
Waiting for GPS
gps on -> Loading Current Location
gps off -> Loading Default Location GPS Disabled
Loading Intent Location
location loaded -> Showing Location
location error -> Showing Error
gps off -> Loading Intent Location GPS Disabled
back button pressed -> Cancelled
Loading Intent Location GPS Disabled
location loaded -> Showing Location
location error -> Showing Error GPS Disabled
gps on -> Loading Intent Location
back button pressed -> Cancelled
Loading Current Location
location loaded -> Showing Location
location error -> Showing Error
gps off -> Loading Current Location GPS Disabled
back button pressed -> Cancelled
Loading Current Location GPS Disabled
location loaded -> Showing Location GPS Disabled
location error -> Showing Error GPS Disabled
gps on -> Loading Current Location
back button pressed -> Cancelled
Loading Default Location
location loaded -> Showing Location
location error -> Showing Error
gps off -> Loading Default Location GPS Disabled
back button pressed -> Cancelled
Loading Default Location GPS Disabled
location loaded -> Showing Location GPS Disabled
location error -> Showing Error GPS Disabled
gps on -> Loading Default Location
back button pressed -> Cancelled
Loading Other Location
location loaded -> Showing Location
location error -> Showing Error
gps off -> Loading Other Location GPS Disabled
back button pressed -> Cancelled
Loading Other Location GPS Disabled
location loaded -> Showing Location GPS Disabled
location error -> Showing Error GPS Disabled
gps on -> Loading Other Location
back button pressed -> Cancelled
Showing Location
my location clicked -> Loading Current Location
map dragged -> Loading Other Location
gps off -> Showing Location GPS Disabled
location confirmed -> Location Confirmed
back button pressed -> Cancelled
Showing Location GPS Disabled
map dragged -> Loading Other Location GPS Disabled
gps on -> Showing Location
location confirmed -> Location Confirmed
back button pressed -> Cancelled
Showing Error
my location clicked -> Loading Current Location
map dragged -> Loading Other Location
gps off -> Showing Error GPS Disabled
back button pressed -> Cancelled
Showing Error GPS Disabled
map dragged -> Loading Other Location GPS Disabled
gps on -> Showing Error
back button pressed -> Cancelled
Location Confirmed
Cancelled
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment