add outputformat support
working layers access, refactored loadMap into new Map.
add grid intersection method back into layer