It’s five days since Fluster2 was released and I had the chance to use it in production the first time. When working on this I realized that it was quite slow, the map didn’t work properly when using >1000 markers (changing zoom mode or dragging the map was very slow, even in Google Chrome). So I tried out some things and found a solution. This is Fluster2 0.1.1 now.
Two things changed:
-
Markers must not be added to the map, only to Fluster. Then Fluster only assigns markers to the map which have to be displayed. This speeds up the whole map (when changing zoom mode or dragging the map) and makes it about 15 times faster (measured with the 200 markers example included in the download package).
-
Fluster only calculates markers and clusters which are in the viewport of the map. When increasing zoom mode, fewer markers/clusters have to be processed. When dragging the map, calculation of the needed markers is triggered.
Download
From now you can download Fluster2 from SourceForge.
Tags:
Clustering,
Fluster,
Google Maps
Everyone knows the pain of displaying a lot of markers in a Google Map. For this problem there is MarkerClusterer which merges multiple markers to one cluster marker if there are a lot of markers at one place – as long as you use Google Maps v2. We used MarkerClusterer in our applications too but wanted to migrate to Google Maps v3. So we had to write our own clusterer logic or adapt MarkerClusterer to work for v3. The result is Fluster2, a new clusterer built from scratch but based on the same logic as MarkerClusterer.
Read more …
Tags:
Clustering,
Fluster,
Google Maps
The new version 0.2.0 of AmCharts-PHP adds support for bubble- and radar-Charts. They work as simple as line- and bar-charts. We hope you like it! Read more …
Tags:
AmCharts,
PHP
The second LGPL library this week is a PHP5 class to export spreadsheet data in different formats. Currently supported are CSV (Comma Separated Values) and ODS (OpenDocument Spreadsheet). While CSV exports are quite ordinary, ODS functionality is something special for your project. Read more …
Tags:
CSV,
ODS,
OpenDocument,
PHP
A few weeks ago I had the pleasure to integrate the very nice AmCharts into one of our products. After a few tests in general (my colleague Stefan wrote about it – German) we decided to build a PHP5 library around the AmCharts Flash objects to create and configure charts in a more convenient way. Read more …
Tags:
AmCharts,
PHP
Dem ein oder anderen Webentwickler ist sicher schon aufgefallen, dass in der heutigen Zeit nicht nur Funktionsumfang, sondern auch Präsentationsstil einer Webanwendung einiges zu deren Popularität beitragen. Eine dieser Präsentationsmöglichkeiten sind z.B. aufwändige Linien-, Balken- und Kreisdiagramme um große Mengen an Daten übersichtlicher darzustellen bzw. auch mit deren Effekten und Funktionen User anzulocken.
Nun gibt es dafür mehrere gute wie auch schlechte Möglichkeiten, beginnend mit der schlechtesten: Read more …
Tags:
AmCharts,
PHP
Die meisten Web-Entwickler haben es bereits an Ihrem eigenen Leib erfahren dürfen: Wie schwer ist es, eine Homepage – oder noch schlimmer: eine designtechnisch flexible Online-Applikation – kompatibel umzusetzen? Wer beim Stichwort “kompatibel” an Standards denkt ist leider am völlig falschen Dampfer. Zwar ist die Ausgangssituation meist die, dass man alles entsprechend der Standards umsetzt, früher oder später können diese in der Praxis jedoch zum Problem werden. Warum? Ganz einfach, weil fast kein Web-Browser diese tatsächlich unterstützt. Read more …
Tags:
Browser,
W3C,
Web-Standards
Besonders bei umfangreichen PHP – Applikationen ist es enorm wichtig, schon während der Entwicklung die Performance der Software im Hinterkopf zu behalten. Doch auch für kleinere Anwendungen kann es ganz interessant sein, wo am meisten Scriptlaufzeit verschenkt wird. Das Apache – Modul Xdebug in Kombination mit KCacheGrind ermöglichen eine effektive Analyse von Web-Anwendungen auf Basis von PHP. Read more …
Tags:
KCacheGrind,
Performance,
PHP,
Profiling,
XDebug