Forum Replies Created
-
AuthorPosts
-
Hi,
If it’s a local machine I’m not sure why you would be exceeding the quota. What exact message do you get?
Is your machine using a static IP?
If it’s a local static machine you shouldn’t need an API key at all, so I’m not sure the new code will fix the root problem, but I’ll send it to you anyway.
Hi Karen,
If you’re on a shared server, then another user on that server may have reached the geocoding limit. There’s some information about this problem in the documentation and the FAQ.
I was about to tell you you’re out of luck with that server, but I just checked Google’s docs and they seem to have changed their rules.
Previously the geocoder didn’t even accept an API key. The key only affected the number of maps that could be displayed. However, at some point this must have changed. The geocoder now seems to support API keys, which would imply that you could get a ‘private’ 2500-request limit.
I’ve updated MapPress to pass the API key to the geocoder, and it seems to work. Please send me an email and I’ll send you a copy of the updated code to test.
Hmmm… honestly, I don’t know. You could use 3 separate mashups (one for each taxonomy archive), just replace ‘trails’ with ‘county’ or ‘season’ (or whatever query variable they’re registered with).
It might also work to use one mashup for all three:
[mashup query="trails=@trails&county=@county&season=@season&posts_per_page=-1"]Sounds good – one thing to try is maybe use ‘trails’ instead of ‘trail’. From the site it looks like maybe the taxonomy is registered under the plural, so this might work:
[mashup query="trails=@trails&posts_per_page=-1"]
Hi,
The should pull in the current taxonomy, but ‘trail’ is blank on that page. It doesn’t look like an archive page for a trail. Maybe a ‘county’ query would work better on that page, to show all the trails in a county:
[mashup query="county=@county&posts_per_page=-1"]
Also, you may want to confirm that the query variables do have the same name as the taxonomy (it’s possible for them to be different). You’d need to find the register_taxonomy call that was used to register them – there’s some info here:
https://codex.wordpress.org/Function_Reference/register_taxonomy
Hi,
I gave an example of doing the mashup for all the posts in the current category. For category, the query variable is ‘cat’. It should be set when WordPress displays an archive of posts for that category.
For custom taxonomies, the query variable is usually the same as the taxonomy. So the mashup to show all posts for the current trail is:
[mashup query="trail=@trail&posts_per_page=-1"]Hi,
The query you were using just shows the currents posts, so you’ll need a ‘query’ parameter to tell the plugin what to select from the database.
For example, this should show *all* trails:
[mashup query="tax=trails&posts_per_page=-1"]The other taxonomies should work the same way, but let me know if I’m missing something.
August 3, 2015 at 5:35 am in reply to: Multiple markers at same location not showing up with php map #16086Hi,
There’s nothing in the plugin to prevent display of two markers at the same location, but if they are in exactly the same place they’ll display on top of each other (you’ll have two entries in the POI list, though). One solution for that might be to slightly stagger the markers lat/lng by a random amount, or drag them slightly when you save the maps.
It is on my enhancement list to handle multiple markers in a single infowindow, but it’s difficult to implement and I don’t have any ETA for it yet.
Hi Ian,
Sorry, I wasn’t sure if anyone was using it. I’ll add the filter back in for version 2.43.4.
Hi Kelly,
Thanks for the update. Do you have an example of the name or location of one of these markers that can’t be removed? I’m just curious to see what they look like.
Hi,
The best thing is probably to play around with the Google Styled Maps Wizard. There’s also a link to it in the MapPress settings:
http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.htmlTry clicking on ‘points of interest’ and setting visibility to ‘off’. I think that’s what the sample JSON does. Then you can zoom in on the location and see if that works. If you get it working the way you like you can click ‘show json’ and copy the JSON into MapPress.
I doubt that another plugin is doing anything… but if the styled maps wizard doesn’t work for you please give an example with a URL.
Hi,
Thanks, I’ll release 2.43.4 today. Please be sure to download and use the version from this site (the build you have tested was not complete).
Hi,
Thanks for letting me know. I think I’ve found the problem and it should be fixed in 2.43.4. I’ve sent you an email as well to see if you could test it for me be I release the change.
Hi,
Sure – the changes are generally listed here and in the ‘readme.txt’ with the plugin (even in the free plugin):
Hi,
If you want to find any automatic map (and not manually-created maps) there is an internal function for that:
get_post_meta_map ($postid)You can find it in file ‘mappress_map.php’.
The only difference between regular maps and automatic is that automatic maps have property ‘metakey’ set to true, so that function reads any maps attached to a post and looks one with ‘metakey’ set.
I hope that helps.
-
AuthorPosts
