Interact with Maps
Identify coordinates, display text, add data tips
Interactively identify the coordinates of a location, or display text on geographic axes and map axes. Add customized data tips to point, line, and polygon shapes. For geographic axes, you can add a basemap picker to the axes toolbar.
Functions
ginput | Identify axes coordinates |
gtext | Add text to figure using mouse |
datatip | Create data tip |
dataTipTextRow | Add row to data tips |
addToolbarMapButton | Add map button to toolbar (Since R2021b) |
removeToolbarMapButton | Remove map button from toolbar (Since R2021b) |
Topics
- Interactively Identify Geographic Locations
Find the latitude and longitude coordinates of locations on a map by interactively selecting the locations.
- Interactively Display Text on Maps
Display text on a map by interactively selecting the locations for the text.
- Add Data Tips to Point, Line, and Polygon Shapes
Create customized data tips on point, line, and polygon shapes created using the
geoplotfunction. (Since R2025a)