7
7
NaverMapCircleOverlay ,
8
8
NaverMapGroundOverlay ,
9
9
NaverMapMarkerOverlay ,
10
- NaverMapMultiPathOverlay ,
11
10
NaverMapPathOverlay ,
12
11
NaverMapPolygonOverlay ,
13
12
NaverMapPolylineOverlay ,
@@ -27,6 +26,7 @@ import {
27
26
PERMISSIONS ,
28
27
request ,
29
28
requestLocationAccuracy ,
29
+ requestMultiple ,
30
30
} from 'react-native-permissions' ;
31
31
import { Btn , Range , Toggle } from './component/components' ;
32
32
import { type City , getCitiesByRegion } from './db/CityDatabase' ;
@@ -123,16 +123,16 @@ export default function App() {
123
123
} ) ;
124
124
}
125
125
if ( Platform . OS === 'android' ) {
126
- // requestMultiple([
127
- // PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION,
128
- // PERMISSIONS.ANDROID.ACCESS_BACKGROUND_LOCATION,
129
- // ])
130
- // .then((status) => {
131
- // console.log(`Location request status: ${status}`)
132
- // })
133
- // .catch((e) => {
134
- // console.error(`Location request has been failed: ${e}`)
135
- // })
126
+ requestMultiple ( [
127
+ PERMISSIONS . ANDROID . ACCESS_FINE_LOCATION ,
128
+ PERMISSIONS . ANDROID . ACCESS_BACKGROUND_LOCATION ,
129
+ ] )
130
+ . then ( ( status ) => {
131
+ console . log ( `Location request status: ${ status } ` ) ;
132
+ } )
133
+ . catch ( ( e ) => {
134
+ console . error ( `Location request has been failed: ${ e } ` ) ;
135
+ } ) ;
136
136
}
137
137
} , [ ] ) ;
138
138
@@ -238,7 +238,6 @@ export default function App() {
238
238
height = { 100 }
239
239
image = { { httpUri : 'https://picsum.photos/1000/1201' } }
240
240
/>
241
-
242
241
< NaverMapArrowheadPathOverlay
243
242
coords = { [
244
243
{ longitude : 126.93240597362552 , latitude : 32.433509943138404 } ,
@@ -264,7 +263,6 @@ export default function App() {
264
263
globalZIndex = { - 1 }
265
264
onTap = { ( ) => console . log ( 'hi' ) }
266
265
/>
267
-
268
266
< NaverMapGroundOverlay
269
267
image = { { assetName : 'thumbnail' } }
270
268
region = { Regions . Jeju }
@@ -284,48 +282,48 @@ export default function App() {
284
282
passedColor = { 'black' }
285
283
outlineWidth = { 1 }
286
284
/>
287
- < NaverMapMultiPathOverlay
288
- coordParts = { [
289
- [
290
- { latitude : 33.5744287 , longitude : 126.982625 } ,
291
- { latitude : 33.57152 , longitude : 126.97714 } ,
292
- { latitude : 33.56607 , longitude : 126.98268 } ,
293
- ] ,
294
- [
295
- { latitude : 33.56607 , longitude : 126.98268 } ,
296
- { latitude : 33.56445 , longitude : 126.97707 } ,
297
- { latitude : 33.55855 , longitude : 126.97822 } ,
298
- ] ,
299
- [
300
- { latitude : 33.55855 , longitude : 126.97822 } ,
301
- { latitude : 33.55234 , longitude : 126.98456 } ,
302
- { latitude : 33.54789 , longitude : 126.97333 } ,
303
- ] ,
304
- ] }
305
- colorParts = { [
306
- {
307
- color : 'red' ,
308
- passedColor : 'darkred' ,
309
- outlineColor : 'white' ,
310
- passedOutlineColor : 'gray' ,
311
- } ,
312
- {
313
- color : 'green' ,
314
- passedColor : 'darkgreen' ,
315
- outlineColor : 'white' ,
316
- passedOutlineColor : 'gray' ,
317
- } ,
318
- {
319
- color : 'blue' ,
320
- passedColor : 'darkblue' ,
321
- outlineColor : 'white' ,
322
- passedOutlineColor : 'gray' ,
323
- } ,
324
- ] }
325
- width = { 6 }
326
- outlineWidth = { 2 }
327
- onTap = { ( ) => console . log ( 'MultiPath tapped!' ) }
328
- />
285
+ { /* <NaverMapMultiPathOverlay*/ }
286
+ { /* coordParts={[*/ }
287
+ { /* [*/ }
288
+ { /* { latitude: 33.5744287, longitude: 126.982625 },*/ }
289
+ { /* { latitude: 33.57152, longitude: 126.97714 },*/ }
290
+ { /* { latitude: 33.56607, longitude: 126.98268 },*/ }
291
+ { /* ],*/ }
292
+ { /* [*/ }
293
+ { /* { latitude: 33.56607, longitude: 126.98268 },*/ }
294
+ { /* { latitude: 33.56445, longitude: 126.97707 },*/ }
295
+ { /* { latitude: 33.55855, longitude: 126.97822 },*/ }
296
+ { /* ],*/ }
297
+ { /* [*/ }
298
+ { /* { latitude: 33.55855, longitude: 126.97822 },*/ }
299
+ { /* { latitude: 33.55234, longitude: 126.98456 },*/ }
300
+ { /* { latitude: 33.54789, longitude: 126.97333 },*/ }
301
+ { /* ],*/ }
302
+ { /* ]}*/ }
303
+ { /* colorParts={[*/ }
304
+ { /* {*/ }
305
+ { /* color: 'red',*/ }
306
+ { /* passedColor: 'darkred',*/ }
307
+ { /* outlineColor: 'white',*/ }
308
+ { /* passedOutlineColor: 'gray',*/ }
309
+ { /* },*/ }
310
+ { /* {*/ }
311
+ { /* color: 'green',*/ }
312
+ { /* passedColor: 'darkgreen',*/ }
313
+ { /* outlineColor: 'white',*/ }
314
+ { /* passedOutlineColor: 'gray',*/ }
315
+ { /* },*/ }
316
+ { /* {*/ }
317
+ { /* color: 'blue',*/ }
318
+ { /* passedColor: 'darkblue',*/ }
319
+ { /* outlineColor: 'white',*/ }
320
+ { /* passedOutlineColor: 'gray',*/ }
321
+ { /* },*/ }
322
+ { /* ]}*/ }
323
+ { /* width={6}*/ }
324
+ { /* outlineWidth={2}*/ }
325
+ { /* onTap={() => console.log('MultiPath tapped!')}*/ }
326
+ { /*/>*/ }
329
327
< NaverMapPolygonOverlay
330
328
outlineWidth = { 5 }
331
329
outlineColor = { '#f2f2' }
@@ -385,7 +383,7 @@ export default function App() {
385
383
isShowLocationButton = { myLocation }
386
384
// isExtentBoundedInKorea
387
385
onInitialized = { ( ) => console . log ( 'initialized!' ) }
388
- onOptionChanged = { ( { nativeEvent : { locationTrackingMode } } ) =>
386
+ onOptionChanged = { ( { locationTrackingMode } ) =>
389
387
console . log ( 'Option Changed!' , locationTrackingMode )
390
388
}
391
389
onCameraChanged = { ( { region } ) => {
0 commit comments