Hi,
Does MapSuite MVC using D2D as well?
jm
Hi,
Does MapSuite MVC using D2D as well?
jm
Hi Jm,
The MVC Edition haven't used the D2D as the default render engine yet, but in may major release, we will public the GeoCanvas as a property of Map object, so that we can easily switch between different render engines. Now you can try overwriting the drawCore method of LayerOverlay to use D2D for rendering in MvcEdition. Please check the following code:
public class LayerOverlayMvc : LayerOverlay
{
protected override void DrawCore(GeoCanvas canvas, object nativeImage, RectangleShape canvasExtent, GeographyUnit mapUnit)
{
canvas = new WicBitmapGeoCanvas();
canvas.BeginDrawing(nativeImage, canvasExtent, mapUnit);
canvas.Clear(new GeoSolidBrush(GeoColor.SimpleColors.Transparent));
canvas.EndDrawing();
base.DrawCore(canvas, nativeImage, canvasExtent, mapUnit);
}
}
Thanks,
Johnny