@mapgpu/widgets
UI widgets for map interaction.
npm install @mapgpu/widgets Exports
LayerListWidget Toggleable layer list with drag-to-reorder. Shows layer visibility, opacity, and display order.
ScaleBarWidget Dynamic scale bar with metric/imperial units. Updates automatically on view changes.
CoordinatesWidget Cursor position display. Supports DD (Decimal Degrees), DMS, and MGRS formats.
BasemapGalleryWidget Basemap switcher with thumbnail gallery. Switch between predefined basemap configurations.
PopupWidget Info popup anchored to map features. Shows at screen coordinates with custom HTML content.
TooltipWidget Hover tooltip for feature attributes. Follows cursor and shows/hides on enter/leave.
SearchWidget Geocoding search with pluggable providers. Text input with autocomplete results.
LegendWidget Auto-generated legend from layer renderers. Shows symbol previews with labels.
DrawToolbarWidget Drawing tool toolbar with tool switching. Integrates with ToolManager for point/polyline/polygon/edit tools.
MeasureToolbarWidget Measurement toolbar for point/line/area measurement. Unit switching (metric/imperial/nautical).