Commit graph

26 commits

Author SHA1 Message Date
Tom Hughes
f07819d81a Rework application configuration
Use a preinitializer to load the settings from application.yml so
that they are available as early as possible. All settings can also
be overridden using environment variables.

The ad-hoc settins in environment.rb are then moved to this new
system so we have one consistent location for settings.
2010-08-04 22:06:05 +01:00
Tom Hughes
aac4776dd1 When the area selected for export is too large to be downloaded from
the API then disable the export button and display a message rather
than forcibly disabling that export option. Closes #1996.
2010-02-26 14:16:04 +00:00
Tom Hughes
e0cbfe24a5 Escape non-ascii characters in exported HTML. Closes #2075. 2009-10-27 00:59:38 +00:00
Tom Hughes
a8c7d1c4ce Don't use single quotes to wrap translated strings in javascript in case
the translation contains an apostrophe. Closes #1942.
2009-06-09 18:59:44 +00:00
Ævar Arnfjörð Bjarmason
3622db1665 Don't hardcode bbox size 0.25, use APP_CONFIG['max_request_area'] instead 2009-06-06 18:13:11 +00:00
Andy Allan
1db6b392a6 i18n the export tab 2009-05-31 11:40:16 +00:00
Tom Hughes
3d906fe8c6 Merge 15165:15373 from trunk. 2009-05-31 11:32:32 +00:00
Tom Hughes
9e2f4a1638 Enable JPEG export from Osmarender again. 2008-07-22 08:53:34 +00:00
Tom Hughes
911e030911 Disable JPEG exports from Osmarender as they are not currently
supported by the MapOf call in the new tiles@home server.
2008-07-16 13:21:16 +00:00
Tom Hughes
e758e520e7 Make the "larger map" link on an HTML export point at the right layer. 2008-05-19 10:00:52 +00:00
Tom Hughes
667b1fca45 Include the marker on the larger map link during HTML export. 2008-05-01 08:04:34 +00:00
Christopher Schmidt
8a6cfefa07 larger map link is now raw html for better google-linking capability, rather
than generated by javascript
2008-05-01 00:00:20 +00:00
Tom Hughes
209dece7d3 Tidy things up a bit. 2008-04-30 08:44:57 +00:00
Christopher Schmidt
0c061a6f65 add support for showing osmarender layer instead of mapnik layer, style the vector layer so it looks like a marker. 2008-04-30 03:11:47 +00:00
Christopher Schmidt
f67ffb6ebb add support for setting a specific marker location on the map. 2008-04-30 02:50:53 +00:00
Tom Hughes
f2ae082a1f Cosmetic tidy up, and fix hardcoding of server name. 2008-04-29 17:11:22 +00:00
Christopher Schmidt
57050172c8 round numbers 2008-04-29 14:41:59 +00:00
Christopher Schmidt
5ff86db265 add support for HTML export to export tabk 2008-04-29 13:57:26 +00:00
Tom Hughes
8c98f1a6c4 Tweak export startup to stop silly image sizes being reported. 2008-04-21 08:14:15 +00:00
Tom Hughes
9ef6528d8e Make sure the export button is enabled if we switch away from mapnik
export, and that the mapnik image size is updated correctly.
2008-04-20 10:31:03 +00:00
Tom Hughes
48918f19dc Close down export properly when the sidebar is closed. 2008-04-20 08:38:47 +00:00
Tom Hughes
7a9e92386e Rework export to not rely on ctrl+drag to select an area. 2008-04-19 16:58:03 +00:00
Tom Hughes
7ebb29d195 Don't call formatChanged() when disabling XML output as it has side effects. 2008-04-19 10:48:48 +00:00
Tom Hughes
9bae22aacb Validate the mapnik scale on a zoom change. 2008-04-19 10:45:28 +00:00
Tom Hughes
7fa1041340 Display the size of the image mapnik will produce. 2008-04-19 10:40:37 +00:00
Tom Hughes
8815700a77 Rework AJAX stuff to work on IE. 2008-04-18 22:12:50 +00:00