Shared code for the map viewer project