I am trying to add a wms overlay with data from mapquest, but instead of the map a just see little red crosses.
This is the code I am using. I think I just have some small mistake in my code. Has anybody tryed this before and could assist me a little?
.MapBackground(new BackgroundLayer(new GeoSolidBrush(GeoColor.FromHtml("#0000FF")))) .CurrentExtent(-131.22, 55.05, -54.03, 16.91) .MapUnit(GeographyUnit.DecimalDegree) .CustomOverlays(overlays => { overlays.WmsOverlay("WMS Overlay") .Parameters(paras => { paras.Add("format", "jpeg"); }) .ServerUris(uris => { uris.Add(new Uri("otile2.mqcdn.com/tiles/1.0.0/osm")); }) .TileHeight(256) .TileWidth(256); }) .Render(); }
@{Html.ThinkGeo().Map("Map1", 600, 500)