In 3.0.2 Beta I could playe the google layer in background and an WmsImageLayer in foreground.
In new 3.0.313 Beta I can not place the layers on top of each other. My WmsLayer has the projections:
EPSG:4326
EPSG:25832
EPSG:25833
EPSG:325833
EPSG:3034
EPSG:3035
EPSG:3044
EPSG:3045
EPSG:31468
EPSG:31469
I tryed WmsOverlay and WmsRasterLayer. But I can not see my Wms layer - just the google layer. Here is some code for testing with WmsOverlay:
this.map.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.StandardColors.Transparent);
this.map.MapUnit = GeographyUnit.Meter;
this.map.MapTools.Logo.Enabled = false;
this.map.MapTools.MouseCoordinate.Enabled = true;
this.map.StaticOverlay.TileType = TileType.SingleTile;
this.map.DynamicOverlay.TileType = TileType.SingleTile;
this.map.MapTools.OverlaySwitcher.Enabled = true;
this.map.CurrentExtent = ExtentHelper.GetDrawingExtent(
new RectangleShape
(
1057888.47132,
7198533.57776,
1907868.22573,
6589483.33345
),
(float)this.map.Width.Value,
(float)this.map.Height.Value
);
GoogleOverlay google = new GoogleOverlay("Google Map");
google.JavaScriptLibraryUri = new Uri(GlobalSettings.WmsLayerUrls.WmsUrlGoogleMaps);
google.GoogleMapType = GoogleMapType.Physical;
this.map.CustomOverlays.Add(google);
WmsOverlay wms = new WmsOverlay("LGB Overlay as WmsOverlay");
wms.Parameters.Add("layers", "bg");
wms.ServerUris.Add(new Uri("myUri"));
wms.TileType = TileType.SingleTile;
// Add wms layer
this.map.CustomOverlays.Add(wms);
Sorry, but the url of the wms layer i can not post public. I hope you can help me even so, because you habe the projections of the wms layer.
Anke