Tell us what you are trying to do?
- I currently have Toolset Maps set up to dynamically source the map markers using dynamic addresses on custom posts.
- I have a map on each custom post (as part of a template) and we currently have over 2300 of these custom posts with more being added regularly.
- With our number of website users we've already exceeded Google's $200 'free' amount (per month) that they allow and we are growing at a fast rate (and will continue to grow a LOT larger, yet).
Is there a way to lessen costs using Toolset? Such as using Google Maps Static API (Which is 2.00 USD per 1000 instead of the current 7.00 USD per 1000)?
If not, I CAN remove the map from the content template to drastically reduce costs; I'd just rather keep it if because it DOES add quite a lot to have that visual on each custom post. (And I don't mind paying to keep it; I just can't afford it at the current rate)
Is there a similar example that we can see?
- I don't think that's relevant.
What is the link to your site?
- I could tell you but you need membership access to see the pages I'm talking about, and I don't think getting access is really all that relevant here, yet, anyway. (See attached image, anyway)
That sounds exactly like what I need! Only problem is; I have absolutely no idea how to implement it.
I finished the first step - "update your Google API key to include the Static Maps API" - But after that every instruction is "Here's some code!" and you lost me.
So, I created a Custom HTML block and added that code. I replaced the sections with what you said. It didn't work properly.
My guess is maybe I set the slug wrong. All I did was type in "suburb-of-offender" as the slug is written in the Toolset Custom Fields section (see 2nd image).
The API key, I know, is correct (I copy-pasted it from Toolset Settings > Maps and it's been working for all other maps)
And your code, I assume, is good.
So that just leaves the only other thing I edited; the slug.
I also tried several different iterations of the code: the one you sent, the one Nigel first posted in the other thread, AND the code he also posted that combined link and image - All 3 showed the same 'broken' map.
Awesome! Thank you so much! That seems to have worked!
The only thing I did differently was I used a "Shortcode" block instead of the "Custom HTML" one I was using before so that seems to have done the trick; thank you!
Lastly now, please, I seem to be having trouble with the size.
- You had it set at 640x640, and that worked fine,
- I want it full width (1050) by 250.
It seems to be allowing me to make it LESS than 640, but it won't let me go ABOVE 640 at all.
Meaning that when I have it set at "size=1050x250" it's always half the width of the page (or less), left-aligned, but at least it's the correct height.
Is this a setting within Google Maps Static API or something?
Thank you for all this. I know I'm probably a difficult person to help since my knowledge isn't the best, but I appreciate that you took the time and patience to get it sorted as succinctly as possible.