Wouldn't need to be visual. Just requires some way of determining the placement of specific compounds. In most organisms this is by generic coding; your cells don't see a human standing next to your embryo and then decide to make you look like a human. If the plants aren't connected it could be inferred through other means, electromagnetic, auditory, maybe some plant cells move through the air.