[ACCEPTED]-Google Maps API function map.getCenter()-maps
Accepted answer
Use API functions and save the required 3 data, not the structure
var c = map.getCenter();
jQuery.cookies.set("YD44635center", c.lat() + ','
+ c.lng() + ',' + map.getZoom(),
cookieOptions);
and read it as
var temp = jQuery.cookies.get("YD44635center").split(',');
Google 2 is changing the names of the internal variables 1 from time to time Error on Latitude and Longitude - Google Maps API JS 3.0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.