gMap Plugin - Modifying a JSON object
Hi,
I've started using the gMap plugin (http://gmap.nurtext.de/) in my site but have a quick question which doesn't seem to be answered in the doc, FAQ or examples but I think is because I'm new to jQuery.
As per the example, I have a div, with id "map" in my code and I am creating the map with the following code, passing in a JSON object for config:
- $(function() {
- $("#map").gMap({
- latitude: 54.7,
- longitude: -4,
- zoom: 5,
- controls: ["GSmallMapControl"]
- });
- });
My question it, I want to programatically re-center the map and add markers elsewhere in my code, but don't know how to access this JSON object to modify it.
The way I'm currently doing this is to call gMap again with some new configuration, but I don't think this is right as I think it's re-creating the map all over again.
Can anyone help?
Thank
Richard