Cherrypicked part of ed58c08 - fixes getXY in MapNodeLayer