PolygonEntity Constructor |
Namespace: Telogis.GeoBase.ShapeUI
public MyForm() { // create new shapelayer, where mapMain is a MapCtrl object myLayer = new ShapeLayer(mapMain); // create polygon Telogis.GeoBase.Geometry.Polygon myPol = new Telogis.GeoBase.Geometry.Polygon( new Telogis.GeoBase.Geometry.LineString[] { new Telogis.GeoBase.Geometry.LineString( new LatLon(33.632714, -117.816371), new LatLon(33.631749, -117.816903), new LatLon(33.631190, -117.815253), new LatLon(33.632504, -117.814716), new LatLon(33.632714, -117.816371) ) } ); // create polygon entity PolygonEntity PolyEntity = new PolygonEntity(myLayer, myPol);