Skip to content

Conversation

@vicb
Copy link
Owner

@vicb vicb commented Jan 3, 2026

It doesn't work any more as a basemap.

Something like this would work

this.map = new Map({
  basemap: this.basemaps.Satellite,
  ground: { layers: [this.elevationLayer] },
  layers: [google3DTilesLayer]
});

Disabling for now

Summary by Sourcery

Bug Fixes:

  • Prevent usage of the broken Google 3D tiles basemap by removing its basemap configuration from the 3D map component.

Summary by CodeRabbit

  • Chores
    • Removed Google basemap option from available basemap selections in the 3D map component.

✏️ Tip: You can customize this high-level summary in your review settings.

It doesn't work any more as a basemap.

Something like this would work

this.map = new Map({
  basemap: this.basemaps.Satellite,
  ground: { layers: [this.elevationLayer] },
  layers: [google3DTilesLayer]
});

Disabling for now
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Jan 3, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Removes the now-broken Google 3D basemap configuration from the 3D map component, leaving other basemaps intact.

Class diagram for Map3dElement basemap configuration changes

classDiagram
  class Map3dElement {
    - airspace Airspace3dElement
    - basemaps Record_string_BasemapOrStringOrNull_
    - createBasemaps()
  }

  class Basemap {
    +baseLayers IntegratedMesh3DTilesLayer[*]
    +referenceLayers Layer[*]
    +title string
    +id string
  }

  class IntegratedMesh3DTilesLayer {
    +url string
    +title string
    +customParameters Record_string_string_
  }

  Map3dElement --> Basemap : uses
  Basemap --> IntegratedMesh3DTilesLayer : baseLayers

  %% Before change
  class BasemapsBefore {
    +Satellite BasemapOrStringOrNull
    +Google BasemapOrStringOrNull
    +OpenTopoMap BasemapOrStringOrNull
    +IGN_France BasemapOrStringOrNull
    +Topo BasemapOrStringOrNull
  }

  %% After change
  class BasemapsAfter {
    +Satellite BasemapOrStringOrNull
    +OpenTopoMap BasemapOrStringOrNull
    +IGN_France BasemapOrStringOrNull
    +Topo BasemapOrStringOrNull
  }

  Map3dElement --> BasemapsBefore : basemaps (removed)
  Map3dElement --> BasemapsAfter : basemaps (new)
Loading

File-Level Changes

Change Details Files
Remove configuration and registration of the Google 3D basemap from the 3D map component.
  • Drop the Google entry from the basemaps record so it is no longer exposed as an available basemap option.
  • Delete the Basemap construction that used IntegratedMesh3DTilesLayer with the Google 3D Tiles URL and GMAPS API key, including its assignment to basemaps.Google.
apps/fxc-front/src/app/components/3d/map3d-element.ts

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai
Copy link

coderabbitai bot commented Jan 3, 2026

Walkthrough

The change removes Google basemap support from a 3D map component by eliminating the basemap option from configuration, its construction logic, and associated imports for IntegratedMesh3DTilesLayer and API key retrieval utilities.

Changes

Cohort / File(s) Summary
Google basemap removal
apps/fxc-front/src/app/components/3d/map3d-element.ts
Removed Google basemap option from basemaps configuration map; deleted IntegratedMesh3DTilesLayer construction code with GMAPS key; removed imports of IntegratedMesh3DTilesLayer and getApiKeyAndHost function

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 No more tiles from the Goog,
The map's been simplified for good,
Imports vanished, configs lean,
One less basemap on the scene! 🗺️

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Remove the google maps 3D' directly summarizes the main change: removing Google Maps 3D functionality from the codebase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch vicb/gmap-3d

📜 Recent review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fe4a96e and 72398fd.

📒 Files selected for processing (1)
  • apps/fxc-front/src/app/components/3d/map3d-element.ts
💤 Files with no reviewable changes (1)
  • apps/fxc-front/src/app/components/3d/map3d-element.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Sourcery review
  • GitHub Check: Analyze (javascript)
  • GitHub Check: build (22.x)
  • GitHub Check: Cloudflare Pages

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • Now that the Google basemap is removed from the basemaps map, double-check any UI or configuration logic that referenced basemaps.Google (e.g., basemap selectors or defaults) so they don’t try to use a non-existent key.
  • If IntegratedMesh3DTilesLayer is no longer used anywhere after this removal, consider deleting its import and any related configuration to avoid carrying unused dependencies.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Now that the `Google` basemap is removed from the `basemaps` map, double-check any UI or configuration logic that referenced `basemaps.Google` (e.g., basemap selectors or defaults) so they don’t try to use a non-existent key.
- If `IntegratedMesh3DTilesLayer` is no longer used anywhere after this removal, consider deleting its import and any related configuration to avoid carrying unused dependencies.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@cloudflare-workers-and-pages
Copy link

Deploying flyxc with  Cloudflare Pages  Cloudflare Pages

Latest commit: 72398fd
Status: ✅  Deploy successful!
Preview URL: https://21f22284.flyxc.pages.dev
Branch Preview URL: https://vicb-gmap-3d.flyxc.pages.dev

View logs

@vicb vicb merged commit 656fe7f into master Jan 3, 2026
7 checks passed
@vicb vicb deleted the vicb/gmap-3d branch January 3, 2026 11:09
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.

2 participants