-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Mapzen Android SDK to 1.6 (#831)
* Update to Mapzen SDK 1.6 * Move from snapshot to release
- Loading branch information
1 parent
9b14676
commit dc80674
Showing
14 changed files
with
62 additions
and
268 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
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
20 changes: 11 additions & 9 deletions
20
app/src/main/kotlin/com/mapzen/erasermap/model/TileHttpHandler.kt
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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
package com.mapzen.erasermap.model | ||
|
||
import okhttp3.Callback | ||
import com.mapzen.android.graphics.MapzenMapHttpHandler | ||
import java.io.File | ||
|
||
class TileHttpHandler : TmpHttpHandler { | ||
constructor() : super() {} | ||
|
||
constructor(cacheDir: File, cacheSize: Long) : super(cacheDir, cacheSize) {} | ||
class TileHttpHandler : MapzenMapHttpHandler { | ||
override fun headersForRequest(): MutableMap<String, String> { | ||
return mutableMapOf(Http.HEADER_DNT to Http.VALUE_HEADER_DNT) | ||
} | ||
|
||
override fun onRequest(url: String, headers: Map<String, String>, callback: Callback): Boolean { | ||
val emHeaders = mutableMapOf(Http.HEADER_DNT to Http.VALUE_HEADER_DNT) | ||
emHeaders.putAll(headers) | ||
return super.onRequest(url, emHeaders, callback) | ||
override fun queryParamsForRequest(): MutableMap<String, String> { | ||
return mutableMapOf() | ||
} | ||
|
||
constructor() : super() | ||
|
||
constructor(cacheDir: File, cacheSize: Long) : super(cacheDir, cacheSize) | ||
} |
182 changes: 0 additions & 182 deletions
182
app/src/main/kotlin/com/mapzen/erasermap/model/TmpHttpHandler.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.