• Resolved nicola524

    (@nicola524)


    Hello, I would like to add additional information to the comic that appears on the map, I saw that the information is loaded through an array in the file map.js getPTIWContent through the function (s). My problem is that I can not find the piece of code where the vector mainMapArgs.locations [i] is loaded.
    I’m using version 1.7 of the plug.

    I hope you can help me.

    Sorry for the bad English, Nicola

    http://wordpress.org/extend/plugins/geo-my-wp/

Viewing 1 replies (of 1 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hi Nicola,
    What kind of information are you trying to pass to the bubble?
    with the version that you are using all the map arguments pass to the Javascript file using the $main_map_args array. it is in the file geo-my-wp/plugin/post-types/shortcodes.php ( lines 193 to 210). This array hold the information about the map and its settings and also the information about each location (‘locations’ => $wppl[‘posts_within’] ). $wppl[‘posts_within’] is the array of the locations.

    I am not sure what information you want to add but if it is information about the individual posts such as custom field you will need to create a foreach loop and add information about each post into the array which could be a little complex .

    What i’ll suggest you is to update to the latest version of the plugin. It is a beta still but the latest beta version is very close to be final. so not too many bugs.
    The code in the new version is much more advanced and better written. which will make it much easier for you to add information to the bubble or to modify the plugin in other ways.

    email me to info@geomywp.com if you want me to send you the latest version.

Viewing 1 replies (of 1 total)

The topic ‘Adding additional information to the map’ is closed to new replies.