title: Mapbox Icons/Markers "BearingSnap" or Snap to Position
body: <p>Is there a way to move icons/markers to a certain location where it will then "snap" to the location? </p>
  
  <p>For example, chess games on the computer where when you move a chess piece to the correct square, it will snap to that position when you let go of the piece near/around the square.</p>
  
  <p>So what I want is to move a marker or an icon to a certain location, let's say the capital of California, and the marker will "snap" to the location that I want when I move it and let go of the marker near the location. But I also want to still be able to move the marker if I want to.</p>
  
  <p>I know Mapbox gl has <a href="https://www.mapbox.com/mapbox-gl-js/api/" rel="nofollow">bearingSnap</a> which snaps the map back to north after the user rotates the map but I can't find anything for just icons/markers and I don't believe I can use <code>bearingSnap</code> for it.</p>
  
  <p>Thanks.</p>