Sie sind nicht angemeldet.

1

Donnerstag, 6. Dezember 2018, 20:59

bingmap radar display direction of rotation?

BINGMAPS built-in radar feature seems to rotate in the wrong direction.
See demo here http://www.gentles.info/KAP/Gallery/Pano2014/bing.htm with xml herehttp://www.gentles.info/KAP/Gallery/Pano2014/bing.xml

Radar points in correct direction when loaded then rotates in the wrong direction?
With the radar plugin there is an invert parameter to change the direction of rotation of the radar display.
With bingmaps, the built-in radar doesn't have this feature. But why should this be required?
I MUST BE DOING SOMETHING REALLY STUPID, THIS SEEMS SO SIMPLE!Thanks
James

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
<krpano>
  <layer name="map"
    	url.flash="../../krpano/plugins/bingmaps.swf"
    	url.html5="../../krpano/plugins/bingmaps.js"
    	align="leftbottom" width="400" height="300" x="0" y="0"
    	key="...KEY REMOVED..."
    	maptype="satellite"
    	lat="55.948"
    	lng="-3.224"
    	zoom="16">
  
	<spot name="Donaldson"
  	url=""
    	lat="55.9474"
    	lng="-3.2262"
  	heading="110"
  	active="true"
  	/>
   	
	<radar visible="true"
   	dragable="true"
   	size="50"
   	zoomwithmap="false"
   	headingoffset="0"
   	/>
  </layer>

	<preview url="Donaldsons-Playfair.tiles/preview.jpg" />
	<image type="CUBE" multires="true" tilesize="512" progressive="false">
	<level tiledimagewidth="3820" tiledimageheight="3820"><cube url="Donaldsons-Playfair.tiles/mres_%s/l4/%v/l4_%s_%v_%h.jpg" /></level>
	<level tiledimagewidth="1910" tiledimageheight="1910"><cube url="Donaldsons-Playfair.tiles/mres_%s/l3/%v/l3_%s_%v_%h.jpg" /></level>
	<level tiledimagewidth="955" tiledimageheight="955"><cube url="Donaldsons-Playfair.tiles/mres_%s/l2/%v/l2_%s_%v_%h.jpg" /></level>
	<level tiledimagewidth="512" tiledimageheight="512"><cube url="Donaldsons-Playfair.tiles/mres_%s/l1/%v/l1_%s_%v_%h.jpg" /></level>
	<mobile><cube url="Donaldsons-Playfair.tiles/mobile_%s.jpg" /></mobile>
	</image>
</krpano>

2

Montag, 10. Dezember 2018, 09:34

After more investigation, it appears in my example (see post above) the radar rotation differs between flash and HTML5.
Without changing the above xml but introducing 2 new html load files
FLASH VERSION: html5:"never" http://gentles.info/KAP/Gallery/Pano2014/bingf.htm RADAR ROTATES LOGICALY
HTML VERSION html5:"always" http://gentles.info/KAP/Gallery/Pano2014/bing5.htm RADAR rotates in the reverse directoion
(I have left on the server the original loader bing.htm, rotation with this depends on the user device since html5 is set to "auto")
Am I still doing something wrong, or does this start to look like a bug?

3

Montag, 10. Dezember 2018, 10:01

For the record: The bingmaps .js and .swf files are dated 4-Apr-2018

See http://gentles.info/KAP/krpano/plugins/bingmaps.swf
and http://gentles.info/KAP/krpano/plugins/bingmaps.js

therefore are after this posthttps://krpano.com/forum/wbb/index.php?p…&threadID=15321

Which talks about a similar issue with radar but as this is off-topic it goes back to the V7-V8 update?
I am confused, is the radar rotation issue mentioned above solved?

4

Montag, 10. Dezember 2018, 10:44

Hi,

that's a bug in Bingmaps-API itself - please see here for an updated bingmaps plugin with a workaround:
krpano 1.19-pr15 / pr16

Best regards,
Klaus

5

Montag, 10. Dezember 2018, 23:49

Excellent. Works perfectly
Thanks
James

Ähnliche Themen