mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.3k stars 729 forks source link

hotspot text always visible #1160

Open almarass1 opened 1 year ago

almarass1 commented 1 year ago

Hi, custom hotspots have the possibility to make hotspot text always visible by setting the parameter visibility: visible. Is it possible to make hotspots text always visible also in the case of ordinary hotspots both of type info and scene?

Thanks, Alex

almarass1 commented 1 year ago

As suggested by https://github.com/mpetroff/pannellum/issues/578, adding div.pnlm-tooltip span {visibility: visible !important;} seems to work

almarass1 commented 1 year ago

Is it possible to change hotspot texts size and font?

Thanks, Alex

mpetroff commented 1 year ago

Is it possible to change hotspot texts size and font?

Yes, just set additional CSS properties for div.pnlm-tooltip span. For more extensive changes, the custom hot spot example can serve as a starting point.