Forum Replies Created
-
AuthorPosts
-
Hi,
I’m not sure I understood your question, but if you want to show custom fields in the POI infowindow (the ‘bubble’) over each marker, you can modify the template “map_poi.php” to include them.
You can use the PHP function get_post_meta() to output the data:
<?php echo get_post_meta(postid, fieldname, true); ?>Yes, here’s a step-by-step:
http://mappresspro.com/installHi,
You should always make a backup first, but upgrading isn’t an issue – the two versions are 100% compatible.
Hi,
The image path is relative to file where the CSS is defined.
That file is mappress.css in the plugin directory – not styles.css – so the relative path works correctly.
I’m wondering what is different in your blog. Did you move the CSS files or definitions to your theme directory or styles.css?
If so, you’ll need to change the relative path there or make it absolute. It’s not possible to change CSS paths using PHP.
If you’re using the theme directory, files there aren’t overwritten by plugin upgrades, and if you use a child theme they also won’t be overwritten when the theme is upgraded.
Hi,
You can probably do both things by modifying the map_poi_list.php template file:
1. Add your extra columns to the poi list and I think the datatables plugin will make them sortable by default. Note that they’ll be sortable, not searchable or filterable, I was assuming that’s what you meant?
2. Yes, you can modify the HTML of the template.
Hi,
For CSS images it’s normal to use relative paths, since there’s no way to customize a full path in the CSS file.
If you’d like to provide a URL I’ll take a look, but this is something unique to your blog. You might try deactivating your other plugins and switching to a standard theme to see if it’s a conflict.
You can also try a demo site here to see if it has the same issue:
Hi,
I looked at the URL and the datatable is working (for me). It looks like a regular table but if you click the column headings, it sorts alphabetically. I’m using Internet Explorer 10.
The Infobox is behind the map, as you suspected. The theme must apply a z-index somewhere. You can either remove it from the theme’s style.css or try this to raise the infobox:
.mapp-infobox {
z-index 999999;
}You can test it using Firebug if that helps – just search for ‘map-infobox’ to find the infobox in the page HTML.
Hi,
I took a look:
1. The map is showing the datables option is disabled. That usually indicates the “Show the POI list as a datable” option isn’t set (or isn’t getting saved). Please try to save the MapPress settings again and check that it’s set – and that you’re not overriding it in the shortcode. If that’s not the problem, please send a login so I see why the setting is not saving.
2. I think the POI list isn’t collapsing because the theme is preventing text wrapping on links (white-space: nowrap). You can either change the theme’s “style.css” to correct this in general, or add this to just enable wrapping in the poi list:
.mapp-poi-list { white-space: normal !important; }September 26, 2013 at 4:20 am in reply to: Google InfoWindow does not display description correctly #13441Hi,
If you could, please provide a URL when reporting issues like this, it helps if I can see the problem.
I’ve never found a consistent solution for the infowindow scrollbars. It seems to depend on some combination of the browser, font and other CSS.
Google has several bug tickets open about it, but here’s the most recent. You can “star” it to raise its priority with Google:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=5713
Here are some things to try that may help:
1. Make sure all of your images have a width and height specified, e.g.:
<img style='width:150px; height: 150px'/>2. Switch to using the custom MapPress “infobox” (you can set it in the settings or in the shortcode with iwtype=”ib”). The infobox resizes properly
3. Enclose your the marker body in a div with a fixed height and width, e.g.:
<div style='width:300px;height:300px'>Your body here</div>Hi,
The current version of MapPress reads all the posts for the map, so that query dictates the memory usage/time.
I think WordPress itself (with no plugins) uses around 40MB, so 64MB doesn’t sound extraordinary.
If the problem is a memory limitation, you’ll need to increase your PHP memory or set a “posts_per_page” limit in the query. Here’s the codex entry:
http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
Please note that most hosts require you to edit the php.ini file, so just setting WP_MEMORY_LIMIT in wp-config.php won’t always work.
Hi,
I don’t know if this is the problem, but I don’t see a height specified? Maybe changing this line would help:
`$mymap = new Mappress_Map(array(‘width’ => $width, ‘height’ => ‘400px’));
If you just need to create maps with 1 location, you can use the standard MapPress geocoding functionality instead of a custom shortcode.
Just configure your custom fields in the MapPress settings. I think if you just use a plain-text field for the address in Formidable, it will save it to the post as a custom field.
The only trick is triggering MapPress to automatically generate the map- there’s a section in the documentation about that.
Hi,
The default layout for the poi list is a table with width=”100%”, so this is probably specific to your site – the theme may be overriding the CSS. If you can provide a URL I’ll take a look.
You can also modify the layout template “map_poi_list.php” to change the layout, or the theme’s “style.css” to suit your needs. You can see the MapPress CSS defaults in file “mappress.css”, in the plugin directory.
Hi,
This is probably specific to your site. If you can provide a URL I’ll take a look.
You might try deactivating your other plugins and switching to a standard theme to see if there’s a conflict.
Hi,
This is probably specific to your site. If you can provide a URL I’ll take a look.
You might try deactivating your other plugins and switching to a standard theme to see if there’s some kind of conflict.
Thanks, Connie, I’m glad you got it working and saved your brain! 🙂
-
AuthorPosts
