XYTableToPoint_management() to create a new layer
vessel_coordinate into the current active map, as shown below.
But when I list the layers in this map (
map.listLayers()), I hope to see this new layer appeared. But it didn't.
I try to use
aprx.saveACopy() to update the project file .aprx, but it still didn't work..
Could anyone suggest which method I can use to refresh the project file and include the newly created layer in the layer list...