Git Product home page Git Product logo

Comments (9)

ashare80 avatar ashare80 commented on May 27, 2024

@zfrankz Hey thanks for the feedback. I can look into making the displacement larger or a property available to you to change the size. As you can see in https://www.dropbox.com/s/po5qiw322lc1p09/multiple2.png?dl=0 I'm trying to solve that issue but creating a circle around the original point but it's not perfect as it's not really taking into account the size of the annotationView.

Your second point might be related to #8. I have pushed some changes to the Develop branch, let me know if you're still seeing that problem with the new code.

from tsclustermapview.

zfrankz avatar zfrankz commented on May 27, 2024

I tried the new code as I commented in #11 and the overlapping is still happening (I think there aren't any changes about that thing yet). I think the second one is definitely related to #8

Thanks for the quick response!

from tsclustermapview.

riazhazan avatar riazhazan commented on May 27, 2024

Do you have any updates for this issue. Still struggling to handle this issue. https://www.dropbox.com/s/po5qiw322lc1p09/multiple2.png?dl=0
@zfrankz did you found any workaround for this issue?

from tsclustermapview.

ashare80 avatar ashare80 commented on May 27, 2024

@riazhazan What you are displaying is what is supposed to happen. Is it perfect? no.

When you have multiple annotations close enough together and they cannot separate naturally I force separation into a circle around the mutual center coordinate.

If you have any suggestions on your desired outcome I'm open to looking into making a change that improves on the current solution.

from tsclustermapview.

riazhazan avatar riazhazan commented on May 27, 2024

@ashare80 Thanks for your reply.You have done a wonderful work in this map view which works like a charm. Really amazing library. Please See the screenshot attached what my issue is. See the clusters are overlapped each other. So it looks weird and congested. Is there a way to restrict the number of annotations to show a perfect circle with no overlapping and other annotations as clustered numbers. When the user taps on one cluster the other circle which is already shown in circle can be clustered and the new circle can be created for selected cluster. Is it possible to do so?

ios simulator screen shot 06-aug-2015 9 58 09 am

from tsclustermapview.

riazhazan avatar riazhazan commented on May 27, 2024

@ashare80 I have a suggestion for this issue.If the annotation count is greater than 15 or if the count of annotations will surely overlaps each other, then can we list these users in a table like a popover. and the user can click on an annotation which is listed in popover table

from tsclustermapview.

ashare80 avatar ashare80 commented on May 27, 2024

@riazhazan Yeah I was thinking something like a delegate call that would give you the opportunity to do what you wanted with the annotations/annotationViews or default to existing outcome

Might be able to get something up in the next few days

from tsclustermapview.

ashare80 avatar ashare80 commented on May 27, 2024

@riazhazan check out the latest version going up now. Two new delegate calls. See if that helps resolve your problem.

  • (BOOL)mapView:(TSClusterMapView *)mapView shouldForceSplitClusterAnnotation:(ADClusterAnnotation *)clusterAnnotation;
  • (BOOL)mapView:(TSClusterMapView )mapView shouldRepositionAnnotations:(NSArray <ADClusterAnnotation *>)annotations toAvoidClashAtCoordinate:(CLLocationCoordinate2D)coordinate;

from tsclustermapview.

riazhazan avatar riazhazan commented on May 27, 2024

@ashare80 Wow. Thats awesome. Heaps of thanks for your kind support. Loved the way you did it. This is what i exactly needed. 💯

from tsclustermapview.

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.