callback function is optional on geometries sample now. fix to demo