
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
react-kakao-maps-sdk
Advanced tools
์ด ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํด์๋ ํ์์ ์ผ๋ก Kakao ์ง๋ API๋ฅผ ๋ถ๋ฌ์์ผ ํฉ๋๋ค.
<script
type="text/javascript"
src="//dapi.kakao.com/v2/maps/sdk.js?appkey=๋ฐ๊ธ๋ฐ์ APP KEY๋ฅผ ๋ฃ์ผ์๋ฉด ๋ฉ๋๋ค.&libraries=services,clusterer"
></script>
const Component = () => {
const [ loading, error ] = useKakaoLoader({
appkey: "...", // ๋ฐ๊ธ ๋ฐ์ APPKEY
...options // ์ถ๊ฐ ์ต์
})
return <>
...
<>
}
ํ์ ์คํฌ๋ฆฝํธ ์ฌ์ฉ์๋ฅผ ์ํด kakao.maps.d.ts ํจํค์ง๋ฅผ ์ ๊ณตํฉ๋๋ค.
tsconfig.json
์ compilerOptions.types
์์ฑ์ kakao.maps.d.ts
ํจํค์ง๋ฅผ ์ถ๊ฐํ์๋ฉด ๋ฉ๋๋ค.
{
...,
"compilerOptions": {
...,
"types": [
...,
"kakao.maps.d.ts"
]
}
}
npm install react-kakao-maps-sdk
# or
yarn add react-kakao-maps-sdk
# or
pnpm add react-kakao-maps-sdk
function(){
return (
<Map
center={{ lat: 33.5563, lng: 126.79581 }}
style={{ width: "100%", height: "360px" }}
>
<MapMarker position={{ lat: 33.55635, lng: 126.795841 }}>
<div style={{color:"#000"}}>Hello World!</div>
</MapMarker>
</Map>
)
}
function(){
return (
<Map
center={{ lat: 33.5563, lng: 126.79581 }}
style={{ width: "100%", height: "360px" }}
>
<CustomOverlayMap position={{ lat: 33.55635, lng: 126.795841 }}>
<div
style={{padding:"42px", backgroundColor:"#fff", color:"#000"}}
>
Custom Overlay!
</div>
</CustomOverlayMap>
</Map>
)
}
โป ์ฐธ๊ณ : ํด๋น ๊ธฐ๋ฅ์ ์ฌ์ฉํ๊ธฐ ์ํด์๋ ์ฌ์ฉ์๋ ๋ฐ๋์
clusterer
library๋ฅผ ๋ถ๋ฌ์์ผ ํฉ๋๋ค.
function(){
return (
<Map
center={{ lat: 36.2683, lng: 127.6358 }}
style={{ width: "100%", height: "360px" }}
level={14}
>
<MarkerClusterer
averageCenter={true}
minLevel={10}
>
{clusterPositionsData.positions.map((pos) => (
<MapMarker
key={`${pos.lat}-${pos.lng}`}
position={pos}
/>
))}
</MarkerClusterer>
</Map>
)
}
ISSUE์ PR ๋ํ์ ์ ๋๋ค..!!
FAQs
React components for using kakao map api
The npm package react-kakao-maps-sdk receives a total of 2,267 weekly downloads. As such, react-kakao-maps-sdk popularity was classified as popular.
We found that react-kakao-maps-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Company News
Socket is bringing best-in-class reachability analysis into the platform โ cutting false positives, accelerating triage, and cementing our place as the leader in software supply chain security.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.