I was thinking there might be a super. GetTile or something, since the
previous implementation just needed to return a url and the sdk would
handle the tile retrieval. If it's complex, don't worry about it.
On Apr 9, 2014 9:52 AM, "Michael Maurizi" <notifications@github.com> wrote:

> In OpenTreeMap/src/org/azavea/map/TMSTileProvider.java:
>
> > +            inputImage = BitmapFactory.decodeStream(imageStream);
> > +        } catch (IOException e) {
> > +            Log.e(App.LOG_TAG, "Could not convert tiler results to Bitmap", e);
> > +            return null;
> > +        } finally {
> > +            if (imageStream != null) {
> > +                try {
> > +                    imageStream.close();
> > +                } catch (IOException e) { }
> > +            }
> > +        }
> > +        if (inputImage == null) {
> > +            return TileProvider.NO_TILE;
> > +        }
> > +
> > +        if (this.opacity == 255) {
>
> I can give it a shot. It's unfortunately complex to go from an InputStreamto the
> byte[] needed by Tile's constructor though. There are outside libraries
> that make it easy, like Apache Commons-IO, but I'm holding off on bringing
> in stuff like that until we build some tooling for pulling in dependencies
> from Maven
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/OpenTreeMap/OpenTreeMap-Android/pull/23/files#r11445516>
> .
>