Added maplegend, search and several enhancements