Back to the Shapespark home page

Camera move to position then auto open webpage in same tab

Hey all, I would like to have the user click a camera position button, have the camera move to that point, then launch a webpage in the same window…is that possible? The thing is that I’m working on a multifamily unit, and I know I can click an open URL icon or text above a particular unit, but I think it would be more intuitive for the user to do it from the preset buttons in the upper right.

The Shapespark editor doesn’t allow to open an HTML pop-up when the user switches to view.

There is a JavaScript API that allows to listen for view switch events, but you would need handle such events manually by writing HTML and JavaScript code that creates and closes the pop-up (See ‘view switch’ section of this document: https://github.com/shapespark/shapespark-viewer-api)