Skip to content
Justin Kimbrell edited this page Aug 16, 2014 · 1 revision

Overview

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.

Example

craft.googleMaps.center('map', 40, -86)

craft.googleMaps.center('map', 'Some Address')