Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Non-interleaved GoogleMapsOverlay layers render above map controls for vector maps #9163

Open
1 of 7 tasks
camden-obertop opened this issue Sep 19, 2024 · 0 comments
Open
1 of 7 tasks
Labels

Comments

@camden-obertop
Copy link

Description

The deck.gl GoogleMapsOverlay renders above the Google Map controls. The image below shows what happens when rendering this scatterplot layer from the documentation
Screenshot 2024-08-02 at 9 36 19 AM

This problem occurs when you are working on a Google Map with a vector map id. If you do not provide an id or the map is set to "raster" style, the layer will be behind the controls. If the map is set to be vector style, it will work when the overlay interleaved is set to true. This bug specifically occurs on a vector Google Map when interleaved is false

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CartoLayer
  • ArcGIS

Expected Behavior

The layer should render beneath the map controls

Steps to Reproduce

Set up a Google Maps API project with a vector map id. Use that as the map you pass to overlay.setMap

...
// set up deck.gl overlay and layer
const layer = new ScatterplotLayer({
  id: 'ScatterplotLayer',
  data: 'https://raw.githubusercontent.com/visgl/deck.gl-data/master/website/bart-stations.json',
  stroked: true,
  getPosition: d => d.coordinates,
  getRadius: d => Math.sqrt(d.exits),
  getFillColor: [255, 140, 0],
  getLineColor: [0, 0, 0],
  getLineWidth: 10,
  radiusScale: 6,
  pickable: true
});

const overlay = new GoogleMapsOverlay({
  layers: [layer],
  interleaved: false,
});

// associate the deck.gl overlay with the google map
overlay.setMap(map);

Environment

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant