WordPress.org

Ready to get started?Download WordPress

Forums

Pronamic Google Maps
[resolved] Balloons/Variables/Mashup (4 posts)

  1. mediagin
    Member
    Posted 2 years ago #

    Hi there. Outstanding plugin, but I have some noob questions that I couldn't find answers to. I've just used the sample code on the plugin page.

    - I'm using a custom post type for my client's list of different locations. The maps appear great on each individual post page, however the balloon descriptions do not appear at all. What don't I have enabled?

    - I want to show the address elsewhere on the same page (outside of the plugin). How can I extract variable information from the plugin on each page? And, I would like to use the variable information to link to a driving directions page or popup.

    - The mashup map does not show any individual locations. Right now, I have two published. Surely, I've missed a step somewhere?

    I'm using a locahost machine, but can upload to a live URL if needed.
    Thanks for the help!

    http://wordpress.org/extend/plugins/pronamic-google-maps/

  2. Remco Tolsma
    Member
    Plugin Author

    Posted 2 years ago #

    I'm using a custom post type for my client's list of different locations. The maps appear great on each individual post page, however the balloon descriptions do not appear at all. What don't I have enabled?

    By default only the Pronamic Google Maps 'description' field is displayed in the balloon. If the description field is empty no balloon will be displayed.

    I want to show the address elsewhere on the same page (outside of the plugin). How can I extract variable information from the plugin on each page? And, I would like to use the variable information to link to a driving directions page or popup.

    echo get_post_meta(get_the_ID(), '_pronamic_google_maps_address', true);

    The mashup map does not show any individual locations. Right now, I have two published. Surely, I've missed a step somewhere?

    You have to pass WordPress query arguments to the 'pronamic_google_maps_mashup()' function. If that query has no results you won't see any locations on the map.

  3. urbanite
    Member
    Posted 2 years ago #

    Hi,
    Just noticed a problem with the mashup. I can only see the last 4 posts on the mashup map. What settings should I change?

    Also, can pronamic maps be made to work with the google cluster marker maps?

    Many thanks!

  4. Remco Tolsma
    Member
    Plugin Author

    Posted 2 years ago #

    You should probably the WordPress query you pass in the pronamic_google_maps_mashup($query, $arguments) function.

    pronamic_google_maps_mashup(array(
    	'post_type' => 'post' ,
    	'posts_per_page' => -1
    ), array(
    	'width' => 500 ,
    	'height' => 500
    ));

    For more info about the 'posts_per_page' parameter see:
    http://codex.wordpress.org/Function_Reference/WP_Query#Pagination_Parameters

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic