added tile support for bing, ovi and yandex maps...tileManager should now manage all iitc supported tiles

This commit is contained in:
Philipp Schaefer 2013-12-21 17:59:50 +01:00
parent 2e4b670bb3
commit 8f5072dda5

View File

@ -286,7 +286,12 @@ public class IITC_WebViewClient extends WebViewClient {
public WebResourceResponse shouldInterceptRequest(final WebView view,
String url) {
// if any tiles are requested, handle it with IITC_TileManager
if (url.matches(".*tile.*jpg") || url.matches(".*tile.*png") || url.matches(".*mts.*googleapis.*smartmaps")) {
if (url.matches(".*tile.*jpg.*") // mapquest tiles | ovi tiles
|| url.matches(".*tile.*png.*") // cloudmade tiles
|| url.matches(".*mts.*googleapis.*smartmaps") // google tiles
|| url.matches(".*tile.*jpeg.*") // bing tiles
|| url.matches(".*maps.*yandex.*tiles.*") // yandex maps
) {
try {
return mTileManager.getTile(url);
} catch (Exception e) {