${mapping_HeatMapLayer_Title}

${mapping_HeatMapLayer_Description}

Inheritance: DynamicLayer
        public HeatMapTest()
        {
            InitializeComponent();

            layer = MyMap.Layers["heatMap"] as HeatMapLayer;
            this.Loaded += new RoutedEventHandler(HeatMapTest_Loaded);
        }
 //加载热点图
 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 Slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
 {
     if (MyMap == null) return;
     layer = MyMap.Layers["heatMap"] as HeatMapLayer;
     layer.Radius = (int)e.NewValue;
 }