forked from radioman/greatmaps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GMap.NET.Core: updated some map providers
- Loading branch information
radioman
committed
May 1, 2015
1 parent
7bc9040
commit 21c89d0
Showing
16 changed files
with
896 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
GMap.NET.Core/GMap.NET.MapProviders/Lithuania/LithuaniaReliefMapProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
| ||
namespace GMap.NET.MapProviders | ||
{ | ||
using System; | ||
using GMap.NET.Projections; | ||
|
||
/// <summary> | ||
/// LithuaniaReliefMap provider, http://www.maps.lt/map/ | ||
/// </summary> | ||
public class LithuaniaReliefMapProvider : LithuaniaMapProviderBase | ||
{ | ||
public static readonly LithuaniaReliefMapProvider Instance; | ||
|
||
LithuaniaReliefMapProvider() | ||
{ | ||
|
||
} | ||
|
||
static LithuaniaReliefMapProvider() | ||
{ | ||
Instance = new LithuaniaReliefMapProvider(); | ||
} | ||
|
||
#region GMapProvider Members | ||
|
||
readonly Guid id = new Guid("85F89205-1062-4F10-B536-90CD8B2F1B7D"); | ||
public override Guid Id | ||
{ | ||
get | ||
{ | ||
return id; | ||
} | ||
} | ||
|
||
readonly string name = "LithuaniaReliefMap"; | ||
public override string Name | ||
{ | ||
get | ||
{ | ||
return name; | ||
} | ||
} | ||
|
||
public override PureProjection Projection | ||
{ | ||
get | ||
{ | ||
return LKS94rProjection.Instance; | ||
} | ||
} | ||
|
||
public override PureImage GetTileImage(GPoint pos, int zoom) | ||
{ | ||
string url = MakeTileImageUrl(pos, zoom, LanguageStr); | ||
|
||
return GetTileImageUsingHttp(url); | ||
} | ||
|
||
#endregion | ||
|
||
string MakeTileImageUrl(GPoint pos, int zoom, string language) | ||
{ | ||
// http://dc5.maps.lt/cache/mapslt_relief_vector/map/_alllayers/L09/R00001892/C000020df.jpg | ||
|
||
return string.Format(UrlFormat, zoom, pos.Y, pos.X); | ||
} | ||
|
||
static readonly string UrlFormat = "http://dc5.maps.lt/cache/mapslt_relief_vector/map/_alllayers/L{0:00}/R{1:x8}/C{2:x8}.png"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.