Comments (9)
@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.
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.
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.
@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.
@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?
from tsclustermapview.
@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.
@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.
@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.
@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)
- Annotations are not visible if removed and added back again HOT 2
- Sometimes a cluster annotation becomes a single annotation HOT 4
- Drag spontaneously cancelled after moving a short distance HOT 2
- Zooming out animation HOT 2
- Group annotations HOT 2
- Vanishing annotations HOT 5
- Cluster Annotations is not visible. HOT 2
- Show number produced by sum of custom data on clusters instead of number of pins in cluster HOT 1
- negative span value results in crash HOT 4
- Is there a way to intercept the click to does not expand the pins in the last zoom level? HOT 6
- How to select a clustered annotation programmatically? HOT 5
- Cluster use 200% of cpu HOT 7
- the map show nothing in release build, normal in debug build HOT 9
- The annotation disappear suddenly, sometimes swap to other annotation...happen often
- Added annotations at viewDidLoad, but they appear on map only if I resize it.
- Terminating app due to uncaught exception 'NSRangeException' HOT 1
- Annotation cannot get selected HOT 1
- tvOS support
- Clusterization broken in 3D view
- Example is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsclustermapview.