ajayagarwal1567 / earth-api-samples

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

Placemark didn't show on google earth(street view layer) #973

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. placemark is working good on ground view layer.
   but it just disappear when I switch it to Street view layer.

What is the expected output or behavior? What do you see instead?
placemark should be visible in Google Earth(street view layer)

Which plugin version are you using?
7.1.1.1888

Which browsers and operating systems are affected?
Chrome Win7

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

var placemark = DS_ge.createPlacemark('');
                placemark.setName("placemark");
                var icon2 = DS_ge.createIcon('');
                icon2.setHref('http://localhost/Earth/man.jpg');
                var style = DS_ge.createStyle('');
                style.getIconStyle().setIcon(icon2); 
                placemark.setStyleSelector(style); 
                var point_test = DS_ge.createPoint('');
                point_test.setLatitude(myRoute.steps[0].path[0].lat());
                point_test.setLongitude(myRoute.steps[0].path[0].lng());
                placemark.setGeometry(point_test);
                DS_ge.getFeatures().appendChild(placemark);

Original issue reported on code.google.com by auron2...@gmail.com on 21 Nov 2013 at 10:04