MCPcopy Create free account
hub / github.com/ImGoodBai/MapGoGoGo / MapZoomControls

Function MapZoomControls

frontend/src/maps.tsx:533–550  ·  view source on GitHub ↗
({
  onZoomIn,
  onZoomOut,
}: {
  onZoomIn: () => void;
  onZoomOut: () => void;
})

Source from the content-addressed store, hash-verified

531}
532
533function MapZoomControls({
534 onZoomIn,
535 onZoomOut,
536}: {
537 onZoomIn: () => void;
538 onZoomOut: () => void;
539}) {
540 return (
541 <div className="mapZoomControls" aria-label="地图缩放">
542 <button type="button" onClick={onZoomIn} title="放大地图">
543 <Plus size={18} />
544 </button>
545 <button type="button" onClick={onZoomOut} title="缩小地图">
546 <Minus size={18} />
547 </button>
548 </div>
549 );
550}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected