コード例 #1
0
 public string GetStaticMapUrl(int h, int w, double lat, double lng, YandexPointColor color, YandexPointSize size, int pointNumber) {
     string style = "pm" + color + size + pointNumber;
     style = style.ToLower();
     return string.Format("http://static-maps.yandex.ru/1.x/?size={0},{1}&l=map&pt={2},{3},{4}&key={5}",
                          h, w, lat.ToString("0.000000").Replace(',', '.'), lng.ToString("0.000000").Replace(',', '.'), style, mapsKey);
 }
コード例 #2
0
        public string GetStaticMapUrl(int h, int w, double lat, double lng, YandexPointColor color, YandexPointSize size, int pointNumber)
        {
            string style = "pm" + color + size + pointNumber;

            style = style.ToLower();
            return(string.Format("http://static-maps.yandex.ru/1.x/?size={0},{1}&l=map&pt={2},{3},{4}&key={5}",
                                 h, w, lat.ToString("0.000000").Replace(',', '.'), lng.ToString("0.000000").Replace(',', '.'), style, mapsKey));
        }