- This topic is empty.
-
AuthorPosts
-
28th December 2016 at 10:33 pm #2680seatonMember
The maps in my directory page will not come up. (calvarybaptistdfw.org/directory (The pass code is Biblestudy 1 for now) They are showing the broken link The map for the small groups do come up but they appear to be stuck in London. Not sure what to do here.
Thanks
Shannon
28th December 2016 at 11:26 pm #3622Andy MoyleKeymasterCouldn’t get your passcode to work unfortunately, but no problem!
If the maps are all stuck in London, it is because each address needs geo-locating (storing the pinpoint location of an address as latitude and longitude) Google won’t let us do that automatically, but it is still easy to do. You’ll need to edit each household’s address and click Update.There’s a tutorial walkthrough at https://www.churchadminplugin.com/tutorials/geolocating/
You can turn off the maps (temporarily or permanently!) by removing removing map=1 from the shortcode
9th March 2017 at 7:21 pm #3666RhondaGuestWait, so are you saying that for every address, we have to go in and edit that address and then drag a marker from London to wherever in the world that person’s house is? Can’t the map just look it up by address? Any Google map plugin can even do that…
9th March 2017 at 8:29 pm #3667Andy MoyleKeymasterYou do need to edit the addresses individually (any Google map plugin would make you do that. You can’t batch edit – Google map api rules that you can only use the api for maps that are shown at the time).
Just clicking update should get the pin in the right place give or take, if Google can read the address – you can then drag and drop for fine tuning.If it’s not working it will be because you have other plugins/themes that call the google map api without a key and override.
29th June 2019 at 4:17 pm #4272Dale PeaseGuestI am having a similar problem. When I click the “Please click here to update map location…” link, nothing happens. The default London map is displayed. Sometimes when I go to the directory the map has a location in the middle of the ocean.
29th June 2019 at 4:32 pm #4273Andy MoyleKeymasterHi Dale,
Right click on the offending page (not while hovering over the map though!) Then click “Inspect” and then “Console” – there will be an error in red, copy and paste it in this forum and I can help. Most likely the Google API key is not set up correctly.
Those instructions assume you are using Google Chrome!29th June 2019 at 4:43 pm #4274Dale PeaseGuestLooks like you are correct. I thought I had followed your instructions correctly for setting up the Google API:
Geocoding Service: This API project is not authorized to use this API. For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key
_.Uc @ js?key=####################29th June 2019 at 5:38 pm #4275Andy MoyleKeymasterI hashed out your key!
It’s the step where you restrict the key – looks like you have restricted it too much. It needs an asterisk after the domain name to allow any page on the domain to use it.Say your domain name is http://www.domainname.com then you do it as *.domainname.com/*
Hope that helps – btw the way it takes about 15 mins for a change to work!
And lastly this is a really old thread and there’s a been a button to bulk geocode all your entries once it is workingfor 18months!
29th June 2019 at 6:15 pm #4276Dale PeaseGuestThis is what I have set up for the restrictions: *.tinkerscreek.com/*
I am working under a dev URL right now: http://dev.tinkerscreek.com
Any other ideas?
29th June 2019 at 6:20 pm #4277Andy MoyleKeymasterThat should work – have you any other restrictions on that page?
29th June 2019 at 6:29 pm #4278Dale PeaseGuestI’m not sure what you mean by other restrictions on the page. This is in the Church Admin area within your plugin. Sorry if I’m being dense.
30th June 2019 at 12:09 am #4279Andy MoyleKeymasterI meant on the Google Api console page. Only the http restriction to *.tinkerscreek.com/*
Everything else should be open as it were.30th June 2019 at 2:52 am #4280Dale PeaseGuestI don’t see anything else. This is a screenshot of my settings in Google: https://www.dropbox.com/s/ugie0czq8os8wwb/GoogleAPI.png?dl=0
30th June 2019 at 12:59 pm #4281Andy MoyleKeymasterMaybe the apis for the different jasvascript maps services are not enabled?
https://console.cloud.google.com then “API’s and services” then “Dashboard” then click on each of
Maps Static API
Maps Javascript API
Geocoding APIAnd check they are enabled (mine have a link to disable, so I guess you may have a link to enable.)
Also do you have a credit card on file with them? Won’t get charged as the free allotment is huge. But thety do require it.
1st July 2019 at 2:19 pm #4283Dale PeaseGuestThe Geocoding API was not enabled. When I enabled that, it fixed the individual map issue. (Yay!) But, when I try the batch update, it still doesn’t work. The strange thing, though, is when I look at console in Chrome, it looks like it runs as it should.
JQMIGRATE: Migrate is installed, version 1.4.1
batch_geocode.js?ver=5.2.2:5 51.50351129583287 -0.148193359375
KeeperFill-var.js:30 CURRENT_SITE: dev.tinkerscreek.com/wp-admin/admin.php
batch_geocode.js?ver=5.2.2:39 Look up 5269 Meadow Park Dr. Kent, OH 44240
batch_geocode.js?ver=5.2.2:39 Look up 8754 Mavis Trail, Streetsboro, OH, 44241
batch_geocode.js?ver=5.2.2:39 Look up 607 Yacavona Dr, Kent, OH, 44240
etc….But, the fields are left blank, and clicking Save comes up with: “Address geocodes updated”. But console has this error:
batch_geocode.js?ver=5.2.2:5 Uncaught ReferenceError: beginLat is not defined
at HTMLDocument. (batch_geocode.js?ver=5.2.2:5)
at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=5.2.2:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=5.2.2:2)
at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=5.2.2:2)
at HTMLDocument.J (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=5.2.2:2)
(anonymous) @ batch_geocode.js?ver=5.2.2:5
i @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=5.2.2:2
fireWith @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=5.2.2:2
ready @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=5.2.2:2
J @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=5.2.2:2 -
AuthorPosts
- You must be logged in to reply to this topic.