${mapping_HeatMapLayer_HeatPoint_Title}

${mapping_HeatMapLayer_HeatPoint_Description}

 //加载热点图
 private void HeatMapTest_Loaded(object sender, RoutedEventArgs e)
 {
     layer = MyMap.Layers["heatMap"] as HeatMapLayer;
     Random rand = new Random();
     for (int i = 0; i < 100; i++)
     {
         double x = rand.NextDouble() * 360 - 180;
         double y = rand.NextDouble() * 180 - 90;
         HeatPoint heatPoint = new HeatPoint();
         heatPoint.X = x;
         heatPoint.Y = y;
         heatPoint.Value = 10;
         layer.HeatPoints.Add(heatPoint);
     }
 }
 //加载热点图
 private void HeatMapTest_Loaded(object sender, RoutedEventArgs e)
 {
     Random rand = new Random();
     for (int i = 0; i < 100; i++)
     {
         double x = rand.NextDouble() * 360 - 180;
         double y = rand.NextDouble() * 180 - 90;
         HeatPoint heatPoint = new HeatPoint();
         heatPoint.X = x;
         heatPoint.Y = y;
         heatPoint.Value = 10;
         layer.HeatPoints.Add(heatPoint);
     }
     layer.Radius = (int)sliderRadius.Value;
     layer.Intensity = sliderIntensity.Value;
 }
        //将查询结果加入HeatMapLayer图层中
        private void service_ProcessCompleted(object sender, QueryEventArgs e)
        {
            if (e.Result == null)
            {
                return;
            }

            hpCollection = new HeatPointCollection();
            hpCollectionGeoRadius = new HeatPointCollection();
            if (e.Result.Recordsets != null)
            {
                foreach (Recordset item in e.Result.Recordsets)
                {
                    foreach (var item1 in item.Features)
                    {
                        HeatPoint heatPoint = new HeatPoint()
                        {
                            X = item1.Geometry.Bounds.Center.X,
                            Y = item1.Geometry.Bounds.Center.Y,
                            Value = 10,
                        };
                        HeatPoint heatPointGeoRadius = new HeatPoint()
                        {
                            X = item1.Geometry.Bounds.Center.X,
                            Y = item1.Geometry.Bounds.Center.Y,
                            Value = 10,
                            GeoRadius = 3

                        };
                        hpCollectionGeoRadius.Add(heatPointGeoRadius);
                        hpCollection.Add(heatPoint);
                    }
                }
            }
            layer.HeatPoints = hpCollection;
            layer.Radius = (int)sliderRadius.Value;
            layer.Intensity = sliderIntensity.Value;
        }
 /// <returns>${mapping_HeatMapLayer_method_equals_HeatPoint_return}</returns>
 /// <summary>${mapping_HeatMapLayer_method_equals_HeatPoint_D}<br/></summary>
 /// <overloads>${mapping_HeatMapLayer_method_equals_overloads}</overloads>
 /// <param name="point">${mapping_HeatMapLayer_method_equals_HeatPoint_param_point}<br/></param>
 public bool Equals(HeatPoint point)
 {
     return (this == point);
 }