This is a bit of a workaround, but you can listen for map clicks and update ui elements based on the results. This only inspects one point, but you could add more to a feature collection. Also, this only updates a label at the top of the map, not at the point:
// Import DEM
var collection = 'WWF/HydroSHEDS/03VFDEM';
var band = 'b1';
var dataset = ee.Image(collection).select(band);
var elevationVis = {
min: -50.0,
max: 3000.0,
gamma: 2.0,
};
// create point geometry (will call an asset in the real script)
var point = ee.Geometry.Point([-61.334, 15.416]);
var feature = ee.Feature(point, {'text_prop': 'Hello!'})
Map.setCenter(-61.334, 15.416, 10);
Map.addLayer(dataset, elevationVis, collection);
Map.addLayer(point, {}, "acou");
// Create a panel and add it to the map.
var inspector = ui.Panel([ui.Label('Click on the point')]);
Map.add(inspector);
Map.onClick(function(coords) {
// Show the loading label.
inspector.widgets().set(0, ui.Label({
value: 'Loading...',
style: {color: 'gray'}
}));
var click_point = ee.Geometry.Point(coords.lon, coords.lat);
// compute distance, a long running operation
var computedValue = click_point.distance(feature.geometry())
computedValue.evaluate(function(result) {
if (result < 1000) {
// get the text property, a long running operation
var lbl = feature.get('text_prop')
lbl.evaluate(function(result) {
inspector.widgets().set(0, ui.Label({
value: 'Text: ' + result,
}))
});
} else {
inspector.widgets().set(0, ui.Label({
value: 'Text: ' + 'Clicked to far away',
}));
}
});
});
I had updated my NICFI data access. If anyone face this issue, you should reset your GEE authentification in your Python environment and start again:
earthengine authenticate
Now the code run on both platform
Best Answer
There is not a heatmap function that I know of in Earth Engine but you can create your own using some neighborhood operations that are available in EE. Here is an example:
And here is the link. I hope this helps!