Git Product home page Git Product logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Hey Igor,

This looks serious. Which version of the library are you using?

Can you provide a more complete code to reproduce this issue?

Original comment by [email protected] on 15 Aug 2013 at 3:09

from android-maps-extensions.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
I used latest version from master branch.
I attached project with issue. It is based on demo, quick and dirty 
implementation, sorry :).

Steps to reproduce.
- start app and wait until it will be zoomed to Warsaw (1.png);
- click on Issue 29 and see markers (2.png);
- zoom out via maps "-" button (3.png);
- scroll horizontal/vertical to see missed marker (4.png);

Lets me know if you need something else.

Original comment by [email protected] on 15 Aug 2013 at 4:35

Attachments:

from android-maps-extensions.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Great. Thanks. I'll have a look into it.

Original comment by [email protected] on 15 Aug 2013 at 4:36

from android-maps-extensions.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Got it reproduced. Clusters were not refreshed when using 
addMarkersDynamically, when they were not initially not on screen and they 
didn't join after zoom out.

For a quick fix go to GridClusteringStrategy.joinClusters and replace

            if (clusterList.size() == 1) {
                ClusterMarker cluster = clusterList.get(0);
                newClusters.put(key, cluster);
            } else {

with

            if (clusterList.size() == 1) {
                ClusterMarker cluster = clusterList.get(0);
                newClusters.put(key, cluster);
                if (!addMarkersDynamically || isPositionInVisibleClusters(clusterList.get(0).getMarkersInternal().get(0).getPosition())) {
                    refresh(cluster);
                }
            } else {

Similar code will be popped in for the next release.

Have to check the same for zoom in and no-split clusters.

Thanks for the report.

Original comment by [email protected] on 15 Aug 2013 at 7:17

  • Changed state: Accepted

from android-maps-extensions.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Thanks for quick fix.

Original comment by [email protected] on 16 Aug 2013 at 8:07

from android-maps-extensions.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
http://code.google.com/p/android-maps-extensions/source/detail?r=30198f716aadc6f
759186426def7f10eda7c748c&name=develop

Original comment by [email protected] on 17 Aug 2013 at 9:14

  • Changed state: FixedNotReleased

from android-maps-extensions.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024

Original comment by [email protected] on 23 Aug 2013 at 10:33

  • Changed state: Fixed

from android-maps-extensions.

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.