Forum Replies Created
-
AuthorPosts
-
Hi,
You can’t import a single map; instead you import 100 separate posts, each with one location, and then display them all using a single ‘mashup’ map. Try assigning the posts to one or more special categories or tags to make it easy to locate the posts to display.
Hi,
Sorry, but I don’t plan to make this functionality available again until the next major release (3.0). Until then you’ll need to do it yourself if you need clickable rows.
You can use the javascript listed above to open a marker, and modify the POI list template (map_poi_list.php) for the poi list. The non-template files will be overwritten during upgrades.
Great, I’m glad it’s working for you now!
Hi,
You didn’t mention your phone model or Opera version, but it’s possible the maps javascript API isn’t supported on your device. Static maps work on everything but the API doesn’t.
You can try a simple test map here:
https://developers.google.com/maps/documentation/javascript/examples/map-simpleAnd Google’s FAQ lists supported devices:
https://developers.google.com/maps/faq•IE 8.0+ (Windows) *
•Firefox 3.0+ (Windows, Mac OS X, Linux)
•Safari 4+ (Mac OS X, iOS)
•Chrome (Windows, Mac OS X, Linux)
•Android
•BlackBerry 6
•Dolfin 2.0+ (Samsung Bada)
* Internet Explorer’s Compatibility View is not supported.Hi,
Sorry, that’s really not possible with the current version of the plugin.
A workaround might be to use your own custom field or table for the POI title and body. Then you could translate that data with WPML.
There are the filters available to replace the POI title/body with your own HTML when the map is displayed: (mappress_poi_title and mappress_poi_body).
No, I don’t have a list.
I assume you’re still wondering how to place a map on the home page? If so, try using do_shortcode() in your home page template file:
Or, use a sticky post/page as the front page, and place your map shortcode there.
Hi,
Something like:
$query = “post_type=events&meta_key=event_end_date&meta_value=” . date(‘Ymd’) . “&meta_compare=’<'"; do_shortcode('[mashup query="' . $query . '"]');Hi,
I think the problem is that you can’t put PHP statements like date(‘Ymd’) into a shortcode.
You could instead insert a do_shortcode() statement into your template. There’s a simple example here that you could modify to include the current date:
http://mappresspro.com/mappress-documentationHi,
I haven’t heard back from you so I assume the code is working? For anyone else who needs this, here’s the code to pick up the category from the current post:
<?php $cats = get_the_category(); if (isset($cats[0]) && $cats[0]->slug != 'uncategorized') { $cat = $cats[0]->cat_ID; $query = "posts_per_page=-1&cat=$cat"; $shortcode = '[mashup query="' . $query . '" poilist="true"]'; echo do_shortcode($shortcode); } ?>Hi,
I’m sorry, but I don’t think that’s possible. When you click the marker, it’s not like clicking an anchor link – it actually redirects the browser URL directly to the new post. So there’s no way to apply a ‘class’ the way you would with a link.
I think you’ll need to let the marker open first, to display the link, as in the code I listed earlier.
Hi,
I’m assuming you want class ‘thickbox’ added to the link that appears in the infoWindow around the title, when you open a marker?
If so you can copy the code from get_title_link and modify it (it doesn’t accept ‘class’ as an argument unfortunately).
In map_poi.php:`
map();
$link = ($poi->postid) ? $map->options->mashupLink : false;
echo ($link) ? “postid) . “'>$poi->title” : $poi->title;
?>`
Hi,
That’s a pretty general question, and it’s specific to your site, but you can use these methods:
– a shortcode
– a call to do_shortcode() in the theme
– PHPThere are a some examples in the documentation.
Hi,
I don’t know if there’s a way to affect the regular query, you could ask the ‘views’ folks. If not, you can’t use ‘current’ in the mashup.
You could set the mashup query to match whatever query ‘views’ is using. Or you could have the mashup display all locations in a category/tag/etc. rather than just the current sub-set.
Hi,
The mashup will show the results of the current page query, which is normally all the posts being displayed on the page. It won’t work if the query is empty.
You can try printing out the current query – without the map – to see what’s being selected (just add this to your theme where the map would be):
<?php global $wp_query; print_r($wp_query); ?>Hi, I don’t know – I don’t think there’s any easy way to display the parents of all the current posts.
Maybe rather than showing just the current events you could show them all? Then you could use the event (parent) post type in the query. a lot of sites show everything on the map but just 1 page of results in the list.
-
AuthorPosts
