Skip to content
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

Offline map support integration #1502

Merged
merged 9 commits into from
Jun 24, 2015
Merged

Offline map support integration #1502

merged 9 commits into from
Jun 24, 2015

Conversation

m4gr3d
Copy link
Member

@m4gr3d m4gr3d commented Jun 23, 2015

This PR adds support for offline maps download, and integration within Tower.

In order to use this feature, a mapbox account is required to get access to the map tiles:

  • Navigate to Settings -> User Interface:
    tower_settings_user_interface

  • Navigate to the Map Provider Preferences:
    tower_map_provider_pref

  • In the preferences screen, select mapbox as the tile provider.
    tower_map_tile_selection

  • Then enter a valid account's mapbox id and access token.
    tower_map_mapbox_id_pref

    tower_map_mapbox_token_pref

  • Once this setup is complete, check Enable offline map layer to activate offline map support.
    tower_map_enable_offline_mode

  • Additionally, check Add 'Download Map' to menu to add the Download Map option to the overflow menu.
    tower_map_download_menu_button

  • Click on the Download Map menu button to access the map download screen:
    tower_map_download_screen

m4gr3d added 9 commits June 6, 2015 09:59
…ng preference key values from it can take at least 10,000+ ns vs 100+ ns for directly using the literal string value.
updated google map tile provider interface.
Updating google map fragment implementation to support multiple tile providers.
Added support for offline map download.
…DroidPlanner/droidplanner into feature_mapbox_provider
m4gr3d added a commit that referenced this pull request Jun 24, 2015
@m4gr3d m4gr3d merged commit 6e5ef3d into develop Jun 24, 2015
@m4gr3d m4gr3d deleted the feature_mapbox_provider branch June 24, 2015 00:15
@hsteinhaus
Copy link

Very nice idea, but please add a paste button for the mapbox API token :)

@m4gr3d
Copy link
Member Author

m4gr3d commented Oct 1, 2015

@hsteinhaus since it's a input field, you can long click on it, and the paste option should come up!

@hsteinhaus
Copy link

Unfortunately not working here (Android 4.4.4/CM11 on Amazon Tate). Other apps bring up the paste option on long press, as expected (e.g. Chrome), but not Tower. I tested the latest available beta.

@m4gr3d
Copy link
Member Author

m4gr3d commented Oct 1, 2015

It may be an issue with your device. The paste option comes up on mine as long as something is already copied in the clipboard.

screenshot_2015-10-01-15-55-23

@smocksam
Copy link

Can you post a pic of on the map box site showing what needs to be copied there?

And an example of how it looks plugged into the app?

There is an api and a token that I believe is specific to each map you make?

I'm not sure which info to put in and what format or should be in?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants