This patch adds the possibility to use options latField, lngField, and valueField.
Example :
$scope.layers.overlays = {
heat: {
name: 'Heat Map',
type: 'heat',
data: heatPoints,
layerOptions: {
radius: 20,
blur: 10,
// which field name in your data represents the latitude - default "lat"
latField: 'lat',
// which field name in your data represents the longitude - default "lng"
lngField: 'lng',
// which field name in your data represents the data value - default "value"
valueField: 'count'
},
visible: true
}
};
This patch adds the possibility to use options latField, lngField, and valueField.
Example :