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

  1. Mark Jansen
    Posted 4 years ago #


    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();
                echo GeoMashup::map('load_empty_map=true&height=400&width=700&zoom=1&auto_info_open=false');
                if($i=1) break;

    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.


  2. Dylan Kuhn
    Plugin Author

    Posted 4 years ago #

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


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


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic