view:
@{
Html.ThinkGeo().Map("Map1", new System.Web.UI.WebControls.Unit(100, System.Web.UI.WebControls.UnitType.Percentage), 510)
.MapBackground(new BackgroundLayer(new GeoSolidBrush(GeoColor.StandardColors.White)))
.CurrentExtent(142273.397380151, 454356.07030608, 473560.82562814, 169450.546640289)
.MapUnit(GeographyUnit.Meter)
.StaticOverlay(overlay =>
{
WmsRasterLayer wmsLayer = new WmsRasterLayer();
wmsLayer.Uri = new Uri("http://openbasiskaart.nl/mapcache/");
wmsLayer.Parameters.Add("FORMAT", "image/gif");
wmsLayer.Parameters.Add("SRS", "EPSG:28992");
wmsLayer.ActiveLayerNames.Add("osm");
overlay.Layer("WmsLayer", wmsLayer);
})
.Render();
}
Controller:
[MapActionFilter]
public string ToPdf(Map map, GeoCollection