function(){
const myPosition = {
lat: 33.450529632322265,
lng: 126.57038644763402,
}
return (
<>
<Map
center={{
lat: 33.450701,
lng: 126.570667,
}}
style={{
width: "100%",
height: "300px",
}}
level={3}
>
<MapMarker position={myPosition}>
<div style={{ color: "#000" }}>내가 일하고 싶은 곳</div>
</MapMarker>
</Map>
<Roadview
position={{
lat: 33.450335213582655,
lng: 126.57022069762772,
radius: 50,
}}
style={{
width: "100%",
height: "300px",
}}
>
<RoadviewMarker
position={myPosition}
altitude={6}
range={100}
onCreate={(marker) => {
const rv = marker.getMap()
const projection = rv.getProjection()
const viewpoint = projection.viewpointFromCoords(
marker.getPosition(),
marker.getAltitude()
)
rv.setViewpoint(viewpoint)
rv.relayout()
}}
>
<div style={{ color: "#000" }}>내가 일하고 싶은 곳</div>
</RoadviewMarker>
</Roadview>
</>
)
}