Is it possible to get a MapSuiteHeatMapExtension that is compatible with the Web Edition? This is a feature I would like to implement on web.
Thanks!
Is it possible to get a MapSuiteHeatMapExtension that is compatible with the Web Edition? This is a feature I would like to implement on web.
Thanks!
Hi David,
We have added this feature in our core products. The following code snippet may help you:
WorldMapKitWmsWebOverlay worldMapKitOverlay = new WorldMapKitWmsWebOverlay();
Map1.CustomOverlays.Add(worldMapKitOverlay);
//Point based ShapeFileFeatureSource on swine flu used for the HeatLayer.
ShapeFileFeatureSource featureSource = new ShapeFileFeatureSource(Server.MapPath(@"~\SampleData\swineflu.shp"));
//Creates the HeatLayer with the point based ShapeFileFeatureSource for swine flu.
HeatLayer heatLayer = new HeatLayer(featureSource);
//Creates the HeatStyle to set the properties determining the display of the heat map with swine flu data.
//Notice that each point is treated with the same intensity. This means that the color intensity reflects the density of points,
//as many points are on top of each others.
HeatStyle heatStyle = new HeatStyle();
//Sets the size of each point 100 kilometers of diameter.
heatStyle.Alpha = 180;
heatStyle.PointRadius= 100;
heatStyle.PointRadiusUnit = DistanceUnit.Kilometer;
heatLayer.HeatStyle = heatStyle;
LayerOverlay layerOverlay = new LayerOverlay();
layerOverlay.Layers.Add(heatLayer);
layerOverlay.IsBaseOverlay = false;
Map1.CustomOverlays.Add(layerOverlay);
You can download the sample data from code.thinkgeo.com/projects/list_files/heatmap .Any more questions please let us know.
Thanks
Johnny
Johnny,
What product and library includes this functionality? I just downloaded the Web Edition 3.1.299.108 and I cannot find the HeatLayer class.
Thanks,
David
David,
We have added this functionality in the latest DLL package; please check out the latest Daily Build from the link below:
helpdesk.thinkgeo.com
Thanks,
Khalil