add support for coords not provided; add layer attribute