public iServerProvider(string serviceUrl, string mapName, uint tileSize, string format, double[] scales, Utility.MapParameter mapParameter)
 {
     this._serviceUrl = serviceUrl;
     this._mapName = mapName;
     this._format = format;
     this._scales = scales;
     this._tileSize = tileSize;
     this.mapParameter = mapParameter;
 }
 void Query_Failed(object sender, Utility.FailedEventArgs e)
 {
 }
        void Query_Completed(object sender, Utility.QueryEventArgs e)
        {
            if (e.QueryResult == null || e.QueryResult.CurrentCount <= 0)
            {
                return;
            }
            else
            {
                VibrateController vc = VibrateController.Default;
                vc.Start(TimeSpan.FromMilliseconds(150));

                Utility.Recordset[] results = e.QueryResult.Recordsets;
                foreach (Utility.Recordset result in results)
                {
                    if (result.Features == null || result.Features.Length <= 0)
                    {
                        continue;
                    }
                    else
                    {
                        foreach (Utility.Feature feature in result.Features)
                        {
                            if (feature.Geometry.Type == Utility.GeometryType.POINT || feature.Geometry.Type == Utility.GeometryType.TEXT)
                            {
                                Point2D point = new Point2D(feature.Geometry.Points[0].X, feature.Geometry.Points[0].Y);
                                Feature f = new Feature();
                                f.Geometry = new GeoPoint(point);
                                f.Tap += f_Tap;
                                MyInfoWindow info = new MyInfoWindow(feature.FieldValues[4]);

                                f.Style = info;
                                this._queryLayer.Features.Add(f);
                            }
                        }
                    }
                }
            }
        }
 public SuperMapTileSource(string serviceUrl, string mapName, uint tileSize, string format, double[] scales, Utility.MapParameter mapParameter)
 {
     _tileProvider = new iServerProvider(serviceUrl, mapName, tileSize, format, scales ,mapParameter);
     _tileSchema = new iServerSchema(serviceUrl, mapName, tileSize, format, scales);
 }