Forum Replies Created
-
AuthorPosts
-
Hi,
Thanks for the update. I don’t know if it makes sense to modify MapPress for this, since most users don’t wish to disable query filters.
For your queries, though, you should be able to just include that parameter in your query string:
[mashup query="suppress_filters=true"]Or if you’re using a PHP array for the query:
$query['suppress_filters'] = true;I’m not sure I understood. If you want to show a link in the POI list directly to the underlying post then you can modify the poi list template. Use the function get_title_link().
Replace this:
<?php echo $poi->get_open_link(); ?>With:
<?php echo $poi->get_title_link(); ?>If you need to manipulate the link then you can use the WordPress get_permalink() function instead:
http://codex.wordpress.org/Function_Reference/get_permalinkThere’s a bug in the maps API that can cause the infoWindow to size incorrectly. Please ‘star’ the issue with Google here:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=5713
I implemented a workaround in MapPress 2.41+, but I’m not sure it works in all cases. Please provide a URL.
For the outer scrollbars, here’s some things to try:
1. Install the latest MapPress
2. Use a bigger (taller) map
3. In the infowindow CSS, give Google a hint that you want the infowindow wider, for example ‘min-width:500px’
4. Use the MapPress ‘infobox’ style instead of the standard infowindows (the infobox sizes correctly).Google only applies the outer scrollbars. The inner scrollbars may be coming from the infowindow content. Is the CSS ‘overflow:auto’ applied somewhere in the content of the infoWindow? You can use Firebug or Chrome/IE Developer Tools to check.
Yes, of course, here’s three ways:
1. You can make satellite the default on the MapPress settings screen
2. When editing a map, switch to satellite view before saving it; it will remember the view.
3. Use the shortcode:
[mappress maptypeid="satellite"]Hi,
That sounds like a javascript error or an AJAX error.
Try:
1. Deactivate ALL other plugins for a moment
2. Switch to a standard theme like 2012 (for a moment)If that fixes the problem, the error is from another plugin or theme.
If that doesn’t help, then after you do the steps above please send me a login using the contact form and I’ll take a look.
Hi,
There’s no way to geocode using different fields. You’ll need to find a way to get all the data into one field (such as ‘address’). You could do that with some PHP.
The ‘save_post’ action might work as a place to copy from one field to another. Here’s an (untested) example:
function mysavepost($post_id, $post) { if ($post->post_type == 'tours') $loc = get_post_meta($post_id, 'tour-location', true); else if ($post->post_type == 'attraction') $loc = get_post_meta($post_id, 'attraction-address', true); endif; if ($loc) update_post_meta($post_id, 'address', $loc); else delete_post_meta($post_id, 'address); } add_action('save_post', 'mysavepost', 100, 2);MapPress doesn’t yet support filtering (where you check boxes). You can control what is shown by using different categories on the posts and presenting different maps (i.e. a map for category A and a different map for category B).
Hi,
I don’t know the details of your system, but it looks like the query you are sending after selection includes a taxonomy query against taxonomy ‘localization’.
Perhaps you could include that taxonomy in the initial query. This is what is send now (for France):
tax_query":{"relation":"AND","0":{"taxonomy":"localisation","field":"id","terms":["290"],"operator":"IN"}} ...If your initial query is created using PHP you can add the taxonomy to it. See the WP_Query documentation:
http://codex.wordpress.org/Class_Reference/WP_QueryIf it’s a shortcode, I think it will be difficult. You can include a taxonomy in the shortcode but there’s no way to default it based on the user’s locale:
[mashup query=”post_type=any&posts_per_page=-1&localisation=290″}
Hi,
Mashups load by AJAX, so that might work for you.
Hi,
Each POI has a different post ID. It looks like you’re setting a variable for that ID but not including it in the has_term() call.
If the ID is missing WordPress used the current post instead (and in archives, that’s probably empty).
Try instead:
if ( has_term( 'apples', 'product_cat', $postid )) { return 'apples.png'; } else if ( has_term( 'pears', 'product_cat', $postid )) { return 'pears.png'; }Hi,
On the server, generating mashups should take about as long as loading the underlying number of posts (20-100). On the client they should take that long, plus 1-2 seconds for the AJAX call and Google to draw the map.
It’s hard to tell why a server is slow (mine if often slow without any mashups at all). But if you think the mashups are slowing your site, my first thought would be to increase the memory available to PHP and WordPress (see the FAQ).
The plugin isn’t set up to host maps on another domain. If you want to try it yourself you could create a blog on that domain and copy all the posts with maps there. Then create a template that returns just the post content (no header/footer or sidebars) for mashup posts. Finally, embed links to those posts in an iframe on your main blog.
Hi,
The plugin won’t erase or empty the tables if they exist, so it could be there’s an error in the SQL export/import process.
Once you get the tables imported, check that the tables exist and there is data in them (using a tool like phpmyadmin). There are two tables:
1. mappress_maps
2. mappress_postsMappress_maps contains the map data. Mappress_posts links the map IDs to post ID.
If the new blog has different post IDs than the old one, you’ll need to edit mappress_posts to link the maps to the correct post(s).
Hi,
You can click the ‘center’ link before you save. Or zeroing out the center and zoom in the shortcode should also work:
[mappress center="0" zoom="0"]
Hi,
Yes, there has been a change but it’s not MapPress. Google has decided to remove shadows from the Maps API as part of their new visual design.
If you look at the new Google Maps, for example, the shadows are gone there as well.
I think the procedure I described for adding vertices does work, but you’re right about deletion – even if the vertices are placed on top of each other they both still exist.
I’ve updated the plugin to allow deleting vertices with a right-click. Please send me an email using the contact form if you’d like a copy to test.
Yes, it’s OK. Risky versions will be marked as ‘beta’.
-
AuthorPosts
