Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. 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

Montag, 10. September 2018, 20:52

Problems with Google Maps plugin

Hi everybody,
I'm trying to use the Google Maps plugin, but I can't seem to get it working. Of course I know the example from the krpano package, but when I paste the code into my tour.xml, I don't see Google Maps. I'm using krpano 1.19-pr16 and the actual version of googlemaps.js - both licensed.

If somebody could please help me, I don't know what to do any more!
Thanks in advance.

My code (the relevant parts):

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
	<skin_settings
 		maps="true"
		maps_type="google"
		maps_google_api_key="... Google API key ..."
		maps_zoombuttons="true"
    	        .....
        	/>

                ......... 
	<layer
		name="mapcontainer" 
		type="container" 
		bgcolor="0xFFFFFF" 
		bgalpha="0.5" 
		align="leftbottom" x="5" y="5" 
		width="270"
		height="370" 
		visible="true"
		>

		<plugin 
			name="map"
			devices="html5"
			url="plugins/googlemaps.js"
			align="leftbottom" width="400" height="300" x="0" y="0"			
			keep="true"
			key="AIzaSyC2ZgG-HKMra3JvjNUDFRXwqv4Evb0plN8"
			maptype="satellite"
			lat="50.944406" 
			lng="6.957865" 
			zoom="18"
			tilt="0"
			heading="0"
			controls="zoom|maptype"
			poi="true"
			>
			
			<radar 
				visible="true" 
				size="300" 
				alpha="0.5" 
				fillcolor="0xFFFFFF" 
				fillalpha="0.5" 
				linecolor="0x00FF00" 
				linealpha="0.5" 
				linewidth="0.5" 
				dragable="true" 
				headingoffset="0" 
				/>

			<spot 
				name="spot1" 
				lat="50.944406" 
				lng="6.957865" 
				heading="0" 
				active="true" 
				/>
		</plugin>

	</layer>


..................

<scene name=........

2

Montag, 10. September 2018, 21:58

Hallo Leute,
ich hätte wohl direkt auf Deutsch schreiben sollen... Entschuldigung!
Jetzt kommt also die Übersetzung *smile*
Ich versuche, das Google Maps Plugin zu benutzen, kriege es aber nicht ans Laufen. Ich habe den Code aus dem krpano-Beispiel in meine XML reinkopiert, aber das klappt auch nicht.
krpano 1.19-pr16 und googlemaps.js aktuellste Version, beide lizensiert.

Mir ist übrigens mittlerweile aufgefallen, dass ich das Plugin sehe, wenn ich keine Szenen in der tour.xml habe - das ist aber nicht nur bei mir so, sondern auch, wenn ich das in die Demotour aus den Beispielen einbaue ("Combobox"), es liegt also zumindest nicht nur an mir.


Wenn irgendjemand eine Idee hat, die mir helfen könnte, würde ich mich sehr freuen.

Mein Code (die wichtigen Stellen):

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
	<skin_settings
 		maps="true"
		maps_type="google"
		maps_google_api_key="... Google API key ..."
		maps_zoombuttons="true"
    	        .....
        	/>

                ......... 
	<layer
		name="mapcontainer" 
		type="container" 
		bgcolor="0xFFFFFF" 
		bgalpha="0.5" 
		align="leftbottom" x="5" y="5" 
		width="270"
		height="370" 
		visible="true"
		>

		<plugin 
			name="map"
			devices="html5"
			url="plugins/googlemaps.js"
			align="leftbottom" width="400" height="300" x="0" y="0"			
			keep="true"
			key="AIzaSyC2ZgG-HKMra3JvjNUDFRXwqv4Evb0plN8"
			maptype="satellite"
			lat="50.944406" 
			lng="6.957865" 
			zoom="18"
			tilt="0"
			heading="0"
			controls="zoom|maptype"
			poi="true"
			>
			
			<radar 
				visible="true" 
				size="300" 
				alpha="0.5" 
				fillcolor="0xFFFFFF" 
				fillalpha="0.5" 
				linecolor="0x00FF00" 
				linealpha="0.5" 
				linewidth="0.5" 
				dragable="true" 
				headingoffset="0" 
				/>

			<spot 
				name="spot1" 
				lat="50.944406" 
				lng="6.957865" 
				heading="0" 
				active="true" 
				/>
		</plugin>

	</layer>


..................

<scene name=........

3

Montag, 10. September 2018, 22:25

Gelöst ;-)

Ich Dummerchen!
Mein XML hat nicht richtig funktioniert, und dank https://krpano.com/forum/wbb/index.php?p…73833#post73833 weiß ich jetzt, dass der Layer unter die Szenen kommen muss! Danke an toosten!!! Und Grüße unbekannterweise nach Berlin!

4

Dienstag, 11. September 2018, 07:29

bei deinem layer fehlt keep="true"
darum wird er beim laden einer szene gelöscht

Ähnliche Themen