chiropterist / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

GEPlugin load of a Camera Element does not produce the expected result #285

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which products are affected?

GEPlugin on Mac

What steps will reproduce the problem?
1.      networkLink = ge.createNetworkLink("");
        networkLink.setFlyToView(true);
        var link = ge.createLink("");
        link.setHref(kmlUrl);
        networkLink.setLink(link);
...
        ge.getFeatures().appendChild(networkLink);

KmlUrl points to:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" 
xmlns:gx="http://www.google.com/kml/ext/2.2" 
xmlns:kml="http://www.opengis.net/kml/2.2" 
xmlns:atom="http://www.w3.org/2005/Atom">
    <Folder>
        <name>CADIS</name>
        <open>1</open>
        <Camera>
            <longitude>0.1</longitude>
            <latitude>89.9999</latitude>
            <altitude>8000000</altitude>
            <heading>0</heading>
            <tilt>0</tilt>
            <roll>0</roll>
            <altitudeMode>clampToGround</altitudeMode>
        </Camera>
    </Folder>
</kml>

2.
3.

What is the expected output or behavior? What do you see instead?

Camera looking down at the North Pole.

Flies to incorrect altitude, If the same KmlUrl is loaded in the GE application 
the camera is 
correctly positioned.

Also, in previous versions of the plugin this worked as expected.

I have used the KmlCamera object directly to work around this, but would like 
to go back to 
loading the KML

What application versions (if any) are you using?

Current.

Which operating systems and browsers are affected?

OSX safari firefox, haven't tested others

Please provide any additional information (code snippets/links) below.

Original issue reported on code.google.com by mbu...@gmail.com on 1 Jul 2009 at 4:56