MarkerClusterer & Google Maps API v3

147 views
Skip to first unread message

Solo

unread,
Jul 6, 2009, 12:18:49 PM7/6/09
to Google Maps JavaScript API v3
Do anybody knows about plans to create MarkerClusterer version for
Google Maps API v3?

Björn Brala

unread,
Jul 6, 2009, 2:24:14 PM7/6/09
to google-map...@googlegroups.com
Im currently working on it, but it still has some bugs and im a bit short on time. It will be ported tho.

2009/7/6 Solo <sol...@rogers.com>


Do anybody knows about plans to create MarkerClusterer version for
Google Maps API v3?




--
Bjorn Brala
----------------
www.GeoStart.nl/english/ - Google maps - Swis Webdesign
twitter.com/bbrala

Solo

unread,
Jul 6, 2009, 3:41:51 PM7/6/09
to Google Maps JavaScript API v3
Great news!
Looking forward for it!

Thanks Björn!


On Jul 6, 2:24 pm, Björn Brala <bbr...@gmail.com> wrote:
> Im currently working on it, but it still has some bugs and im a bit short on
> time. It will be ported tho.
>
> 2009/7/6 Solo <sol...@rogers.com>
>
>
>
> > Do anybody knows about plans to create MarkerClusterer version for
> > Google Maps API v3?
>
> --
> Bjorn Brala
> ----------------www.GeoStart.nl/english/- Google maps - Swis Webdesign
> twitter.com/bbrala

Sleepyhead

unread,
Jul 8, 2009, 12:17:17 PM7/8/09
to Google Maps JavaScript API v3
Great. I just ported my application to version 3. Was planning to
implement MarkerClusterer later but at the moment I have to postpone
it due lack of v3 support.

Cheers,
Espen

On Jul 6, 8:24 pm, Björn Brala <bbr...@gmail.com> wrote:
> Im currently working on it, but it still has some bugs and im a bit short on
> time. It will be ported tho.
>
> 2009/7/6 Solo <sol...@rogers.com>
>
>
>
> > Do anybody knows about plans to create MarkerClusterer version for
> > Google Maps API v3?
>
> --
> Bjorn Brala
> ----------------www.GeoStart.nl/english/- Google maps - Swis Webdesign
> twitter.com/bbrala

MRoderick

unread,
Aug 14, 2009, 2:43:21 PM8/14/09
to Google Maps JavaScript API v3
Any updates on how porting is going?

Is there anything we can do to help complete it?

/Morgan

On Jul 6, 8:24 pm, Björn Brala <bbr...@gmail.com> wrote:

Esa

unread,
Aug 14, 2009, 4:01:32 PM8/14/09
to Google Maps JavaScript API v3


On Aug 14, 9:43 pm, MRoderick <roderick.mor...@gmail.com> wrote:
> Any updates on how porting is going?
>
> Is there anything we can do to help complete it?

This is just my assumption. I haven't discussed with Björn but I think
he would like people starring the feature request concerning LatLng-to-
pixel method.

http://code.google.com/p/gmaps-api-issues/issues/detail?id=1523

Andrew McNulty

unread,
Aug 15, 2009, 3:04:24 AM8/15/09
to Google Maps JavaScript API v3
Hi, yes I'd also like to understand when marker clusterer will be
ready. Really need it! Thanks.

Nianwei

unread,
Aug 15, 2009, 7:47:15 AM8/15/09
to Google Maps JavaScript API v3
Björn:
Why don't you check the code into SVN, maybe other folks can help out.

bratliff

unread,
Aug 15, 2009, 8:16:07 AM8/15/09
to Google Maps JavaScript API v3
The file:

www.polyarc.us/adjust.js

contains conversion functions.

var offset=268435456;
var radius=offset/Math.PI;

function LToX(x)
{
return Math.round(offset+radius*x*Math.PI/180);
}

function LToY(y)
{
return Math.round(offset-radius*Math.log((1+Math.sin(y*Math.PI/180))/
(1-Math.sin(y*Math.PI/180)))/2);
}

function XToL(x)
{
return ((Math.round(x)-offset)/radius)*180/Math.PI;
}

function YToL(y)
{
return (Math.PI/2-2*Math.atan(Math.exp((Math.round(y)-offset)/
radius)))*180/Math.PI;
}

For a specific zoom level, you can shift the results of LToX & LToY by
(21-z).

xPixel = LToX(lng)>>(21-z);
yPixel = LToY(lat)>>(21-z);

The absolute pixel postions can be converted to relative pixel
positions with fixed X & Y offsets without repeated use of
"fromLatLngToDivPixel" which requires a new LatLng object for each
call. Just do it once for a known position like the center of the
map. The difference between absolute position & relative position
will not change unless the "offset" changes which will trigger another
event.

Björn Brala

unread,
Sep 1, 2009, 12:02:51 PM9/1/09
to google-map...@googlegroups.com
I just came back from vacation.

It has been checked in before my vacation, also, please star the issue earlier in this thread!

2009/8/15 bratliff <brat...@umich.edu>



--
Bjorn Brala
----------------
www.GeoStart.nl/english/ - Google maps - Swis Webdesign
www.twitter.com/bbrala

Gary Rowe

unread,
Oct 14, 2009, 11:15:34 AM10/14/09
to Google Maps JavaScript API v3
Has there been any progress with the MarkerClusterer for V3?

If not, then I'd be happy to take a look at getting it done and into
SVN. Is there any source code (incomplete or buggy is fine so long as
there are some comments/todos) that anyone can offer in this
direction?

Cheers,

Gary

websiteman

unread,
Nov 29, 2009, 4:08:31 PM11/29/09
to Google Maps JavaScript API v3
Is there still some development and can this be shared? We would love
to help develop it further.

Huan Erdao

unread,
Dec 4, 2009, 2:15:30 AM12/4/09
to Google Maps JavaScript API v3
Ive already shared to websiteman via twitter,

I've made some of it working for my app.
it does not provide rich api as markerclusterer for v2, but if you
want to hack on it,
this is what I did.

http://code.google.com/p/android-playground-erdao/source/browse/#svn/trunk/markerclusterer_for_v3_api

hope this ifo help.

Earthware

unread,
Dec 11, 2009, 11:50:13 AM12/11/09
to Google Maps JavaScript API v3
Has any one ported the ability to keep an marker as a normal marker
when there is only one marker in a cluster?

On Dec 4, 7:15 am, Huan Erdao <huan.er...@gmail.com> wrote:
> Ive already shared to websiteman via twitter,
>
> I've made some of it working for my app.
> it does not provide rich api asmarkerclustererfor v2, but if you
> want to hack on it,
> this is what I did.
>
> http://code.google.com/p/android-playground-erdao/source/browse/#svn/...
>
> hope this ifo help.

Pascal

unread,
Jan 15, 2010, 7:33:57 AM1/15/10
to Google Maps JavaScript API v3
I just discovered the Fluster project, which does the same job as
MarkerClusterer but for v3: http://sourceforge.net/projects/fluster/

Did anyone try ?

Reply all
Reply to author
Forward
0 new messages