Commit graph

291 commits

Author SHA1 Message Date
Eugene Burmakin
28b9e9d61d Add a button to cancel visit selection 2025-03-12 21:57:30 +01:00
Eugene Burmakin
9a4a6481d0 Use short month names in visits list 2025-03-09 17:41:45 +01:00
Eugene Burmakin
c86921a29b Update tests and refactor some code 2025-03-09 16:29:16 +01:00
Eugene Burmakin
4a859fb350 Add bunch of tests and refactor some stuff 2025-03-09 14:58:30 +01:00
Eugene Burmakin
761aaa3cb8 Highlight visits on map when clicked on 2025-03-08 21:04:56 +01:00
Eugene Burmakin
16333c58e0 Show number of visits in drawer on selection 2025-03-08 20:53:13 +01:00
Eugene Burmakin
c39c26a430 Show points with dates in selected area 2025-03-08 20:31:12 +01:00
Eugene Burmakin
d78482f1bf Get 20 places results and dont round coordinates 2025-03-08 19:08:47 +01:00
Eugene Burmakin
52fd54e39f Implement area selecting to show visits 2025-03-07 23:32:56 +01:00
Eugene Burmakin
adf923542d Move visits to different panes 2025-03-06 00:13:47 +01:00
Eugene Burmakin
6b356d24b1 Implement visits merging 2025-03-05 20:04:26 +01:00
Eugene Burmakin
c00bd2e387 Extract visits code from maps controller 2025-03-04 21:50:46 +01:00
Eugene Burmakin
5521d8e6b2 Make drawer button bigger and add styles 2025-03-03 20:38:36 +01:00
Eugene Burmakin
414c9e831c Add possible places to visits 2025-03-03 20:11:21 +01:00
Eugene Burmakin
a4123791aa Add visits to the map page 2025-03-02 21:24:57 +01:00
Eugene Burmakin
053bfc525c Fix point deletion 2025-02-15 18:32:44 +01:00
Eugene Burmakin
fb5086e97e Simplify maps loading 2025-02-15 18:16:48 +01:00
Eugene Burmakin
62f4ec4910 Update flash message styles 2025-02-15 17:58:33 +01:00
Eugene Burmakin
38573e703e Move base maps to a separate file 2025-02-15 17:42:10 +01:00
Eugene Burmakin
aaa3c77162 Inherit all stimulus controllers from base_controller 2025-02-15 16:48:03 +01:00
Eugene Burmakin
51e589e17f Implement map tiles usage tracking and chart in user settings. 2025-02-13 21:04:29 +01:00
Evgenii Burmakin
f924bb9f82
Merge pull request #851 from chnikel/fix/Fog-of-War-overlay-gets-displaced-when-dragging-map
Fix fog gets displaced when dragging map
2025-02-13 20:25:05 +01:00
Eugene Burmakin
b2e6a141fc Rehash paths and add tests 2025-02-11 21:04:12 +01:00
Eugene Burmakin
1580fb8ade Export map tiles usage to Prometheus 2025-02-11 20:45:36 +01:00
Christian Nikel
01fd9f6e35 Fix fog gets displaced when dragging map
Also recalculates the size of the fog when resizing the browser window.

Closes #774
2025-02-11 00:12:01 +00:00
Eugene Burmakin
0b362168c9 Implement custom map tiles and user settings with default values 2025-02-10 20:37:20 +01:00
Eugene Burmakin
1f6d711ccf Don't log apiKey in handleAreaCreated 2025-02-08 23:01:32 +01:00
Eugene Burmakin
0b08af87af Clean up some code 2025-02-08 23:00:34 +01:00
Evgenii Burmakin
d101d5e544
Merge branch 'master' into dev 2025-02-08 22:53:58 +01:00
Eugene Burmakin
3a555065d3 Make popups a bit nicer 2025-02-08 12:08:01 +01:00
Eugene Burmakin
51724db874 Remove test circle 2025-02-07 21:19:34 +01:00
Eugene Burmakin
ffee59b7c3 Fix deleting an area 2025-02-07 21:17:38 +01:00
Eugene Burmakin
dd48ef4177 Implement area clicks 2025-02-07 21:08:31 +01:00
Eugene Burmakin
fea87b85bb Add docs and few fixes 2025-02-07 19:17:28 +01:00
Evgenii Burmakin
41da68a4c8
Revert "Fix deleting points" 2025-02-06 22:24:53 +01:00
Eugene Burmakin
0a27dfefbe Fix deleting points 2025-02-06 20:08:14 +01:00
Eugene Burmakin
5bd6a6c072 Don't trim time from start and end dates 2025-01-24 16:37:28 +01:00
Eugene Burmakin
6e9c981329 Fix photos fetching with trip dates 2025-01-24 15:35:35 +01:00
Eugene Burmakin
401ac8ca31 Use path instead of coordinates on trips#index 2025-01-24 15:19:05 +01:00
Eugene Burmakin
380dd9235d Calculate path and distance before saving trip 2025-01-24 15:03:57 +01:00
Eugene Burmakin
1e7efbc9af Render trips using precalculated paths instead of list of coordinates 2025-01-24 14:54:10 +01:00
Eugene Burmakin
7db7fb17d5 Add path to trips 2025-01-24 12:01:54 +01:00
Eugene Burmakin
9970d63134 Return scale and stats controls to map 2025-01-20 11:46:57 +01:00
Eugene Burmakin
0e5381c16f Fix fog of war console error 2025-01-20 11:41:45 +01:00
Eugene Burmakin
a50e9f664a Highlight route on click 2025-01-20 11:26:52 +01:00
Eugene Burmakin
70caaef9b5 Remove console logs 2025-01-19 18:06:56 +01:00
Eugene Burmakin
3ba42dceaf Highlight on hover 2025-01-19 18:05:21 +01:00
Eugene Burmakin
64b141fa24 Highlight routes again 2025-01-19 17:49:11 +01:00
Eugene Burmakin
94e08d56e1 Fix point updating in the database 2025-01-19 17:14:09 +01:00
Eugene Burmakin
f85fd9e4d0 Implement polylines redraw on point drag 2025-01-19 12:59:12 +01:00
Eugene Burmakin
5a031dad69 Implement drag and drop for points 2025-01-19 11:26:38 +01:00
Eugene Burmakin
e25d6f05e2 Extract fog of war to a separate file 2025-01-14 23:29:48 +01:00
Eugene Burmakin
e457631715 Use canvas for map 2025-01-14 23:23:46 +01:00
Eugene Burmakin
4fc8992f73 Rename Polylines to Routes in the interface 2025-01-13 22:05:25 +01:00
Eugene Burmakin
cebc4950e6 Add info modal for speed colored polylines 2025-01-13 21:57:19 +01:00
Eugene Burmakin
cd7cf8c4bb Return distance and points number in the custom control to the map 2025-01-13 21:30:08 +01:00
Eugene Burmakin
1c9667d218 Optimize polylines color update 2025-01-13 21:21:04 +01:00
Eugene Burmakin
7a83afd857 Speed up polylines coloring 2025-01-13 21:10:49 +01:00
Eugene Burmakin
216727b9e7 Fix polylines color update when settings updated 2025-01-13 21:04:18 +01:00
Eugene Burmakin
badeff3d0a Enable or disable speed colored polylines 2025-01-13 20:34:57 +01:00
Eugene Burmakin
2e18b35e3c Add settings for speed-colored polylines 2025-01-11 00:42:44 +01:00
Eugene Burmakin
43e4e8d81a Color polylines based on speed 2025-01-10 23:03:07 +01:00
Eugene Burmakin
73fc9be3fb Fix inconsistent password for the dawarich_db service in docker-compose_mounted_volumes.yml. 2025-01-07 14:31:06 +01:00
Eugene Burmakin
d9bade8fe5 Fix specs for watcher and change z-index for markers and polylines 2024-12-25 13:05:42 +01:00
Eugene Burmakin
0276882db1 Start reverse geocoding after import is finished 2024-12-25 12:38:32 +01:00
Evgenii Burmakin
4870e7718d
Merge pull request #564 from whimsical-c4lic0/fix/incorrect-locale-on-map-popup
Update map popup to format dates with the locale from the browser
2024-12-20 16:48:04 +01:00
Eugene Burmakin
6bdb103814 Expand map borders for New Zealanders 2024-12-20 16:11:46 +01:00
whimsical-c4lic0
b9d3ac9bb0 Set en-GB as the fallback locale 2024-12-19 12:50:08 -06:00
whimsical-c4lic0
bf8dc7f872 Update map popup to format dates with the locale from the browser 2024-12-19 12:39:50 -06:00
Eugene Burmakin
bd43b97fcf Add point id to popup and fix scratch map for North Macedonia 2024-12-17 12:01:19 +01:00
Evgenii Burmakin
81b5f69a30
Merge pull request #529 from Freika/feature/map-page-update
Map page update
2024-12-16 16:09:55 +01:00
Eugene Burmakin
41dfbfc1f4 Don't close point popup when hovering over a polyline 2024-12-16 14:27:45 +01:00
Sven Anders
a5bd75b27d On Map Point delete: Make Polyline Layer visible, if it was before 2024-12-16 12:23:02 +01:00
Eugene Burmakin
cddbace10e Cache responses from api endpoints made from the map right panel 2024-12-13 13:21:04 +01:00
Eugene Burmakin
e7c393a776 Show visited cities on map page 2024-12-11 22:00:33 +01:00
Eugene Burmakin
cab70839b9 Color buttons a bit 2024-12-11 21:21:24 +01:00
Eugene Burmakin
a1368b2e68 Add link to whole year 2024-12-11 20:41:51 +01:00
Eugene Burmakin
a4db806d29 Add togglable panel for months and years navigation 2024-12-11 20:34:49 +01:00
Eugene Burmakin
b364f33db1 Remove event handler 2024-12-11 16:23:34 +01:00
Eugene Burmakin
9713bd7afd Fix deleting points on the map 2024-12-11 16:18:40 +01:00
Eugene Burmakin
b1c48076e4 Add some minor changes 2024-12-11 14:21:44 +01:00
Evgenii Burmakin
60c8a03ce0
Merge pull request #490 from whimsical-c4lic0/fix/incorrect-distance-units-on-map-popup
Update map popup to use configured distance unit
2024-12-10 20:09:42 +01:00
Sven Anders
8a5f5883ba Add Source to thumbnail image. Perhabs a fix to #506 untested. 2024-12-09 07:58:14 +01:00
whimsical-c4lic0
32224628e7 Update map popup to use configured distance unit 2024-12-05 16:14:56 -06:00
Eugene Burmakin
42b74ecd52 Consider both Immich and Photoprism integrations in trips controller 2024-12-03 15:12:20 +01:00
Eugene Burmakin
83078c5b29 Refactor photo links code 2024-12-03 15:05:40 +01:00
Eugene Burmakin
bea7f28172 Update link to photos in maps photo popup 2024-12-03 15:02:11 +01:00
Eugene Burmakin
0a201d74ac Update marker rendering code to adapt to new photo format 2024-12-03 14:53:10 +01:00
Eugene Burmakin
8849a5e0a5 Add source to photos 2024-12-03 13:50:05 +01:00
Eugene Burmakin
be45af95fb Implement photos serializer 2024-12-02 18:21:12 +01:00
Eugene Burmakin
ce88452be0 Fix trips when Immich integration is not configured 2024-11-29 11:52:57 +01:00
Eugene Burmakin
782aeb89af Add distance calculation and trip cards to trips index 2024-11-28 15:29:17 +01:00
Eugene Burmakin
4dca91b62d Don't set size of images on the popups 2024-11-28 13:56:50 +01:00
Eugene Burmakin
be0bc35955 Fix showing photos on the trip edit page 2024-11-28 13:50:21 +01:00
Eugene Burmakin
e8842a9476 Implement rendering the route when the dates if the trip are changed 2024-11-28 13:20:03 +01:00
Eugene Burmakin
2cfc485f12 Add Trix editor to trips 2024-11-28 12:00:54 +01:00
Eugene Burmakin
c689051472 Show some photos from the trip 2024-11-28 10:40:08 +01:00
Eugene Burmakin
9522f81abf Move fetchAndDisplayPhotos to maps/helpers.js 2024-11-27 21:37:21 +01:00
Eugene Burmakin
5ed9b3518b Add hover reaction to photos in the map 2024-11-26 20:27:16 +01:00
Eugene Burmakin
c5044781b9 Add an active link to the photo in Immich 2024-11-26 18:03:46 +01:00
Eugene Burmakin
3c6f2e5ce3 Add loading spinner and checkmark 2024-11-26 17:36:22 +01:00
Eugene Burmakin
428e927432 Show individual photo markers on the map 2024-11-26 16:36:02 +01:00
Eugene Burmakin
130630b997 Move Immich API request to a separate service & add photos api controller 2024-11-26 14:46:26 +01:00
Eugene Burmakin
ea9ce874be Fix adding new notifications to the list and updating the badge count 2024-11-07 19:07:59 +01:00
Eugene Burmakin
23237b6c7c Add new notification to the list right away 2024-11-07 19:00:11 +01:00
Eugene Burmakin
36cd82b240 Resubscribe to the channel when the live map is enabled 2024-11-07 13:34:22 +01:00
Eugene Burmakin
31ecedb851 Enable subscription only when Live Mode is enabled 2024-11-07 13:30:58 +01:00
Eugene Burmakin
ebee214982 Add live map enabled setting 2024-11-07 13:07:54 +01:00
Eugene Burmakin
4a3f7d5e65 Implement live points count update for imports 2024-11-04 13:06:04 +01:00
Eugene Burmakin
31f0ee5eab Remove unnecessary code 2024-11-03 20:09:53 +01:00
Eugene Burmakin
d6c3a7ba03 Show popup with timestamp when new point is added 2024-11-03 19:28:33 +01:00
Eugene Burmakin
9c99a835de Implement live map updates with WebSockets 2024-11-03 16:48:43 +01:00
Eugene Burmakin
bec9db1198 Use notifications badge 2024-11-03 15:21:29 +01:00
Eugene Burmakin
14b7397840 Add raw implementation of notifications interactive channel 2024-11-03 14:37:01 +01:00
Eugene Burmakin
34c12a9536 Add GET /api/v1/countries/borders endpoint to get countries for scratch map feature 2024-11-01 20:49:59 +01:00
Eugene Burmakin
fd0ce76e22 Remove unused constant 2024-11-01 14:07:09 +01:00
Eugene Burmakin
bc28babf15 Use local countries.geojson 2024-11-01 14:05:16 +01:00
Eugene Burmakin
dd91b581f5 Update changelog 2024-11-01 13:53:38 +01:00
Eugene Burmakin
1c62ef61b1 Disable scratch map layer by default 2024-11-01 13:43:21 +01:00
Eugene Burmakin
ef7b4c1fba Reorder js functions for scratch map a bit 2024-11-01 13:40:37 +01:00
Eugene Burmakin
db880a0d5d Add very raw scratch map 2024-11-01 13:29:24 +01:00
Eugene Burmakin
c0b0716f28 Update radio buttons 2024-10-22 12:02:12 +02:00
Eugene Burmakin
c219e7a7b4 Add points rendering mode modal 2024-10-20 20:55:43 +02:00
Eugene Burmakin
54825f0d0a Move the showFlashMessage function to the helpers.js file and export it 2024-10-20 20:32:51 +02:00
Eugene Burmakin
b4db5f9376 Move the code for handling areas, markers and polylines to separate files 2024-10-20 20:23:58 +02:00
Eugene Burmakin
d0c373b30b Use strong instead of b tag for the popup content 2024-10-20 19:06:37 +02:00
Eugene Burmakin
1a0d68ab58 Add map borders and change default timeframe on the Map page 2024-10-16 15:25:22 +02:00
Eugene Burmakin
ec793fe4aa Fix incorrect timestamps for Google Location History (mobile device) points 2024-09-30 23:31:42 +02:00
Eugene Burmakin
9a962bca72 Fix visits map not being rendered correctly in the Visits page 2024-09-28 16:58:17 +02:00
Eugene Burmakin
d517b72f69 Disable map layers from Stadia due to their requirement of an api key 2024-09-28 12:58:22 +02:00
Eugene Burmakin
548d0b0e7a Fix map not loading due to invalid tile layer name 2024-09-16 20:52:51 +02:00
Eugene Burmakin
caa77be67f Add 17 new tile layers to choose from 2024-09-15 21:04:13 +02:00
Eugene Burmakin
0ac3b025ed Merge remote-tracking branch 'origin/master' into feature/miles 2024-09-06 21:26:26 +02:00
Eugene Burmakin
0038f72155 Update gems and ruby version 2024-09-05 21:01:59 +02:00
Eugene Burmakin
740d203647 Fix a bug where the confirmation alert was shown more than once when deleting a point. 2024-09-02 23:29:37 +02:00
Eugene Burmakin
88de60517e Update route popup with the correct distance unit 2024-08-29 00:17:51 +02:00
Eugene Burmakin
9f9debdb1d Update js files to support miles 2024-08-29 00:09:04 +02:00
Eugene Burmakin
fbc5eba90a Move map settings to topleft 2024-08-28 21:34:26 +02:00
Eugene Burmakin
914ecd2f2d Remove console.log statements from maps_controller.js 2024-08-28 20:30:47 +02:00
Eugene Burmakin
df588d1e07 Move map settings to the map itself 2024-08-28 20:24:35 +02:00
Eugene Burmakin
382f937f29 Add lots of logic 2024-08-12 22:18:11 +02:00
Eugene Burmakin
5394e9dd52 Add visits detection 2024-08-05 21:23:08 +02:00
Eugene Burmakin
04a2150959 Add a bunch of small changes and fixes, see CHANGELOG.md for details 2024-07-31 19:35:35 +02:00
Eugene Burmakin
1e3d9f358d Fix map areas functionality 2024-07-27 14:30:46 +02:00
Eugene Burmakin
87258df41e Fix route popup distance and add areas swagger test 2024-07-27 12:22:56 +02:00
Eugene Burmakin
254c28ae1d Make area popup look a bit nicer 2024-07-21 20:26:45 +02:00
Eugene Burmakin
151e5cf042 Add areas 2024-07-21 20:09:42 +02:00
Eugene Burmakin
bd8517709b Remove unused function 2024-07-21 16:49:26 +02:00
Eugene Burmakin
4371d28ef7 Allow users to delete points from the map 2024-07-21 16:45:29 +02:00
Eugene Burmakin
66e1feaf29 Extract some code from maps_controller.js into separate files 2024-07-21 15:13:16 +02:00