Sets the cost for traversing over geometry of the layer type.
If you enable or disable the agent. The cost will be reset to the default layer cost.