add some setting function for issue #10 and make MapFragment to deal with the setting. still not completed yet.