Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

MarkerClusterer - iPhone mapview

Has any one successfully implemented MarkerClusterer using Titanium on an iPhone App? I have over 900 annotations to place, and its painfully slow to place them, and I am getting memory warnings - surprisingly its not crashing yet!

I cant imagine it would be too difficult, just wanted to know if anyone had any code examples implemented with Appcelerator?

Thank you for any help in the matter.

— asked December 7th 2010 by Ian Tearle
  • iphone
  • maps
  • mapview
  • markercluserter

2 Answers

  • Accepted Answer

    You should be able to get it to run in a webview without any problems. I use Fluster, a fork of MarkerClusterer designed for the GMaps v3 API, extensively on Giftflow, one of the web apps I have built. I have never had any problems viewing the clusters on my iPhone's Safari browser so I assume there wouldn't be problems in a Titanium app.

    Another possible avenue would be to use the image property when calling Ti.Map.createAnnotation() to create a custom marker for diferent marker densities, and then try to take the clustering logic from Marker Clusterer. I think this is a really good question though. I'm curious, Ian, what did you end up doing?


    — answered December 21st 2010 by Brandon Jackson
  • Have found an alternative route, but this would still be the preferred, if any one can help please chime in.

    — answered December 21st 2010 by Ian Tearle
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.