[GIS] How to visualize a FeatureCollection in Google Earth Engine

google-earth-enginegoogle-fusion-tables

I have upload a kml file including main metropolitans in us as a fusion table, I can print the featurecollection but cann't visualize it in code editor.What's wrong with my code?

var fc = ee.FeatureCollection('ft:1Eii75QFBlQcYILLBFsU6zv9LhgJLa8FPHNGSZijQ')

Map.addLayer(fc, {}, 'metro');


print('fc',fc)

Best Answer

You can specify the property to use as the geometry by passing it as the second parameter to ee.FeatureCollection:

var fc = ee.FeatureCollection('ft:1Eii75QFBlQcYILLBFsU6zv9LhgJLa8FPHNGSZijQ', "geometry")
Related Question