react-native-map-link 2.11.3 → 2.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -25,6 +25,7 @@ on their device. The app supports Apple Maps, Google Maps, Citymapper, Uber, and
25
25
  - Yandex Taxi – `yandex-taxi`
26
26
  - Yandex Maps – `yandex-maps`
27
27
  - Kakao Map – `kakaomap`
28
+ - TMAP - `tmap`
28
29
  - Mapy.cz – `mapycz`
29
30
  - Maps.me – `maps-me`
30
31
  - OsmAnd - `osmand`
@@ -70,6 +71,7 @@ Just add this in your `Info.plist` depending on which apps you'd like to support
70
71
  <string>yandextaxi</string>
71
72
  <string>yandexmaps</string>
72
73
  <string>kakaomap</string>
74
+ <string>tmap</string>
73
75
  <string>szn-mapy</string>
74
76
  <string>mapsme</string>
75
77
  <string>osmandmaps</string>
@@ -156,6 +158,10 @@ You can do so by coping the `<queries>` statement below, and pasting it in the t
156
158
  <intent>
157
159
  <action android:name="android.intent.action.VIEW" />
158
160
  <data android:scheme="kakaomap" />
161
+ </intent>
162
+ <intent>
163
+ <action android:name="android.intent.action.VIEW" />
164
+ <data android:scheme="tmap" />
159
165
  </intent>
160
166
  <intent>
161
167
  <action android:name="android.intent.action.VIEW" />
@@ -230,15 +236,15 @@ showLocation({
230
236
  cancelText: 'This is the cancel button text', // optional (default: 'Cancel')
231
237
  appsWhiteList: ['google-maps'], // optionally you can set which apps to show (default: will show all supported apps installed on device)
232
238
  naverCallerName: 'com.example.myapp', // to link into Naver Map You should provide your appname which is the bundle ID in iOS and applicationId in android.
233
- // appTitles: { 'google-maps': 'My custom Google Maps title' }, // optionally you can override default app titles
234
- // app: 'uber', // optionally specify specific app to use
239
+ appTitles: { 'google-maps': 'My custom Google Maps title' }, // optionally you can override default app titles
240
+ app: 'uber', // optionally specify specific app to use
235
241
  directionsMode: 'walk', // optional, accepted values are 'car', 'walk', 'public-transport' or 'bike'
236
242
  });
237
243
  ```
238
244
 
239
245
  Notes:
240
246
 
241
- - The `sourceLatitude/sourceLongitude` options only work if you specify both. Currently supports all apps except Waze.
247
+ - The `sourceLatitude` / `sourceLongitude` options only work if you specify both. Currently supports all apps except Waze.
242
248
  - `directionsMode` works on google-maps and apple-maps (on the latter, `bike` mode will not work). Without setting it, the app will decide based on his own settings.
243
249
  - If you set `directionsMode` but do not set `sourceLatitude` and `sourceLongitude`, google-maps and apple-maps will still enter directions mode, and use the current location as starting point.
244
250
 
@@ -304,6 +310,6 @@ const Demo = () => {
304
310
  </b>
305
311
  <br>
306
312
  <sub>
307
- Custom consulting sessions availabe for implementation support or feature development.
313
+ Custom consulting sessions available for implementation support or feature development.
308
314
  </sub>
309
315
  </div>
package/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export type MapId =
22
22
  | 'yandex-maps'
23
23
  | 'yandex-taxi'
24
24
  | 'kakaomap'
25
+ | 'tmap'
25
26
  | 'mapycz'
26
27
  | 'maps-me'
27
28
  | 'osmand'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-map-link",
3
- "version": "2.11.3",
3
+ "version": "2.11.4",
4
4
  "description": "Open the map app of the user's choice with a specific location",
5
5
  "main": "index.js",
6
6
  "repository": {
package/src/constants.js CHANGED
@@ -21,6 +21,7 @@ export function generatePrefixes(options) {
21
21
  'yandex-maps': 'yandexmaps://maps.yandex.ru/',
22
22
  'yandex-taxi': 'yandextaxi://',
23
23
  kakaomap: 'kakaomap://',
24
+ tmap: 'tmap://',
24
25
  mapycz: isIOS ? 'szn-mapy://' : 'mapycz://',
25
26
  'maps-me': 'mapsme://',
26
27
  osmand: isIOS ? 'osmandmaps://' : 'osmand.geo://',
@@ -53,6 +54,7 @@ export function generateTitles(titles) {
53
54
  'yandex-taxi': 'Yandex Taxi',
54
55
  'yandex-maps': 'Yandex Maps',
55
56
  kakaomap: 'Kakao Maps',
57
+ tmap: 'TMAP',
56
58
  mapycz: 'Mapy.cz',
57
59
  'maps-me': 'Maps Me',
58
60
  osmand: 'OsmAnd',
@@ -79,6 +81,7 @@ export const icons = {
79
81
  'yandex-taxi': require('./images/yandex-taxi.png'),
80
82
  'yandex-maps': require('./images/yandex-maps.png'),
81
83
  kakaomap: require('./images/kakao-map.png'),
84
+ tmap: require('./images/tmap.png'),
82
85
  mapycz: require('./images/mapycz.png'),
83
86
  'maps-me': require('./images/maps-me.png'),
84
87
  osmand: require('./images/osmand.png'),
Binary file
package/src/index.js CHANGED
@@ -255,6 +255,13 @@ export async function showLocation(options) {
255
255
  url = `${prefixes.kakaomap}route?sp=${sourceLat},${sourceLng}&ep=${latlng}&by=CAR`;
256
256
  }
257
257
  break;
258
+ case 'tmap':
259
+ url = `${prefixes.tmap}viewmap?x=${lng}&y=${lat}`;
260
+
261
+ if (useSourceDestiny) {
262
+ url = `${prefixes.tmap}route?startx=${sourceLng}&starty=${sourceLat}&goalx=${lng}&goaly=${lat}`;
263
+ }
264
+ break;
258
265
  case 'mapycz':
259
266
  url = `${prefixes.mapycz}www.mapy.cz/zakladni?x=${lng}&y=${lat}&source=coor&id=${lng},${lat}`;
260
267