For issues related to the current stable release please use it's own Help forum.
IMPORTANT:Please read this before using an git or nightly build version: wiki.webtrees.net/en/GIT

Before asking for help please read "How to request help" by clicking on that tab above here.

TOPIC: [SOLVED] Google Maps Platform and API Requirements

Google Maps Platform and API Requirements 5 months 1 week ago #1

  • Tel
  • Tel's Avatar
  • Offline
  • New
  • Posts: 39
Not so much a request, more an observation on an upcoming change to Google Maps in so far as it effects webtrees map module ...

With Google changing their rules around use of their Google Maps API, requiring an API key from 11th June [2018] would it be an idea to automatically disable the Google Map module if no API key is present? The way I'm reading their announcement, maps will only return a low resolution, watermarked map marked 'for development purposes' if an API key is not present.

Obviously, this will effect webtrees v1.x as well as v.2
Terry
running webtrees 1.7.11 at mynorfolkancestors.net
on PHP 7.2, MySQL 5.6.
The administrator has disabled public write access.

Google Maps Platform and API Requirements 5 months 1 week ago #2

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10445
Thanks. I've logged this on the issue tracker.

github.com/fisharebest/webtrees/issues/1716

There is some work going on (by Dave Drury) to convert the mapping modules to use the "leafletjs" library, which means we should be able to switch mapping providers easily, and use openstreetmap, etc. instead.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Google Maps Platform and API Requirements 5 months 1 week ago #3

  • ddrury
  • ddrury's Avatar
  • Offline
  • Senior
  • Posts: 250
I've uploaded a number of pull requests to github for webtrees version 2 (unfortunately the code is incompatible with webtrees 1.7.x ) which I'm sure Greg will review (when he has about 6 months to spare - there's a lot of changes!). leafletjs and a few plugins, including leaflet-providers are used. Examples of the various providers this plugin supports can be found here. Only included in the module are a subset that I think suitable for webtrees but by editing one file any of the others can easily be included
--
Dave

Local: Win 10 Pro, Apache 2.4.17 virtual hosts, PHP 5.4.21, 5.5.15, 5.6.16 & 7.0.0, Mysql 5.7.9 all 64bit
Production: linux 2.6.32.21-grsec #5 SMP, Apache 2.2, PHP 5.6.15, Mysql 5.5.28-29.1
The administrator has disabled public write access.

[SOLVED] Google Maps Platform and API Requirements 5 months 1 week ago #4

  • Tel
  • Tel's Avatar
  • Offline
  • New
  • Posts: 39
Thanks Dave and Greg.

Personally, I feel some of the Openstreetmap layers (tiles) offer a better presentation than Google Maps so will be happy to see the changes.
Terry
running webtrees 1.7.11 at mynorfolkancestors.net
on PHP 7.2, MySQL 5.6.
Last Edit: 5 months 1 week ago by Tel. Reason: Didn't realise the 'Solved' button deletes original text!
The administrator has disabled public write access.

[SOLVED] Google Maps Platform and API Requirements 5 months 6 days ago #5

  • Pierre
  • Pierre's Avatar
  • Offline
  • New
  • Posts: 7
Terry, thanks for your information.
Being actually a Google Map module user, I have therefore read carefully the Google Map Guide for existing users. Before working with the Google Map module, I had a try with the Open Street Map module (of my first choice), but couldnt succeded to make it work. I am using webtrees 1.7.9

I'd like to know if the Google Map module is a pre-requirement for the OSM module or not.
Then I noticed 2 downloading places for the OSM module, first one with additionnal files and the other one lighter. Can anyone help me to find the lighter module downloading zone, including installing comments for (french speaking) novice.

Regards to all.
Pierre. Ver 1.7.9
The administrator has disabled public write access.

Google Maps Platform and API Requirements 5 months 6 days ago #6

  • Tel
  • Tel's Avatar
  • Offline
  • New
  • Posts: 39
Pierre wrote:
I'd like to know if the Google Map module is a pre-requirement for the OSM module or not.
If you have installed the OpenStreetmap module from webtrees Add-ons Google Map module is required - see dkniffin's repo on Github. There is an error with JQuery which results in a
SyntaxError: invalid regular expression flag n[Learn More]

on some maps displayed via the Openstreetmap tab. This is a bug with JQuery v2. Is this the issue you are encountering? (You'll need to inspect your web browser's console to view any javascript errors). Unfortunately upgrading to v3 is not a simple case of swapping JQuery over to the latest version due to dependancies on Bootstrap (and, anyway, updating to the latest release of JQuery may not fix the issue). Dave Drury's map modules (see above) should ensure this particular problem goes away but of course won't be available for v1.7x

Pierre wrote:
Then I noticed 2 downloading places for the OSM module, first one with additional files and the other one lighter. Can anyone help me to find the lighter module downloading zone, including installing comments for (french speaking) novice.
I'm not sure what the 'lighter' module refers to - do you have a URL? It may be worth noting that Richard Cissee has developed an alternative Openstreetmap module which has removed the requirement on Google Maps and can also download from Github via Richard's ric2016/OpenStreetmap_hooked module.
Terry
running webtrees 1.7.11 at mynorfolkancestors.net
on PHP 7.2, MySQL 5.6.
Last Edit: 5 months 6 days ago by Tel. Reason: Re-reference Richard Cissee's Github page
The administrator has disabled public write access.
Moderators: makitso
Powered by Kunena Forum