# MAP\_ACTION Drag

MAP\_ACTION Drag enables direct drag gestures on map or canvas-based surfaces where traditional UI-element detection does not apply. Unlike Scroll or Swipe which operate on scrollable containers—MAP\_ACTION Drag interacts purely with the visual surface, allowing Drizz to simulate user-driven map navigation, marker repositioning, or directional panning with high precision.\
This command is essential for map-heavy applications where pins, zones, and overlays must be moved or explored without relying on structured UI trees.

Executes a drag gesture on the map or canvas surface based on explicit start and end directions. Effective for panning, repositioning markers, or moving on non-element surfaces.

**When to use:**

1. Panning the map to explore surrounding areas
2. Repositioning a marker on map surfaces
3. Simulating directional movement where Scroll/Swipe fails<br>

**Syntax Requirements:**

1. Always provide start direction and end direction
2. Clarify intent (purpose of drag)

**Examples:**

1. MAP\_ACTION Drag map pointer from left to right
2. MAP\_ACTION Drag from bottom to top
3. MAP\_ACTION Drag from right to left to reposition marker
4. MAP\_ACTION Drag from top to bottom to view surrounding region


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.drizz.dev/commands-reference/navigation-command/map_action-drag.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
