Display the Map in the default web browser.
(self)
| 414 | return self._to_png() |
| 415 | |
| 416 | def show_in_browser(self) -> None: |
| 417 | """Display the Map in the default web browser.""" |
| 418 | with temp_html_filepath(self.get_root().render()) as fname: |
| 419 | webbrowser.open("file://" + fname) |
| 420 | print( |
| 421 | "Your map should have been opened in your browser automatically." |
| 422 | "\nPress ctrl+c to return." |
| 423 | ) |
| 424 | # Block until stopped by user, afterwards remove the temporary file |
| 425 | try: |
| 426 | while True: |
| 427 | time.sleep(100) |
| 428 | except KeyboardInterrupt: |
| 429 | pass |
| 430 | |
| 431 | def fit_bounds( |
| 432 | self, |
nothing calls this directly
no test coverage detected