r2don / react-naver-map Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Initialized success, error 문구에서 ncpClientId 빼기
naver map host 변경(링크)
네이버지도에서 제공하는 서브모듈도 사용할 수 있도록 수정
<script type="text/javascript" src="https://oapi.map.naver.com/openapi/v3/maps.js?ncpClientId=YOUR_CLIENT_ID&submodules=panorama,geocoder"></script>
중심을 좌표에 위치하게 변경
기존 composite pattern 변경 필요
hi, first of all I'm big fan of you.
i have little idea in this library
AS-IS
to access map instance, we can use useMapContext
but because of Provider is inside of Map component, map instance is accessible only from child components with the map component as a parent.
const InnerMap = () => {
const map = useMapContext()
return (
...
)
}
const NaverMap = () => {
return (
<Map
<InnerMap />
</Map>
)
}
TO-BE
how about change usage of useMapContext like this?
index.tsx
<MapContextProvider>
<App />
</MapContextProvider>
App.tsx
function App() {
const map = useMapContext();
return (
<Map />
);
}
i'll make pr if you ok.
reactIcon�에 <image>
태그를 넣고 계속해서 렌더링하면 점점 쪼그라드는 이슈
<div>
로 감싸면 해결되지만 정확한 이유는 모름A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.