Skip to content

Questions and Answers

How can I change the default location of the map?

Click to expand

Go on to your UUD.

In the upper right corner, click on the dashboard settings denoted by the icon.

faq_map_01.png

Next, click on JSON Model

faq_map_02.png

Select all of the text and copy it in to your preferred text editor. Visual Studio Code is a good one for all platforms.

Search (CTRL+F) for mapCenterLatitude. Remove the numbers in between the 2nd set of quotes. Do the same for the line under it (mapCenterLongitude).

"mapCenterLatitude": "37.9",
"mapCenterLongitude": "-94.9",

Should become

"mapCenterLatitude": "",
"mapCenterLongitude": "",

Next head on over to Google Maps. Set a pin to where you want your new center to be. Right click the pin to see the coordinates. In this example I am using the Eiffel Tower. Click the coordinates and Google Maps will send them to your clipboard.

faq_map_03.png

Put the new coordinates into the mapCenterLatitude (left coordinate) and mapCenterLongitude (right coordinate) variables.

faq_map_04.png

Now select all and copy all of the JSON code from your text/code editor.

Next go back into Grafana, click the arrow in the upper left () to back out of the previous JSON Model screen, and then click the Dashboards button. Then select Manage.

faq_map_05.png

Next, you are going click the Import button.

faq_map_06.png

Then paste your modified JSON code into the following screen.

faq_map_07.png

Finally, hit Load and give it a NAME, and a NEW UID by clicking the Change uid button, and save it in the folder of your choosing.

faq_map_08.png

Now open your new modified dashboard and you will see that the map is now centered on the location of your choosing!

faq_map_09.png