Demonstrates the use of the API widgets to set and get the map center. This is accomplished using the following methods : GeoPrisma.getCenter() and GeoPrisma.setCenter().

The "getCenter" button shows the JSON returned by GeoPrisma.getCenter() method.

The "Saguenay" button simply calls GeoPrisma.setCenter() using hardcoded values to zoom to Ville de Saguenay.

The "set" button uses the textfield values as parameters to call GeoPrisma.setCenter(). These values are also automatically updated as the map is navigated by listening to the "centerchanged" event of the API widget.

See sample.inc.js for the JavaScript source code of this demo.