Skip to content
This repository was archived by the owner on Apr 27, 2024. It is now read-only.

Conversation

@hanchao
Copy link
Contributor

@hanchao hanchao commented Apr 3, 2014

Test Code

        MBTileSource tileSource = new MBTileSource();
        tileSource.setFile("/sdcard/mutumapapi/maptest_30c930.mbtiles");
        tileSource.open();
        MapRenderer.setBackgroundColor(0xff777777);
        map.layers().add(new TileGridLayer(map, Color.GRAY, 1.8f, 8));


        BitmapTileLayer bitmapLayer = new BitmapTileLayer(map, tileSource);
        map.layers().add(bitmapLayer);

@hjanetzek
Copy link
Member

Hi,
thanks for the patch. I think support for pre-compiled bitmap packages is a good addition - however the implementation could mature a bit before merging into master. Could you add a simple example mbtiles file for testing? I havent looked at the spec yet - I guess there are some more tile coordinate options to be supported.

I've pushed my modifcations to add_mbtiles_tilesources branch.
For formatting there is a IDEA plugin wich can use the provided eclipse-formatter.xml.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants