I need to implement tiling for upwards of 10,000 svg elements (points, circles, paths, .....). Because of performance I am hesitant to render all the elements at the same time so considering to implement tiling.
However, in my situation all the data points are on plane projection. If at all I have to modify the custom tiler, what would be your recommendation to implement the same (to use plane projection instead of geo*)?
I tried integrating it with OpenLayers but failed in various ways.
Their code seems to assume too much about being in a spherical
projection where the scale for x and y are dependent on each other.
The result is that their SVG layers fail to show up because they use
their own code for establishing the resolution. When I saw polymaps
and d3 come along, I was excited to give it a try, but I'm still
working through lots of hello world examples on bl.ocks.org.
I suspect some of the polymaps tiling code could be ripped out and
added to d3 in order to do this kind of thing fairly easily in
addition to adding some sort of plane projection. It sounds like one
of the things to watch out for is the need to track the origin
correctly in order to provide an API to setCenter/getCenter and panTo.
I think that's the basic way to go forward, but I still don't have a
good enough understanding to hack it together. I had someone's hex
example converted into drawing something like a tile and had planned
on attempting to add some projection support, however it may be easier
to start with the tiling code from polymaps?
-bewest
On Tue, Sep 27, 2011 at 9:13 PM, Satish Krishnaraj <sati...@gmail.com> wrote:
Here are my attempts with OpenLayers and some other things:
https://github.com/bewest/diabetes/tree/master/src/mock
python simple.py # starts a simple server that generates tiles for
openlayers. The tiler uses matplotlib to print all arguments onto the
tile.
I thought perhaps eventually using a single sprite as backgrounds for
various pieces of chart anatomy might be more efficient, but d3 seems
more than capable of generating all the components of the chart in the
browser.
Anyway, https://github.com/bewest/diabetes/blob/master/src/mock/templates/openlayers.html
attempts hi-jacking OpenLayers projection and rendering just enough to
plot a time series that pan/zooms only within the restricted range.
I'm hoping to implement a much cleaner solution in d3.
-bewest
-bewest
On Tue, Sep 27, 2011 at 9:13 PM, Satish Krishnaraj <sati...@gmail.com> wrote: