Wykres commitów

65 Commity (388889cca4fbe01922a45d793b45d57a299c88a7)

Autor SHA1 Wiadomość Data
Hartmut Holzgraefe 388889cca4 finally added myself to AUTHORS and (C) headers 2019-04-13 00:35:37 +02:00
Hartmut Holzgraefe 049478e455 change "mode" field from radio button to hidden text,
and change location step tabs to simpler bootstrap4 semantics
2019-01-14 20:28:32 +00:00
Hartmut Holzgraefe 68a2c9fb65 added flags to map locale/language select box
As <option> tags can't contain HTML markup the Django Select
widget had to be replaced with a self rendered dropdown, making
the code a little bit more complex
2018-12-26 15:02:20 +00:00
Hartmut Holzgraefe 928bb751d8 switch all glyphicons to font-awesome alternatives for bootstrap 4 2018-12-16 19:54:10 +00:00
Hartmut Holzgraefe 055d4e6bbb change preview image "onchange", not just "onclick" 2018-11-25 12:24:10 +01:00
Hartmut Holzgraefe 0739743172 escape description texts to allow special characters like & 2018-10-18 22:42:10 +02:00
Hartmut Holzgraefe f6d2df955a use "fastselect" instead of "bower-select" for overlay-multiselect
and fix style in summary view
2018-10-16 01:37:58 +02:00
Hartmut Holzgraefe 4f2a18480a target name fix 2018-10-14 22:42:39 +02:00
Hartmut Holzgraefe ba10d3210f use bootstrap-select for better multi select 2018-10-09 23:47:20 +02:00
Hartmut Holzgraefe e52b1b12a4 change style and overlay selection to select boxes with option groups 2018-10-07 00:51:38 +02:00
Hartmut Holzgraefe ed0431e56a use symbolic info link instead of textual 2018-08-21 15:47:52 +00:00
Hartmut Holzgraefe 95d570abf2 added symbols for portrait and landscape formats 2018-08-13 20:10:55 +00:00
Hartmut Holzgraefe 4552370766 Merge branch 'site-osm-baustelle-django-1.11' of https://github.com/hholzgra/maposmatic into site-osm-baustelle-django-1.11 2018-05-13 22:14:07 +00:00
Hartmut Holzgraefe 6efaebd9e8 show "more info" link if details URL is present in style config 2018-05-06 21:36:58 +02:00
Hartmut Holzgraefe 48bafbf97e allow empty map titles 2018-04-21 20:38:46 +00:00
Hartmut Holzgraefe 7713e4d6e6 remember layout, stylesheet and overlay choices as default for next map 2018-03-20 07:40:39 +00:00
Hartmut Holzgraefe b011294147 add fields checked in model "clean()" verifyer
when not added the values are not available in clean()
when calling is_valid()
2018-03-20 07:13:53 +00:00
Hartmut Holzgraefe 86ecdc0f29 additional validation checks, needed for upcoming direct API 2018-03-19 08:45:13 +00:00
Hartmut Holzgraefe 17aa9ecd1b prepare for umap export file upload 2018-02-18 19:51:30 +00:00
Hartmut Holzgraefe b09592227c final touches to GPX track upload changes
* removed old form step
* removed track_bbox_mode filed no longer needed
* changed active tab from "City search" to "Geographic area" as
  Leaflet doesn't seem to properly initialize otherwise, and then
  gets confused by setBounds() call from GPX file handler
2018-02-10 09:03:56 +00:00
Hartmut Holzgraefe 84a5f04aae encoding step no longer needed 2017-10-05 22:04:40 +00:00
Hartmut Holzgraefe 97565af601 python3 porting modifications 2017-09-17 19:58:58 +00:00
Hartmut Holzgraefe a2a8487c89 added field for submitter email address, to allow to give an address
to send feedback to
2017-07-16 10:41:01 +00:00
Hartmut Holzgraefe 83f171ecb5 silence some django deprecation warnings 2017-07-01 12:37:28 +00:00
Hartmut Holzgraefe 0c5a9546b4 added field for choosing track bounding box handling
allows to choose to:

* keep current bounding box (do nothing)
* extend current bbox to fit GPX track
* replace current bbox with GPX bbox

so far only database and user interface parts are implemented,
actual bbox processing following in next commit
2017-07-01 06:56:18 +00:00
Hartmut Holzgraefe 17c68e7097 add db and form support for uploading an optional GPX track file
to be used in rendering later
2017-05-21 02:10:57 +02:00
Hartmut Holzgraefe e88abb9138 split up layout/style/overlay selection into separate wizzart frames
and add preview images for layout, style and overlay choice
2017-05-20 17:13:53 +02:00
Hartmut Holzgraefe 3d6f63284c support selection of multiple overlays 2016-12-04 18:08:58 +01:00
Hartmut Holzgraefe 364473d293 added explicit "no overlay" option which is active by default 2016-05-07 13:29:03 +02:00
Hartmut Holzgraefe 52278a58bb added support for selecting an additional overlay stylesheet
(requires OcitysMap version that also supports overlays)
2016-05-06 19:06:16 +02:00
Hartmut Holzgraefe 34dc617d4b ErrorList import location changed in more recent Django versions 2016-05-02 18:47:34 +02:00
Maxime Petazzoni b5051e4d98 Map templates improvements
Fixed cancel form submission and re-added recreate form button on the
map list. Added map thumbnail display.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-12-28 12:59:25 -08:00
Maxime Petazzoni 7cf0bcdc93 Complete website redesign
New website design based on Bootstrap. Complete revamp of the UI
interface and of the interface paradigms. Complete rewrite of the map
creation wizard, now simpler and with less steps.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-12-16 02:59:58 -08:00
Maxime Petazzoni 3497b11c20 Force browser cache invalidation on newmap form resources
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-12-06 16:20:44 -08:00
Maxime Petazzoni 5398275b1a Add placeholder text in maps search field
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-05-08 19:54:21 +02:00
Maxime Petazzoni e546057f02 OCitySMap python module renamed from ocitysmap2 to ocitysmap
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-05-08 19:54:13 +02:00
David MENTRE 4cd76c517c Check latitude and longitude are both different at job submission
Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-04-30 10:12:58 +02:00
David MENTRE b91cae9c1a Check /apis/papersize/ bbox values are in correct range
Check that calls to /apis/papersize/ have latitude in [-90.0, 90.0] and
longitude in [-180.0, 180.0].

Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-04-23 21:22:14 +02:00
Thomas Petazzoni 63506c90b6 forms: add validation of layout and stylesheet
We have received several rendering requests with layout and stylesheet
empty. We believe that people might have written scripts against the
previous version of MapOSMatic, and so they didn't fill those
fields. Therefore, we add some form-level validation logic to reject
jobs that have layout and/or stylesheet empty.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-14 18:21:36 +02:00
Thomas Petazzoni 0a3f900fc5 forms: fix typo
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-10 21:44:59 +02:00
Thomas Petazzoni c7879d8a40 forms: translate stylesheet and layout descriptions, and paper sizes
Until now, the stylesheet description strings were coming from the
OcitySMap configuration file, the layout description strings from the
OcitySMap source code, and the paper sizes from the OcitySMap code as
well.

Unfortunately, when MapOSMatic queries the list of stylesheets,
layouts and paper sizes, OcitySMap has no idea of which language the
web site is in. OcitySMap cares about the language in which the map
will be rendered, not the language in which the website is displayed.

Therefore, in order to properly translate the stylesheet descriptions,
layout descriptions and paper sizes, we have to do it from MapOSMatic
itself. The drawback is that MapOSMatic now needs to know the list of
layouts and stylesheets, but there doesn't seem to be other reasonable
solutions.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-10 21:38:14 +02:00
Gael UTARD 8b634ff91c Select default paper size proposed by ocitysmap
And select portrait by default instead of landscape.

Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-04-01 01:45:15 +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
David Decotigny 11a2a537c2 Changed step order in map creation wizard
In d2-ocitysmap2, the zoom factor can be defined in the
stylesheet. This patch makes sure that the stylesheet is chosen before
proposing a list of possible paper sizes. Then it determines the
possible paper sizes from this stylesheet.
2010-09-19 17:22:22 +02:00
David Decotigny 4f749aa4f1 Updated nl translations from master 2010-09-19 15:52:20 +02:00
David Decotigny 0f7fccd868 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.
2010-09-19 12:43:44 +02:00
Maxime Petazzoni 195e290b39 Wizard UI improvements
Significant styling improvements in the map creation wizard, involving
some HTML, CSS and translation changes.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-08-18 02:10:15 +02:00
Maxime Petazzoni bec82316bd Better usage of the OCitySMap API
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-08-08 11:29:50 +02:00
Thomas Petazzoni 370787ad97 Fix paper_width_mm/paper_height_mm handling
Introduce two hidden fields in MapRenderingJobForm to store
paper_width_mm and paper_height_mm. Those two fields are updated by
the JS code when the selected paper size changes. They are then sent
to the server as part of the wizard form and then stored in the
database.

It allows to fix the handling of paper sizes for "Best fit"
renderings.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-08-08 02:00:43 +02:00
Maxime Petazzoni 392c054c75 Correctly saving the paper size to the database
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2010-08-07 21:37:15 +02:00