-
Notifications
You must be signed in to change notification settings - Fork 19
Set Map Center
Justin Kimbrell edited this page Aug 16, 2014
·
1 revision
It's possible to set the center of the map programmatically after the map has been instantiated. You must pass a map id in the first argument, and either latitude and longitude. Or, you must pass an address string.
craft.googleMaps.center('map', 40, -86)
craft.googleMaps.center('map', 'Some Address')