Migration from legacy TICKETING3D¶
Load a view:¶
- Instead of
load, you need to useloadView3dand thevenue_idmust be always specified. It usesPromisesinstead of acallback.
DOM management:¶
closemethod only removes the view from the DOM, but it mantains de view opened in memory. Callingopenwould append the view again to the DOM. The old methodcloseinTICKETING3Dalso removed the view from memory (forcing you to load it again).- The method
resetremoves the view from memory, but preserves the viewer on the DOM (with a black screen). To control the size of the viewport, it shares the same API withDVM map_viewermodule: fixed_aspect_ratio=true+aspect_ratio=Xwill adapt to 100% width of its container and will comute the height with theaspect_ratio.fixed_aspect_ratio=falsewill adapt to 100% width and 100% height (container MUST have height, or it will be 1px).