The moment I restrict my key using my domain, the JS no longer calculates the fees or distance. The JSON returns 0 for both.
I had unrestricted APIs but also tried restricting these APIs only:
There are still issues calculating fees or distance, it does not seem to be related to APIs restrictions. When I restrict the key itself using website restriction, like so
The map itself is still initialized with domain restrictions (which means the domain is recognized). We can see delivery point A to point B once the calculation function is called. The response that includes fees and distance calculations does not work. There are no console log errors or warnings.
I’ve added a response console log in the resp.success
function, but it returns objects total_amount: 0
, total_dist: 0
. Any idea why?
Currently, I’m running the plugin with an unrestricted domain key but I’d like to have a solution that works with a restricted domain.
Cheers, and thanks for this plugin!
I installed a completely fresh instance of WordPress and the Events Manager plugin (as the only plugin) at the URL above, and the map worked fine.
Then, on this generic site where the maps were working fine, I imported the live site I was having the trouble with using the All-in-One WP Migration plugin. I deactivated all the plugins except Events Manager and chose the default Twenty Twenty Four theme. The maps now do not work–they simply say “map unavailable.”
I also tried resetting the Events Manager plugin, using the Reset option in Settings > Admin Tools, and re-added the Google Maps API. That did not help; locations still show the message “map unavailable.”
So my guess is that something has gone wrong in the database of the site, but I have no idea what that might be or how to begin debugging it. Any suggestions?
]]>I use Estatik Pro and it works great with google maps, but i can′t manage to improve my TBT issues caused by the google maps API loading.
Is there any recomendation from Estatik developers regarding this?
Thanks in advance!
]]><scrip src="https://maps.googleapis.com/maps/api/js?key=my_key&callback=initMap&libraries=places,drawing" async defer>
I’ve plugged my code into a Custom HTML block, but when it runs I am getting a ‘ERR_BLOCKED_BY_CLIENT’ error from the server. It does run the callback function, but nothing else. Is it possible to accomplish what I am attempting through WordPress, or is this just not possible?
]]>I have “Directions” enabled on Google maps API but there′s no requests from any of my websites… there′s only requests on “Geocoding”, “Maps JS”, “Maps static” and “Places”.
Is there a way to use directions on maps view? at least on single property pages? It’s really cool to use “How to get there” and share locations directly from website.
Thanks in advance!
]]>For example: Miami, Florida, USA
I need to delete the country code (USA)
Mixed Content: The page at ‘https://www.top100highstakeslitigators.com/submit-listing/’ was loaded over HTTPS, but requested an insecure script ‘https://https/?language=en&ver=1.1’. This request has been blocked; the content must be served over HTTPS.
(I removed the google api key from that string before I pasted it here)
But I also know that it is working once the listing is created, the singular pages give me the correct map. Am I missing something? I have several other sites that have the same setup that all are giving me this error.
]]>WP Job Manager is awesome and it’s working well for my site, but I don’t want to use Google Maps API.
But when I leave the API key field empty under Job Listing > Settings, I keep getting this notice in the backend. And on the frontend forms for users to add locations to a business, job listing or applications, a box pops up saying Can’t load Google Maps correctly and Do you own this business?
How can I make these notices on the backend and frontend go away since I don’t want to use Google Maps?
Thank you
]]>