Update ap_maps.cpp

Update to use modern yaml API