Fix mapslayout class

Letting mapslayout be unaware about DB and accept only lat and lng's
from whichever class it is called.