Git Product home page Git Product logo

Comments (3)

moagrius avatar moagrius commented on August 22, 2024

Yes, that method (decode) is where the bitmap is retrieved. This happens in a background thread in an AyncTask (https://github.com/moagrius/MapView/blob/master/src/com/qozix/mapview/tiles/TileManager.java#L261), which is published to the UI thread when complete, so in theory you should be able to run the http request in the decode method without any other updates. I'd be very interested to hear how it turns out, and see a sample in action, if it works and you wouldn't mind posting back.

from mapview.

mohlendo avatar mohlendo commented on August 22, 2024

This commit in my fork mohlendo@9842191 shows how to load tiles from server. In that version you can provide a protocol in the file pattern like

mapView.addZoomLevel(1024, 1024, "http://localhost:8080/tiles/256/0/%col%-%row%.png", 256, 256);

and the MapView loads them over http. If you provide no protocol, it loads the files as assets. Now it would be possible to add more protocol implementations like ftp etc...

Should I create a pull request in order to integrate that?

from mapview.

mohlendo avatar mohlendo commented on August 22, 2024

If have created a pull request now. So we can close this here and discuss the pull request.

from mapview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.