Maps not updating

About Support Directory Maps not updating

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #2680
    Avatar for seatonseaton
    Member

    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. Confused

    Thanks

    Shannon

    #3622
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Couldn’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

    #3666
    Avatar for Rhonda
    Guest

    Wait, 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…

    #3667
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    You 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.

    #4272
    Avatar for Dale Pease
    Guest

    I 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.

    #4273
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Hi 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!

    #4274
    Avatar for Dale Pease
    Guest

    Looks 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=####################

    #4275
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    I 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!

    #4276
    Avatar for Dale Pease
    Guest

    This 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?

    #4277
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    That should work – have you any other restrictions on that page?

    #4278
    Avatar for Dale Pease
    Guest

    I’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.

    #4279
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    I meant on the Google Api console page. Only the http restriction to *.tinkerscreek.com/*
    Everything else should be open as it were.

    #4280
    Avatar for Dale Pease
    Guest

    I don’t see anything else. This is a screenshot of my settings in Google: https://www.dropbox.com/s/ugie0czq8os8wwb/GoogleAPI.png?dl=0

    #4281
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Maybe 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 API

    And 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.

    #4283
    Avatar for Dale Pease
    Guest

    The 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

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.