![]() onAdd() is called when the overlay is created.Lifecycle hooks are where you setup, draw, and tear down anything you want The lifecycle of the WebGL rendering context of the vector basemap. WebGL Overlay View provides a set of hooks that are called at various times in Pass it your map instance using setMap: // Create a map instance.Ĭonst map = new (mapDiv, mapOptions) Ĭonst webglOverlayView = new () To add the overlay to your map, implement, then ![]() The map ID, to allow for full 3D camera control. We strongly recommend enabling tilt and rotation when you create To use WebGL Overlay View, you must load the map using a map ID with the vector Objects rendered with the WebGL Overlay View canĪlso be tied to latitude/longitude coordinates, so they move when you drag, Such as depth occlusion with 3D building geometry, and the ability to sync 2D/3DĬontent with basemap rendering. This use of a shared rendering context provides benefits WebGL Overlay View provides directĪccess to the same WebGL rendering context Google Maps Platform uses to render Or popular Graphics libraries like Three.js. With WebGL Overlay View you can add content to your maps using WebGL directly,
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |