maposmatic/www
Thomas Petazzoni 13adf4edc5 Use the reversegeo service to find the country code
The callback that the slippy map calls when an area is selected is
modified so that it gets as argument 'bounds', which represents the
bounding box of the selected area.

Using this, we get the center of the bounding box, and using an Ajax
request, ask the reversegeo service to find the corresponding
entries. When the reply is received, we extract the country code from
the received reply.

This will be used in a later commit to pre-filter the list of
languages according to the selected geographic area.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-08-07 23:51:00 +02:00
..
locale Update Portuguese translation 2010-08-07 11:55:40 +02:00
maposmatic Correctly saving the paper size to the database 2010-08-07 21:37:15 +02:00
media Use the reversegeo service to find the country code 2010-08-07 23:51:00 +02:00
templates Implement the paper orientation selection 2010-08-07 11:58:44 +02:00
.gitignore Fix .gitignore files 2010-06-17 17:44:06 +02:00
__init__.py First import of maposmatic web service 2009-08-28 15:36:10 +02:00
manage.py Put maposmatic under AGPLv3 license 2009-08-31 19:36:21 +02:00
maposmatic.wsgi-template Tell that ocitysmap should be in the python path for maposmatic 2009-09-11 23:51:48 +02:00
settings.py Revamp logging in MapOSMatic 2010-08-07 13:16:58 +02:00
settings_local.py-template Validate the size of the bounding box with javascript. 2010-08-05 00:49:23 +02:00
urls.py Merge branch 'fixes-from-thomas' into ocitysmap2-integration 2010-08-07 12:00:17 +02:00