You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently switched from using Deck.gl standalone to using React Map GL with DeckGLOverlay.
I previously implemented icon position movement using the drag function of Deck.gl's IconLayer, and I was able to prevent map movement during the drag by controlling the Deck.gl controller prop. However, I couldn't find a similar feature in React Map GL. Controlling onMove or viewState does not allow me to replicate icon dragging, and setting dragPan to false makes dragging impossible.
Is there a way to replicate object dragging without using markers?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I recently switched from using Deck.gl standalone to using React Map GL with DeckGLOverlay.
I previously implemented icon position movement using the drag function of Deck.gl's IconLayer, and I was able to prevent map movement during the drag by controlling the Deck.gl controller prop. However, I couldn't find a similar feature in React Map GL. Controlling onMove or viewState does not allow me to replicate icon dragging, and setting dragPan to false makes dragging impossible.
Is there a way to replicate object dragging without using markers?
Beta Was this translation helpful? Give feedback.
All reactions