Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Map1.ImportShapeLayerDataLoaded += new Map.ImportShapeLayerDataLoadedEventHandler(Map1_ImportShapeLayerDataLoaded);

        if (!ScriptManager1.IsInAsyncPostBack)
        {
            ShapeSourceSpecification shapeSource = new ShapeSourceSpecification(DataType.GeoRSS, "GeoRSS.xml");
            Map1.ImportShapeLayerData(shapeSource, true);
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Map1.ImportShapeLayerDataLoaded += new Map.ImportShapeLayerDataLoadedEventHandler(Map1_ImportShapeLayerDataLoaded);

        if (!ScriptManager1.IsInAsyncPostBack)
        {
            ShapeSourceSpecification shapeSource = new ShapeSourceSpecification(DataType.VECollection, "546E7E30AC2C5011!451");

            Map1.ImportShapeLayerData(shapeSource, true);
        }
    }