www.pudn.com > gmap-static-2005.rar > example1.aspx.cs, change:2008-08-09,size:722b


´╗┐using System; 
using Frameworx.GMap; 
 
public partial class example1 : System.Web.UI.Page 
{ 
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
        // create new map object 
        var map = new StaticMap 
                      { 
                          Width = 250, 
                          Height = 250, 
                          Zoom = 14, 
                          LatCenter = 55.8592110, 
                          LngCenter = -4.2466380 
                      }; 
 
        // render roadmap 
        imgMapRoad.ImageUrl = map.Render(); 
 
        // change type and render mobile 
        map.Type = StaticMap.mType.Mobile; 
        imgMapMobile.ImageUrl = map.Render(); 
    } 
}