PDA

View Full Version : gmap spots.


discocandy
04-04-2008, 10:57 PM
Hi all I am trying to get gmap working in a panorama.
the gmap works but somehow The hotspots do not work
I can't find the error I made. can someone who used gmap in his panorama help me??

<?xml version="1.0" encoding="iso-8859-9"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<name>kandifototour</name>
<description><![CDATA[0000]]></description>
<Style id="style1">
<IconStyle>
<Icon>
<href>images/pov.png</href>
</Icon>
</IconStyle>
</Style>
<Placemark>
<name>Betten</name>
<description><![CDATA[<table width="400">
<a href="http://www.kandiefoto.nl/panorama/1/betten.htm"><img width="215" height="100" src="http://farm4.static.flickr.com/3179/2365173233_6452ffb940_m.jpg?imgmax=10"></a>
</table>""></description>
<styleUrl>#style1</styleUrl>
<Point>
<coordinates>52.73209,5.02006,0.000000</coordinates>
</Point>
</Placemark>

</kml>


and the code in my panorama xml.
<spot id="gmap" url="graphics/gmapsample.png" alpha="0.7"
static="1" staticX="-7" staticY="-260" align="LB" salign="LB" depth="103"
onpress="contrast=1" onrelease="contrast=0" onload="alpha=0;alpha=0.7,350"
onClick="gmapswf.visible=1; close3.visible=1; slideshow.visible=0; gmap.visible=0; pageflip.visible=0; qualityStatic.low" />


<spot id="gmapswf" url="files/gmap.swf" visible="0" static="1" align="mm" onOver="gmapswf.alpha=1;1.visible=1; ;pano.disablepan=1;pano.disabletilt=1"/>
<spot id="close3" url="graphics/gmapsampler.png" visible="0" static="1" staticX="-7" staticY="-260" align="LB" salign="LB" depth="111" onOver="brightness=1" onOut="brightness=1" onClick="pano.disablepan=0;pano.disabletilt=0; gmapswf.visible=0; slideshow.visible=1; gmap.visible=1; pageflip.visible=1; close3.visible=0; qualityStatic.high" />

/* ---- Einde gmap ---- */

discocandy
04-06-2008, 10:44 AM
HERE (http://home.quicknet.nl/qn/prive/dj.freddy/gmap/index.html) is a link to a sample I made.


when I call the gmap.swf on its own the hotspot is working.
see HERE (http://home.quicknet.nl/qn/prive/dj.freddy/gmap/files/gmap.swf)

It is a very raw version.
Click on the hotspot called plattegrond

Anyone got Ideas how I get the hotspot worikng inside thea panorama?

discocandy
04-09-2008, 07:37 AM
No one can help??:( :???:

henri
04-11-2008, 07:58 PM
The second link does not work, So i'm guessing here.
But i saw you did not use depth for gmap.swf. Since i think this is not the full code maybe the hotspots just lay tot deep.

Henri

discocandy
04-12-2008, 12:47 PM
problem is solved so far
only problem now is when you click the gmap hotspot fullscreen IE and firefox crashes.
it opens an external link right now and they do not like it fullscreen


sample found below.


http://home.quicknet.nl/qn/prive/dj.freddy/gmap//gmap/index.html

dlgreene
04-14-2008, 02:49 PM
discocandy-

The only thing that I can see in the code you provided was that the second <![CDATA[ was never closed.

I have found that it makes it very easy to overcome mistakes like this by using a good xml editor and in the case of Google maps use the schema provided when editing the xml(kml in this case).

If you are not using Firefox (makes you download) look at the opening of the <kml> tag here...
http://www.dlgreene.com/gmap_data.aspx

you can use the kml in Google maps from the link here...
http://www.dlgreene.com

or
Copy this:
http://www.dlgreene.com/gmap_data.aspx
Go to google maps and paste it into the location text box instead of an address.

Anyway if you copy and paste the opening tag (including all the xsi stuff) and edit your xml in a good xml editor the editor will prompt you for what tags and attributes are currently available and where any errors might be.

This is one of the frustrating things about the vr viewers is that they depend on xml but don't use and publish a schema to help everyone on the planet write xml easier...

henri
04-17-2008, 10:25 PM
David,
what xml editors do you advice?

Henri

dlgreene
04-18-2008, 02:02 AM
henri-

That's a rough question to answer... First, I have MSDN (Microsoft Developers Network) and the api (Microsoft Visual Studio 2005) has a set of xml tools built in. The problem is that is not a good reasonable answer for most people.

http://www.altova.com/products.html - as far as I know is the "ganddaddy" of xml editors.

http://www.stylusstudio.com/ - has been around for a long while and as far as I know has a good reputation.

http://www.oxygenxml.com/ - is another "biggy".

As far as I know when you search in Google or whatever most of them have try and buy stratagies. Try them. Make sure that they do the bone head stuff well.

1.) remove cr,lf,and tabs for output and put them back in while you edit.

2.) if you include the schema in the header or opening tag of the xml it should automatically be a good helper for writing.

3.) when you write a little xml file of your own for your own purposes. Check to see if it will make a schema for you based on the xml. I CHEAT ALL THE TIME. I write the xml that I want use and then have the editor make a "starter" schema and doctor the results.

Clearly I cheat less and less but I depend on the editor to help me out with these things. At one time the Microsoft editors sucked because they loaded up the schema with microsoft specific data types in the "starter" schemas. It doesn't do that any more and puts in w3c data types.

There is no question that you will have to doctor up "starter" schemas but for some datasets the schema might be O.K. as is.

Some sort of debug xslt possibilities... This is tough because dollars to doughnuts you need parameters that are coming from the end user in a web environment. There should still be some way to set "default" values for debugging purposes so you can at least test the basic function. Some editors will have no problems in this area and this entire paragraph is moot.

TRY THE HTML EDITOR THAT YOU CURRENTLY USE!!!! I'm pretty sure most of the "biggies" will do the basic job. At least as far as being able to define a schema in the opening tag and "helping" you write the xml. These editors probably won't have xslt or making a starter schema but at least should help out for a schema that is defined.