The red lines are part of the base map so I have no control there. The orange and green lines represent pipelines and they’re on the link layer. The nodes are well sites and they go on the default layer. You’re looking at a gas gathering system essentially.
The original grid image sizes are smaller (1448x873 for example) and I resize to make it almost square (1453x1450) for display purpose. Here’s the piece of code that does it,
GoLayer goLayer = GetGoLayer(gridLayer, gridStyle, layerID, proView);
Dictionary<Township, Image> gridImage = gridLayer.GetGridImages( extent, fieldWidthDocUnits, fieldHeightDocUnits, gridLevel, gridStyle );
if (gridImage != null)
foreach ( Township town in gridImage.Keys )
GoImage goImage = new GoImage();
Image image = gridImage[town];
// resize grid image, because it's proportions are based on the unprojected grid. (latlongs). We just make it square for now, and the same size as the Yahoo map.
// CoordinateSystemConverterGeographic.GetAspectRatio( north, south, east, west )
int townDocWidth = Convert.ToInt32( CoordinateSystemAdaptor.DocUnitsPerConfigCoord * Math.Round( town.Width ) / CoordinateSystemConverterGeographic.METRES_PER_CONFIG_COORD );
int townDocHeight = Convert.ToInt32( CoordinateSystemAdaptor.DocUnitsPerConfigCoord * Math.Round( town.Height ) / CoordinateSystemConverterGeographic.METRES_PER_CONFIG_COORD );
Image resizedGridImage = new Bitmap( image, townDocWidth, townDocHeight );
goImage.Image = resizedGridImage;
goImage.Position = goImage.Location = CoordinateSystemAdaptor.GetDocCoords( CoordinateSystemConverterGeographic.GetConfigCoords( town.NorthWest, origin ) );
goLayer.Add( goImage );