-
Notifications
You must be signed in to change notification settings - Fork 24
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
Upgrade Mapzen Android SDK #822
Conversation
Checking this today. |
I'll also give this a whirl. Gonna toss this on a shiny new S8. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. To me testing on s7edge, network requests were a bit slow, when I was playing around. But it could be choppy internet connection also.
@@ -116,7 +126,7 @@ public AndroidModule(EraserMapApplication application) { | |||
|
|||
@Override public Map<String, String> queryParamsForRequest() { | |||
Map<String, String> params = new HashMap<>(); | |||
params.put(ApiKeyConstants.API_KEY, apiKeys.getApiKey()); | |||
params.put(Http.PARAM_API_KEY, apiKeys.getApiKey()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe requires more changes (than we want with EM), but probably we should use sceneUpdate with sceneLoad for consistency with SDK usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for interaction with Pelias so we need to append the api key. When mapzen/android#412 merges, we can use the new MapzenSearchHttpRequestHandler
to append only the DNT header (the api key will be handled by the SDK)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh, yes make sense. 👍
@tallytalwar I created this SDK issue to investigate tile request speed: mapzen/android#413 |
Overview
Upgrades EM to the latest release of the Mapzen Android SDK (1.4.0)
Proposed Changes
TileHttpHandler
superclassTmpHttpHandler
to allow for customizing headers in tile requests. This class will be removed andTileHttpHandler
will be updated to inherit from Tangram class when dependent work is completed (Allow customization of request headers in HttpHandler #821)Closes #816