The technology for doing that was all described in the "Beginning Google 
Maps Applications" book back in 2006.

http://googlemapsbook.com/chapter7/ServerCustomTiles/

What you have to do is write a server that accepts requests for tiles 
and searches through the database for entries that are in that tile, 
then uses gd to construct the tile image.

The only differences from what's in the book are:

   The idea of storing a mini-thumbnail of the image in the database
   rather than using the same icon for every point.

   Needing to perform a database search that's a few pixels wider than
   the requested tile size.

The example doesn't actually perform any click handling, but the book 
explains that you can send click requests to the server and have it 
return infowindow content.

See also: How GLayers Work
   http://econym.org.uk/gmap/howglayerswork.htm


Even if Google does implement the GLayer("com.povo.popular") syntax on 
the client side, you'd still have to do all the tile creation and 
infowindow service on the server side. Without that syntax, the client 
side code is just a custom GTileLayerOverlay() and a GDownloadUrl() 
request for the click handling.
[The book uses a custom GMapType, because GTileLayerOverlay didn't exist 
in 2006, but the principle is exactly the same.]

The only thing you don't easily get with that technology is the cursor 
changing when it passes over a hot spot on the tile layer. It looks like 
the GLayer server might also return a list of hot spot locations, and 
the client side code compares the mouse position with the list of 
GLatLngBounds of the hot spots. The code that does it is extremely 
obscure and I can't see the details.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to