Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: Panorama Community. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Donnerstag, 29. November 2012, 12:50

Bing Maps. In Tour...

Moin, hatte wieder etwas zeit um mich mit eienr Tour zu beschätigen, habe das Plugin eingebunden. Die Map wird in der Tour auch angezeigt, also wenn man auf die Weltkugel klickt.

Alleridngs wird die Blickrichtung nicht angezeigt, gibt es eine möglichkeit, das ganze als "Radar" zu gestallten? Am liebsten wäre es mir wenn die Karte auch irgendwo in einer Ecke dargstellt wird und nicht über die Weltkugel aufgrfuen werden muss...

Also so wie hier... --> http://krpano.com/examples/10815/example…s/bingmaps.html


Bin für Tips dankbar.


Gruss

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »pano-fred« (29. November 2012, 12:59)


2

Donnerstag, 29. November 2012, 13:12

Da man sich hier gerade über meiner Rechschreibung aufregt per PN...

Ich bin Legastheniker und dazu kommt, das ich wenn hier übers iphone poste. Ich versuche schon korret zu schreiben, aber es ist alles nicht so einfach.

3

Donnerstag, 29. November 2012, 14:45

Hallo, bin jetzt etwas weiter gekommen, aber so richtig läuft es nich nicht. Habe da ein Beispiel von krpano umgestrickt.

Habe dazu noch 2-3 Fragen.

1. warum stehst in der Karte "krpano.com"?
2. wenn ich auf einen der beiden nicht "aktiven" also die blauen spots klicke, wird das Pano zwar geändert, aber der Aktive grüne bleibt aktiv. auch bleibt das Radar dort... Wie kann man das richtig zuordnen?

Anbei mal der Code:
$this->cacheCode('[php]','krpano version="1.0.8.15" title="Virtual Tour" onstart="startup();">

<include url="skin/vtourskin.xml" />





<!-- bing map (with keep=true) -->
<plugin name="map" keep="true" key="xxxxx"
url="plugins/bingmaps.swf"
alturl="plugins/bingmaps.js"
align="leftbottom" x="50" y="10" width="350" height="400"
bgcolor="0x000000" bgalpha="0.5"
maptype="satellite"
onmapready="loadscene(0); zoomToSpotsExtent();"
onmapmoved=""
onmapzoomed=""
>
<radar visible="true" dragable="true" size="100" zoomwithmap="false" headingoffset="270" alpha="0.5" fillcolor="0xFFFFFF" fillalpha="1.0" linecolor="0xFFFFFF" linealpha="0.0" linewidth="0.0" glow="true" glowcolor="0xFFFFFF" glowwidth="4" glowstrength="4" />
<maptypecontrol visible="true" anchor="righttop" x="2" y="2" buttonalign="v" />

<!-- map spots -->
<spot name="scene_Bahnhof" lat="52.10159567" lng="9.37471747" heading="+90" active="true" onclick="loadscene(scene_Bahnhof, null, MERGE, BLEND(1));" />
<spot name="scenescene_Luftpanorama_HefeHof" lat="52.09862992" lng="9.37518954" heading="+155" onclick="loadscene(scene_Luftpanorama_HefeHof, null, MERGE, BLEND(1));" />
<spot name="scene_Luftpanorama_B_rgergarten" lat="52.10504886" lng="9.36299086" heading="-127" onclick="loadscene(scene_Luftpanorama_B_rgergarten, null, MERGE, BLEND(1));" />


</plugin>


<!-- an action for updating the map when the scene was changed -->
<action name="selectspot">
plugin[map].pantospot(%1);
plugin[map].activatespot(%1);
</action>
<!-- a style for the hotspots -->
<style name="hotspotstyle" scale="0.6" zoom="true" alpha="0.3" onover="tween(alpha,1);tween(scale,1);" onout="tween(alpha,0.3);tween(scale,0.6);" ondown="onover();" onup="onout();" />



<!-- set optional skin logo url -->
<layer name="skin_logo" url="" scale="0.25" opened_onclick="openurl('...',_blank);" />


<action name="startup">
if(startscene === null, copy(startscene,scene[0].name));
loadscene(get(startscene), null, MERGE);
</action>


<scene name="scene_Bahnhof" onstart="selectspot(scene_Bahnhof);" title="Bahnhof" onstart="" thumburl="panos/Bahnhof.tiles/thumb.jpg" lat="52.10159567" lng="9.37471747" heading="0.0">

<view hlookat="70.957" vlookat="-13.767" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

<preview url="panos/Bahnhof.tiles/preview.jpg" />

<image type="CUBE" multires="true" tilesize="512" progressive="false">
<level tiledimagewidth="3462" tiledimageheight="3462">
<cube url="panos/Bahnhof.tiles/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1731" tiledimageheight="1731">
<cube url="panos/Bahnhof.tiles/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="866" tiledimageheight="866">
<cube url="panos/Bahnhof.tiles/l1_%s_%v_%h.jpg" />
</level>
<mobile>
<cube url="panos/Bahnhof.tiles/mobile_%s.jpg" />
</mobile>
</image>

<!-- place your scene hotspots here -->
<hotspot name="spot1" style="skin_hotspotstyle" ath="172.747" atv="-29.026" linkedscene="scene_luftpanorama_hefehof" />

</scene>

<scene name="scene_Luftpanorama_B_rgergarten" onstart="selectspot(scene_Luftpanorama_B_rgergarten);" title="Luftpanorama_Bürgergarten" onstart="" thumburl="panos/Luftpanorama_B_rgergarten.tiles/thumb.jpg" lat="52.10504886" lng="9.36299086" heading="0.0">

<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

<preview url="panos/Luftpanorama_B_rgergarten.tiles/preview.jpg" />

<image type="CUBE" multires="true" tilesize="512" progressive="false">
<level tiledimagewidth="7114" tiledimageheight="7114">
<cube url="panos/Luftpanorama_B_rgergarten.tiles/l4_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="3584" tiledimageheight="3584">
<cube url="panos/Luftpanorama_B_rgergarten.tiles/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1792" tiledimageheight="1792">
<cube url="panos/Luftpanorama_B_rgergarten.tiles/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="896" tiledimageheight="896">
<cube url="panos/Luftpanorama_B_rgergarten.tiles/l1_%s_%v_%h.jpg" />
</level>
<mobile>
<cube url="panos/Luftpanorama_B_rgergarten.tiles/mobile_%s.jpg" />
</mobile>
</image>

<!-- place your scene hotspots here -->
<hotspot name="spot1" style="skin_hotspotstyle" ath="-176.056" atv="2.666" linkedscene="scene_luftpanorama_hefehof" />
<hotspot name="spot2" style="skin_hotspotstyle" ath="168.949" atv="5.216" linkedscene="scene_bahnhof" />

</scene>

<scene name="scene_Luftpanorama_HefeHof" onstart="selectspot(scene_Luftpanorama_HefeHof);" title="Luftpanorama_HefeHof" onstart="" thumburl="panos/Luftpanorama_HefeHof.tiles/thumb.jpg" lat="52.09862992" lng="9.37518954" heading="0.0">

<view hlookat="-55.205" vlookat="2.679" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

<preview url="panos/Luftpanorama_HefeHof.tiles/preview.jpg" />

<image type="CUBE" multires="true" tilesize="512" progressive="false">
<level tiledimagewidth="6777" tiledimageheight="6777">
<cube url="panos/Luftpanorama_HefeHof.tiles/l4_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="3389" tiledimageheight="3389">
<cube url="panos/Luftpanorama_HefeHof.tiles/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1695" tiledimageheight="1695">
<cube url="panos/Luftpanorama_HefeHof.tiles/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="848" tiledimageheight="848">
<cube url="panos/Luftpanorama_HefeHof.tiles/l1_%s_%v_%h.jpg" />
</level>
<mobile>
<cube url="panos/Luftpanorama_HefeHof.tiles/mobile_%s.jpg" />
</mobile>
</image>

<!-- place your scene hotspots here -->
<hotspot name="spot1" style="skin_hotspotstyle" ath="-13.050" atv="5.232" linkedscene="scene_bahnhof" />
<hotspot name="spot2" style="skin_hotspotstyle" ath="-53.009" atv="-6.420" linkedscene="scene_luftpanorama_b_rgergarten" />

</scene>


</krpano>')
»pano-fred« hat folgendes Bild angehängt:
  • bing_t.JPG

4

Donnerstag, 29. November 2012, 15:43

Zu 1. Weil du entweder keine Lizenz des Map-Plugins besitzt oder du vergessen hast, die bingmaps.license.xml ins plugin-Verzeichnis zu kopieren bzw. das googlemaps.license.xml umzubenennen. Dann wird halt das Wasserzeichen eingeblendet.

Zu 2. Am einfachsten ließe sich das innerhalb der <scene> realisieren, so wie es auch in den aktuellen vtour Beispielen gemacht wird.

$this->cacheCode('[php]','<!-- set skin settings: bingmaps? gyro? -->
<skin_settings bingmaps="true" bingmaps_key="blabluballroundkeyfunktioniertimmer" gyro="true" />
.
.
.
.
<scene name="scene_01" title="Bang & Olufsen" onstart="stopallsounds();" thumburl="panos/01_b_o.tiles/thumb.jpg" lat="48.052048" lng="8.968489" heading="120" >')

Schau dir doch einfach die MAKE VTOUR´droplets an.

5

Donnerstag, 29. November 2012, 17:13

Zu 1. Weil du entweder keine Lizenz des Map-Plugins besitzt oder du vergessen hast, die bingmaps.license.xml ins plugin-Verzeichnis zu kopieren bzw. das googlemaps.license.xml umzubenennen. Dann wird halt das Wasserzeichen eingeblendet.

Zu 2. Am einfachsten ließe sich das innerhalb der realisieren, so wie es auch in den aktuellen vtour Beispielen gemacht wird.

$this->cacheCode('[php]','

.
.
.
.
')

Schau dir doch einfach die MAKE VTOUR´droplets an.

Hi,

danke. Hmm, die liegt eingendlich drin...

und habe meine Tour mit "MAKE VTOUR (MULTIRES) droplet" erstellt. Aber da wird es nicht in Scene benannte, sondern

$this->cacheCode('[php]','<scene name="scene_Bahnhof" onstart="selectspot(scene_Bahnhof);" title="Bahnhof" onstart="" thumburl="panos/Bahnhof.tiles/thumb.jpg" lat="52.10159567" lng="9.37471747" heading="0.0">

')

Bei dem Beispil welches ich gefunden, wo auch der Ausschnitt angezeigt wird, da ist es so:

$this->cacheCode('[php]','<!--
scenes with bingmaps example
- load the scenes via map-spots or hotspots
- the first scene will be loaded in the 'onmapready' event
-->
<krpano>

<!-- bing map (with keep=true) -->
<plugin name="map" keep="true" key="xxxxx"
url="%SWFPATH%/plugins/bingmaps.swf"
alturl="%SWFPATH%/plugins/bingmaps.js"
align="leftbottom" x="10" y="10" width="350" height="400"
bgcolor="0x000000" bgalpha="0.5"
maptype="satellite"
onmapready="loadscene(0); zoomToSpotsExtent();"
onmapmoved=""
onmapzoomed=""
>
<radar visible="true" dragable="true" size="100" zoomwithmap="false" headingoffset="180" alpha="0.5" fillcolor="0xFFFFFF" fillalpha="1.0" linecolor="0xFFFFFF" linealpha="0.0" linewidth="0.0" glow="true" glowcolor="0xFFFFFF" glowwidth="4" glowstrength="4" />
<maptypecontrol visible="true" anchor="righttop" x="2" y="2" buttonalign="v" />

<!-- map spots -->
<spot name="scene1" lat="47.60064458005677" lng="16.62461042404176" heading="+90" active="true" onclick="loadscene(scene1, null, MERGE, BLEND(1));" />
<spot name="scene2" lat="47.59582263650143" lng="16.61809265613557" heading="+155" onclick="loadscene(scene2, null, MERGE, BLEND(1));" />
<spot name="scene3" lat="47.58584924485768" lng="16.63300573825835" heading="-127" onclick="loadscene(scene3, null, MERGE, BLEND(1));" />

</plugin>


<!-- an action for updating the map when the scene was changed -->
<action name="selectspot">
plugin[map].pantospot(%1);
plugin[map].activatespot(%1);
</action>


<!-- a style for the hotspots -->
<style name="hotspotstyle" scale="0.6" zoom="true" alpha="0.3" onover="tween(alpha,1);tween(scale,1);" onout="tween(alpha,0.3);tween(scale,0.6);" ondown="onover();" onup="onout();" />


<!-- the scenes -->
<scene name="scene1" onstart="selectspot(scene1);">

<view hlookat="-15" vlookat="-10" fov="90" fovmin="15" fovmax="160" />

<preview url="pano1.jpg" />
<image>
<cubestrip url="pano1.jpg" />
</image>

<hotspot name="spot2" style="hotspotstyle" url="spot2.png" ath="-42" atv="-12" onclick="looktohotspot(spot2); loadscene(scene2, null, MERGE, BLEND(1));" />

</scene>

<scene name="scene2" onstart="selectspot(scene2);">

<view hlookat="-110" vlookat="8" fov="100" fovmin="15" fovmax="160" />

<preview url="pano2.jpg" />
<image>
<cubestrip url="pano2.jpg" />
</image>

<hotspot name="spot1" style="hotspotstyle" url="spot1.png" ath="165" atv="0" onclick="looktohotspot(spot1); loadscene(scene1, null, MERGE, BLEND(1));" />
<hotspot name="spot3" style="hotspotstyle" url="spot3.png" ath="265" atv="0" onclick="looktohotspot(spot3); loadscene(scene3, null, MERGE, BLEND(1));" />

</scene>

<scene name="scene3" onstart="selectspot(scene3);">

<view hlookat="-174" vlookat="5" fov="75" fovmin="15" fovmax="160" />

<preview url="pano3.jpg" />
<image>
<cubestrip url="pano3.jpg" />
</image>

<hotspot name="spot3" style="hotspotstyle" url="spot2.png" ath="0" atv="0" onclick="looktohotspot(spot3); loadscene(scene2, null, MERGE, BLEND(1));" />

</scene>

</krpano>
')



6

Donnerstag, 29. November 2012, 20:26

Dein Fehler ist, dass du in deinem Beispiel in Beitrag 3 zweimal das onstart-event innerhalb der <scene> definiert hast. onstart darf nur einmal dort vorkommen.

7

Freitag, 30. November 2012, 17:53

Hallo, jetzt bekomme ich aber die folgenden Meldungen beim Aufrufen im Browser,wenn ich auf das eine Luftpanorama wechsel:

$this->cacheCode('[php]','WARNING: unknown action: plugin[map].pantospot
WARNING: unknown action: plugin[map].activatespot
ERROR: bingmaps plugin - pantospot() - spot[scene_Luftpanorama_HefeHof] not found!')

Das xml sieht so aus:
$this->cacheCode('[php]','<krpano version="1.0.8.15" title="Virtual Tour" onstart="startup();">

<include url="skin/vtourskin.xml" />





<!-- bing map (with keep=true) -->
<plugin name="map" keep="true" key="AkiLcNJlTCO1GIwz2vGjLmGYA6kjOuh_EFQenwcuWvKd1lpb9m8NQg3vwR4fAwFh"
url="plugins/bingmaps.swf"
alturl="plugins/bingmaps.js"
align="leftbottom" x="50" y="10" width="350" height="400"
bgcolor="0x000000" bgalpha="0.5"
maptype="satellite"
onmapready="loadscene(0); zoomToSpotsExtent();"
onmapmoved=""
onmapzoomed=""
>
<radar visible="true" dragable="true" size="100" zoomwithmap="false" headingoffset="270" alpha="0.5" fillcolor="0xFFFFFF" fillalpha="1.0" linecolor="0xFFFFFF" linealpha="0.0" linewidth="0.0" glow="true" glowcolor="0xFFFFFF" glowwidth="4" glowstrength="4" />
<maptypecontrol visible="true" anchor="righttop" x="2" y="2" buttonalign="v" />

<!-- map spots -->
<spot name="scene_Bahnhof" lat="52.10159567" lng="9.37471747" heading="+90" active="true" onclick="loadscene(scene_Bahnhof, null, MERGE, BLEND(1));" />
<spot name="scenescene_Luftpanorama_HefeHof" lat="52.09862992" lng="9.37518954" heading="+155" onclick="loadscene(scene_Luftpanorama_HefeHof, null, MERGE, BLEND(1));" />
<spot name="scene_Luftpanorama_B_rgergarten" lat="52.10504886" lng="9.36299086" heading="-127" onclick="loadscene(scene_Luftpanorama_B_rgergarten, null, MERGE, BLEND(1));" />


</plugin>


<!-- an action for updating the map when the scene was changed -->
<action name="selectspot">
plugin[map].pantospot(%1);
plugin[map].activatespot(%1);
</action>
<!-- a style for the hotspots -->
<style name="hotspotstyle" scale="0.6" zoom="true" alpha="0.3" onover="tween(alpha,1);tween(scale,1);" onout="tween(alpha,0.3);tween(scale,0.6);" ondown="onover();" onup="onout();" />



<!-- set optional skin logo url -->
<layer name="skin_logo" url="" scale="0.25" opened_onclick="openurl('...',_blank);" />


<action name="startup">
if(startscene === null, copy(startscene,scene[0].name));
loadscene(get(startscene), null, MERGE);
</action>


<scene name="scene_Bahnhof" onstart="selectspot(scene_Bahnhof);" title="Bahnhof" thumburl="panos/Bahnhof.tiles/thumb.jpg" lat="52.10159567" lng="9.37471747" heading="0.0">

<view hlookat="70.957" vlookat="-13.767" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

<preview url="panos/Bahnhof.tiles/preview.jpg" />

<image type="CUBE" multires="true" tilesize="512" progressive="false">
<level tiledimagewidth="3462" tiledimageheight="3462">
<cube url="panos/Bahnhof.tiles/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1731" tiledimageheight="1731">
<cube url="panos/Bahnhof.tiles/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="866" tiledimageheight="866">
<cube url="panos/Bahnhof.tiles/l1_%s_%v_%h.jpg" />
</level>
<mobile>
<cube url="panos/Bahnhof.tiles/mobile_%s.jpg" />
</mobile>
</image>

<!-- place your scene hotspots here -->
<hotspot name="spot1" style="skin_hotspotstyle" ath="172.747" atv="-29.026" linkedscene="scene_luftpanorama_hefehof" />

</scene>

<scene name="scene_Luftpanorama_B_rgergarten" onstart="selectspot(scene_Luftpanorama_B_rgergarten);" title="Luftpanorama_Bürgergarten" thumburl="panos/Luftpanorama_B_rgergarten.tiles/thumb.jpg" lat="52.10504886" lng="9.36299086" heading="0.0">

<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

<preview url="panos/Luftpanorama_B_rgergarten.tiles/preview.jpg" />

<image type="CUBE" multires="true" tilesize="512" progressive="false">
<level tiledimagewidth="7114" tiledimageheight="7114">
<cube url="panos/Luftpanorama_B_rgergarten.tiles/l4_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="3584" tiledimageheight="3584">
<cube url="panos/Luftpanorama_B_rgergarten.tiles/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1792" tiledimageheight="1792">
<cube url="panos/Luftpanorama_B_rgergarten.tiles/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="896" tiledimageheight="896">
<cube url="panos/Luftpanorama_B_rgergarten.tiles/l1_%s_%v_%h.jpg" />
</level>
<mobile>
<cube url="panos/Luftpanorama_B_rgergarten.tiles/mobile_%s.jpg" />
</mobile>
</image>

<!-- place your scene hotspots here -->
<hotspot name="spot1" style="skin_hotspotstyle" ath="-176.056" atv="2.666" linkedscene="scene_luftpanorama_hefehof" />
<hotspot name="spot2" style="skin_hotspotstyle" ath="168.949" atv="5.216" linkedscene="scene_bahnhof" />

</scene>

<scene name="scene_Luftpanorama_HefeHof" onstart="selectspot(scene_Luftpanorama_HefeHof);" title="Luftpanorama_HefeHof" thumburl="panos/Luftpanorama_HefeHof.tiles/thumb.jpg" lat="52.09862992" lng="9.37518954" heading="0.0">

<view hlookat="-55.205" vlookat="2.679" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

<preview url="panos/Luftpanorama_HefeHof.tiles/preview.jpg" />

<image type="CUBE" multires="true" tilesize="512" progressive="false">
<level tiledimagewidth="6777" tiledimageheight="6777">
<cube url="panos/Luftpanorama_HefeHof.tiles/l4_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="3389" tiledimageheight="3389">
<cube url="panos/Luftpanorama_HefeHof.tiles/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1695" tiledimageheight="1695">
<cube url="panos/Luftpanorama_HefeHof.tiles/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="848" tiledimageheight="848">
<cube url="panos/Luftpanorama_HefeHof.tiles/l1_%s_%v_%h.jpg" />
</level>
<mobile>
<cube url="panos/Luftpanorama_HefeHof.tiles/mobile_%s.jpg" />
</mobile>
</image>

<!-- place your scene hotspots here -->
<hotspot name="spot1" style="skin_hotspotstyle" ath="-13.050" atv="5.232" linkedscene="scene_bahnhof" />
<hotspot name="spot2" style="skin_hotspotstyle" ath="-53.009" atv="-6.420" linkedscene="scene_luftpanorama_b_rgergarten" />

</scene>


</krpano>
')

8

Freitag, 30. November 2012, 18:08

Du willst mich hier nicht veralbern, oder? In Zeile 25 ist wieder irgendwas doppelt.

9

Freitag, 30. November 2012, 18:11

Sorry hab ich nicht vor. Was ist da doppelt??

marijonas

Mega-User

Beiträge: 2 820

Wohnort: Kaufbeuren

Beruf: Wasserträger

  • Nachricht senden

10

Freitag, 30. November 2012, 18:24

Ich hab´s gefunden:

das Wort "scene"

11

Freitag, 30. November 2012, 18:32

Danke.

das wars.... :-(