Skip to content

Fix: Correct malformed HTML in map viewer#1

Draft
google-labs-jules[bot] wants to merge 4 commits into
mainfrom
fix-map-viewer-rendering
Draft

Fix: Correct malformed HTML in map viewer#1
google-labs-jules[bot] wants to merge 4 commits into
mainfrom
fix-map-viewer-rendering

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

This change fixes a rendering issue in the naturalearth_map_viewer(10).html file caused by a malformed HTML structure. Extraneous JavaScript code blocks were present at the beginning and end of the file, which have now been removed to ensure the document is a valid HTML5 file.


PR created automatically by Jules for task 6918930004809711675

The `naturalearth_map_viewer(10).html` file was malformed due to extraneous JavaScript code blocks at the beginning and end of the document. This prevented the browser from correctly parsing and rendering the page.

This commit removes the misplaced code blocks, restoring the proper HTML structure. The fix ensures that the file starts with a `<!DOCTYPE html>` declaration and that all JavaScript code is contained within the appropriate `<script>` tags. This resolves the rendering issue and allows the map viewer to display as intended.
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules Bot and others added 3 commits October 10, 2025 11:56
This commit resolves two issues in the map viewer to improve the user experience:

1.  **Corrected Zoom Behavior:** The maximum zoom level has been significantly increased by adjusting the `scaleExtent` in the D3 zoom configuration. This allows the globe to be zoomed in much further, enabling the map to fill the entire screen width as requested.

2.  **Disabled Auto-Rotation:** The auto-rotation feature has been disabled by default by setting the `isRotating` flag to `false` on page load. The UI has been updated to reflect this change, with the "Toggle Rotation" button now showing "Start Rotation" by default.

These changes ensure the map viewer behaves as the user expects, providing a more intuitive and immersive experience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant