Commit graph

2056 commits

Author SHA1 Message Date
62778dbfbe [android] Fix crash upon deleting a POI via the Editor
Resolves #10211

Signed-off-by: savsch <119003089+savsch@users.noreply.github.com>
2025-03-02 18:47:15 +03:00
c96d873fa8 [map] return the ElevationInfo for the current track recording
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-02-28 13:56:03 +00:00
8dfd9a789c [map] show Track PP after TrackRecording saving
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-02-25 12:18:06 +00:00
34510b8f1c [map] clear the gps tracker on save
The prev solution was to clean up the tracker points before the new track recording starting.
It was not fully correct solution because:
1. it causes the bug, when if we starts a recording, the `TrackRecordingUpdateHandler` is called by subscribers but receives the old `track info` from the previous track. It happens because the starting is an async call and it cleans up the gps collection a little bit later.
2. when the user finishes the track recording the collection is not properly cleared. The data will stay in the memory `forewer` until the next recording is started. And this data will be recovered on the next app launch too. There are no reason to store all the recorded data in memory until the new recording begins. This approach was Ok for the `previous path` feature (removed) but not for the TR. The data lifecycle for the both feature should be handled separately.

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-02-25 09:39:35 +00:00
1783c90714 [map] move the track stats calc logic from ElevationInfo to the TrackStatistics
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-02-21 14:38:11 -03:00
David Martinez
abdb58ba62 [debug] Add ?all-types debug command to show all internal types
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2025-02-18 06:05:00 +03:00
efcadd6f25 Refactor Editor storage to use diff based approach
Signed-off-by: map-per <map-per@gmx.de>
2025-01-31 17:46:04 -03:00
renderexpert
c6661f145b Add support for injection external rendering code to the Drape
Signed-off-by: renderexpert <expert@renderconsulting.co.uk>
2025-01-21 12:47:09 -03:00
meenbeese
ea71a7b522 Rename "Unknown Place" title to "Map Point"
Signed-off-by: meenbeese <meenbeese@tutanota.com>
2024-12-30 13:20:59 +03:00
3a5c9aee89 [map] enable track selection for ios
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-12-24 12:12:53 +00:00
Ferenc Géczi
4c41eb5816 [map] Refactor fix for unused variable warning
Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
2024-12-19 13:38:16 +03:00
Ferenc Géczi
58df08f390 [map] Fix unused variable warning
Fixes the following warning:
````
map/framework.cpp:2252:12: warning: variable ‘rect’ set but not used [-Wunused-but-set-variable]
````

Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
2024-12-19 13:38:16 +03:00
01890abc83 [map] [platform] review fixes
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-12-17 14:11:52 -03:00
a2eaccc564 [map] [framework] implement track info updates observing to the framework
The updates can be retrieved using the `SetTrackRecordingInfoUpdateHandler`

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-12-17 14:11:52 -03:00
Kiryl Razhdzestvenski
a634c76ac5 Issue 9822. Change search language on change map language
Signed-off-by: Kiryl Razhdzestvenski <kirill.rozh@gmail.com>
2024-12-15 14:26:01 -03:00
7f54b9306d [map] fill PP header info with track info
The GetAddress is changed to the GetSecondarySubtitle because the 4th line in the header contains address for bookmarks or distance+duration for tracks
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-12-11 13:20:10 +04:00
6bb3dd5af5 [map] fix track selection
1. pass point with coodinates explicitly instead of calc the point by distance on every selection update
2. removed default track selection because the tracks should not have default marks
3. remove isInteractive property because all tracks are interactive now
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-12-11 13:20:10 +04:00
Kiryl Kaveryn
9abc8e5a79
[core] Implement products configuration (#9695)
* [platform] add ProductsConfig

1. fetch and parse ProductsConfig json
2. save it to the separate file "products_settings.json"
3. small servers_list.cpp refactoring
4. add unit tests for servers config and products config
5. add products fetching to the framework

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-11-25 12:32:01 -03:00
Viktor Govako
5eef1ef00d Removed outdated functions.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2024-11-20 12:30:37 -03:00
Viktor Govako
fc84110b5d Use string_view for Settings key to avoid useless std::string key instances.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2024-11-20 12:30:37 -03:00
Viktor Govako
d1a0d70490 Fixed language code setting.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2024-11-10 14:46:48 -03:00
Kiryl Razhdzestvenski
99075d76ef Issue 391. Add setting for change map language.
Signed-off-by: Kiryl Razhdzestvenski <kirill.rozh@gmail.com>
2024-11-06 16:14:24 -03:00
f6f20caf96 [map] add InAppFeatureHighlightRequest and parse feature key
to get features to highlight from the deeplinks

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-10-04 10:34:08 +03:00
34cc018629 update place page after edit
Signed-off-by: map-per <map-per@gmx.de>
2024-09-28 15:14:59 -03:00
Alexander Borsuk
bdc254e02d [ios] Clear track on the screen after stopping recording it
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-09-07 13:49:23 +03:00
Alexander Borsuk
f215bb67e3 Fixed crash when tapping on a text to select an intermediate stop (or any other non-bookmark UserMark)
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-09-01 18:37:12 +02:00
Alexander Borsuk
7c151ec289 [ios] Minor fixes
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-09-01 18:37:12 +02:00
Alexander Borsuk
a2d059da91 Replaced GpsTrackInfo with GpsInfo
TODO: There is an inefficient copying in void GpsTrackFilter::Process
that can be refactored

Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-08-27 11:50:16 +02:00
fe4b844c11 [map] [bookmarks] implement recorded track saving
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-08-25 15:56:32 +02:00
8bbe3dc9c1
[Android] OAuth2 flow with browser V2 (#9044)
* [Android] Implemented OAuth2 flow with browser

Signed-off-by: S. Kozyr <s.trump@gmail.com>

* [Android] Small improvements

Signed-off-by: S. Kozyr <s.trump@gmail.com>

* Small changes according to PR comments.

Signed-off-by: S. Kozyr <s.trump@gmail.com>

---------

Signed-off-by: S. Kozyr <s.trump@gmail.com>
2024-08-21 16:58:02 +02:00
Alexander Borsuk
afe8090982 Refactored optional position parameter passing
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-08-20 13:05:14 +02:00
Alexander Borsuk
4d07de2b85 Fixed wrongly selected bookmarks instead of search results
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-08-17 19:15:38 +02:00
9228c52ed6 [core] [map] [ios] fix the CanEditMap logic to add places only to the downloaded and updated maps
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-08-13 16:49:16 -03:00
9c9e4c5e21 Implemented app.organicmaps.Framework.nativeDeactivateMapSelectionCircle
Signed-off-by: Sergiy Kozyr <s.trump@gmail.com>
2024-08-01 19:00:46 +02:00
bf5825733e Fixed selection POI with bookmark when bookmark is not selected.
Signed-off-by: Sergiy Kozyr <s.trump@gmail.com>
2024-07-31 12:33:39 -03:00
David Martinez
5249ac9830
[placepage] Use WiFi emoji symbol 🛜 in PP preview (#8631)
* [placepage] Use localized WiFi string

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>

* [placepage] Use WiFi emoji symbol 🛜

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>

---------

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2024-07-25 18:14:58 +02:00
75c22cacd3 Introduced method PlacePageActivationListener.onSwitchFullScreenMode()
Added onSwitchFullScreenMode listener call from JNI

Signed-off-by: S. Kozyr <s.trump@gmail.com>
2024-06-18 23:18:59 +02:00
553d936a13 [core] split onClose and onSwitchFullScreen
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-06-18 23:18:59 +02:00
36b0265477 Refactoring of Framework::BuildPlacePageInfo function.
Now it always returns place_page::Info struct. Changed return type and all places affected.

Signed-off-by: S. Kozyr <s.trump@gmail.com>
2024-06-09 23:27:50 +02:00
6d260fe008 [drape] Single tap how selects any feature (POI, bookmark, line, or area)
Long tap shows/hides the UI. Special case for buildings: on a tap building is selected in PP but selection circle is on tap position.

Signed-off-by: S. Kozyr <s.trump@gmail.com>
2024-06-09 23:27:50 +02:00
Alexander Borsuk
296ce69fe0 [C++20] Use starts_with and ends_with
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-06-07 13:11:00 -03:00
450db38aec [bookmarks] implement recently deleted bookmarks and recovery support
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-06-07 15:25:27 +02:00
David Martinez
1276dc76f2 [styles] Rename styles to default/vehicle/outdoors + light/dark
clear/style-clear    -> default/style-light
clear/style-night    -> default/style-dark
vehicle/style-clear  -> vehicle/style-light
vehicle/style-night  -> vehicle/style-dark
outdoors/style-clear -> outdoors/style-light
outdoors/style-night -> outdoors/style-dark

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2024-05-23 00:16:43 -03:00
Viktor Govako
16ad61f4c8 [desktop] Disable traffic switch and TrafficManager initialization.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2024-05-18 21:23:28 +02:00
60f6db585d [editor] Removed superfluous name=* restrictions
Signed-off-by: map-per <map-per@gmx.de>
2024-05-03 22:02:55 +02:00
Viktor Govako
46241b0531 Update IsHotelChecker.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2024-04-06 15:48:04 -03:00
David Martinez
3b7be067e1 [search] Add main type to description
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2024-02-10 16:01:02 -03:00
Viktor Govako
f066d6ea91 [iOS][android] Comment out popularity label.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2024-02-09 12:14:30 -03:00
Harry Bond
bf2ca2ed9f [core] disable ?gl on ios
Signed-off-by: Harry Bond <hrbond@pm.me>
2024-02-08 16:29:16 -03:00
Alexander Borsuk
d0f3a6d874 [android] Removed "Continue detecting your location?" dialog
User now explicitly controls if location search should be disabled by pressing rotating radar icon

Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-02-06 09:35:00 +02:00