Forum Replies Created
-
AuthorPosts
-
Hi,
That code is javascript, so you’ll need to know how to write some javascript on the page in order to use it.
Also the code has to be called when the slider is displayed – that depends on the ‘display’ event for the slider control, which is different for every slider.
You could also try the CSS workaround of positioning the hidden element off-screen.
Unfortunately, there’s no general answer. It depends on what type of plugin/control you’re using for the slider.
Here’s a link to the jQuery page explaining the same thing for their tabs control:
There are millions of hits about this problem on Google. Maybe someone has already found a a solution for that particular slider?
Hi Barryn2000,
The workaround shouldn’t be necessary.
Are you using 2.38.5? A bug in 2.38.4 prevented the plugin from finding custom icons.
They must be uploaded to:
/wp-content/uploads/mappress/iconsThe dropdown icon picker should show all the icons in that directory. If it’s not working, feel free to send me a login and I’ll take a look.
Hi,
The error is telling you that you need to delete the old plugin directory first. You can do it with the ‘delete’ link under the old plugin version in the WP admin screen.
I’ll update the installation instructions to include a mention of that step when upgrading.
July 23, 2012 at 6:04 am in reply to: Setting POI title, tooltip, and zoom level on automatic map #10013Hi Brad,
Sorry for all the confusion. I’ll try to answer your questions. Please also upgrade to the latest 2.38.5 so you have the latest code.
1. The plugin assumes if you provide lat/lng then you there’s no street address – incorrect in this case. I’ll try to fix that in the next beta (2.38.6). As a workaround you can write your shortcode using the (undocumented) ‘correctedaddress’ parameter to force the plugin to believe the address was geocoded:
correctedaddress="513 W 7th St, 19805" title="513 W 7th St" iconid="red-dot" point_lat="39.744481" point_lng="-75.554222"
You’ll want to include city/state in the address. When you get directions to that address Google will geocode it automatically and without a full address it will ‘guess’.
2. For the zoom: when an address is geocoded Google returns the correct viewport to show that address. For a lat/lng, though, there’s no way for the plugin to know the zoom – you could be displaying a street, state or an entire country.
You can specify a zoom level (1-19) for the map, though, in the [mappress] shortcode:
[mappress zoom="5"]
3. For the meta field: you can save a dummy post with that ‘errors’ field to keep it in the list. The plugin is coded to delete the field value if there’s no error (the idea was to let you easily find posts that have errors). But I think it would make more sense to show “OK” in that field when there’s no error. I’ll update that in 2.38.6 and also look into adjusting the settings screen to make it easier to use.
Hi,
I fixed #4 – I didn’t see it initially because it only happened if you selected NO links.
I didn’t bother to create a new version for the fix. Just download 2.38.5 again and install or overwrite your existing files and it should work.
Thanks again for letting me know!
Hi,
It was a bug in the plugin. I was able to reproduce the problem and fix it. I’ve just released 2.38.5 beta which contains the fix.
I hope that helps, but please let me know if it doesn’t work for you.
@Synavista, thanks for sharing your solution! I have one thing to add: if you’re using the 2.38.x beta versions, you can modify the position of the POI list by doing this:
1) Find the file
map_layout.phpin the folder/pro/templatesinside the MapPress directory.2. Copy
map_layout.phpto your theme directory or child theme directory.3. Edit the file
I don’t have an example layout yet with the list on the side but I thought I’d mention the layout file because it lets you avoid having the changes overwritten during upgrades.
In the latest betas, you can also place a
mappress.cssfile in your theme directory (containing just the styles you want to override), and thus prevent having it overwritten as well.It’s of course better to use a child theme, otherwise the theme itself will delete the directory when it’s upgraded.
Thanks again for sharing.
Hi,
I found the bug that was causing this and it should be fixed in 2.38.5. I just uploaded that version so you can grab it from your account.
Let me know how it works for you, and thanks for the PremiumPress forum post!
Hi Stephen,
Thanks for letting me know about these issues:
1) Google sets the width and height of the infoWindow automatically to fit the content. If you have a lot of content it will make a big infoWindow. You can try disabling the map zoom/pan controls so it will fit the map, or you can override the infowindow style to give it a hint about how big it should be. For example, to limit the window to 200px width:
.mapp-iw { max-width: 200px; }The release notes for 2.38.4 explain how to set custom CSS.
2) On some of the POIs it looks like the image was inserted manually into the POI body rather than as a thumbnail, and it seems like the HTML is not be valid. For example, “Melnik” has this in the body:
<img src='http://randomimages.ca/nblog/wp-content/uploads/2012/06/Melnik07.jpg' width=150px>
There’s no height (so Google can’t figure out how big it is) and the dimensions should be in quotes:
<img src='http://randomimages.ca/nblog/wp-content/uploads/2012/06/Melnik07.jpg' width='150px' height='150px'>
The same thing also happens with images inserted as thumbnails, like “Melnik to Kovachevitsa”. I think this is because WordPress writes out the thumbnail dimensions with any ‘px’ (for pixels) and Google doesn’t like that. Your theme also has CSS to set the image size to ‘auto’, which may cause a conflict. You could try remove this from the theme’s style.css:
body .content img {max-width: 100%; height: auto; width: auto ....Or, you could add a width and height to the style ‘mapp-thumb’ which is applied to the thumbnails:
.mapp-thumb { width: 150px !important; height: 150px !important; }3. I’ve updated the CSS in version 2.38.5 to include an ‘!important’ modifier on the padding, I think this will fix the padding issue.
4. There’s a setting on the MapPress settings screen to let you pick which links to use, have you tried unchecking ‘zoom’?
Hi, random cross-browser issues can be very tough to troubleshoot. Do you have a particular page on the site that has this issue? I didn’t see a map on the link you gave.
How many reloads does it take to see the issue?
One common problem is the map will appear to not load (or only partially draw) if it’s being displayed inside a container that’s initially hidden, like a tab control or hidden <div>. Check out the FAQ posting in the forum for info about that issue if you think it might be the cause.
Hi, I went to that link but the icons aren’t flickering for me and it looks like a custom shadow is showing.
I’m guessing they were the same problem. Did you figure it out already or am I not understanding how to see the issue?
Hi,
OK, my understanding so far is that everything is working, except the tooltips.
I haven’t tracked down the underlying issue with that, but I think the map isn’t getting all of the options – that’s why turning off tooltips on the settings screen didn’t work.
As a workaround, you can try turning off the tooltips directly in the mashup shortcode:
[mashup tooltips="false"]
Does that work?
Hi,
I’m not sure the automatic map being re-created is bug. There’s a checkbox on the settings screen that tells the plugin to always re-create the map when the post is saved (or not). Uncheck that box and it should remember your changes, otherwise it’ll just overwrite them on each save. Please see the details in the documentation.
I’ll look into the tooltips, though, to see why the checkbox isn’t working, and why the title is showing the lat/lng.
Hi,
I think the tooltip thing is a bug, thanks for reporting it.
For now, you may want to just turn them off – there’s an option on the settings screen to just turn them off.
It sounds like you got things working, but if you want help with the widget please provide the exact query you’re using. There are a few examples in the documentation, but note that for the widget you just write the part that would normally be in ‘show_query=”” ‘ (without the quotes).
By the way, that mashup shortcode also looked like it’s missing quotes in the show_query part:
[mashup width="875px" height="375px" show="query" show_query=meta_key=featured&meta_value=yes&posts_per_page=-1]
Should be
[mashup width="875px" height="375px" show="query" show_query="meta_key=featured&meta_value=yes&posts_per_page=-1"]
Hi, I was going to suggest that as well. I made those functions available in case someone needed them, but I’ve never added documentation about how to use them.
I’m not sure if it will help your application, but the next release will also support a ‘query’ function. That way you can a query to the server and have it return the POIs that match, without having to populate the POIs manually.
-
AuthorPosts
