Forum Replies Created
-
AuthorPosts
-
Hi,
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.
I don’t understand, maybe you have a URL to show me?
You can email me with the contact form if you don’t want to post it here.
Hi,
The plugin doesn’t have category switching like that. But you could provide 5 links to different pages:
<a href='www.myblog.com/mypage1'>Map 1</a> <a href='www.myblog.com/mypage2'>Map 2</a> ....Update for #1: I tried setting opacity on the container and it does seem to work. Use something like this in your styles.css:
.mapp-layout { opacity: .4; }That will affect all maps. If you just want to change one map try wrapping the map in a container div in the WordPress post editor (on the text tab):
<div style='opacity: .4'> ...map ... </div>Hi,
Here’s some answers for your questions. I’m afraid they won’t be very helpful:
1. The Google Maps API doesn’t support setting opacity for the map. You could try setting an opacity on the containing div, but I don’t think it would work.
2. Sorry, but no – there’s no copy function yet. You could copy the map at the database level by copying its row in table mappress_maps and mappress_posts.
3. No, Google doesn’t support tooltips for shapes, only for markers.
Hi,
Unfortunately, those are one of the few API options the plugin doesn’t provide.
You could probably set them using javascript, though. This will get the Google Map object from the first map on the screen (mapp0), or you can use the name=”xyz” parameter in the shortcode to set your own map name:
mapp0.getMap();Once you have the map, use its setOptions method to set the control options as described here:
https://developers.google.com/maps/documentation/javascript/reference
For example:
jQuery(document).ready(function() { var map = mapp0.getMap(); map.setOptions({ panControlOptions : { position : google.maps.ControlPosition.BOTTOM_RIGHT } }); });I don’t mind if you ask, but I’ve learned not to answer – I never even come close to my own estimates… 🙂
As soon as it’s ready I’ll let you know. Until then, if you prefer to keep using the datatables (or if you prefer their look & feel) you can use the javascript I listed above.
If you’re redirecting within the same site, you might be able to do this without any special code:
1. Create 1 page per country.
2. For each country page, create a map with 1 shape (just that country).
2. Display all of the country maps together using a mashup.Now when users click a country shape, it will take them to the corresponding country page (you can set that in the MapPress settings).
If that’s not going to work, then to answer your other question, shapes are pois (like markers). But I should’ve mentioned: the map won’t have any pois until the AJAX call to fetch them is made (mashups are displayed using AJAX).
Hi,
You can have the marker open an infowindow, and have its title link open the poi, using the plugin settings.
To link the poi list directly to the post, you can modify the poi_list.php template. Replace:
<?php echo $poi->get_open_link(); ?>With:
<?php echo "<a href='" . get_permalink($poi->postid) . "'>" . $poi->title . "</a>";Hi,
I’m sorry, but there’s really no way to pass options to the datatable object, the existing options are hard-coded in the plugin.
It may be a moot point because I plan to remove the datatables functionality in an up-coming release (I’ll provide paging and sorting within the plugin itself).
If you want to pursue the theme, one solution might be to output the poi list as a plain table. Then, add the datatable call separately in the template – i.e. include the datatables library and use:
$(document).ready(function(){ $('mapp0_poi_list').dataTable( { your options } ); });Hi,
If I understand: you want to redirect to other sites, not to other posts in the blog, is that correct?
If so – that’s really not supported by the plugin. But you may be able to do it with an action ‘mappress_map_display’.
You would need to display the map as a mashup in order to redirect clicks to a URL.
You would also need to use an action to modify the target URL for the pois before they’re displayed. Action ‘mappress_map_display’ receives a single ‘map’ object just before the map is displayed. I haven’t tested it, but the code might look like this:
function myaction($map) { if ($map->name == 'mymapname') { $map->pois[0]->url = 'url1'; $map->pois[1]->url = 'url2'; } } add_action('mappress_map_display', 'myaction');To display the map (if the post ID is #1234):
[mashup query="p=1234" mashupclick='post' name='mymapname']October 8, 2013 at 4:56 am in reply to: two poi's same address, different icon: displays 2 icons at the same time. #13519There is no ‘disable a marker’ options, but the query should work.
I think the problem may be that I gave you the query for a single post, but I think you are actually using pages, which require a different query:
page_id=40If that doesn’t help – please feel free to use the contact form to send a login I’ll be happy to troubleshoot if for you.
October 7, 2013 at 6:45 am in reply to: two poi's same address, different icon: displays 2 icons at the same time. #13513Hi,
The widget is actually a mashup, not a single map. You can set it to show the markers from the current page or all marker by default.
To show a specific map, you can use the “custom query” field. Enter “p=” and then the post ID where the map exists, for example for post 1234:
p=1234That query will show any markers attached to post 1234.
Hi,
I went to the URL you provided, but I do see the POIs on the “our locations” map.
I tried using current versions of IE, Chrome and Firefox. Are you using some other browser?
I’ve seen browser-specific issues, but usually only when Rocket Loader is used or the browser isn’t supported by Google:
http://mappresspro.com/mappress-faq
https://developers.google.com/maps/faq#browsersupportHi,
If you use only one map/poi per post, then this should work for post ID 1234:
mapp0.getPoiById(1234); -
AuthorPosts
