Disable all calls to Google
This topic contains 10 replies, has 3 voices, and was last updated by Paolo 10 years, 5 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
November 8, 2014 at 10:28 pm #21016
Hello,
I live in China, where google is blocked. So, my site doesn’t work here. I need to turn off all calls to google, including google maps. How can I do that?
Thanks
November 9, 2014 at 1:57 am #21023Without any connection to Google, your site can never work, as the maps cannot be shown. I’ll get the developers to have a look at your question too.
November 9, 2014 at 4:45 am #21033Thanks Guust. Specifically, line 324 in geodirectory_template-tags.php
<script type=”text/javascript” src=”http://gmaps-samples-v3.googlecode.com/svn/trunk/geolocate/geometa.js”></script>
This line is causing all the hanging of my site. When I comment it out it breaks the details page. Any help would be great.
November 10, 2014 at 3:58 pm #21087Hi Krischin,
GeoDirectory without googlemaps isn’t really usable at the moment.
Remove that call wouldn’t be so hard, but making all the rest work without it, would require rewriting several part of the plugin.
It’s not only the detail page that will not work properly.
Also search and add listing form will result broken.
How do you want to use the plugin, without the maps?
What is an laternative to googlemaps in China? Do they have API?
Let us know,
November 13, 2014 at 2:08 am #21357Hi Paolo,
I’ve finished my site and it works fine through a VPN. Because Google is blocked, I’ve turned off all calls for google fonts etc. Now, the problem is google maps – the site just hangs because it is blocked when the VPN is turned off. I want to use the directory portion, just not show google maps. I will send you an example site where this is working (non-GD), and my GD site privately below. For now, if I could turn off the google maps and still have the listings show, that would be great. Then, maybe in the future you could add an option for the user to turn off google maps if they don’t have a VPN. This would be the ideal situation. I could provide a China VPN for your development if you need it.
Thanks,
November 13, 2014 at 2:11 am #21358This reply has been marked as private.November 13, 2014 at 4:18 pm #21423Quick question, would you want to disable google maps calls only for vistiors with a Chinese IP or disable them completely for all your visitors?
Let us know,
Thx
November 14, 2014 at 3:14 am #21474Hi Paolo,
Thank you for staying with this. In the ideal situation, if an outside China VPN is enabled, they will see Googlemaps. If an outside China VPN is not enabled they will see nothing but everything else is would be OK. In the case of the site I sent you previously, the map shows “Javascript is required to view this map.” when there is no Googlemaps access – but everything else works fine. I can send you a China VPN by email for testing. Please let me know.
Kris
November 14, 2014 at 7:39 pm #21565Hi,
too many parts of both the core plugin and the addons would have to be rewritten to achieve something similar.
In the future we may be interested in extending other map providers (possibly one that includes china).
For what you are considering, it would have to be considering a customization (a major one) and not something we can provide support for.
Thanks
November 15, 2014 at 2:07 am #21598Hi Paolo,
Ok. I can understand that. Can you at least tell me how to disable googlemaps completely for all visitors? Then at least I could use the directory.
Thanks.
November 17, 2014 at 4:43 pm #21735Hi again,
it is really not possible to disable all google maps api calls without modifying a bunch of files.
You would have to change:
1) The add listing page (to remove the map, the latitude and longitude fileds making sure to remove all call to the API to autocomplete informations)
2) Listing Details Page (to remove map from the detail tabs)
3) Search (to avoid using lat and long to establish proxiity)
This is to be considered a customization and for this reason, beyond the scope of this forum.
In addition, you may find yourself in trouble everytime we release an update, because I’m not 100% sure this can be done leaving core files untouched.
Thx
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket