basic system for creating a map and sending to server as json