LineStringFirstPoint Property |
Namespace: Telogis.GeoBase.Geometry
// Create a LineString from an array of four points Telogis.GeoBase.Geometry.LineString newLine = new Telogis.GeoBase.Geometry.LineString( new Telogis.GeoBase.LatLon[] { new Telogis.GeoBase.LatLon(33.594096,-117.741204), new Telogis.GeoBase.LatLon(33.594195,-117.726176), new Telogis.GeoBase.LatLon(33.582902,-117.725361), new Telogis.GeoBase.LatLon(33.582953,-117.740873)} ); // Find the first point of the line LatLon firstPoint = newLine.FirstPoint; // Create PushPin at the location PushPin firstPointPin = new PushPin(firstPoint); // Add the PushPin to the rendererlist RendererList renderList = new RendererList(); mapCtrl.Renderer = renderList; renderList.Add(firstPointPin);