Closed zsjbsn closed 3 months ago
First add one marker
markersPlugin.addMarker({ id: '1', position: { yaw: '10deg', pitch: '10deg' }, path: 'M0,0 L60,60 L60,0 L0,60 L0,0', svgStyle: { fill: 'red' }, anchor: 'bottom center' })
And then rotate panorama to make this marker not in view, and update its position
markersPlugin.updateMarker({ id: '1', position: { yaw: '5deg', pitch: '5deg' }, path: 'M0,0 L60,60 L60,0 L0,60 L0,0', svgStyle: { fill: 'red' }, anchor: 'bottom center' })
It will disappear in view, but exist in HTML. I found that the width & height attribute in css is zero, maybe the bug is that can not get size of svg when marker is not in view.
No response
5.7.4
Win11 & Chrome 123
This feature/bug fix has been released in version 5.8.0.
Describe the bug
First add one marker
And then rotate panorama to make this marker not in view, and update its position
It will disappear in view, but exist in HTML. I found that the width & height attribute in css is zero, maybe the bug is that can not get size of svg when marker is not in view.
Online demo URL
No response
Photo Sphere Viewer version
5.7.4
Plugins loaded
No response
OS & browser
Win11 & Chrome 123
Additional context
No response