HI
I am trying to implement a WMTS overlay but an error message occurs on screen where the overlay is meant to be saying
"Value cannot be null. Parameter name:key"
however I have added the parameter, below is my code
mapControl.CurrentExtent = new RectangleShape(-13685148.3015252, 5216681.83506644, -13685148.3015252, 5216681.83506644);
WmtsOverlay overlay = new WmtsOverlay(new Collection<
Uri
> { new Uri("<a href="api.ordnancesurvey.co.uk/mapping_api/service/wmts/apikey=xxxxxxxxxxxxxxxxxxxxxxxxx">api.ordnancesurvey.co.uk/ma...xxxxxxxxxx</a>") });
overlay.Parameters.Add("LAYER", "Zoom Map Auto");
overlay.Parameters.Add("STYLE", "default");
overlay.Parameters.Add("FORMAT", "image/jpeg");
overlay.Parameters.Add("TILEMATRIXSET", "EPSG:27700");
overlay.Parameters.Add("SERVICE", "WMTS");
overlay.Parameters.Add("REQUEST", "GetTile");
overlay.Parameters.Add("VERSION", "1.0.0");
overlay.Parameters.Add("TILEMATRIX", "ESPG:27700:0");
//overlay.Parameters.Add("TILEROW", "1");
//overlay.Parameters.Add("TILECOLE", "1");
overlay.Parameters.Add("KEY", "Egvboe9xrM4QEMJoD1IsQTEEFTAeMnwp");
mapControl.MapUnit = GeographyUnit.Meter;
//GetIntersectingRowColumnRange(mapControl.CurrentExtent)
mapControl.Overlays.Clear();
mapControl.Overlays.Add(overlay);
mapControl.Refresh();
}