When I tried to put Molex GPS ceramic patch antenna 2042860001 on two-layer PCB, I found it's impossible to connect the feed pin to the RF trace on the two-layer PCB if following the recommended layout. As indicated in the recommended PCB layout as below, the feed pin is fully surrounded by the ground copper on both layers which leaves no path for the RF trace. Does this mean for this RF antenna, more than 2 layers are mandatory? If not, how should the feed pin be connected?
Yes, Molex's drawing requires a PCB of at least 3 layers. I would use a 4-layer PCB.
It's strange that Molex doesn't say anything about the impedance of the antenna trace that should be 50 Ohm.
If you want to use a 2-layer PCB I suggest you to:
Draw the antenna trace on the top layer. The adhesive sheet suggested by Molex will isolate the antenna from the body of the GPS.
Fill the bottom layer with copper connected to GND.
Fill the top layer of copper connected to GND except for the antenna trace.
Difficult part: antenna width and clearance from the GND copper should be calculated in order to have characteristic impedance of 50 Ohm (*).
Keep the antenna trace as short as possible
Connect together top and bottom layers using a lot of stiching vias on the border of the PCB. Put them on the border and not close to the antenna trace.
(*) Use this free tool. Your trace, as I design it, is a coplanar waveguide trace. You should design it in order to have a characteristic impedance Z0 of 50 Ohm.
That tool supposes that the copper height of your traces is 0.035 mm which is the standard value of 99% of the PCB manufactured on Earth.