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


´╗┐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 
        StaticMap map = new StaticMap(); 
 
        map.Width = 250; 
        map.Height = 250; 
        map.Zoom = 14; 
        map.LatCenter = 55.8592110; 
        map.LngCenter = -4.246638; 
 
        // render roadmap 
        imgMapRoad.ImageUrl = map.Render(); 
 
        // change type and render mobile 
        map.Type = StaticMap.mType.Mobile; 
        imgMapMobile.ImageUrl = map.Render(); 
    } 
}