与地图交互
识别坐标、显示文本、添加数据提示
以交互方式识别位置的坐标,或在地理坐标区和地图坐标区上显示文本。为点、线和多边形形状添加自定义数据提示。对于地理坐标区,可以向坐标区工具栏添加底图选择器。
函数
ginput | 标识坐标区坐标 |
gtext | 使用鼠标将文本添加到图窗 |
datatip | 创建数据提示 |
dataTipTextRow | 向数据提示添加行 |
addToolbarMapButton | Add map button to toolbar (自 R2021b 起) |
removeToolbarMapButton | 从工具栏中移除“地图”按钮 (自 R2021b 起) |
主题
- 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. (自 R2025a 起)