jordoncm / earth-api-samples

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

Issues with google earth api with chrome v17.0.963.46 #753

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My app is creating and editing polygons.  On Chrome v16.x when user changes the 
color of the polygon it would reflect on the globe.  On Chrome v17.0.963.46 the 
color change is not reflected on the globe until the user clicks back on the 
globe or hovers over the globe.   

Which plugin version are you using?
6.2

Which browsers and operating systems are affected?
Mac - Chrome v17.0.963.46

Polygon was created using:
                shapePlacemark = gex.dom.addPolygonPlacemark([], {
                    id: "feature_id_" + node.attr("id"),
                    style: {
                      poly: {color: areaColor},
                      line: { width: lineWidth, color: lineColor }
                    }
                });
                gex.edit.drawLineString(shapePlacemark.getGeometry().getOuterBoundary());

Code to update the color:
            var polyStyle = googleEarthObj.getStyleSelector().getPolyStyle();
            var colorOpacity = polyStyle.getColor().getA().toString(16);
            // the incoming color for the color picker is in format rrggbb
            var colorR = polyColor.substring(0,2);
            var colorG = polyColor.substring(2,4);
            var colorB = polyColor.substring(4,6);

            // the google earth is in form AABBGGRR 
            polyStyle.getColor().set(colorOpacity + colorB + colorG + colorR);

Original issue reported on code.google.com by llana.go...@lmnsolutions.com on 15 Feb 2012 at 4:57

GoogleCodeExporter commented 9 years ago
Sorry it is plugin version 6.0   

Original comment by llana.go...@lmnsolutions.com on 15 Feb 2012 at 5:31

GoogleCodeExporter commented 9 years ago
Are you seeing this behavior in the latest version of the plugin (6.2.1.6014)? 
Can you provide a more complete test case? I created a test based on the code 
you provided here and don't see a problem, but it's possible I missed some 
important aspect.

Original comment by bcke...@google.com on 28 Feb 2012 at 11:49

GoogleCodeExporter commented 9 years ago
Without more information, I'm going to close this issue. Please feel free to 
add more details and we can reopen.

Original comment by bcke...@google.com on 23 May 2012 at 10:25