Forum Replies Created
-
AuthorPosts
-
Hi,
Sorry, I thought you meant the directions form. The step-by-step route for the directions is generated and styled by Google.
MapPress does wrap the step-by-step in a div with class “mapp-dir-renderer”, though, so this may do what you want:
.mapp-dir-renderer { background-color: black !important; color: white !important; }It might be easier to just make the directions background white (as Google was assuming it would be) so the text shows up:
.mapp-dir-renderer { background-color: white; }If you find that you need to style individual parts of the directions, Google uses classes that begin with “adp” (“adp”, “adp-list”, “adp-fullwidth”, etc.). You can use Firebug or IE Developer tools to see how they’re being set.
Hi,
The directions CSS is under the class .mapp-directions. So this should work if you add it to your styles.css:
.mapp-directions { color : white; }Depending on the theme, you may need to add an !important modifier or a more precise selector. You can check the CSS that is actually being applied using Firebug or IE F12 developer tools.
Hi, that’s not possible with the plugin, it always shows all POIs for a post.
One thing you can do is create a new post “B” just to contain the POIs that you *don’t* want linked to the original post.
You can still display the map from post “B” in post “A”. But it wouldn’t be linked to post “A” and you could exclude it from the query.
Hi,
Yes, the two versions are compatible.
There is no way to substitute variables (like $parentID) in a shortcode entered in the WordPress post editor.
If you use PHP, another way to create the map is to use the do_shortcode() command.
Assuming that $parentID is the slug for a term in the ‘area’ taxonomy you could write:
$query = “post_type=location&posts_per_page=-1&area=” . $parentID;
do_shortcode(‘[mashup query="' . $query . '"]‘);There are some other query string examples for custom taxonomies in the plugin documentation.
Hi,
You can include your query in the map, for example:
$query = array ( 'post_type' => 'location', 'posts_per_page' => -1, 'tax_query' => array( array( 'taxonomy' => 'area', 'field' => 'term_id', 'terms' => $parentID )) ); $map = new Mappress_Map(); $map->query = $query; $map->display(array('width' => 800, 'height' => 800));No, MapPress doesn’t pick up Google Places, only street addresses, so it’s not possible to copy the Google info.
However – if you want to show just the MapPress data, it *is* possible to switch off all or some of the Google placemarks by using a styled map. See the documentation for more info on styled maps.
The second map at that link seems to have no height. I think that’s why it’s not displaying.
In your shortcode, try adding a height, for example:
[mappress width="100%" height="300px"]
@Robbie, it’s better to start a separate thread for your issue. But to answer your question, try this if your custom field is ‘street_address’:
<?php if ($poi->postid) echo get_post_meta($poi->postid, 'street_address', true); ?>Hi,
The plugin doesn’t support copying.
You can copy the database tables (which I think you did?). But the data is stored as serialized strings, which include both the string length and the string itself. If you do a search & replace on the URLs it’ll corrupt the data.
I think there are some ‘safe search and replace’ plugins that can be used to address this and safely replace the URLs in serialized data.
Here’s a link to one of them:
http://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Hi,
I’m guessing a ‘project’ is a custom taxonomy. If so, there’s a section in the documentation about queries using custom taxonomies:
You can modify the template file map_poi.php to show whatever you like. Try using do_shortcode() to execute any shortcodes in the poi body. I think this would work:
<div class='mapp-body'> <?php echo $poi->get_thumbnail(array('class' => 'mapp-thumb')); ?> <?php echo do_shortcode($poi->get_body()); ?> </div>This may not work for all shortcodes (such as those that need to load javascripts on the page).
I’m glad you figured it out!
Custom taxonomies (like ‘portcat’) don’t work with ‘category__in’ because it only applies to the standard ‘category’ taxonomy.
No, there’s no limitation. I think the problem is that the ‘in’ parameters in WordPress need *two* underscores.
Try this (with the double underscore):
[mashup query="post_type=port&category__in=40"]There are a few examples in the documentation, and here:
http://codex.wordpress.org/Class_Reference/WP_QueryHi,
The map type is a shortcode parameter (‘maptypeid’), not part of the query, so this one should work:
[mashup query="post_type=port" maptypeid="roadmap"]However, it sounds like ‘roadmap’ has been removed from the ‘map types’ section on the settings screen? If so, the ‘maptypeid’ will be ignored. The setting isn’t a default type – it determines which types are allowed.
-
AuthorPosts
