Giter Club home page Giter Club logo

carguo / lbsmap Goto Github PK

View Code? Open in Web Editor NEW
317.0 19.0 102.0 14.9 MB

利用百度地图快速实现支付宝的“到位”功能。基于LBS精确获取地理位置的周边数据,地图动态显示网络图标 支持多点聚合与分离,点击图标动态放大选中效果,移动、放大、缩小地图后重新更新数据,聚合图标点击动画展开,根据实际距离调整地图层级为屏幕大小 ,分页刷新,简书:

Home Page: http://www.jianshu.com/p/2479719af18c

Java 99.92% HTML 0.08%
map baidu lbs android

lbsmap's Issues

问题请教

请问数据的聚合是怎么实现的,基于地图还是自己代码(没有看您的源码呢)

请问下点聚合完成的回调是哪个?或者说在哪个方法中表示点聚合完成了?

private class ClusterTask extends AsyncTask<Float, Void, Set<? extends Cluster<T>>> {
    @Override
    protected Set<? extends Cluster<T>> doInBackground(Float... zoom) {
        mAlgorithmLock.readLock().lock();
        try {
            return mAlgorithm.getClusters(zoom[0]);
        } finally {
            mAlgorithmLock.readLock().unlock();
        }
    }

    @Override
    protected void onPostExecute(Set<? extends Cluster<T>> clusters) {
        mRenderer.onClustersChanged(clusters);
        if(listener!=null){//我在这里自定义回调,但是获取聚合点个数为0
            listener.onClustersChanged();
        }
    }
}

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.