Hello,
I have had some experience add plugins etc with javascript. I am stumped with google maps though; radar and spot are added as children of the google maps plugin. When i say children, i mean that they enclosed within the plugin tag of the google maps.
In the xml file that i write xml for google maps is like this
Code
<plugin name="gmaps"
url="http://localhost/vtours/live/plugins/googlemaps.swf"
keep="true"
visible="true" enabled="true" handcursor="false" capture="true" children="true"
zorder="1000" alpha="1.00" blendmode="normal"
smoothing="true" origin="left" edge=""
x="0" y="0" width="245" height="475"
scale="1" onloaded="" onover="" onhover="" onout=""
ondown="" onup="" onclick=""
scrollwheel="true" dragging="true" maptype="SATELLITE"
zoom="14"
key=""
onmapready="updatespot(sp_1);"
>
<radar alpha="0.25"
behindspots="true"
dragable="true"
fillalpha="1.0"
fillcolor="0x9999FF"
glow="true"
glowcolor="0"
glowstrength="3"
glowwidth="4"
linealpha="0.0"
linecolor="0xFFFFFF"
linewidth="0.0"
size="100"
visible="true"
/>
<spot name="sp_1" heading="-90"
lat="17.4675902" lng="78.5565376"
onhover="showtext(Spot 1);"
/>
<spot name="sp_3" heading="-90"
lat="17.4713563" lng="78.5632324"
onhover="showtext(Spot 3);"
/>
</plugin>
Display More
With javascript i can add the google maps plugin as
Code
krpano().get().call("addplugin(gmaps);");
krpano().get().call("set(plugin[gmaps].lat, 12);");
krpano().get().call("set(plugin[gmaps].lng, 121);");
.....
That will add the google map and the radar. How do i go about adding the spot so that it will appear as mentioned in the xml above? That is, how do i add the radar and spot sub-nodes to the google maps plugin with javascript?
Thanks