googlemaps-samples / codelab-3d-maps-webgl-js

Apache License 2.0
27 stars 54 forks source link

webglOverlayView callbacks never get called #2

Closed sfc-gh-mzukowski closed 2 years ago

sfc-gh-mzukowski commented 2 years ago

Hi,

I've been trying to use google.maps.WebglOverlayView in my toy app, but couldn't make it work. So I tested this project, and it seems I'm hitting the same issue.

After removing the plugins from webpack.config.js (does not seem to be needed for maps to work, as API is in app.js), and running npm i; npm start, I see the maps opening, but no 3D objects.

I added logging to various places, and while initWebglOverlayView gets called, the event handlers defined there never are (e.g. webglOverlayView.onAdd).

I suspect something might have changed with your APIs, as I see examples in your documentation now using "ThreeJSOverlayView", which is not documented in the "Reference" section of your docs.

sfc-gh-mzukowski commented 2 years ago

Sorry. I kept digging and I figured out I didn't create a Map with "Vector" type. False alarm.