简体   繁体   English

OSMDroid中的PNG图块

[英]PNG tiles in OSMDroid

I've got an app that uses osmdroid 4.3. 我有一个使用osmdroid 4.3的应用程序。 The tile source I use is Mapnik. 我使用的图块来源是Mapnik。 Current extension .png.tile . 当前扩展名.png.tile How can I modify my tile source to save tiles is .png ? 如何修改我的图块来源以保存图块为.png This is how I do: 这是我的方法:

new XYTileSource("Mapnik", ResourceProxy.string.offline_mode,
                minZoom,
                maxZoom, 256,
                ".png", new String[] {});

But it's still png.tile . 但是它仍然是png.tile

".tile" is added by osmdroid on purpose: it avoids filling Gallery apps with hundreds of cached tiles. osmdroid故意添加了“ .tile”:它避免了用数百个缓存的图块填充Gallery应用程序。

If you absolutely need to change that, you will have to change and recompile osmdroid. 如果您绝对需要更改它,则必须更改并重新编译osmdroid。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM