MCPcopy Create free account
hub / github.com/opengeos/leafmap / view_vector_cli

Function view_vector_cli

leafmap/cli.py:525–549  ·  view source on GitHub ↗

Direct CLI entry point for view-vector command.

()

Source from the content-addressed store, hash-verified

523
524
525def view_vector_cli():
526 """Direct CLI entry point for view-vector command."""
527 parser = argparse.ArgumentParser(
528 description="View a vector file interactively in the browser",
529 formatter_class=argparse.RawDescriptionHelpFormatter,
530 )
531 parser.add_argument("file_path", help="Path or URL to the vector file")
532 parser.add_argument(
533 "--style",
534 default="dark-matter",
535 help="Map style (default: dark-matter). Options: dark-matter, positron, voyager, etc.",
536 )
537 parser.add_argument(
538 "--no-browser",
539 action="store_true",
540 help="Don't open browser automatically",
541 )
542
543 args = parser.parse_args()
544
545 view_vector(
546 file_path=args.file_path,
547 style=args.style,
548 open_browser=not args.no_browser,
549 )
550
551
552def main():

Callers

nothing calls this directly

Calls 1

view_vectorFunction · 0.70

Tested by

no test coverage detected