Пример #1
0
        /// <summary>
        /// 弹出消息框
        /// </summary>
        /// <param name="map">ADFMap控件</param>
        /// <param name="msg">消息</param>
        /// <returns>回调字符</returns>
        public static string ShowMessage(ESRI.ArcGIS.ADF.Web.UI.WebControls.Map map, string msg)
        {
            object[] objs = new object[1];
            string   sa   = string.Format("alert('{0}')", msg);

            objs[0] = sa;
            CallbackResult callbackRes = new CallbackResult(null, null, "JavaScript", objs);

            map.CallbackResults.Add(callbackRes);
            return(map.CallbackResults.ToString());
        }
Пример #2
0
    /// <summary>
    /// Basic constructor
    /// </summary>
    public MapInitializer(Map map, InteractiveMap interactiveMap)
    {
        if (map == null)
            throw new ArgumentNullException("map");

        _map = map;
        _interactiveMap = interactiveMap;

        properties = GlobalApplication.ContainerAccessor.Container
            .Resolve<InitializerProperties>("init.properties");

        logger = GlobalApplication
            .CreateLogger(typeof(MapInitializer));
    }