public static StringBuilder GetCumulativeFactorXML(ThinkGeo.MapSuite.DesktopEdition.Marker thinkGeoMarker) { StringBuilder aux = new StringBuilder(); aux.AppendLine("<Placemark>"); aux.AppendFormat("<description>{0}</description>", string.Empty); aux.AppendFormat("<name>{0}</name>", string.Empty); aux.AppendLine("<visibility>1</visibility>"); aux.AppendLine("<Point>"); //AppendCoordinates(textPathInScreen, xOffset, yOffset, rnSB); aux.AppendFormat("<coordinates>{0},{1},20000</coordinates>", thinkGeoMarker.Position.X, thinkGeoMarker.Position.Y); aux.AppendLine("</Point>"); aux.AppendLine(String.Format("<Style><IconStyle><Icon><href>./Images/{0}</href></Icon></IconStyle></Style>", thinkGeoMarker.Name + ".jpg")); aux.AppendLine("</Placemark>"); return(aux); }
public static StringBuilder GetMarkerXML(ThinkGeo.MapSuite.DesktopEdition.Marker thinkGeoMarker) { Marker m = (Marker)thinkGeoMarker.Tag; MarkerType mt = MarkerTypeHelper.Get(m.IDMarkerType); StringBuilder aux = new StringBuilder(); aux.AppendLine("<Placemark>"); aux.AppendFormat("<description>{0}</description>", thinkGeoMarker.Text); aux.AppendFormat("<name>{0}</name>", thinkGeoMarker.Text); aux.AppendLine("<visibility>1</visibility>"); aux.AppendLine("<Point>"); //AppendCoordinates(textPathInScreen, xOffset, yOffset, rnSB); aux.AppendFormat("<coordinates>{0},{1},20000</coordinates>", thinkGeoMarker.Position.X, thinkGeoMarker.Position.Y); aux.AppendLine("</Point>"); aux.AppendLine(String.Format("<Style><IconStyle><Icon><href>./Images/{0}</href></Icon></IconStyle></Style>", mt.Symbol)); aux.AppendLine("</Placemark>"); return(aux); }
public StringBuilder GetCumulativeFactorXML(ThinkGeo.MapSuite.DesktopEdition.Marker marker) { return(KmlGeoCanvas.GetCumulativeFactorXML(marker)); }