Esempio n. 1
0
 /// <summary>
 /// Constructs a new DatabaseRenderer that will not draw labels, instead it stores the label
 /// information in the labelStore for drawing by a LabelLayer.
 /// </summary>
 /// <param name="mapDatabase">
 ///            the MapDatabase from which the map data will be read. </param>
 public DatabaseRenderer(MapDataStore mapDatabase, IGraphicFactory graphicFactory, TileBasedLabelStore labelStore)
 {
     this.mapDatabase      = mapDatabase;
     this.graphicFactory   = graphicFactory;
     this.labelStore       = labelStore;
     this.renderLabels     = false;
     this.tileCache        = null;
     this.tileDependencies = null;
 }
 /// <summary>
 /// Constructs a new DatabaseRenderer that will draw labels onto the tiles.
 /// </summary>
 /// <param name="mapFile">
 ///            the MapDatabase from which the map data will be read. </param>
 public DatabaseRenderer(MapDataStore mapFile, IGraphicFactory graphicFactory, TileCache tileCache)
 {
     this.mapDatabase      = mapFile;
     this.graphicFactory   = graphicFactory;
     this.labelStore       = null;
     this.renderLabels     = true;
     this.tileCache        = tileCache;
     this.tileDependencies = new TileDependencies();
 }