Google Earth plugin in C#

436 views
Skip to first unread message

Keith Taunan

unread,
Jan 24, 2014, 1:30:59 AM1/24/14
to google-earth-...@googlegroups.com

In this the tutorial says you can customize the LINESTRING

https://developers.google.com/earth/documentation/geometries?hl=en

but when i try to C# VS2012 the line of code

var lineStyle = lineStringPlacemark.getStyleSelector().getLineStyle();

i cant find the method getLineStyle() so i get the error;

error: Error1 GEPlugin.IKmlStyleSelector' does not contain a definition for 'getLineStyle' and no extension method 'getLineStyle' accepting a first argument of type 'GEPlugin.IKmlStyleSelector' could be found (are you missing a using directive or an assembly reference?

THank You in Advance :)

InHoaxidable

unread,
Jan 30, 2014, 10:21:20 AM1/30/14
to google-earth-...@googlegroups.com
Hi Keith,
 
the line you quoted must be preceded by this one :
 
lineStringPlacemark.setStyleSelector(ge.createStyle('')); 

as in the tutorial. You   must make sure that the styleSelector has got a style to be able to custumize it. Did you do that ?
 
If not, that might help. If yes, I have no other idea.
 
Regards.
Reply all
Reply to author
Forward
0 new messages