WordPress.org

Ready to get started?Download WordPress

Forums

Geo Mashup
[resolved] Use GEOMashup with filter (2 posts)

  1. Mark Jansen
    Member
    Posted 2 years ago #

    Hello,

    I am using GEOMashup on a page to display projects world wide. I created a CPT Projects and the map displays nicely on there. I can select a spot where the project is, just like I want it. So far so good.

    Now comes the issue.

    I want to display the map on archive-projects.php. I use this code for that:

    $i = 0;
            if (have_posts()) : while (have_posts()) : the_post();
                $i++;
                echo GeoMashup::map('load_empty_map=true&height=400&width=700&zoom=1&auto_info_open=false');
                if($i=1) break;
            endwhile;
            endif;

    This somehow seems odd. Isn't there a way to add the map, without having to break the while? Because if I don't, the map shows up for the number of posts it selects.

    Now my real issue: I have a filter. To select projects, based on country, company and some other arguements. I would like for only the filtered projects to be shown on the map.

    Is there any possible way to accomplish that? And if so, could you please give me a nudge in the right direction? :-)

    in other words: Is it possible to somehow make geoMashup show only the selected posts.

    http://wordpress.org/extend/plugins/geo-mashup/

  2. Dylan Kuhn
    Member
    Plugin Author

    Posted 2 years ago #

    Mark - I think you may have been looking for this pattern:

    http://snipplr.com/view/37962/geo-mashup-post-query-contextual-map/

    Features are under development that will allow taxonomy queries on a global map:

    http://code.google.com/p/wordpress-geo-mashup/issues/detail?id=431

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic