Sie sind nicht angemeldet.

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 701

Wohnort: Angers - France

Beruf: Photographer

  • Nachricht senden

1

Samstag, 25. Oktober 2014, 16:14

line hotspots

Now polygonal hotspots are available for html5 I was wondering if it would be possible to draw line hotspots, solid, dashed, dotted...
It would be great to draw roads or map over a pano !

panomaster

Fortgeschrittener

Beiträge: 266

Wohnort: Kobyłka, Poland

Beruf: Virtual Tours - Spherical Panoramas - Krpano developer

  • Nachricht senden

2

Montag, 27. Oktober 2014, 09:28

There's a very simple trick to do it. You can draw lines duplicating set points and setting them in reverse order:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
<hotspot name="..."
         ...
>
    <point ath="1" atv="12" />
    <point ath="33" atv="12" />
    <point ath="133" atv="65" />
    ...
    <point ath="133" atv="65" />
    <point ath="33" atv="12" />
    <point ath="1" atv="12" />
wev</hotspot>


However you can use only solid line... no dotted, dashed etc.

I've made an action that converts polygons into lines on the fly. I used it in this project:

http://www.ai360.pl/projekty/rawik/

3

Dienstag, 6. Februar 2018, 18:15

i made polygonal hotspot and added style to html:
<style> polyline { stroke-dasharray: 12 8; } </style>