ZmeiKorifei
Member
Posted 3 months ago #
I'm trying to enable the center_client_location option for the PGM mashup and so far I'm failing to find any relevant info. How can I do that via the shortcode? Or by tweaking the plugin code?
Btw, do you have a list with all shortcodes and attributes available?
Thanks in advance!
PS: Forgot to mention that I changed the default value to true. However, the "google.loader.ClientLocation" varailable is still NULL.
http://wordpress.org/extend/plugins/pronamic-google-maps/
It seems that the "google.loader.ClientLocation" isn't always filled with an value, for more information see:
http://stackoverflow.com/a/14243526
You can find moren information about how this works in the Pronamic Google Maps plugin in the code:
https://github.com/pronamic/wp-pronamic-google-maps/blob/2.2.3/classes/Pronamic_Google_Maps_Mashup.php#L24
https://github.com/pronamic/wp-pronamic-google-maps/blob/2.2.3/js/site.js#L81
It the "google.loader.ClientLocation" varailable is NULL, we won't be able to center the mashup to your location.