Sie sind nicht angemeldet.

1

Donnerstag, 3. November 2011, 15:43

jAddress: New plugin for direct links to panoramas and views

Hi there

There's a new plugin available which provides direct links to panoramas and views. The functionality is similar to SWFAddress, but also works on the HTML5 viewer (iPad/iPhone/iPod). On the other hand, SWFAddress has more features than jAddress. More information on the plugin page: http://krpano.com/plugins/userplugins/jaddress

Let me know of any questions or requests you have.
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

2

Donnerstag, 3. November 2011, 16:45

I think SWFAddress alsoo includes javascript plugin for ipad/html5 version. atleast Jay send me a javascript version a while ago.

3

Donnerstag, 3. November 2011, 16:50

Oh. I didn't know that, since I bought the plugin a couple of weeks ago and it wasn't included. Can someone confirm this? I don't want to be lying in the documentation.
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development

4

Freitag, 4. November 2011, 11:55

I just learned that SWFAddress is currently being ported to the JS viewer. More information on the SWFAddress thread .
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development

5

Samstag, 30. Juni 2012, 15:39

Dear all,

this is a great Plugin and it runs at Desktop (ie,ff, chrome,…) and iPhone4
(without bingmap!). My Problem is that the activated BingMaps-HotSpot is always
the HotSpot from the first Scene! Is it possible to implement the code
"plugin[panotourmaps].activatespot(%1); plugin[panotourmaps].pantospot(%1);"
into the jAddress so that the right Map Hotspots would be activated? Or is
there any other Opportunity?

For Example:

http://360grad-touren.de/00/04/index.html#p=scene_001

This is the
Startscene, and if you are linking to scene_002 the MapHotSpot wich is active
is that from the scene_001. That’s not very nice, because I am using this for a
City Tour through my hometown and it is necessary to link directly to a special
scene.

http://360grad-touren.de/00/04/index.html#p=scene_002
Here is the MapHotSpot from Scene_001 active instead of scene_002 (the Hotspot directly
under the Scene_001-Spot).

Thanks in
advanced.

Regards

Markus

6

Montag, 2. Juli 2012, 10:11

Hi Markus,

You don't need to change jAddress to do this. Just add some code like this to your tour:

<events name="mapchange" keep="true" onnewpano="activateSpot(get(xml.scene))"/>
<action name="activateSpot">
plugin[panotourmaps].activatespot(%1);
plugin[panotourmaps].pantospot(%1);

</action>

All the best,
Manuel
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development

7

Montag, 2. Juli 2012, 14:53

Hi Manuel,

thank your for your help! My Problem is, that at the entry is no "onnewpano", so the active Spot is always that from the scene_001?

Thanks in advance
Markus

8

Montag, 2. Juli 2012, 16:48

Hi Markus,

Not sure I understood. "onnewpano" is an event which is triggered whenever a new pano is loaded. This code should not be inside a <scene>, but on the main tour's code.

All the best,
Manuel
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development

9

Montag, 2. Juli 2012, 18:18

I (copy the
code into the tour.xml directly after der "<action
name="startup">"



if you try this link

http://360grad-touren.de/00/04/index.html#p=scene_002

then is the active Spot in the map the Spot from the scene_001. If i try
"f5", then is the active Map-Spot the right.

It would be great, that the right Map-Hot-Spot is active by entering the Pano after
clicking the link (without “F5” and any other action).



Thanks in advance

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<krpano version="1.0.8.14" onstart="startup();">

<include url="xml/actions.xml" keep="true"/>
<include url="xml/jaddress.xml" keep="true"/>
<include url="xml/plugins.xml" keep="true"/>
<include url="xml/style.xml" keep="true"/>

<include url="xml/bingmap.xml" keep="true"/>
<include url="skin/androidskin.xml" devices="android+flash" />

<!--************** Kontextmenü ****************************************************************-->
<contextmenu>
	<item name="item_0" caption="© 360Grad-Touren.de" onclick="openurl(http://www.360Grad-Touren.de)"/>
	<item name="normal_view" caption="Normalansicht" onclick="action(actionviewnormal)" separator="true"/>
	<item name="fisheye_view" caption="Fisheye-Ansicht" onclick="action(actionviewfisheye)"/>
	<item name="architectural_view" caption="Architektonische Ansicht" onclick="action(actionviewarchitectural)"/>
	<item name="stereographic_view" caption="stereographische Ansicht" onclick="action(actionviewstereographic)"/>
	<item name="pannini_view" caption="Pannini-Ansicht" onclick="action(actionviewpannini)"/>
	<item name="little_planet_view" caption="Ansicht kleiner Planet" onclick="action(actionviewlittleplanet)"/>
</contextmenu>
<!-- disable the default progress bar -->
<progress showload="true" showwait="true" />

	<action name="startup">
    	<!-- instead of using "loadscene" to load the first scene, use the action ja-start(). This will get the scene from the URL or, if none is defined, load the scene passed in the first parameter.
    	THIS IS ONLY FOR THE FIRST SCENE LOAD! Afterwards, you can use loadscene() as usual 	-->
		<!--loadscene(get(scene[0].name), null, MERGE);-->
    	ja-start(get(scene[0].name));
		activateSpot(get(xml.scene));
	</action>

<events name="mapchange" keep="true" onnewpano="activateSpot(get(xml.scene))"/>
<action name="activateSpot">
		plugin[panotourmaps].activatespot(%1);
		plugin[panotourmaps].pantospot(%1);
</action>

<scene name="scene_001" title="001" onstart="" thumburl="">
		<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />
		<preview url="panos/001.tiles/preview.jpg" />
		<image type="CUBE" multires="true" tilesize="555" progressive="false">
			<level tiledimagewidth="3051" tiledimageheight="3051">
				<cube url="panos/001.tiles/l3_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="1526" tiledimageheight="1526">
				<cube url="panos/001.tiles/l2_%s_%0v_%0h.jpg" />
			</level>
			<level tiledimagewidth="763" tiledimageheight="763">
				<cube url="panos/001.tiles/l1_%s_%0v_%0h.jpg" />
			</level>
			<mobile>
				<cube url="panos/001.tiles/mobile_%s.jpg" />
			</mobile>
			<tablet>
				<cube url="panos/001.tiles/tablet_%s.jpg" />
			</tablet>
		</image>
		<!-- place hotspots here -->
		<hotspot name="spot1" style="hotspot_ani_white" 
		     	ath="185"
		     	atv="0.9"
		     	zoom="false"
				 onhover="showtext(Föhringer Alle in Richtung Süden,tooltip)"
		     	onclick="mainloadscene('scene_002')"
		     	/>
		<hotspot name="spot2" style="hotspot_ani_white" 
		     	ath="-91.21"
		     	atv="0.29"
		     	zoom="false"
				 onhover="showtext(Hofäckerallee Ecke Voglbachlweg,tooltip)"
		     	onclick="mainloadscene('scene_016')"
		     	/>
	</scene>
	<scene name="scene_002" title="002" onstart="" thumburl="">
.
.
.

zzzone

Schüler

Beiträge: 64

Wohnort: Bristol

Beruf: Photographer

  • Nachricht senden

10

Mittwoch, 22. August 2012, 09:25

Does this work with an iPad?

Just tried your demo and there are errors.

If your plugin does then you might want correct these.

zzzone

Schüler

Beiträge: 64

Wohnort: Bristol

Beruf: Photographer

  • Nachricht senden

11

Montag, 27. August 2012, 16:49

Hi

Struggling to get either SWF address or jAddress working!!! *angry*

Left messages on SWFaddress thread as well as above here. I have ended up purchasing both plugins in an attempt to get one working 'easily'. It would seem you are right with the ease of use of jAddress, with my current workflow using MAKE VTOUR and SCENES.

I have downloaded all and followed your example file etc and I am nearly there!!!! Unfortunately I find the same error on the iPad as indeed I do when viewing your own demo online with the same device.

All is well on the desktop but on the iPad I get this error

ERROR: js() - function "jAddress.start" not found

zzzone

Schüler

Beiträge: 64

Wohnort: Bristol

Beruf: Photographer

  • Nachricht senden

12

Donnerstag, 30. August 2012, 22:21

Update

I contacted Manuel directly and he couldn't have been more helpful.

The plugin is all sorted and is as described very easy to use. *thumbsup*

Many thanks

13

Freitag, 31. August 2012, 11:34

Thanks Steve *smile*

An update: I have fixed an issue in jAddress which made an error appear sometimes on the iPad. If you have bought jAddress, just email me and I'll send you the new version.

All the best,
Manuel
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development

esys

Fortgeschrittener

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

14

Sonntag, 28. Oktober 2012, 20:46

variable to detect when a scene is loaded through the url not the xml?

Hi manuel,

I'd like to know if it's possible to check with the onstart setting of the scene in a virtual tour, if the request come from the xml or was written straight in the url or external link? The intro of my virtual tour would not be the same, depends of the request.

Thanks. *smile*
Steph.
Steph

15

Montag, 29. Oktober 2012, 10:49

Hi esys,

I think the best way to achieve that that would be with a krpano variable that indicates whether the current scene is the first scene of the tour or not.

All the best,
Manuel
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development

esys

Fortgeschrittener

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

16

Montag, 29. Oktober 2012, 14:41

Hi manuel,

Thanks for your advice. I thought about that. Problem is which variable i could use? Is there a "first scene" variable to check it? Could it be written in the "ja-start" action? Like :

ja-start(get(scene[2]); if(events.onfirstscene == null, set(events.onfirstscene, true)); ); . Then check the state in the onstart scene setting, if(events.onfirstscene, true, action1() );
ifnot (action2); ??

Thanks for your help. *smile*
Steph.
Steph

zzzone

Schüler

Beiträge: 64

Wohnort: Bristol

Beruf: Photographer

  • Nachricht senden

17

Mittwoch, 8. Mai 2013, 18:24

Just a quick question as I am just starting to use jAddress. Brilliant by the way.

Question: When you specify a view with ath etc and fov works fine. I have autorotate which I like because it shows the viewer the viewing window is not static. But is it possible for the fov to slowly zoom out (or in) to the start up view fov, rather than stay at the fov dictated by ?p=scene........ fov=here

Steve

18

Donnerstag, 9. Mai 2013, 12:41

esys, I think maybe I didn't understand completely what you want to do. Do you want to have a different intro depending on whether a scene is the first to load on the tour? If so, maybe it can be done like this:

<events name="resetfirstscene" onxmlcomplete="set(scenenumber,0)"/>
<events name="incfirstscene" keep="true" onnewpano="inc(scenenumber)"/>

Then you can check what is the value of the "scenenumber" variable is. I'm not 100% sure if the order of the events is right, so it's better to test it.
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development

19

Donnerstag, 13. Juni 2013, 13:36

jaddress seems to reset the loading bar to krpano standard!

Hi Manuel,

I use a custom loading bar in some of my tours. Now I found, that jaddress is overriding these and I get this standard KRPano circular loading symbol. This has been no problem so far, so I noticed only today, that jaddress is causing this. But now one project is accepted with the loading bar and the client does not want the circular one. Any chance to fix this soon?

Yours,
Michael

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »mstoss« (13. Juni 2013, 14:42)


20

Donnerstag, 13. Juni 2013, 15:18

Hi Michael,

Yes, jAddress does not keep the progress parameters. However, you can set the progress parameters when each panorama is loaded, with code like this:

Quellcode

1
2
3
4
5
    <events name="reset-progress" keep="true" onxmlcomplete="set-progress"/>
    <action name="set-progress">
        set(progress.showload, bar());
        set(progress.showwait, none);
    </action>


Let me know if you run into any problems.

All the best,
Manuel
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development