CarlosSimoes / geoxml3

Automatically exported from code.google.com/p/geoxml3
0 stars 0 forks source link

parser moves maps away from my LatLng #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. View 
https://google-developers.appspot.com/maps/documentation/javascript/examples/lay
er-kml in a browser and make sure it appears correctly
2. Copy source code in new, blank document.
3. Add 
<style type="text/css">
      html { height: 100% }
      body { height: 100%; margin: 0; padding: 0 }
      #map-canvas { height: 100% }
    </style>
  <script type="text/javascript" src="geoxml3.js"></script>
in the head tag
4. Save as html and test in browser
5. Remove lines
var ctaLayer = new 
google.maps.KmlLayer('http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.
kml');
        ctaLayer.setMap(map);
6. Add lines
 var myParser = new geoXML3.parser({map: map});
    myParser.parse('cta.kml');
(Before this save cta.kml to your computer)
7. Run this page again 

What is the expected output? What do you see instead?
I expected to see exactly the same thing as in step 1. Instead, my view is 
moved to Howland Island and kml is not rendered at all.

What version of the product are you using? On what operating system?
I'm using geoxml3 in Chrome on CentOS 6.

Please provide any additional information below.

Original issue reported on code.google.com by milan.le...@gmail.com on 16 Mar 2013 at 4:44

GoogleCodeExporter commented 9 years ago
Which branch of geoxml3 are you using?
My examples loading that KML work:

http://www.geocodezip.com/geoxml3_test/v3_geoxml3_cta_test.html
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linkto.html?filename=c
ta.xml

Original comment by geocodezip on 16 Mar 2013 at 5:35

GoogleCodeExporter commented 9 years ago
I used http://geoxml3.googlecode.com/svn/trunk/ from source tab for download. 
Copy paste works, I'll check later if I can adapt. Thanks.

Original comment by milan.le...@gmail.com on 16 Mar 2013 at 5:47

GoogleCodeExporter commented 9 years ago
The trunk is old, does not support polylines or polygons and is not actively 
supported.

Original comment by geocodezip on 16 Mar 2013 at 8:05