public override MapImageDataProviderBase CreateMapDataProvider()
        {
            var provider = new HeatmapProvider();

            var algorithm = new HeatmapDensityBasedAlgorithm();

            if (PointRadius.HasValue)
            {
                algorithm.PointRadius = PointRadius.Value;
            }
            provider.Algorithm = algorithm;

            return(provider);
        }
        public SCMap AddHeatmapImageLayer(HeatmapImageLayerOptions options = null)
        {
            options ??= new HeatmapImageLayerOptions();

            var provider = new HeatmapProvider();

            var algorithm = new HeatmapDensityBasedAlgorithm();

            if (options.PointRadius.HasValue)
            {
                algorithm.PointRadius = options.PointRadius.Value;
            }
            provider.Algorithm = algorithm;

            options.UpdateLayerImage(this, provider);

            return(this);
        }