react-native-maplibre-lite 0.1.5 → 0.1.6

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
@@ -11,6 +11,16 @@ Lightweight MapLibre for React Native powered by `WebView`.
11
11
 
12
12
  It is designed for teams that want a practical MapLibre integration without native SDK setup complexity.
13
13
 
14
+ ## Screenshots
15
+
16
+ <p align="center">
17
+ <img alt="react-native-maplibre-lite demo 1" src="./demo/demo1.jpeg" width="31%" />
18
+ &nbsp;
19
+ <img alt="react-native-maplibre-lite demo 2" src="./demo/demo2.jpeg" width="31%" />
20
+ &nbsp;
21
+ <img alt="react-native-maplibre-lite demo 3" src="./demo/demo3.jpeg" width="31%" />
22
+ </p>
23
+
14
24
  ## Features
15
25
 
16
26
  - MapLibre GL JS in a React Native component
@@ -27,13 +37,13 @@ It is designed for teams that want a practical MapLibre integration without nati
27
37
  ## Installation
28
38
 
29
39
  ```bash
30
- npm install react-native-maplibre-lite react-native-webview @react-native-async-storage/async-storage
40
+ npm install react-native-maplibre-lite react-native-webview @react-native-async-storage/async-storage @sayem314/react-native-keep-awake @react-native-community/geolocation
31
41
  ```
32
42
 
33
43
  or
34
44
 
35
45
  ```bash
36
- yarn add react-native-maplibre-lite react-native-webview @react-native-async-storage/async-storage
46
+ yarn add react-native-maplibre-lite react-native-webview @react-native-async-storage/async-storage @sayem314/react-native-keep-awake @react-native-community/geolocation
37
47
  ```
38
48
 
39
49
  ## Quick Start
@@ -134,6 +144,8 @@ export function NavigatorScreen() {
134
144
  navigator
135
145
  graphhopperUrl="https://graphhopper.example.com"
136
146
  navigatorLang="ru"
147
+ navigatorProfile="bike"
148
+ navigatorChrome={{ accent: '#22c55e', routeLine: '#22c55e' }}
137
149
  zoomEnabled
138
150
  scrollEnabled
139
151
  onNavigatorRouteSet={(route) => console.log('route', route)}
@@ -153,98 +165,115 @@ export function NavigatorScreen() {
153
165
  }
154
166
  ```
155
167
 
156
- `graphhopperUrl` is the base URL without the required `/route` suffix. The plugin sends `POST {graphhopperUrl}/route` with `points_encoded: false`, `instructions: true`, and `locale` from `navigatorLang`.
168
+ `graphhopperUrl` is the base URL without the required `/route` suffix. The plugin sends `POST {graphhopperUrl}/route` with `points_encoded: false`, `instructions: true`, `locale` from `navigatorLang`, and `profile` from `navigatorProfile` (defaults to `car` when omitted or when the string is not a known profile; see `NAVIGATOR_PROFILE_IDS` in the package exports).
157
169
 
158
170
  Use `setNavigatorPosition(latitude, longitude)` to feed real GPS updates. The WebView side snaps the position to the route, marks arrival, or reroutes when the point is too far from the current route. `pickNavigatorPosition()` is a development helper: the next tap on the map becomes the current navigator position.
159
171
 
172
+ ### Navigator chrome (`navigatorChrome`)
173
+
174
+ Optional object passed as `navigatorChrome` on `MapView` (forwarded to WebView `init`). All keys are optional; omit the prop to keep the default blue theme.
175
+
176
+ | Key | Purpose |
177
+ | --------------- | ------- |
178
+ | `accent` | Accent in hex (`#rgb` / `#rrggbb`): map arrow gradient and maneuver icon tile in the HUD (tile background and icon color are derived from it). |
179
+ | `routeLine` | Main route line color (library default was `#3b82f6`). |
180
+ | `routeOutline` | Wide underlay for the route line (default was `#1e3a8a`). |
181
+ | `hudBackground` | HUD panel background: any valid CSS value (`rgba(...)`, `linear-gradient(...)`, etc.). |
182
+ | `hudForeground` | Primary text color on the HUD. |
183
+ | `hudMuted` | Secondary text (street, summary, ETA); when this is hex, the divider tone is derived from it. |
184
+
185
+ Speed limit styling on the HUD is not configurable.
186
+
160
187
  ## API
161
188
 
162
189
  ### `MapView` props
163
190
 
164
- | Prop | Type | Required | Description |
165
- | --- | --- | --- | --- |
166
- | `center` | `[number, number]` | yes | Initial map center as `[lng, lat]` |
167
- | `zoom` | `number` | yes | Initial zoom level |
168
- | `mapStyle` | `string` | yes | MapLibre style URL. The style JSON is fetched and cached with `AsyncStorage` |
169
- | `style` | `StyleProp<ViewStyle>` | yes | Container style |
170
- | `placeholderTheme` | `'light' \| 'dark'` | no | Placeholder theme before map init. Defaults to `light` |
171
- | `minZoom` | `number` | no | Minimum zoom |
172
- | `maxZoom` | `number` | no | Maximum zoom |
173
- | `zoomEnabled` | `boolean` | no | Enable double-tap zoom, pinch zoom and rotation |
174
- | `scrollEnabled` | `boolean` | no | Enable pan and scroll gestures |
175
- | `showSelectPoint` | `boolean` | no | Show animated center pointer |
176
- | `selectPointColor` | `string` | no | Center pointer color |
177
- | `selectPointBackgroundColor` | `string` | no | Center pointer background |
178
- | `autoFitBounds` | `boolean` | no | Automatically fit camera to visible overlays after overlay changes |
179
- | `fitBoundsPadding` | `number` | no | Padding for `fitBounds()` and `autoFitBounds`. Defaults to `40` |
180
- | `fitBoundsDuration` | `number` | no | Animation duration for `fitBounds()`. Defaults to `500` |
181
- | `flyToDuration` | `number` | no | Animation duration for `flyTo()`. Defaults to `500` |
182
- | `performanceMode` | `'quality' \| 'balanced' \| 'performance'` | no | Rendering quality/performance profile |
183
- | `pixelRatio` | `number` | no | Manual renderer pixel ratio override |
184
- | `turboWhileMoving` | `boolean` | no | Hide polyline/polygon overlays while map moves |
185
- | `debugMode` | `boolean` | no | Enables extra WebView-side debug alerts/logging |
186
- | `navigator` | `boolean` | no | Enable navigator mode |
187
- | `graphhopperUrl` | `string` | no | Base GraphHopper URL for navigator routes |
188
- | `navigatorLang` | `'ru' \| 'en'` | no | Navigator HUD and instruction language. Defaults to `ru` |
189
- | `onReady` | `() => void` | no | Called after the WebView map is initialized |
190
- | `onMoveStart` | `(params) => void` | no | `movestart` event |
191
- | `onMoveEnd` | `(params) => void` | no | `moveend` event |
192
- | `onZoomStart` | `(params) => void` | no | `zoomstart` event |
193
- | `onZoomEnd` | `(params) => void` | no | `zoomend` event |
194
- | `onIdle` | `(params) => void` | no | `idle` event |
195
- | `onNavigatorRouteSet` | `(params) => void` | no | Called after navigator route creation |
196
- | `onNavigatorInstruction` | `(params) => void` | no | Called when a navigator instruction is advanced |
197
- | `onNavigatorPositionSet` | `(params) => void` | no | Called after navigator position update/snap/reroute |
198
- | `onMapLiteError` | `(error) => void` | no | WebView command error callback |
191
+ | Prop | Type | Required | Description |
192
+ | ---------------------------- | ------------------------------------------ | -------- | ---------------------------------------------------------------------------- |
193
+ | `center` | `[number, number]` | yes | Initial map center as `[lng, lat]` |
194
+ | `zoom` | `number` | yes | Initial zoom level |
195
+ | `mapStyle` | `string` | yes | MapLibre style URL. The style JSON is fetched and cached with `AsyncStorage` |
196
+ | `style` | `StyleProp<ViewStyle>` | yes | Container style |
197
+ | `placeholderTheme` | `'light' \| 'dark'` | no | Placeholder theme before map init. Defaults to `light` |
198
+ | `minZoom` | `number` | no | Minimum zoom |
199
+ | `maxZoom` | `number` | no | Maximum zoom |
200
+ | `zoomEnabled` | `boolean` | no | Enable double-tap zoom, pinch zoom and rotation |
201
+ | `scrollEnabled` | `boolean` | no | Enable pan and scroll gestures |
202
+ | `showSelectPoint` | `boolean` | no | Show animated center pointer |
203
+ | `selectPointColor` | `string` | no | Center pointer color |
204
+ | `selectPointBackgroundColor` | `string` | no | Center pointer background |
205
+ | `autoFitBounds` | `boolean` | no | Automatically fit camera to visible overlays after overlay changes |
206
+ | `fitBoundsPadding` | `number` | no | Padding for `fitBounds()` and `autoFitBounds`. Defaults to `40` |
207
+ | `fitBoundsDuration` | `number` | no | Animation duration for `fitBounds()`. Defaults to `500` |
208
+ | `flyToDuration` | `number` | no | Animation duration for `flyTo()`. Defaults to `500` |
209
+ | `performanceMode` | `'quality' \| 'balanced' \| 'performance'` | no | Rendering quality/performance profile |
210
+ | `pixelRatio` | `number` | no | Manual renderer pixel ratio override |
211
+ | `turboWhileMoving` | `boolean` | no | Hide polyline/polygon overlays while map moves |
212
+ | `debugMode` | `boolean` | no | Enables extra WebView-side debug alerts/logging |
213
+ | `navigator` | `boolean` | no | Enable navigator mode |
214
+ | `graphhopperUrl` | `string` | no | Base GraphHopper URL for navigator routes |
215
+ | `navigatorLang` | `'ru' \| 'en'` | no | Navigator HUD and instruction language. Defaults to `ru` |
216
+ | `navigatorProfile` | `NavigatorProfile \| string` | no | GraphHopper routing `profile` (`car`, `bike`, `foot`, …). Unknown → `car` |
217
+ | `navigatorChrome` | `NavigatorChromeParams` | no | Navigator colors: route line, arrow accent, HUD (see section above). Sent at init only |
218
+ | `onReady` | `() => void` | no | Called after the WebView map is initialized |
219
+ | `onMoveStart` | `(params) => void` | no | `movestart` event |
220
+ | `onMoveEnd` | `(params) => void` | no | `moveend` event |
221
+ | `onZoomStart` | `(params) => void` | no | `zoomstart` event |
222
+ | `onZoomEnd` | `(params) => void` | no | `zoomend` event |
223
+ | `onIdle` | `(params) => void` | no | `idle` event |
224
+ | `onNavigatorRouteSet` | `(params) => void` | no | Called after navigator route creation |
225
+ | `onNavigatorInstruction` | `(params) => void` | no | Called when a navigator instruction is advanced |
226
+ | `onNavigatorPositionSet` | `(params) => void` | no | Called after navigator position update/snap/reroute |
227
+ | `onMapLiteError` | `(error) => void` | no | WebView command error callback |
199
228
 
200
229
  ### `MapView` ref
201
230
 
202
- | Method | Description |
203
- | --- | --- |
204
- | `fitBounds()` | Fits camera to current markers, polylines and polygons |
205
- | `flyTo(center, zoom)` | Animates camera to `[lng, lat]` and zoom |
206
- | `setNavigatorPoint(latitude, longitude)` | Builds a navigator route to the destination. Requires `navigator` |
207
- | `advanceNavigatorInstruction()` | Advances to the next navigator instruction |
208
- | `setNavigatorPosition(latitude, longitude)` | Updates current navigator position from GPS or another source |
209
- | `pickNavigatorPosition()` | Dev helper: next map tap sets current navigator position |
231
+ | Method | Description |
232
+ | ------------------------------------------- | ----------------------------------------------------------------- |
233
+ | `fitBounds()` | Fits camera to current markers, polylines and polygons |
234
+ | `flyTo(center, zoom)` | Animates camera to `[lng, lat]` and zoom |
235
+ | `setNavigatorPoint(latitude, longitude)` | Builds a navigator route to the destination. Requires `navigator` |
236
+ | `advanceNavigatorInstruction()` | Advances to the next navigator instruction |
237
+ | `setNavigatorPosition(latitude, longitude)` | Updates current navigator position from GPS or another source |
238
+ | `pickNavigatorPosition()` | Dev helper: next map tap sets current navigator position |
210
239
 
211
240
  ### `Marker` props
212
241
 
213
- | Prop | Type | Required | Description |
214
- | --- | --- | --- | --- |
215
- | `uniqueId` | `string` | yes | Unique overlay id |
216
- | `latitude` | `number` | yes | Marker latitude |
217
- | `longitude` | `number` | yes | Marker longitude |
218
- | `onPress` | `() => void` | no | Press callback |
219
- | `ignoreFitBounds` | `boolean` | no | Exclude marker from `fitBounds()` and `autoFitBounds` |
220
- | `color` | `string` | no | Default MapLibre marker color |
221
- | `iconUrl` | `string` | no | Custom marker image URL |
222
- | `iconWidth` | `number` | no | Custom icon width |
223
- | `iconHeight` | `number` | no | Custom icon height |
224
- | `html` | `string` | no | Custom marker HTML. If provided, it takes priority over `iconUrl` and `color` |
242
+ | Prop | Type | Required | Description |
243
+ | ----------------- | ------------ | -------- | ----------------------------------------------------------------------------- |
244
+ | `uniqueId` | `string` | yes | Unique overlay id |
245
+ | `latitude` | `number` | yes | Marker latitude |
246
+ | `longitude` | `number` | yes | Marker longitude |
247
+ | `onPress` | `() => void` | no | Press callback |
248
+ | `ignoreFitBounds` | `boolean` | no | Exclude marker from `fitBounds()` and `autoFitBounds` |
249
+ | `color` | `string` | no | Default MapLibre marker color |
250
+ | `iconUrl` | `string` | no | Custom marker image URL |
251
+ | `iconWidth` | `number` | no | Custom icon width |
252
+ | `iconHeight` | `number` | no | Custom icon height |
253
+ | `html` | `string` | no | Custom marker HTML. If provided, it takes priority over `iconUrl` and `color` |
225
254
 
226
255
  ### `Polyline` props
227
256
 
228
- | Prop | Type | Required | Description |
229
- | --- | --- | --- | --- |
230
- | `uniqueId` | `string` | yes | Unique overlay id |
231
- | `coordinates` | `[number, number][]` | yes | Line coordinates as `[lng, lat]` |
232
- | `ignoreFitBounds` | `boolean` | no | Exclude line from `fitBounds()` and `autoFitBounds` |
233
- | `color` | `string` | no | Line color. Defaults to `#000000` |
234
- | `width` | `number` | no | Line width. Defaults to `4` |
257
+ | Prop | Type | Required | Description |
258
+ | ----------------- | -------------------- | -------- | --------------------------------------------------- |
259
+ | `uniqueId` | `string` | yes | Unique overlay id |
260
+ | `coordinates` | `[number, number][]` | yes | Line coordinates as `[lng, lat]` |
261
+ | `ignoreFitBounds` | `boolean` | no | Exclude line from `fitBounds()` and `autoFitBounds` |
262
+ | `color` | `string` | no | Line color. Defaults to `#000000` |
263
+ | `width` | `number` | no | Line width. Defaults to `4` |
235
264
 
236
265
  ### `Polygon` props
237
266
 
238
- | Prop | Type | Required | Description |
239
- | --- | --- | --- | --- |
240
- | `uniqueId` | `string` | yes | Unique overlay id |
241
- | `coordinates` | `[number, number][]` | yes | Polygon ring coordinates as `[lng, lat]` |
242
- | `ignoreFitBounds` | `boolean` | no | Exclude polygon from `fitBounds()` and `autoFitBounds` |
243
- | `fillColor` | `string` | no | Fill color |
244
- | `fillOpacity` | `number` | no | Fill opacity |
245
- | `strokeColor` | `string` | no | Stroke color |
246
- | `strokeOpacity` | `number` | no | Stroke opacity |
247
- | `strokeWidth` | `number` | no | Stroke width |
267
+ | Prop | Type | Required | Description |
268
+ | ----------------- | -------------------- | -------- | ------------------------------------------------------ |
269
+ | `uniqueId` | `string` | yes | Unique overlay id |
270
+ | `coordinates` | `[number, number][]` | yes | Polygon ring coordinates as `[lng, lat]` |
271
+ | `ignoreFitBounds` | `boolean` | no | Exclude polygon from `fitBounds()` and `autoFitBounds` |
272
+ | `fillColor` | `string` | no | Fill color |
273
+ | `fillOpacity` | `number` | no | Fill opacity |
274
+ | `strokeColor` | `string` | no | Stroke color |
275
+ | `strokeOpacity` | `number` | no | Stroke opacity |
276
+ | `strokeWidth` | `number` | no | Stroke width |
248
277
 
249
278
  ## Performance Tuning (Android)
250
279
 
Binary file
Binary file
Binary file
@@ -3,6 +3,8 @@
3
3
  import { createContext, forwardRef, useContext, useEffect, useImperativeHandle, useRef, useState } from 'react';
4
4
  import { Platform, View } from 'react-native';
5
5
  import { WebView } from 'react-native-webview';
6
+ import Geolocation from '@react-native-community/geolocation';
7
+ import KeepAwake from '@sayem314/react-native-keep-awake';
6
8
  import MapPlaceholder from "./MapPlaceholder.js";
7
9
  import MapSelectPoint from "./MapSelectPoint.js";
8
10
  import { loadResources } from "./utils.js";
@@ -30,9 +32,16 @@ const getBoundsFromCoords = coords => {
30
32
  }
31
33
  return [[minLng, minLat], [maxLng, maxLat]];
32
34
  };
35
+
36
+ /** Минимальный интервал между отправками позиции в WebView (мост RN↔JS). */
37
+ const NAVIGATOR_GPS_FORWARD_MIN_MS = 500;
33
38
  export const MapView = /*#__PURE__*/forwardRef((props, ref) => {
34
39
  const webViewRef = useRef(null);
35
40
  const [inited, setInited] = useState(false);
41
+ const initedRef = useRef(false);
42
+ useEffect(() => {
43
+ initedRef.current = inited;
44
+ }, [inited]);
36
45
  const coordsInMapRef = useRef({});
37
46
  const markersClickHandlers = useRef({});
38
47
  const mapSelectPointRef = useRef(null);
@@ -44,6 +53,8 @@ export const MapView = /*#__PURE__*/forwardRef((props, ref) => {
44
53
  }
45
54
  webViewRef.current?.postMessage(JSON.stringify(message));
46
55
  };
56
+ const sendToWebViewRef = useRef(sendToWebView);
57
+ sendToWebViewRef.current = sendToWebView;
47
58
  const initMap = async () => {
48
59
  if (__DEV__) {
49
60
  console.log('MapView: initMap');
@@ -73,7 +84,9 @@ export const MapView = /*#__PURE__*/forwardRef((props, ref) => {
73
84
  debugMode: props.debugMode ?? false,
74
85
  navigator: props.navigator === true,
75
86
  graphhopperUrl: props.graphhopperUrl,
76
- navigatorLang: props.navigatorLang
87
+ navigatorLang: props.navigatorLang,
88
+ navigatorProfile: props.navigatorProfile,
89
+ navigatorChrome: props.navigatorChrome
77
90
  }
78
91
  });
79
92
  };
@@ -303,6 +316,48 @@ export const MapView = /*#__PURE__*/forwardRef((props, ref) => {
303
316
  }
304
317
  }
305
318
  };
319
+ useEffect(() => {
320
+ if (!props.navigator) {
321
+ return;
322
+ }
323
+ let lastForwardedAt = 0;
324
+ const watchId = Geolocation.watchPosition(position => {
325
+ if (!initedRef.current) {
326
+ return;
327
+ }
328
+ const lat = position.coords.latitude;
329
+ const lng = position.coords.longitude;
330
+ if (!Number.isFinite(lat) || !Number.isFinite(lng)) {
331
+ return;
332
+ }
333
+ const now = Date.now();
334
+ if (now - lastForwardedAt < NAVIGATOR_GPS_FORWARD_MIN_MS) {
335
+ return;
336
+ }
337
+ lastForwardedAt = now;
338
+ sendToWebViewRef.current({
339
+ function: 'setNavigatorPosition',
340
+ params: {
341
+ latitude: lat,
342
+ longitude: lng
343
+ }
344
+ });
345
+ }, error => {
346
+ console.error('MapView: error watching position', error);
347
+ }, {
348
+ enableHighAccuracy: true,
349
+ /** Android: желаемый интервал обновлений от провайдера. */
350
+ interval: 1000,
351
+ fastestInterval: 1000,
352
+ /** iOS / часть сценариев: не слать, если сдвиг меньше N метров. */
353
+ distanceFilter: 1,
354
+ /** Не опираться на слишком старый кэш при запросе точки. */
355
+ maximumAge: 2000
356
+ });
357
+ return () => {
358
+ Geolocation.clearWatch(watchId);
359
+ };
360
+ }, [props.navigator]);
306
361
  return /*#__PURE__*/_jsxs(View, {
307
362
  style: props.style,
308
363
  children: [/*#__PURE__*/_jsxs(MapViewContext.Provider, {
@@ -351,7 +406,7 @@ export const MapView = /*#__PURE__*/forwardRef((props, ref) => {
351
406
  })]
352
407
  }), !inited && /*#__PURE__*/_jsx(MapPlaceholder, {
353
408
  theme: props.placeholderTheme ?? 'light'
354
- })]
409
+ }), !!props.navigator && /*#__PURE__*/_jsx(KeepAwake, {})]
355
410
  });
356
411
  });
357
412
  //# sourceMappingURL=MapView.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createContext","forwardRef","useContext","useEffect","useImperativeHandle","useRef","useState","Platform","View","WebView","MapPlaceholder","MapSelectPoint","loadResources","MAP_HTML","jsx","_jsx","jsxs","_jsxs","MapViewContext","useMapViewContext","ctx","Error","getBoundsFromCoords","coords","length","minLng","maxLng","minLat","maxLat","lng","lat","MapView","props","ref","webViewRef","inited","setInited","coordsInMapRef","markersClickHandlers","mapSelectPointRef","performanceMode","OS","fallbackPixelRatio","undefined","sendToWebView","message","__DEV__","console","log","current","postMessage","JSON","stringify","initMap","mapStyle","mapStyleText","parse","function","params","zoomEnabled","scrollEnabled","center","zoom","minZoom","maxZoom","antialias","crossSourceCollisions","fadeDuration","pixelRatio","simplifyStyle","aggressiveSimplifyStyle","maxPitch","renderWorldCopies","turboWhileMoving","debugMode","navigator","graphhopperUrl","navigatorLang","updateMarkerClickHandler","propsMarker","onPress","uniqueId","addMarker","latitude","longitude","ignoreFitBounds","scheduleAutoFitBounds","removeMarker","addPolyline","propsPolyline","coordinates","removePolyline","addPolygon","propsPolygon","removePolygon","autoFitBoundsTimeoutRef","autoFitBounds","clearTimeout","setTimeout","fitBounds","fitBoundsPadding","Object","values","flat","bounds","padding","duration","fitBoundsDuration","flyTo","flyToDuration","setNavigatorPoint","advanceNavigatorInstruction","setNavigatorPosition","pickNavigatorPosition","lastPropsRef","updateProps","keys","onReceiveMessageFromWebView","data","msg","type","event","up","onMoveStart","onMoveEnd","down","onZoomStart","onZoomEnd","onIdle","onNavigatorRouteSet","onNavigatorInstruction","onNavigatorPositionSet","onMapLiteError","onReady","handler","e","warn","style","children","Provider","value","flex","backgroundColor","originWhitelist","source","developerLocalhostBundleUrl","uri","html","onMessage","nativeEvent","javaScriptEnabled","domStorageEnabled","showSelectPoint","pointerEvents","justifyContent","alignItems","position","top","left","width","height","color","selectPointColor","selectPointBackgroundColor","theme","placeholderTheme"],"sourceRoot":"../../../src","sources":["components/MapView.tsx"],"mappings":";;AAAA,SACEA,aAAa,EACbC,UAAU,EACVC,UAAU,EACVC,SAAS,EACTC,mBAAmB,EACnBC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,SACEC,QAAQ,EAERC,IAAI,QAEC,cAAc;AACrB,SAASC,OAAO,QAAQ,sBAAsB;AAE9C,OAAOC,cAAc,MAAM,qBAAkB;AAC7C,OAAOC,cAAc,MAAmC,qBAAkB;AAY1E,SAASC,aAAa,QAAQ,Y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W;QAChBuG,KAAK,EAAE;UAAEI,IAAI,EAAE,CAAC;UAAEC,eAAe,EAAE;QAAc,CAAE;QACnDC,eAAe,EAAE,CAAC,GAAG,CAAE;QACvBC,MAAM,EAAE,CAAC,CAAChH,KAAK,CAACiH,2BAA2B,GAAG;UAAEC,GAAG,EAAElH,KAAK,CAACiH;QAA4B,CAAC,GAAG;UAAEE,IAAI,EAAEtI;QAAS,CAAE;QAC9GuI,SAAS,EAAE3B,KAAK,IAAI;UAChBJ,2BAA2B,CAACI,KAAK,CAAC4B,WAAW,CAAC/B,IAAI,CAAC;QACvD,CAAE;QACFgC,iBAAiB;QACjBC,iBAAiB;QACjB3F,aAAa,EAAE;MAAM,CACxB,CAAC,EAEDzB,MAAM,IAAIH,KAAK,CAAC0G,QAAQ,EAExBvG,MAAM,IAAIH,KAAK,CAACwH,eAAe,iBAC5BzI,IAAA,CAACP,IAAI;QACDiJ,aAAa,EAAC,MAAM;QACpBhB,KAAK,EAAE;UACHiB,cAAc,EAAE,QAAQ;UACxBC,UAAU,EAAE,QAAQ;UACpBC,QAAQ,EAAE,UAAU;UACpBC,GAAG,EAAE,CAAC;UACNC,IAAI,EAAE,CAAC;UACPC,KAAK,EAAE,MAAM;UACbC,MAAM,EAAE;QACZ,CAAE;QAAAtB,QAAA,eAEF3H,IAAA,CAACJ,cAAc;UACXsB,GAAG,EAAEM,iBAAkB;UACvB0H,KAAK,EAAEjI,KAAK,CAACkI,gBAAgB,IAAI,MAAO;UACxCpB,eAAe,EAAE9G,KAAK,CAACmI,0BAA0B,IAAI;QAAO,CAC/D;MAAC,CACA,CACT;IAAA,CACoB,CAAC,EACzB,CAAChI,MAAM,iBACJpB,IAAA,CAACL,cAAc;MAAC0J,KAAK,EAAEpI,KAAK,CAACqI,gBAAgB,IAAI;IAAQ,CAAE,CAC9D;EAAA,CAEC,CAAC;AAEf,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["createContext","forwardRef","useContext","useEffect","useImperativeHandle","useRef","useState","Platform","View","WebView","Geolocation","KeepAwake","MapPlaceholder","MapSelectPoint","loadResources","MAP_HTML","jsx","_jsx","jsxs","_jsxs","MapViewContext","useMapViewContext","ctx","Error","getBoundsFromCoords","coords","length","minLng","maxLng","minLat","maxLat","lng","lat","NAVIGATOR_GPS_FORWARD_MIN_MS","MapView","props","ref","webViewRef","inited","setInited","initedRef","current","coordsInMapRef","markersClickHandlers","mapSelectPointRef","performanceMode","OS","fallbackPixelRatio","undefined","sendToWebView","message","__DEV__","console","log","postMessage","JSON","stringify","sendToWebViewRef","initMap","mapStyle","mapStyleText","parse","function","params","zoomEnabled","scrollEnabled","center","zoom","minZoom","maxZoom","antialias","crossSourceCollisions","fadeDuration","pixelRatio","simplifyStyle","aggressiveSimplifyStyle","maxPitch","renderWorldCopies","turboWhileMoving","debugMode","navigator","graphhopperUrl","navigatorLang","navigatorProfile","navigatorChrome","updateMarkerClickHandler","propsMarker","onPress","uniqueId","addMarker","latitude","longitude","ignoreFitBounds","scheduleAutoFitBounds","removeMarker","addPolyline","propsPolyline","coordinates","removePolyline","addPolygon","propsPolygon","removePolygon","autoFitBoundsTimeoutRef","autoFitBounds","clearTimeout","setTimeout","fitBounds","fitBoundsPadding","Object","values","flat","bounds","padding","duration","fitBoundsDuration","flyTo","flyToDuration","setNavigatorPoint","advanceNavigatorInstruction","setNavigatorPosition","pickNavigatorPosition","lastPropsRef","updateProps","keys","onReceiveMessageFromWebView","data","msg","type","event","up","onMoveStart","onMoveEnd","down","onZoomStart","onZoomEnd","onIdle","onNavigatorRouteSet","onNavigatorInstruction","onNavigatorPositionSet","onMapLiteError","onReady","handler","e","warn","lastForwardedAt","watchId","watchPosition","position","Number","isFinite","now","Date","error","enableHighAccuracy","interval","fastestInterval","distanceFilter","maximumAge","clearWatch","style","children","Provider","value","flex","backgroundColor","originWhitelist","source","developerLocalhostBundleUrl","uri","html","onMessage","nativeEvent","javaScriptEnabled","domStorageEnabled","showSelectPoint","pointerEvents","justifyContent","alignItems","top","left","width","height","color","selectPointColor","selectPointBackgroundColor","theme","placeholderTheme"],"sourceRoot":"../../../src","sources":["components/MapView.tsx"],"mappings":";;AAAA,SACEA,aAAa,EACbC,UAAU,EACVC,UAAU,EACVC,SAAS,EACTC,mBAAmB,EACnBC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,SACEC,QAAQ,EAERC,IAAI,QAEC,cAAc;AACrB,SAASC,OAAO,QAAQ,sBAAsB;AAE9C,OAAOC,WAAW,MAAM,qCAAqC;AAC7D,OAAOC,SAAS,MAAM,mCAAmC;AAEzD,OAAOC,cAAc,MAAM,qBAAkB;AAC7C,OAAOC,cAAc,MAAmC,qBAAkB;AAc1E,SAASC,aAAa,QAAQ,YAAS;AACvC,SAASC,QAAQ,QAAQ,kBAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAqGzC,MAAMC,cAAc,gBAAGpB,aAAa,CAAyB,IAAI,CAAC;AAElE,OAAO,MAAMqB,iBAAiB,GAAGA,CAAA,KAAM;EACnC,MAAMC,GAAG,GAAGpB,UAAU,CAACkB,cAAc,CAAC;EACtC,IAAI,CAACE,GAAG,EAAE,MAAM,IAAIC,KAAK,CAAC,iDAAiD,CAAC;EAC5E,OAAOD,GAAG;AACd,CAAC;AAED,MAAME,mBAAmB,GACrBC,MAA0B,IACa;EACvC,IAAI,CAACA,MAAM,CAACC,MAAM,EAAE;IAChB,MAAM,IAAIH,KAAK,CAAC,yBAAyB,CAAC;EAC9C;EAEA,IAAII,MAAM,GAAGF,MAAM,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC;EAC1B,IAAIG,MAAM,GAAGH,MAAM,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC;EAC1B,IAAII,MAAM,GAAGJ,MAAM,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC;EAC1B,IAAIK,MAAM,GAAGL,MAAM,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC;EAE1B,KAAK,MAAM,CA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E;MAAM,CACxB,CAAC,EAED3B,MAAM,IAAIH,KAAK,CAAC6H,QAAQ,EAExB1H,MAAM,IAAIH,KAAK,CAAC2I,eAAe,iBAC5B7J,IAAA,CAACT,IAAI;QACDuK,aAAa,EAAC,MAAM;QACpBhB,KAAK,EAAE;UACHiB,cAAc,EAAE,QAAQ;UACxBC,UAAU,EAAE,QAAQ;UACpB9B,QAAQ,EAAE,UAAU;UACpB+B,GAAG,EAAE,CAAC;UACNC,IAAI,EAAE,CAAC;UACPC,KAAK,EAAE,MAAM;UACbC,MAAM,EAAE;QACZ,CAAE;QAAArB,QAAA,eAEF/I,IAAA,CAACJ,cAAc;UACXuB,GAAG,EAAEQ,iBAAkB;UACvB0I,KAAK,EAAEnJ,KAAK,CAACoJ,gBAAgB,IAAI,MAAO;UACxCnB,eAAe,EAAEjI,KAAK,CAACqJ,0BAA0B,IAAI;QAAO,CAC/D;MAAC,CACA,CACT;IAAA,CACoB,CAAC,EACzB,CAAClJ,MAAM,iBACJrB,IAAA,CAACL,cAAc;MAAC6K,KAAK,EAAEtJ,KAAK,CAACuJ,gBAAgB,IAAI;IAAQ,CAAE,CAC9D,EACA,CAAC,CAACvJ,KAAK,CAAC6C,SAAS,iBAAI/D,IAAA,CAACN,SAAS,IAAE,CAAC;EAAA,CAEjC,CAAC;AAEf,CAAC,CAAC","ignoreList":[]}
@@ -1,2 +1,12 @@
1
1
  "use strict";
2
+
3
+ /**
4
+ * Navigator look-and-feel (route line, arrow accent, HUD). Passed to WebView `init` as `navigatorChrome`.
5
+ * All fields are optional; defaults match the built-in blue theme.
6
+ */
7
+
8
+ /** Значения `profile` для GraphHopper `POST …/route` (см. документацию GH). */
9
+ export const NAVIGATOR_PROFILE_IDS = ['car', 'car_avoid_motorway', 'car_avoid_ferry', 'car_avoid_toll', 'small_truck', 'truck', 'scooter', 'foot', 'hike', 'bike', 'mtb', 'racingbike', 'ecargobike'];
10
+
11
+ /** [longitude, latitude] — как в GeoJSON / GraphHopper. */
2
12
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/types.ts"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":["NAVIGATOR_PROFILE_IDS"],"sourceRoot":"../../../src","sources":["components/types.ts"],"mappings":";;AA+CA;AACA;AACA;AACA;;AAgBA;AACA,OAAO,MAAMA,qBAAqB,GAAG,CACjC,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,EACT,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAK,EACL,YAAY,EACZ,YAAY,CACN;;AAIV","ignoreList":[]}