Example #1
0
 /// <summary>
 /// New instance of Google Maps Disclaimer
 /// </summary>
 public GoogleMapsDisclaimer()
 {
     _mathTransform = null; //Assuming WGS84
     _font          = new Font("Arial", (float)Math.Floor((11.0 * 72 / 96)));
     //_language = Thread.CurrentThread.CurrentCulture.Name;
     _tileSource = new BruTile.Web.GoogleTileSource(BruTile.Web.GoogleMapType.GoogleMap);
 }
Example #2
0
 /// <summary>
 /// New instance of Google Maps Disclaimer
 /// </summary>
 public GoogleMapsDisclaimer()
 {
     m_MathTransform = null; //Assuming WGS84
     m_Font          = new Font("Arial", (float)Math.Floor((11.0 * 72 / 96)));
     m_Language      = System.Threading.Thread.CurrentThread.CurrentCulture.Name;
     m_TileSource    = new BruTile.Web.GoogleTileSource(BruTile.Web.GoogleMapType.GoogleMap);
 }
Example #3
0
 /// <summary>
 /// Initialize with custom parameters
 /// </summary>
 /// <remarks>
 /// IMPORTANT: In Async mode you need to use UpdateBoundingBox when the MapBox/MapImage center or ZoomLevel changes, else the text will be wrong
 /// </remarks>
 /// <param name="mapToWgs84Transform">Transformation to transform MapCoordinates to WGS84</param>
 /// <param name="mapType">Type of Map Displayed</param>
 /// <param name="disclaimerDownloaded">Optional EventHandler that is called after Disclaimer Async Download (to be used to refresh map)</param>
 /// <param name="runInAsyncMode">whether to download disclaimer information async (non blocking operation)</param>
 public GoogleMapsDisclaimer(IMathTransform mapToWgs84Transform, MapType mapType, EventHandler disclaimerDownloaded, bool runInAsyncMode) : this()
 {
     _mathTransform           = mapToWgs84Transform;
     _runInRunAsyncMode       = runInAsyncMode;
     _downloadCompleteHandler = disclaimerDownloaded;
     _mapType = mapType;
 }
Example #4
0
 /// <summary>
 /// Initialize with custom parameters
 ///
 /// IMPORTANT: In Async mode you need to use UpdateBoundingBox when the MapBox/MapImage center or ZoomLevel changes, else the text will be wrong
 /// </summary>
 /// <param name="mapToWgs84Transform">Transformation to transform MapCoordinates to WGS84</param>
 /// <param name="mapType">Type of Map Displayed</param>
 /// <param name="disclaimerDownloaded">Optional EventHandler that is called after Disclaimer Async Download (to be used to refresh map)</param>
 /// <param name="downloadAsync">wether to download disclaimer information async (non blocking operation)</param>
 public GoogleMapsDisclaimer(IMathTransform mapToWgs84Transform, MapType mapType, EventHandler disclaimerDownloaded, bool downloadAsync) : this()
 {
     m_MathTransform    = mapToWgs84Transform;
     m_RunAsync         = downloadAsync;
     m_DownloadComplete = disclaimerDownloaded;
     m_MapType          = mapType;
 }
 /// <summary>
 /// Initialize with custom parameters
 /// </summary>
 /// <remarks>
 /// IMPORTANT: In Async mode you need to use UpdateBoundingBox when the MapBox/MapImage center or ZoomLevel changes, else the text will be wrong
 /// </remarks>
 /// <param name="mapToWgs84Transform">Transformation to transform MapCoordinates to WGS84</param>
 /// <param name="mapType">Type of Map Displayed</param>
 /// <param name="disclaimerDownloaded">Optional EventHandler that is called after Disclaimer Async Download (to be used to refresh map)</param>
 /// <param name="runInAsyncMode">whether to download disclaimer information async (non blocking operation)</param>
 public GoogleMapsDisclaimer(IMathTransform mapToWgs84Transform, MapType mapType, EventHandler disclaimerDownloaded, bool runInAsyncMode) : this()
 {
     _mathTransform = mapToWgs84Transform;
     _runInRunAsyncMode = runInAsyncMode;
     _downloadCompleteHandler = disclaimerDownloaded;
     _mapType = mapType;
 }
Example #6
0
 /// <summary>
 /// New instance of Google Maps Disclaimer
 /// </summary>
 public GoogleMapsDisclaimer()
 {
     m_MathTransform = null; //Assuming WGS84
     m_Font = new Font("Arial", (float)Math.Floor((11.0 * 72 / 96)));
     m_Language = System.Threading.Thread.CurrentThread.CurrentCulture.Name;
     m_TileSource = new BruTile.Web.GoogleTileSource(BruTile.Web.GoogleMapType.GoogleMap);
 }
Example #7
0
 /// <summary>
 /// Initialize with custom parameters
 /// </summary>
 /// <param name="mapToWgs84Transform">Transformation to transform MapCoordinates to WGS84</param>
 /// <param name="mapType">Type of Map Displayed</param>
 /// <param name="disclaimerDownloaded">Optional EventHandler that is called after Disclaimer Async Download (to be used to refresh map)</param>
 /// <param name="downloadAsync">wether to download disclaimer information async (non blocking operation)</param>
 public GoogleMapsDisclaimer(IMathTransform mapToWgs84Transform, MapType mapType, EventHandler disclaimerDownloaded, bool downloadAsync) : this()
 {
     m_MathTransform = mapToWgs84Transform;
     m_RunAsync = downloadAsync;
     m_DownloadComplete = disclaimerDownloaded;
     m_MapType = mapType;
 }
 /// <summary>
 /// New instance of Google Maps Disclaimer
 /// </summary>
 public GoogleMapsDisclaimer()
 {
     _mathTransform = null; //Assuming WGS84
     _font = new Font("Arial", (float)Math.Floor((11.0 * 72 / 96)));
     //_language = Thread.CurrentThread.CurrentCulture.Name;
     _tileSource = new BruTile.Web.GoogleTileSource(BruTile.Web.GoogleMapType.GoogleMap);
 }