Hi.

I developed the map here:
http://planefinder.net/

The map uses a custom tile layer instead of markers and performed well
when tested under development, but once it went live we had problems -
the server just couldn't handle the load!
The map displays from a few hundred to over a thousand planes and
updates every 30 seconds, with more than a few users online there were
just too many requests for tiles and other data.

I'm now perfecting the update which uses custom tiles for zoom levels
0 to 3 and from zoom level 4 and higher it uses a (very) lightweight
marker.
So the custom tile layer's getTile() method either:

1) Requests a custom tile for zoom levels 0 to 3 (the server can
handle this).

or

2) Uses a 1 pixel square transparent PNG for tiles at zoom levels 4
and higher and then creates a table of planes that are within the
tile's bounds and adds those plane's markers to the map if not already
added.

A single map mousemove event listener detects which tile the mouse is
currently over and whereabouts on the tile the mouse is positioned.
The code then iterates through the table of planes on that tile and
generates mouseover and mouseout events.

Finally a map idle event listener detects which markers are added to
the map but not within the map's current bounds (plus a bit of
padding) and removes those markers from the map.

The new map loads data for all planes when it loads and then every 30
seconds - so there's no ongoing requests to the server for plane data
as tiles are loaded.
It's seems to work fine and performance is good - even with nearly a
thousand planes visible the map is still useable in most browsers (IE
as always not a great performer LOL).

I'll not post a link to the new under development map here but if
you'd like to take a look at it then get in touch and i'll send you a
link.

Martin.







On Feb 13, 12:35 am, "valium...@gmail.com" <valium...@gmail.com>
wrote:
> Thanks for the first one i will look at it right now. But what about loading
> markers as tiles loads but instead of putting pre-generated server image to
> load markers data i think it will pull 6 or more times faster data, but
> nobody uses this atleast i cant find on google

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to