2
2
3
3
import android .graphics .Rect ;
4
4
import android .view .View ;
5
-
5
+ import android . util . Log ;
6
6
import androidx .annotation .NonNull ;
7
7
import androidx .annotation .Nullable ;
8
8
19
19
import com .naver .maps .geometry .LatLngBounds ;
20
20
import com .naver .maps .map .NaverMap ;
21
21
import com .naver .maps .map .NaverMapOptions ;
22
- import com .naver .maps .map .util .FusedLocationSource ;
22
+ // import com.naver.maps.map.util.FusedLocationSource;
23
23
24
24
import java .util .Arrays ;
25
25
import java .util .Collections ;
31
31
32
32
public class RNNaverMapViewManager extends ViewGroupManager <RNNaverMapViewContainer > {
33
33
private final ReactApplicationContext appContext ;
34
- private final FusedLocationSource locationSource ;
34
+ // private final FusedLocationSource locationSource;
35
35
36
36
private static final int ANIMATE_TO_REGION = 1 ;
37
37
private static final int ANIMATE_TO_COORDINATE = 2 ;
38
38
private static final int ANIMATE_TO_TWO_COORDINATES = 3 ;
39
39
private static final int SET_LOCATION_TRACKING_MODE = 4 ;
40
40
private static final int ANIMATE_TO_COORDINATES = 6 ;
41
41
private static final int SET_LAYER_GROUP_ENABLED = 7 ;
42
+ private static final int LOCATION_PERMISSION_REQUEST_CODE = 100 ;
42
43
private static final List <String > LAYER_GROUPS = Collections .unmodifiableList (Arrays .asList (
43
44
NaverMap .LAYER_GROUP_BUILDING ,
44
45
NaverMap .LAYER_GROUP_TRANSIT ,
@@ -51,7 +52,7 @@ public class RNNaverMapViewManager extends ViewGroupManager<RNNaverMapViewContai
51
52
public RNNaverMapViewManager (ReactApplicationContext context ) {
52
53
super ();
53
54
this .appContext = context ;
54
- locationSource = new FusedLocationSource (context .getCurrentActivity (), 0x1000 );
55
+ // locationSource = new FusedLocationSource(context.getCurrentActivity(), 0x1000);
55
56
}
56
57
57
58
@ NonNull
@@ -63,7 +64,8 @@ public String getName() {
63
64
@ NonNull
64
65
@ Override
65
66
protected RNNaverMapViewContainer createViewInstance (@ NonNull ThemedReactContext reactContext ) {
66
- return new RNNaverMapViewContainer (reactContext , appContext , locationSource , getNaverMapViewOptions ());
67
+ return new RNNaverMapViewContainer (reactContext , appContext , getNaverMapViewOptions ());
68
+ // return new RNNaverMapViewContainer(reactContext, appContext, locationSource, getNaverMapViewOptions());
67
69
}
68
70
69
71
@ Override
0 commit comments