private void PaintTile(Tile tile) { TileCanvasRenderContext ctx; ctx = new TileCanvasRenderContext(this, tile); // IMPORTANT! The <meta> tag has to be in the first // chunk written to the stream or else the encoding // will be wrong! ctx.Write("<html>\n<head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n"); ctx.Write("<style type=\"text/css\" media=\"screen\">\n"); RenderStyles(ctx); ctx.Write("</style>\n"); ctx.Write("</head>\n"); if (tile != null) { tile.Render(ctx); } ctx.Write("</html>"); }
override public void Tile(BT.Tile tile) { tileTable [tile.UniqueKey] = tile; if (!renderStylesDone) { //KNV: Using static_stylesheet for now. Replace with TileCanvas logic later: Write(static_stylesheet); /* * Write ("<style type=\"text/css\" media=\"screen\">"); * TileCanvas.RenderStyles (this); * Write ("</style>"); */ renderStylesDone = true; } if (tile != null) { if (tile is BT.TileHitCollection) { PrefetchSnippetsForNetworkHits((BT.TileHitCollection)tile); } tile.Render(this); } }
private void PaintTile (Tile tile) { TileCanvasRenderContext ctx; ctx = new TileCanvasRenderContext (this, tile); // IMPORTANT! The <meta> tag has to be in the first // chunk written to the stream or else the encoding // will be wrong! ctx.Write ("<html>\n<head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n"); ctx.Write ("<style type=\"text/css\" media=\"screen\">\n"); RenderStyles (ctx); ctx.Write ("</style>\n"); ctx.Write ("</head>\n"); if (tile != null) { tile.Render (ctx); } ctx.Write ("</html>"); }
override public void Tile (Tile tile) { canvas.CacheTile (tile); tile.Render (this); }
override public void Tile(Tile tile) { canvas.CacheTile(tile); tile.Render(this); }