Sie sind nicht angemeldet.

1

Dienstag, 23. August 2016, 13:45

showtext() does not work within a map-plugin under HTML5

Hello,

I try to switch all my panos from flash to HTML5 and I find some malfunction with the showtext-function
Of course, I include showtext.xml - and it works generally as exspected.

But, if I have a showtext() within a Map-plugin, in order to put a label on a spot, it does not work (see line 14)
It always did run under flash without any problems.

Is this a known limitation, or have I overseen something?
This behavior is also true for Viewer 1.18.6

Below, you see the draft script.

Regards

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<krpano version="1.18" >
<include url="%SWFPATH%/showtext.xml" keep="true" />
<plugin name="map"
	parent="STAGE"
	url.html5="%SWFPATH%/bingmaps.js"
	url.flash="%SWFPATH%/bingmaps.swf"
	key=".."
	activespotenabled="true"
    lat=".." lng=".." zoom=".."
    onmapready="selectpano('startpano');"
    >
   <spot name="spot1"
        lat=".." lng=".." zoom=".." active="false"
        onhover="showtext(this text will NOT be shown under HTML5);"
        onover="showtext(onover is the same);"
        onclick="load_pano1();" 
        />
</plugin>

<action name="load_pano1">
    ...
</action>
</krpano>
»Ewald« hat folgende Datei angehängt:
  • showtext.xml (612 Byte - 76 mal heruntergeladen - zuletzt: 14. Oktober 2023, 04:25)

2

Freitag, 26. August 2016, 11:37

Hi,

that should definitely already work (just tested again) - please make sure that the krpano viewer version and also the plugin version are up-to-date!

Best regards,
Klaus

3

Freitag, 26. August 2016, 16:11

Hi,

yes, makes sense. I verified my plugin-folder, because I have indeed several folders for various versions.

But I found, that the date-stamp of 'showtext.xml' is 24.09.2015. Most other files are dated 8.08.2016

I extracted krpano-1.19-pr6-win.exe a second time. But the time stamp of 'showtext.xml' is still 24.9.2015
Is this correct?

Regards

4

Dienstag, 6. September 2016, 22:01

I extracted krpano-1.19-pr6-win.exe a second time. But the time stamp of 'showtext.xml' is still 24.9.2015
Is this correct?
Yes, that's correct.