Forum Replies Created
-
AuthorPosts
-
Hi,
Sorry, but the “X” isn’t configurable, it’s hardcoded into the javascript. You can only style it.
It may be possible to hide the “X” (set it to the same color as the background, or make it “visibility:hidden”, etc.). Then include your own image inside the main infobox body and use position: to position it in the corner.
Hi,
I think this is resolved and I’ll close the thread.
For anyone else looking through: in this case the MapPress query was in fact working, but another plugin (‘search everything’) was altering the query parameters.
So a search with “s=xyz” was in fact being converted to a search by tag “region=xyz”.
Hi,
The close button styling should be in mappress.css as ‘.mapp-ib-close’. The plugin uses that class and normally prints an “x”. You could probably remove it by setting it to ‘display:none’.
March 10, 2013 at 11:43 am in reply to: Google has disabled use of the Maps API for this application. #11933Hi,
MapPress doesn’t use an API key unless you enter one in the settings, and it uses API V3, not API V2.
Could it be that your theme or another plugin is also loading the API?
Hi,
I don’t know, perhaps if you send a URL I can see it. If you like, use the contact form to send a login as well it would help if I can see the backend too.
Hi,
The “&” needs to be there, but only if there’s a search. Here’s the code with that change. I also added an “echo” at the bottom so you can see the page parameters:
<?php $s = isset($_REQUEST['s'])?"&s=". $_REQUEST['s']:""; $query ="post_type=hotels&posts_per_page=-1". $s; echo do_shortcode('[mashup query="'. $query .'" width="1050" height="350"]'); echo "<br/>"; echo "This is the request on the page: " . print_r($_REQUEST, true); ?>
Hi,
Ah, I see what you mean now. I’m sorry, but when you use “current” the plugin takes the original query results exactly. It’s not possible to modify its parameters because it doesn’t re-run the query.
Maybe you could instead modify your do_shortcode() to use the query arguments from the page.
For example the parameter ‘s’ in the page URL is usually the search. This would then show you all hotels matching the current search (like “Paris”):
<?php $s = isset($_REQUEST['s']) ? "s=" . $_REQUEST['s'] : ""; $query = "post_type=hotels&posts_per_page=-1&" . $s; echo do_shortcode('[mashup query="' . $query . '" width="1050" height="350"]'); ?>Hi,
The map is on that page, but it’s not visible because it has no height.
I think the map height is set to “480New”, or at least that’s what’s showing on the page. The browser doesn’t know what to do with that, so it renders the map with zero height.
Could you try setting the height to “480px” or “480” instead? Either of those should work.
Hi,
I’m not sure I understood, but query=”current” means show only what’s on the current page. These queries will show ALL maps in your blog:
query=”posts_per_page=-1&post_type=any”
query=”all”
There are also some examples using post type, taxonomies, categories, etc. in the documentation:
http://mappresspro.com/mappress-documentation
I hope that helps…
Hi,
The problem is that the infobox doesn’t know to close when another tab clicked.
The easiest thing is to just use the infowindow instead. But if you’re familiar with javascript and editing your template files, something like the code below may work for you.
You would need to add this code to the page template where the map is displayed.
It should close the infowindow for the first map (‘mapp0’) on the screen whenever any tab is clicked (the ‘tabsshow’ event). You can change the map name using the ‘name’ parameter in the shortcode. You can also adjust the javascript to trigger only for certain tabs:
jQuery('body').on('tabsshow', function(e, ui) { if (ui && ui.panel) { mapp0.closeInfoWindow(); } }Hi,
It’s not possible with the current version of the infobox, since it was written to extend past the map edges (for small maps like widgets, etc.).
You can still style the regular infowindow but not as extensively. I’m not sure what you need to do but the class for styling it is ‘.mapp-iw’.
Do you have a URL illustrating this problem?
Hi,
That’s possible but it’s not supported by the plugin – you would need to write some PHP to do it.
If you’d like to do that I can give you some tips about how to store the data (you’ll need a POI of type ‘polyline’). You can also create a map with a line manually to see how it’s stored.
Hi,
Could you please provide the URL for that map so I can trace it?
If you’re upgrading from a version prior to 2.39, please also see the FAQ – most problems with map display are because of a missing wp_footer() call in the theme:
http://mappresspro.com/mappress-faq
Hi Brad,
The parameter names have changed, I think the correct ones are here:
http://mappresspro.com/mappress-documentation
Instead of this:
“marker_body” => “excerpt”…
You need to use:
“mashupBody” => “post”
There’s also a filter “mappress_poi_body” you can use to control the body (the WP excerpt function is very slow).
-
AuthorPosts
