When you load a map it will be centred on the latitude/longitude coordinates specified in the Map Configuration screen. For a new project this will be an arbitrary set of default coordinates. The map will be re-centred once the map data has been loaded.
Once you have added your map areas to the project you will probably want the map to initially load at the correct centre so that it doesn't jump to a new centre when the data loads. This is how you can determine the correct map centre. Note: these instructions work for Google Chrome; you may need to use a modified procedure for other browsers.
- Log in to Mapamatic and proceed to the Map Configuration page for your project.
- Open your map in another browser tab (you could click on the Test button on the Export screen, for example).
- With your map loaded and centred at the desired location, press F12 to open the web developer tools on your browser.
- Click on the Console tab.
- Enter the following command at the console prompt and press Return:
Mapamatic.map.center.lat()
- The browser will respond with the latitude coordinate of the current map centre. You can copy-paste the number into the Latitude field on the Map Configuration page.
- Then enter the following command at the console prompt and press Return:
Mapamatic.map.center.lng()
- The browser will respond with the longitude coordinate of the current map centre. You can copy-paste the number into the Longitude field on the Map Configuration page.
- Save your changes.
Press F5 (Refresh) on your browser to test the changes. There is no need to export the map data again as the changes will take effect immediately.
Hint: You can also determine the current map zoom level by entering the command: Mapamatic.map.getZoom()