procedure TForm1.Button1Click(Sender: TObject);
var
HeatPoints: TTMSFNCMapsHeatMapArray; Options: TTMSFNCMapsHeatMapOptions;
begin
// Configura el proveedor del mapa, por ejemplo Google
TMSFNCMaps1.MapOptions.Provider := mpGoogleMaps;
TMSFNCMaps1.APIKey := 'TU_API_KEY';
// Crear puntos de calor
SetLength(HeatPoints, 3);
HeatPoints[0].Latitude := 40.7128;
HeatPoints[0].Longitude := -74.0060;
HeatPoints[0].Weight := 0.5; // peso entre 0.0 y 1.0
I have cars classified as expensive (> U$ 80000), not expensive (U$20000..U$80000), and the cheapest (< U$ 20000). I need to show in a map in which areas the people have expensive, not expensive and cheap cars where the expensive are red and the cheapest are green.
How can I do, using a heatmap, to view this information? Can I use the Weight for that?
A heatmap displays the density of the data points in a region not the type of data.
You could indeed try assigning a higher weight value to data points for expensive cars, but if there are areas with a very high amount of cheap cars these might be displayed in red as well.