For the Layers:
Rivers, type the Polyline
Locks, type is Point
Intake, type is Point
Other layers, types are Point
Locks, intake of multipoint and river overlap or adjacent
Objective:
By passing the river FID or Polyline path to obtain to the river flows through or nearby all locks, the information such as intake,
Help:
Effective JS code or Leaflet JS encapsulation method is called,