Comments (13)
By reference so you only need to update them in your original list.
from google-maps-ios-utils.
I assume that you were referring to updating cluster item's position? If it is the case then you can call [clusterManager cluster] again after your update(s). Remember that for good performance, perform all your updates and call [clusterManager cluster] at the end.
from google-maps-ios-utils.
But _items array is not accessible from outside so I can update the data
from google-maps-ios-utils.
I'd imagine you could hold on to the items in a separate array when you add them to the clusterManager.
from google-maps-ios-utils.
Items will passed by reference or value ?
from google-maps-ios-utils.
@chlebta Have you got any luck? Can I close the ticket?
from google-maps-ios-utils.
@mountainvat a question related to this.
Imagine that we have a huge database and all the items will be markers on the map.
Do we need to download all the information we need first and only after that update the cluster manager? This can cause a long delay before anything is being showed to the user.
Do you know if there is any other way to handle this without losing performance? E.g. updating the cluster manager every time a marker is added.
from google-maps-ios-utils.
Is the database on the mobile or on a server? If it is on a server, it is probably best to do some server side filtering. So you'd give the server your latitude ,longitude range of interest and the server will only return items within that range for example. Downloading all items to the client is not very scalable.
from google-maps-ios-utils.
Closing this issue out as stale. Please re-open if this is still an issue. Thanks!
from google-maps-ios-utils.
Hi,
I have an array of cluster item and i am updating the position of particular cluster item, but the app is getting crashed.
All i want a way is to update position of particular cluster item.
I am doing something like this:
item.position = Some coordinate
clusterManager?.cluster()
Following is the error i got when i updated the position.
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'All items should be mapped to a distance'
Can some please tell me how to do it. Really appreciate quick response because i am stuck into this.
from google-maps-ios-utils.
the same issues.
from google-maps-ios-utils.
check lat:
if lat > 85 || lat < -85 {
//don't add clusterManager.add(item)
}
it a little code make app not crash, but
I don't know why it run.
from google-maps-ios-utils.
I ran into this issue too and it was due to using invalid lat long values.
from google-maps-ios-utils.
Related Issues (20)
- Warning: Error creating LLDB target at path HOT 2
- The automated release is failing 🚨 HOT 1
- snippet-bot full scan
- 4.2.0 version not building cause of missing xframework file HOT 2
- SPM error cannot resolve it. HOT 2
- Clustering: add setter for clusterDistancePoints in the GMUNonHierarchicalDistanceBasedAlgorithm.m HOT 1
- Clustering : Cluster Markers do not initially hide their items on the map HOT 1
- 4.2.2 does not allow updating to latest GoogleMaps (8.x) HOT 6
- TipKit: when adding popover tip to some view on top of GMSMapView tip starts flickering on every map move HOT 1
- Google maps utils compiler error in new Xcode Version 15.0.1 HOT 38
- empty field MinimumOSVersion for internal FB frameworks causes failure on uploading to App Store Connect with Xcode 15.3 HOT 4
- Xcode 15.3 and App store connect issue HOT 2
- Cannot find type 'GMUWeightedLatLng' in scope HOT 2
- I want display multiple cluster images based on markers data HOT 1
- Support App Privacy Manifests HOT 4
- GoogleMaps don't compile at Mac's (is this ever getting fixed?) HOT 1
- Failed to build module 'GoogleMapsUtils Xcode HOT 2
- GMSMapViewDelegate didTapMyLocationButton no zoom HOT 1
- Failed to build module 'GoogleMapsUtils'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)', while this compiler is 'Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)'). Please select a toolchain which matches the SDK. HOT 2
- Invalid Bundle. The bundle Frameworks/GoogleMapsUtils.framework does not support the minimum OS Version specified in the Info.plist HOT 4
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 google-maps-ios-utils.