goto map position function, functions exported to js files, added a canvaslayer for metadata