Skip to content

Commit c8507ba

Browse files
committedJun 3, 2021
타입 수정
1 parent 37d2ec5 commit c8507ba

File tree

4 files changed

+31
-5
lines changed

4 files changed

+31
-5
lines changed
 

‎example/map/index.d.ts

+23-3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export interface NaverMapViewProps {
7878
latitude: number;
7979
longitude: number;
8080
zoom: number;
81+
contentsRegion: [Coord, Coord, Coord, Coord, Coord];
82+
coveringRegion: [Coord, Coord, Coord, Coord, Coord];
8183
}) => void;
8284
onMapClick?: (event: {
8385
x: number;
@@ -100,9 +102,10 @@ export interface NaverMapViewProps {
100102
tiltGesturesEnabled?: boolean;
101103
rotateGesturesEnabled?: boolean;
102104
stopGesturesEnabled?: boolean;
105+
liteModeEnabled?: boolean;
103106
useTextureView?: boolean;
104107
}
105-
export default class NaverMapView extends Component<NaverMapViewProps> {
108+
export default class NaverMapView extends Component<NaverMapViewProps, {}> {
106109
ref?: RNNaverMapView;
107110
nodeHandle?: null | number;
108111
private resolveRef;
@@ -123,6 +126,8 @@ export default class NaverMapView extends Component<NaverMapViewProps> {
123126
latitude: number;
124127
longitude: number;
125128
zoom: number;
129+
contentsRegion: [Coord, Coord, Coord, Coord, Coord];
130+
coveringRegion: [Coord, Coord, Coord, Coord, Coord];
126131
}>) => void;
127132
handleOnMapClick: (event: React.SyntheticEvent<{}, {
128133
x: number;
@@ -150,19 +155,34 @@ export interface MarkerProps extends MapOverlay {
150155
width?: number;
151156
height?: number;
152157
alpha?: number;
158+
angle?: number;
159+
hidden?: boolean;
160+
zIndex?: number;
161+
iconPerspectiveEnabled?: boolean;
162+
isHideCollidedSymbols?: boolean;
163+
isHideCollidedMarkers?: boolean;
164+
isHideCollidedCaptions?: boolean;
165+
isForceShowIcon?: boolean;
153166
animated?: boolean;
154167
caption?: {
155168
text?: string;
156169
align?: Align;
157170
textSize?: number;
158171
color?: string;
159172
haloColor?: string;
173+
offset?: number;
174+
requestedWidth?: number;
175+
minZoom?: number;
176+
maxZoom?: number;
160177
};
161178
subCaption?: {
162179
text?: string;
163180
textSize?: number;
164-
color?: number;
165-
haloColor?: number;
181+
color?: string;
182+
haloColor?: string;
183+
requestedWidth?: number;
184+
minZoom?: number;
185+
maxZoom?: number;
166186
};
167187
}
168188
export declare class Marker extends Component<MarkerProps> {

‎example/map/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ export default class NaverMapView extends Component {
109109
}
110110
export class Marker extends Component {
111111
render() {
112-
var _a;
113-
return React.createElement(RNNaverMapMarker, Object.assign({}, this.props, { image: getImageUri(this.props.image), caption: this.props.caption && Object.assign(Object.assign({}, this.props.caption), { textSize: (_a = this.props.caption.textSize) !== null && _a !== void 0 ? _a : 12, color: parseColor(this.props.caption.color), haloColor: parseColor(this.props.caption.haloColor) }) }));
112+
var _a, _b;
113+
return React.createElement(RNNaverMapMarker, Object.assign({}, this.props, { image: getImageUri(this.props.image), caption: this.props.caption && Object.assign(Object.assign({}, this.props.caption), { textSize: (_a = this.props.caption.textSize) !== null && _a !== void 0 ? _a : 12, color: parseColor(this.props.caption.color), haloColor: parseColor(this.props.caption.haloColor) }), subCaption: this.props.subCaption && Object.assign(Object.assign({}, this.props.subCaption), { textSize: (_b = this.props.subCaption.textSize) !== null && _b !== void 0 ? _b : 12, color: parseColor(this.props.subCaption.color), haloColor: parseColor(this.props.subCaption.haloColor) }) }));
114114
}
115115
}
116116
export class Circle extends Component {

‎index.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export interface NaverMapViewProps {
7878
latitude: number;
7979
longitude: number;
8080
zoom: number;
81+
contentsRegion: [Coord, Coord, Coord, Coord, Coord];
82+
coveringRegion: [Coord, Coord, Coord, Coord, Coord];
8183
}) => void;
8284
onMapClick?: (event: {
8385
x: number;
@@ -124,6 +126,8 @@ export default class NaverMapView extends Component<NaverMapViewProps, {}> {
124126
latitude: number;
125127
longitude: number;
126128
zoom: number;
129+
contentsRegion: [Coord, Coord, Coord, Coord, Coord];
130+
coveringRegion: [Coord, Coord, Coord, Coord, Coord];
127131
}>) => void;
128132
handleOnMapClick: (event: React.SyntheticEvent<{}, {
129133
x: number;

‎index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ export default class NaverMapView extends Component<NaverMapViewProps, {}> {
176176
latitude: number;
177177
longitude: number;
178178
zoom: number;
179+
contentsRegion: [Coord, Coord, Coord, Coord, Coord];
180+
coveringRegion: [Coord, Coord, Coord, Coord, Coord];
179181
}>) => this.props.onCameraChange && this.props.onCameraChange(event.nativeEvent);
180182

181183
handleOnMapClick = (event: SyntheticEvent<{}, {

0 commit comments

Comments
 (0)
Please sign in to comment.