earthoutreach / earth-api-utility-library

Automatically exported from code.google.com/p/earth-api-utility-library
0 stars 0 forks source link

Placemarks not loading in IE8 #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Run my code in Firefox (it works).
2.  Run it in IE 8 (it doesn't).

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

Upon page load, placemarks should be put into the GE viewer.  It does not
appear they are when the browser is IE8.  It does work in Firefox.

Please use labels and text to provide additional information.

Here is my page, so you can check:

http://www.sovereignstates.net/StateLegislators/VSLegTracker.php

I think you have a fabulous library!  If I can help in any way, please let
me know.   Relevant source code below.  (Sorry, can't get indents on this
text window).

function initCB(instance)
                             {
                                     ge = instance;
                                     ge.getWindow().setVisibility(true);
                                     var gex = new GEarthExtensions(ge);

                                     ge.getNavigationControl().setVisibility(ge.VISIBILITY_SHOW);
                                     ge.getLayerRoot().enableLayerById(ge.LAYER_ROADS, true);
                                     ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, true);
                                    gex.dom.clearFeatures();
                                    var folder = gex.dom.addFolder(
{
name: "Legislators"
});

                                    for (i=0;i<latitudes.length;i++)
{
                                      nlatitude=parseFloat(latitudes[i].firstChild.nodeValue);
nlongitude=parseFloat(longitudes[i].firstChild.nodeValue);

if (nlatitude!=0  && nlongitude!=0)
{
placemark=gex.dom.addPointPlacemark( [nlatitude, nlongitude],
{                                   
name: names[i].firstChild.nodeValue
});
                                    folder.getFeatures().appendChild(placemark);

}

}   //for i

                                    var bounds = gex.dom.computeBounds(folder);
                                    gex.view.setToBoundsView(bounds, {aspectRatio:1.5, scaleRange:2.0 });

}   // end initCB(instance)         

Original issue reported on code.google.com by jmat...@gmail.com on 19 Oct 2009 at 12:57

GoogleCodeExporter commented 8 years ago
Also, FYI, the only states that have geocoding are AL, CA and TX, so check and
compare only those.

Original comment by jmat...@gmail.com on 19 Oct 2009 at 1:09

GoogleCodeExporter commented 8 years ago
This may have been fixed in a recent commit to trunk, if you were using the 
packed/minified version of the library; can you check using this:

http://earth-api-utility-
library.googlecode.com/svn/trunk/extensions/dist/extensions.pack.js

Original comment by api.roman.public@gmail.com on 29 Dec 2009 at 5:29

GoogleCodeExporter commented 8 years ago
Fixed in trunk. Will go into 2.0.1 soon.

Original comment by api.roman.public@gmail.com on 11 Jan 2010 at 9:18

GoogleCodeExporter commented 8 years ago
And by 2.0.1 I mean 0.2.1, which I am releasing now.

Original comment by api.roman.public@gmail.com on 11 Jan 2010 at 9:31