Hi, * Rodrigo Avila <[email protected]> [2010-07-22 14:48:11]:
> Is possible to, when I recreate a map, retain the same job id? That's why: > > Take a look at this page: http://bit.ly/bMVN7K > (It's about mapping in areas affected by flooding events here in Brazil) > > As you can see, we have links to printable maps of affected areas. But, if i > rebuild the map (using the new "Recriar mapa" button) the URL needs to be > updated. Always. But there's a way to recreate the map (so that visitors can > always see the most updated map), but without having to update the links in > the wiki? We made the design decision to not overwrite a finished job when recreating the map. Simply because you may not be the one linking to it, and other people may depend on the files being there, or in a specific state (for example to demonstrate what has changed with a before/after). Also, there is a sense of "property" to the maps rendered on MapOSMatic. How would you feel if someone kept regenerating a map /you/ requested? That's why it's simpler, and in most cases better, in my opinion, to really create a new map, with a new ID. The direct consequence of that too is that the newly requested map ends up at the end of the queue, not at the beginning, so it is not rendered before requests that were made before. Ideally, if your objective is to provide a link to the most up-to-date map, you should direct your users to one the maps, and tell them to click the "Recreate map" button. If a recent map is available, the user will be redirected automatically; if not, a new one, more up-to-date, will be generated. But we can't make this available through a direct link, because it would mean a GET request has an effect on the database, which is wrong (think link crawlers). Regards, - Maxime -- Maxime Petazzoni <http://www.bulix.org> ``One by one, the penguins took away my sanity.'' Linux kernel and software developer at MontaVista Software
signature.asc
Description: Digital signature
