Comments (8)
Ill take a look asap
from cluster.
Try the latest commit from the master branch. I fixed a threading bug.
from cluster.
I did a pod update but my project is still using Cluster 1.0.7? Is this the right version? I also can't see any recent commit messages on the master branch in git. The crash still occurs, so maybe I can't see the latest version?
from cluster.
pod 'Cluster', :git => 'https://github.com/efremidze/Cluster.git'
from cluster.
I'm still getting the crash even though I updated to the latest version. I'm retrieving house status values in a url task and then refreshing the page. Would that cause a crash?
func getHomeStatus() -> Void {
let todoEndpoint = "https://lxxxxx/status.php"
guard let url = URL(string: todoEndpoint) else {
print("Error: cannot create URL")
return
}
let urlRequest = URLRequest(url: url)
// set up the session
let config = URLSessionConfiguration.default
let session = URLSession(configuration: config)
// make the request
let task = session.dataTask(with: urlRequest) {
(data, response, error) in
// check for any errors
guard error == nil else {
print("error calling GET on /todos/1")
return
}
// make sure we got data
guard let responseData = data else {
print("Error: did not receive data")
return
}
// parse the result as JSON, since that's what the API provides
let string1 = String(data: responseData, encoding: String.Encoding.utf8) ?? "Data could not be printed"
let temp = self.convertToDictionary(text: string1) as! [String : String]
if (temp != self.addressStatus){
self.addressStatus = temp
let annotations = self.mapView.annotations
DispatchQueue.main.async {
self.mapView.removeAnnotations(annotations)
self.mapView.addAnnotations(annotations)
self.mapView.reloadInputViews()
}
}
}
task.resume()
}
from cluster.
what is mapView.reloadInputViews()
?
from cluster.
It reloads the Map Kit View, however I think I found the problem. I have this function:
override func viewWillAppear(_ animated: Bool) {
self.mapView.showAnnotations(self.clusterManager.annotations, animated: true)
}
Which I'm using to rezoom the map every time the user navigates back to the view. I've removed the need of this function from the code and I no longer get the index out of bounds error.
from cluster.
So the problem is solved?
from cluster.
Related Issues (20)
- Still support Swift 3? HOT 1
- Customize the distance from contested location HOT 1
- User location (i.e. blue dot) not displaying despite storyboard setting checked
- clustering groups changes frequently HOT 5
- Adding a SwiftUI Example HOT 4
- Crashlytics report - NSOperationQueue 0x1c482b240 (QOS: UNSPECIFIED) HOT 8
- Swift Compile Error HOT 1
- Code from example doesn't work
- custom pin image not showing in iOS < 13.0, It showing red default pin image. HOT 1
- Cluster start after appropriate zoom level. Like Zoom Level is 5 Then Cluster After Zoom It's Level 7 Then Show Pin.
- dyld: Library not loaded: @rpath/Cluster.framework/Cluster
- Flyover map type bug.
- More then 8000+ annotation at that time app stuck
- Background thread issue leading to a crash HOT 4
- Total number of annotations on cluster does not match the number of annotations I added to the manager HOT 4
- User Location does not show HOT 1
- Quick Question Regarding 'IPHONEOS_DEPLOYMENT_TARGET'
- how can i add multiple difference cluster? HOT 5
- Cannot click on annotations
- Is it possible for clusters to have sub clusters?
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 cluster.