WordPress.org

Ready to get started?Download WordPress

Forums

Pronamic Google Maps
[resolved] How to center the mashup to client's location? (2 posts)

  1. ZmeiKorifei
    Member
    Posted 1 year 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/

  2. Remco Tolsma
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic