Commit graph

2046 commits

Author SHA1 Message Date
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
David Martinez
3f81ad6f30 [search] Get hotel's search mark using SetFromType
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2024-01-05 07:30:54 -03:00
Osyotr
e1cb6cabf1 Replace some usages of OMIM_OS_LINUX/OMIM_OS_MAC with OMIM_OS_DESKTOP
Signed-off-by: Osyotr <Osyotr@users.noreply.github.com>
2024-01-03 23:13:58 -03:00
8df3689034 [android] Add the outdoor style button into the layers selection
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-12-18 10:22:31 +02:00
Viktor Govako
f8dd250a90 [search] Match addr:place + addr:housenumber.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2023-11-26 12:08:14 -03:00
1b58a18f47
[map] Fix the viewport when opening a geo: link (#6647)
* [map] Fix the viewport when opening a geo: link

Re-add lost trackVisibleViewport=true from the original implementation.

Closes #6641

Co-authored-by: Viktor Govako <viktor.govako@gmail.com>
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-24 18:47:01 -03:00
Viktor Govako
945f83bdce [search] Added Feature->Place index.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2023-11-22 12:39:58 -03:00
ca049dc4f2 [map][android][ios] Support geo:0,0?q=Search string URLs
New URLs/APIs:

- `geo:35.341714,33.32231` - show a point
- `geo:35.341714,33.32231 (Custom%20Title)` - show a point with title
- `geo:0,0?q=35.341714,33.32231` - show a point
- `geo:0,0?q=35.341714,33.32231 (Custom%20Title)` - show a point with title
- `geo:35.3381607,33.3290564?q=Kyrenia%20Castle` - search for something
- `geo:0,0?q=Kyrenia%20Castle` - search for something

Android testing:

```
adb shell am start -a android.intent.action.VIEW -d '"geo:35.3381607,33.3290564?q=Where%20to%20eat"'
```

iOS testing:

```
xcrun simctl openurl booted 'geo:35.3381607,33.3290564?q=Where%20to%20eat'
```

Closes #320

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-21 18:13:26 -03:00
8963bd8d7c [ge0] Parse geo:0,0?q=Search string
Needed for #320

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-21 18:13:26 -03:00
6a24e38d03 [android] Refactor API and Intent processing
- Remove MapTask abstraction in favor of Intents.
- Process intents and API after creation of Drape.
- Restore routing only after creation of Drape (fixes #3441).
- Start location only after creation of Drape (fixes #1128).
- Remove double parsing of `backurl` in URLs.

**Test Plan:**

- Check URLs from http://omaps.app/test.html.
- Check KML/KMZ/GPX files.
- Check "Pick point" from https://github.com/organicmaps/api-android.
- Download Maps -> any downloaded map -> Show on the map.
- Bookmarks -> any list -> click on a blue button the bottom right.
- Bookmarks -> any list -> click on any bookmark.
- Start navigation -> kill the app **via system settings** ->
  start the app again and check that routing planned is started.

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-19 20:27:45 +02:00
Alexander Borsuk
933ececdbd Renamed Descriptions to WikiDescriptions for clarity
We also have OSM descriptions tag values

Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-11-18 14:11:27 +01:00