kurniawanrizzki / osmdroid

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

Public Transport map - Tile Source doesn't work anymore #417

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I included the public transport map in my app based on your source.
The source is http://tile.xn--pnvkarte-m4a.de/tilegen/

It has worked before, but now online an information displaying "the map is 
designed for online use."
The same thing happens when I want to display the public transport map in your 
app Osmdroid.

Is there an official replacement?
OsmAnd uses an overlay provided by http://openptmap.org/tiles.
How can I integrate that.

Best Regards
Andreas

Original issue reported on code.google.com by finestyl...@gmail.com on 4 Apr 2013 at 9:11

GoogleCodeExporter commented 8 years ago

Original comment by neilboyd on 4 Apr 2013 at 10:21

GoogleCodeExporter commented 8 years ago
Hi,

as a replacement, try this:

OCMTileSource=new XYTileSource("TransportMap",null,
                               0,17,
                               256,
                               ".png",
                               "http://a.tile2.opencyclemap.org/transport/",
                               "http://b.tile2.opencyclemap.org/transport/",
                               "http://c.tile2.opencyclemap.org/transport/");

This will show opencyclemap's transit map.

best regards,
béla

Original comment by vincze.b...@gmail.com on 6 Apr 2013 at 12:26

GoogleCodeExporter commented 8 years ago
Thank you, that work.
I found another solution. Choose Mapnik, or the one above as main map.
Openptmap.org provides a layer, exactly the same as the original one.
Put this as a tile overlay over your maP:

        this.mProvider = new MapTileProviderBasic(getApplicationContext());
        this.mCustomTileSource = new XYTileSource("Public", null, 1, 17, 256, ".png",
                "http://openptmap.org/tiles/");
        this.mProvider.setTileSource(this.mCustomTileSource);
        this.mTilesOverlay = new TilesOverlay(mProvider, this.getBaseContext());       
        this.mOsmv.getOverlays().add(this.mTilesOverlay);

Then you will get the basically the same result.
Best Regards
Andreas

Original comment by finestyl...@gmail.com on 6 Apr 2013 at 4:43

GoogleCodeExporter commented 8 years ago

Original comment by neilboyd on 10 Nov 2013 at 7:58

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1385.

Original comment by neilboyd on 10 Nov 2013 at 8:04