-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Custom Hotspot #1194
Comments
You would start by defining your click handler function, e.g.: function yourClickHandler(evt, args) {
// Your logic goes here
// `evt` is the click event
// `args` is the contents of `clickHandlerArgs`
} You'd then set it for your hot spot, e.g.: hotSpots: [
{
pitch: 0,
yaw: 100,
type: "info",
clickHandlerFunc: yourClickHandler,
clickHandlerArgs: "yourReferenceKey"
},
], This example sets |
Is this still possible if the image data is in a different file as above? Can you provide an example for writing the function? Sorry in advance because I'm just learning this |
As long as your click handler is a valid function when you define your configuration, it shouldn't matter.
I already provided an example function skeleton. Anything beyond that is specific to your application, so I don't know what you expect me to provide. |
I want to customize the hotspot display. When I saw several issues that had been discussed, it was suggested to use "clickhandlerfunc" but I was confused about where to apply it. Can you help me solve this problem, I want to change the "info" type hotspot view from just showing text to a card like view in bootstrap that can contain title, image and content? Below is the program that I have created
The text was updated successfully, but these errors were encountered: