Open jones139 opened 12 years ago
I think the options are:
I think the options for scalability using our current hardware are 2 (mapnik metawriters) or 4 (mysql database on web server). I would quite like to get the mysql version working, but the mapnik route will be the easiest. What do you think?
I am minded to have a go at mapnik metawriters (http://sotm-eu.org/slides/58_HermannKraus_vortrag.pdf). I could make a set of transparent tiles with just small icons for the BrewMap features, and json files corresponding to each map tile. Then it is just a matter of getting the javascript side working. Will give that a bit of thought tomorrow evening.
Actually, I have been thinking some more - we do not actually need raster tiles produced by mapnik, so an Option 5 would be to use TileCache (http://tilecache.org) with a new backend - rather than a module that calls mapnik to produce a png of a particular area, it could query the database and produce a json file for a particular area - the json files would then be cached so they are quick to access next time. Still need the same client code to download the json each time a tile is downloaded and add the data to the map.
The current approach of extracting all of the data into a single file is ok for the UK drinks industry, but will not scale well to either more dense points of interest, or a larger area.
The client should be able to request the features for a specific area as the map is panned and zoomed.
There are a few ways this could be done - will start to list them later.....