public static ILayer Create() { var provider = CreateProvider(); var layer = new ImageLayer("ArcGISImageServiceLayer"); layer.Styles.Add(new VectorStyle()); // This is ugly. I need to add a style to get it to render even though it is not used. layer.DataSource = provider; return layer; }
public static ILayer Create() { var provider = CreateWmsProvider(); var layer = new ImageLayer("WmsLayer"); layer.Styles.Add(new VectorStyle()); // To get it to render I have to add some default style which is not used by WMS. This is ugly. layer.DataSource = provider; layer.DataSource.SRID = 900913; return layer; }
public static ILayer Create() { var provider = CreateWmsProvider(); var layer = new ImageLayer("WmsLayer") { DataSource = provider }; return layer; }