lishxi / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Not possible to use https in XYZTileSource #300

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use XYZTileSource with an urls using https to create a custom tile source
2. Set tile source into map view
3. Run program in order to try to download tiles.

What is the expected output? What do you see instead?
Get the map tiles downloaded

What version of the product are you using? On what operating system?
osmdroid v3.0.6
Android 2.2

Please provide any additional information below.

XYZTileSource tileSource = new XYZTileSource("livemapshybrid", null, 1, 19, 
256, ".png", new String[] { https://urlMapTiles },  
XYZTileSource.LIVEMAPS_TYPE_HYBRID);
mapView.setTileSource(tileSource);

As it is not possible to set parameters in HttpClient present in 
MapTileDownloader, it is not possible to use a tile source with https.

Original issue reported on code.google.com by laurentg...@gmail.com on 19 Jan 2012 at 3:04

GoogleCodeExporter commented 9 years ago
Please answer the question "What do you see instead?"

Original comment by neilboyd on 19 Jan 2012 at 5:53

GoogleCodeExporter commented 9 years ago
No connection and no map tile downloaded as HttpClient cannot be configured for 
https

Original comment by laurentg...@gmail.com on 22 Jan 2012 at 8:18

GoogleCodeExporter commented 9 years ago
I believe this is now possible with the HTTP factory implemented in Issue 432.

Original comment by kurtzm...@gmail.com on 4 Jun 2013 at 2:03