Giter VIP home page Giter VIP logo

Comments (2)

somfist avatar somfist commented on September 11, 2024

해결방안
Kakao Docs상 마커 삭제는 Marker객체의 함수로 있어 좌표별 마커 생성 시 State로 별도 관리하며 필요시 State의 Marker 객체를 가져와 삭제

마커 생성 = new kakao.maps.Marker({position}).setMap(map)
마커 삭제 = new kakao.maps.Marker({position}).setMap(null)

from clips_project.

somfist avatar somfist commented on September 11, 2024

마커 관련 개선 사항

  • 문제 사항
    카테고리를 클릭할 때마다 좌표를 새로 받고 새로운 마커 생성 및 기존 마커 삭제를 진행하면 요청 건수도 많아지며 반복문을 계속 사용하기에 효율이 좋지 않음

  • 해결 방안
    주소 검색 시 모든 카테고리의 좌표를 받아와 State에 저장 후 선택된 카테고리만 보여주는 방식으로 요청 건수 및 반복문 최소화

from clips_project.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.