I am using your library to get map tiles which then get analysed. However, the presence of the labels, transit lines and highways on the map influences the image analysis results. I am calling GetImageFrom
which in turn calls GetTileImage
which then calls MakeTileImageUrl
. I wanted to ask if there is a chance that the MakeTileImageURL
function in GoogleMapProvider.cs
could be replaced by the following:
string MakeTileImageUrl(GPoint pos, int zoom, string language, bool NoLabels = false, bool NoTransitLines = false, bool NoHighways = false)
{
string sec1 = string.Empty; // after &x=...
string sec2 = string.Empty; // after &zoom=...
GetSecureWords(pos, out sec1, out sec2);
List<string> apistyles = new List<string>();
if (NoLabels == true)
apistyles.Add("s.t:0|s.e:l|p.v:off");
if (NoTransitLines == true)
apistyles.Add("s.t:65|s.e:g|p.v:off");
if (NoHighways == true)
apistyles.Add("s.t:49|s.e:g|p.v:off");
string apistyle = string.Join(",", apistyles);
return string.Format(UrlFormat, UrlFormatServer, GetServerNum(pos, 4), UrlFormatRequest, Version, language, pos.X, sec1, pos.Y, zoom, sec2, Server, apistyle);
}
Is this feasible? If not, is there an existing method that allows me to achieve what i am trying to do.