views:

618

answers:

2

Hi guys, I'm still working on my google maps application. However clustering on the server end works but at the same time its quite slow and at times if I'm zooming out too much and playing around with the panning my browser stalls.

There is only so much that I can choose to hide using clusters.

EDIT

I'm thinking of using mapplets in this case but have no idea how to use them - rather I have no idea what they are exactly. I'm trying to build something on the lines of what you see at this link. Loads and loads of markers on the same page and the page isn't dying out. Any ideas guys?

A: 

Have you tried pre-clustering your markers?

UPDATE:

If you want to make a custom tile overlay, here is Google's documentation on the subject. There's another example here, but I don't know how they create the tiles on the server side. It will probably be a little tricky.

If you can figure out how to make the tiles, that would be a great solution. Otherwise, I think that server-side clustering is much simpler. If you could post a link to your page, we could see what's slowing it down.

Chris B
Actually I'm trying to build up something similar to the wikipedia data layer which can be applied to google maps i.e. mapplets
Ali
You could implement mapplets with clustering.
Chris B
A: 

Well you could try using MarkerClusterer (examples).

For more information read my answer on similar question where I suggested another plugin from that library which also happens to have clustering support.


Also to answer your question why that map is not "dying":

It's not dying because everything you see is actually an image. I'm not sure if I can hotlink it from here but try this link. Since it's just an overlay image, you don't have to draw markers. Clicks on the image are processed by JavaScript and a pop-up is drawn if you click on the image where a marker should be located.

Maiku Mori
I've tried marker clusterer and frankly a client based clustering solution is not feasible - we're talking about thousand of markers here. The overlay image idea seems to be a good one - how do I implement what wikipedia have done? I'm assuming the image is generated by code - how do I implement that!
Ali