Well done Rob, tiles look very nice and smooth!
You may be interested in the JavaScript tile manager library I'm developing
atm. It already supports event handling (click and mousemove implemented;
mousedown, mouseup, dblclick, mouseover and mouseout are on the way) on
individual objects (circles, rectangles, squares and polygons implemented;
polylines are on the way) drawn server-side on the custom tiles. My library
exposes an API familiar to users of the standard Google Maps API. For
example:
var gm = google.maps;
...
var mgr = new TileMarkerManager(map);
var polypoints = [new gm.Point(20,10), new gm.Point(30,20),new
gm.Point(20,50), new gm.Point(10,40),new gm.Point(20,10)];
// polygon tile marker needs zoom and points
var polygonMarker = new PolyTileMarker(0, polypoints);
// circle tile marker needs zoom, radius and center point
var circleMarker = new CircleTileMarker(0, 20, gm.Point(100,100));
mgr.addMarkers([polygonMarker, circleMarker]);
// now add some listeners
// individual click listener for polygon marker
mgr.bind(polygonMarker, 'click', new function(point) {...});
// individual mouseover listener for circle marker
mgr.bind(circleMarker, 'mouseover', new function(point) {...});
// generic click listener that receives marker clicked as its first argument
mgr.bind('click', new function(marker, point) {...});
TileMarker objects are just container objects (no images or dom elements),
so performance is not a problem comparing with google.maps.Marker objects.
Also TileMarkerManager has some smarts in it to work fast with lots of
markers on all zoom levels.
Let me know if you are interested to be an early adopter. :-)
Vasily
2009/5/19 Rob Scriva <[email protected]>
>
> http://test.rovingrob.com/maps/
>
> That's SVG -> PNG tiles generated in realtime. Don't hammer it too
> much please :) I haven't optimised it at all. It's pretty clunky, but
> all I was focused on was creating tiles, nothing more.
>
> There's something wrong with Imagemagick's convert on my server. It
> generates slightly different tiles to that on my local machine. So
> there are a few black tiles around. I'm still investigating it.
>
> On May 15, 1:50 pm, Vasily Ivanov <[email protected]> wrote:
> > Rob,
> >
> > I'm from Australia too, Melbourne. ;-)
> >
> > Just to get things clear I do not generate all tiles on all zoom levels,
> > only those that actually have some data on them (that's pretty easy to
> > identify before tile generation fires up). The good thing is that amount
> of
> > data I have allows me to pregenerate all tiles and then serve them as a
> > static content.
> >
> > Good luck!
> >
> > Vasily
> >
> > 2009/5/15 Rob Scriva <[email protected]>
> >
> >
> >
> > > Well it's not hard, it's just that you're generating very large
> > > volumes of tiles. Once you can generate one tile, you can easily
> > > generate n tiles. Storing them somewhere and serving them up is the
> > > tricky bit ;)
> >
> > > That's why I i'm going with this (which isn't fully realised yet):
> > > - Generate tile as requested
> > > - Cache that tile as a file, setting a flag that tells me it's been
> > > generated
> > > - Next time that tile is requested, serve it up directly without
> > > having to process again, which should be fast.
> > > - If I need to regenerate any tiles, I just set the db flag back and
> > > it will automagically do the rest :)
> >
> > > It will be slow the first time someone hits a tile, but from then on
> > > it should be fast.
> >
> > > I'm generating for Australia, so for certain areas, nobody is
> > > generally going to look at some of those areas. Middle of Australia,
> > > not going to happen. Plus I'm only going to allow zooms 10-17. For
> > > what I'm doing it isn't going to be a big thing. Plus I'm going to
> > > limit it to a certain region of Australia. The data I'm trying to
> > > convey is only available for a certain region at the moment... which
> > > makes things a little easier.
> >
> > > On May 15, 1:28 pm, "Maps.Huge.Info (Google Maps API Guru)"
> > > <[email protected]> wrote:
> > > > Where generating tiles gets tricky is when you do it for a very large
> > > > region, say the entire US from zoom 5 to 17. That is a different can
> > > > of worms altogether.
> >
> > > > -John Coryat
> >
> > > >http://maps.huge.info
> >
> > > >http://www.usnaviguide.com
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---