Map Page "Center on" not working

Bill Orebaugh
Kilo Contributor

I have create a custom Map Page (based on the default Location version) that renders a subset of location records and sets a different icon based on a location "Type". Everything works correctly except for the "Center on" attribute. I have change the default propery for the Google Map settings and set the "Center" on attribute on the instance variable in the Map Page itself, but no matter what, the map renders with it's center in the South Atlantic.

I even went so far as to try as set the center via code (using the map.setCenter(latlon) method) to no avail.

var darwin = new LatLng(37.0625,-95.677068);
map.setCenter(darwin);
map.panTo(darwin);


Any ideas?

find_real_file.pngfind_real_file.png

3 REPLIES 3

moconnell
Kilo Contributor

try personalize > form layout and add "center latitude" and "center longitude"


Bill Orebaugh
Kilo Contributor

That was it. Thanks.

Odd that there are multiple fields to configure the map center and the ones that work are not on the form by default??


lawrence_eng
Administrator
Administrator

Hi borebaug,

If you don't mind, in order to help other members, could you mark your question as "answered"?

Thanks!
-Lawrence