Wykres commitów

746 Commity (6cd372394b4b395b59d5885c860e6bd87308e7bf)

Autor SHA1 Wiadomość Data
Thomas Petazzoni 1e6aa4865d nominatim: revert 8850a2606b
In fact, the MapQuest service returns strange results that don't match
the osmid we have in our database, so most results are
unusable. Switch back to the original Nominatim service.

The original is _always_ better than the copy.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-31 00:16:25 +02:00
Gael UTARD 071f3c1272 Disable piwik statistics in debug mode
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-03-30 18:21:59 +02:00
Gael UTARD 86ef35b238 Fix the wizard for the multipage layout
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-03-30 16:15:14 +02:00
Thomas Petazzoni 8850a2606b nominatim: switch to the MapQuest service by default
The MapQuest service is likely to be faster to reply, and to have a
better uptime.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-30 16:13:58 +02:00
Thomas Petazzoni 5e88849580 website: add donation button and page
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-30 16:10:19 +02:00
Gael UTARD 2714bbc42a Create map wizard: enter key goes to next step
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-03-30 10:30:01 +02:00
David MENTRE a81b8accfd Add Sylvain into About page
Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-03-30 10:14:10 +02:00
Gael UTARD d490e0b9c0 Remove the domain part from RENDERING_RESULT_URL
[Thomas: added comment after suggestion from Maxime]
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-03-30 10:11:22 +02:00
Thomas Petazzoni 2d78b953be nominatim: do not close the database cursor multiple times
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-26 17:20:16 +02:00
Thomas Petazzoni 8e1a2fa159 Now really add the gisdb module
Needed for the previous commit. oops.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-25 22:16:04 +02:00
Thomas Petazzoni 2c0ac29aa3 Show MapOSMatic GIS database lag with the official OSM database
This commit implements a new item on the right of the MapOSMatic
website, which gives users the current time delta between our GIS
database and the official OSM database.

In order to implement this, we created a small gisdb.py module which
factorizes the work of connecting to the GIS database, now used by
both the Nominatim code and our new code that fetches the last update
of the GIS database through the maposmatic_admin table.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-25 22:13:21 +02:00
Étienne Loks 0f9a2ee92b Hide the "next" arrow while papersize list is loading. 2012-03-25 17:55:36 +02:00
Thomas Petazzoni 6ca7b367eb maposmatic/nominatim: fix Nominatim handling of next results
Contrary to what we initially thought, there is no way to know if
Nominatim has further results or not. Even if the first results
returned by Nominatim are limited to 5 results (i.e less than the
maximum number of results Nominatim can return on a single page), it
does not mean that Nominatim has no further results.

So, we just assume that Nominatim may have further results.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-25 16:47:22 +02:00
Thomas Petazzoni 39c4bbd957 maposmatic/newmap: implement message when no admin boundaries are available
Nominatim returns some search results that are not appropriate for
MaOSMatic because they do not have an administrative boundary. We show
those results so that users aren't confused, but we also display a
message explaining why those results can't be used. This commit
implements this message.

Instead of putting the message in the Javascript, which would require
interfacing the Javascript code with the Django translation/locale
system, the message is stored in an hidden <span> element in the HTML
code (and is therefore translated like all the rest of the HTML text
by the Django translation infrastructure). This message is copied by
the Javascript code at the right place when needed. We were already
doing the same thing for the #noresultsinfo message.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-25 16:17:36 +02:00
Thomas Petazzoni 033f4ad95a maposmatic/newmap: show a nice loading icon in the administrative city input box
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-25 15:59:19 +02:00
Thomas Petazzoni 4fed5f9f86 maposmatic/newmap.js: fix call do doQuery() function
The doQuery() Javascript function takes as argument the list of places
to excludes from the list (necessary to implement and next and
previous buttons), but we were not calling it with this argument when
the user was typing text in the input box.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-25 15:57:04 +02:00
David MENTRE c8875b1b32 Cosmetic fix: use bigger font size for navigation arrows
* Also use relative instead of absolute font size to avoid side effects
  with user preferences.
2012-03-25 11:34:00 +02:00
David MENTRE a8fded30a1 Cosmetic fix: Use an arrow instead of french quote to navigate in New map area
* Also update CSS style to use bold font, as for "next" arrow.
2012-03-25 11:33:55 +02:00
Thomas Petazzoni fe60bd58b7 maposmatic/config: make the GIS database port configurable
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-25 11:31:59 +02:00
David MENTRE f3e0bce5b5 Only display thumbnails if job is correctly rendered
* This bug occurs with Django 1.3.
2012-03-24 18:26:19 +01:00
Maxime Petazzoni baeda2d815 Don't log 'log restarted' everytime settings are read
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-02-19 17:32:49 -08:00
Maxime Petazzoni 0b8c5a531a Fix menu tabs rendering
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-02-19 16:38:21 -08:00
Maxime Petazzoni c816ad0371 Correct Git ignore patterns and ignore local sqlite database
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-02-19 16:38:21 -08:00
Thomas Petazzoni af9050f10b Language sorting change
On the website, the language selector dropdown list was ordered in a
more or less random way, depending on how languages were listed in the
MAP_LANGUAGES array of the settings.py file. This had the unfortunate
effect of proposing a language which is not necessarily the most
common language for the country in which the city to be rendered
is. For example, for all cities located in France, the language
proposed was Catalan (because ca_FR is before fr_FR in the
alphabetically-sorted list of locales).

Therefore, this commit does two things to solve this problem:

 * The MAP_LANGUAGES array in settings.py is now statically sorted by
   country rather by language, and then the different languages of a
   given country must be manually sorted (by the developer who adds
   them) from the most widely used language in the country to the
   least widely used language.

 * The Javascript code is modified so that the order of the languages
   in MAP_LANGUAGES is preserved. For this, a new jQuery function
   called reverse() has been added.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-02-19 16:02:18 -08:00
David Decotigny 4c456b0830 Updated instructions
This is after I tried to follow them to install a new instance on
Lucid.

Signed-off-by: David Decotigny <d2@maposmatic.org>
2012-02-18 10:27:04 -08:00
Maxime Petazzoni 010a8e9bd6 Make indonesian language available
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2011-12-23 22:26:55 -08:00
Maxime Petazzoni 2cd1a3f7aa Added Indonesian translation
Indonesian translation contributed by Jeff Haack <jeff.haack@gmail.com>.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2011-12-23 22:21:13 -08:00
Maxime Petazzoni 7466cd8c79 Fix nominatim result handling for results without way_area
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2011-10-31 20:14:51 -07:00
Rodrigo de Avila 674dc78ced Update Portuguse translation
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-12-28 10:42:57 -08:00
malenki 0d2351e68b Update german translation maposmatic 2010-12-28 10:42:12 -08:00
Maxime Petazzoni 8a3bb1151b Fix map creation steps numbering
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-12-28 10:29:30 -08:00
Maxime Petazzoni f6d3d7a291 Javascript IE compatibility fix
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-12-20 13:49:03 -08:00
Maxime Petazzoni dd69e2e127 Prevent recreating maps that can't be recreated because of missing data
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-12-10 12:34:40 -08:00
Maxime Petazzoni b416e7a62b Prevent recreating maps that can't be recreated because of missing data
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-12-10 12:34:04 -08:00
Maxime Petazzoni 0498e53f47 Handle old jobs in recreate task (fixes #31175)
Very old jobs rendered by administrative boundary didn't store the
corresponding OSM ID, so we can't easily find them back to see if a
rendering already exists when recreating a map. This led to weird
behavior when recreating a map where the user would get redirected to a
completely different map (the most recent map rendered by administrative
boundary).

This fixes bug #31175.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-12-10 12:23:57 -08:00
Maxime Petazzoni 71c5680c8f Handle old jobs in recreate task (fixes #31175)
Very old jobs rendered by administrative boundary didn't store the
corresponding OSM ID, so we can't easily find them back to see if a
rendering already exists when recreating a map. This led to weird
behavior when recreating a map where the user would get redirected to a
completely different map (the most recent map rendered by administrative
boundary).

This fixes bug #31175.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-12-10 12:22:12 -08:00
Maxime Petazzoni 5065f357af Improve error reporting, fix corresponding translations
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-11-01 12:17:48 -07:00
Maxime Petazzoni 3945af6438 Missing semi-colon in JS file
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-10-22 14:21:33 -07:00
Maxime Petazzoni a687c04794 Missing semi-colon in JS file
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-10-22 09:29:39 -07:00
Joan Montané 83f2a01751 Updated Catalan translation
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-10-22 09:28:21 -07:00
Rodrigo de Avila cb0b9f8d79 Portuguese (pt_BR) translation update
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-10-19 10:05:00 -07:00
Maxime Petazzoni 484a155808 Add white background and a light border to map thumbnails in the job list
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-10-14 08:10:01 -07:00
Maxime Petazzoni 097d4b5619 I18n update for translation
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-10-11 15:00:18 -07:00
Maxime Petazzoni 5b7bd5dc8f Merge commit 'remotes/public/d2-ocitysmap2-integration'
Conflicts:
	www/locale/ar/LC_MESSAGES/django.po
	www/locale/ca/LC_MESSAGES/django.po
	www/locale/de/LC_MESSAGES/django.po
	www/locale/es/LC_MESSAGES/django.po
	www/locale/fr/LC_MESSAGES/django.po
	www/locale/hr_HR/LC_MESSAGES/django.po
	www/locale/it/LC_MESSAGES/django.po
	www/locale/nb/LC_MESSAGES/django.po
	www/locale/nl_NL/LC_MESSAGES/django.po
	www/locale/pl/LC_MESSAGES/django.po
	www/locale/pt_BR/LC_MESSAGES/django.po
	www/locale/ru/LC_MESSAGES/django.po
	www/maposmatic/helpers.py
	www/settings.py

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-10-11 14:59:06 -07:00
Maxime Petazzoni e76ef7ac21 Show all non-processed rendering requests regardless of age
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-10-11 14:29:07 -07:00
Maxime Petazzoni b8ab30dbcc Allow the use of a separate GIS database
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-10-11 13:41:39 -07:00
David Decotigny f38def30cc Updated INSTALL and templates
Added a few instructions in INSTALL to test. Also added instructions
in the config templates to help customize the python search path.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-10-11 10:27:09 -07:00
David Decotigny c7e4c1aeee Fixed form cleaning behavior upon error
When an error occurs while processing the form's data, cleaning up the
data can result in attempting to delete non existent keys. This patch
should make the code tolerant to the half-created form data we have to
deal with in that case.

The problem happened 5 or 6 times within the last 3 weeks.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-10-11 10:26:21 -07:00
David Decotigny dfca8ecd9f Clickable status image for renderings in progress 2010-10-11 10:34:29 +02:00
David Decotigny c0218f27ce Use ocitysmap's get_geometry_from_osmid
This patch makes sure that we can work on the exact same city envelopes
in maposmatic and ocitysmap: we now share ocitysmap's
get_geometry_from_osmid(). Previously, get_bbox_from_osmid crashed if
the osm ID was present multiple times in the polygon table, and
ignored the line table. This patch fixes both, by basing itself on
ocitysmap's 093b95bcf6f54e855b781a9ccd60ce8117b35976.
2010-10-10 16:02:39 +02:00