Commit graph

26 commits

Author SHA1 Message Date
Anton Khorev
adabf84fe6 Set i18n locale before writing "report a problem" on embed page 2024-06-30 04:51:43 +03:00
Anton Khorev
cb438ac3f6 Use https in 'report a problem' link of embedded map 2022-09-13 01:18:48 +03:00
Tobias Speicher
be878df097
Replace deprecated String.prototype.substr()
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-02-20 22:11:11 +01:00
Frédéric Rodrigo
bab39572a1 Add CyclOSM layer 2020-12-06 21:29:36 +01:00
Tom Hughes
e05748a9ff Make embed.js depend on the settings 2020-08-28 09:08:28 +01:00
Tom Hughes
6855616870 Allow CDN URL for the embed page to be configured 2020-08-19 21:44:24 +01:00
Tom Hughes
b74977ba8d Fix marker paths for embedded map
Fixes #2763
2020-08-10 18:20:23 +01:00
Tom Hughes
4dcedf666c Move leaflet to be a yarn managed asset 2020-08-06 19:28:51 +01:00
Paul Norman
fb4aa31048
Add ÖPNVKarte layer 2020-06-25 20:47:25 -07:00
Andy Allan
d102c9aaf4 Move all settings to settings.yml
We leave the STATUS setting alone, since it's required before rails
boots. The test-specific settings now live in config/settings/test.yml
2019-03-13 18:06:23 +01:00
Tom Hughes
32a400c5af Only include embed related messages in the embed javascript 2018-08-28 18:02:32 +01:00
Tom Hughes
d75c203ecf Add thunderforest API key to embedded maps
Fixes #1293
2016-09-21 20:05:00 +01:00
Tom Hughes
16f8acd243 Remove more traces of MapQuest Open layer 2016-06-15 20:38:52 +01:00
Florian Schäfer
fbf2b45ecc Make "Report a problem" link in embeddable map translateable 2016-03-09 19:26:59 +00:00
Tom Hughes
544ed36247 Enebale I18n for embedded maps 2016-03-09 19:26:31 +00:00
Florian Schäfer
151a48d7f3 Open new tab/window for "report a problem" link
This avoids closing whatever site the user was looking at when they
spotted he problem, and avoid problems when the embedded map is part
of an iframe as the problem report page denies embedding.
2016-03-09 19:23:03 +00:00
Tom Hughes
67e77fd20e Use correct URL for problem report control 2015-07-17 22:36:57 +01:00
Tom Hughes
899891fe8a Simplify "report a problem" control
Defer to the standard attribution control methods as much as
possible instead of duplicating them.
2015-07-17 22:19:49 +01:00
Simon Poole
6ede8ca045 Add report a problem link to attribution, code nicked from osm.ch 2015-07-17 21:21:12 +01:00
Tom Hughes
781e80181e Restore templating to embed.js
The embed.js file is special because it is used standalone without the
rest of our javascript environment. Closes #909.
2015-02-24 12:42:18 +00:00
Tom Hughes
e256c837b5 Eliminate templating from most javascript 2015-02-23 21:45:57 +00:00
Tom Hughes
b756c5fd6e Add HOT layer to the main page 2013-09-23 17:50:06 +01:00
John Firebaugh
f17304e8ed Fix embed 2013-08-05 08:31:46 -07:00
Tom MacWright
64f5b3f511 Refactoring 4 life 2013-07-18 10:40:24 -07:00
Tom Hughes
dc0ada9515 Set size and anchor position for embedded markers 2012-11-23 17:57:47 +00:00
Tom Hughes
31a6d20728 Set icon paths for markers on the embedded map 2012-11-23 15:06:13 +00:00
Renamed from app/assets/javascripts/embed.js (Browse further)