You are not logged in.


Saturday, September 24th 2011, 11:39pm

How to draw lines?

I would like to draw arbitrary lines in spherical coordinate systems in order to align them with panorama. One way to do it would be to use hotspots, but hotspots define an area not a line. Is there another, more appropriate solution?



Posts: 602

Location: Sachsen

Occupation: Webdesigner- und entwickler sowie Fotodesigner

  • Send private message


Sunday, September 25th 2011, 6:09pm

you can use images (lines as png) as distorted or normal hotspots.
then set this width or height and move to the right porition.


Sunday, September 25th 2011, 11:00pm


To be precise, I would like to draw a polyline: a collection of lines e.g. a sinusoid wave or non regular zig-zag line. Using images would be pretty difficult and the resolution would not match the panorama.


Monday, September 26th 2011, 4:10pm


there is no API to draw lines in krpano,
but the polygonal hotspots could be used when point coordinates were used two times - one time from start to end and then back from end to start,

e.g. when there 4 points:
1 -> 2 -> 3 -> 4 -> 3 -> 2 (-> 1)

best regards,


Tuesday, October 13th 2015, 12:14pm

Is the answer still valid? Since then its already a while and

I noticed that polygon hotspots have an advanced setting "polyline"


variable nameTypeDefault value
hotspot[name].polyline Boolean false

Draw a line-polygon instead a filled-polygon.
The start and end points will not be joined.
I tried using that option, but couldnt see any effect/change if set to true. Do i need the alpha 1.19 Version for this?


Wednesday, October 14th 2015, 7:59am

Do i need the alpha 1.19 Version for this?
Yes, at least the 1.19 pre-release 3 would need to be used for that.