Beispiel #1
0
 public static string GetLocationLink(LocationModel location)
 {
     return(string.Format("<a href='{0}' class='maplink' target='_blank'>{1}</a>", location.GetMapLink(), location.Name));
 }
Beispiel #2
0
 public static string GetMapLink(this LocationModel a)
 {
     return(string.Format(@"http://maps.google.com/maps?q={0}&sll={1},{2}&iwloc=A", HttpUtility.UrlEncode(a.Name), a.Latitude, a.Longitude));
 }