[GeoNode-users] Google Earth (Satellite) doesn't work anymore on Geonode 2.6.3

Paolo Corti pcorti at gmail.com
Mon Oct 8 14:28:44 PDT 2018


Hello Ana
I am afraid until we don't upgrade gxp GoogleEarth and GoogleSource plugins
(gxp is the library used by GeoExplorer in GeoNode) to use latest version
of Google API, they will be broken. Unfortunately I haven't time to work on
this right now.
hope this helps, best
Paolo

On Mon, Oct 8, 2018 at 7:24 AM Ana Boljevic <ana.boljevic at cedis.me> wrote:

> Dear Paolo,
>
>
> Please see attachment again (apikeys.JPG). We believe that our browser
> receive google apikey and that not in category keyless users.
> Much more we believe that in GeoNode 2.6.3 baselayer Google Earth stop
> working because of:
> "If you are loading Maps JavaScript API from the deprecated v2 path with
> an old v2 key, you will get the NoApiKeys warning, even if you specified
> the key parameter. Please check the v2 to v3 upgrade guide
> <https://developers.google.com/maps/documentation/javascript/v2tov3> and
> migrate your application to Maps JavaScript API v3."
> Please see apikeys2.JPG in attachment.
> One more time, does GeoNode v2.6.3 can overcome this issue?
>
>
> Regards,
>
>
> *Ana Boljević*
> Direkcija za razvoj, pristup mreži i ICT
> Sektor za ICT
> Služba za GIS i tehničku bazu podataka
> *DOO „Crnogorski elektrodistributivni sistem“ Podgorica*
> Ivana Milutinovića br.12, Podgorica
> Tel: +382 20 408 473
> www.cedis.me
> Please do not print this e-mail unless you really need to
> ------------------------------
> *From:* Paolo Corti <pcorti at gmail.com>
> *Sent:* Friday, October 5, 2018 11:43:48 PM
> *To:* Ana Boljevic
> *Cc:* geonode-users-bounces at lists.osgeo.org; geonode-users; Bart van den
> Eijnden
> *Subject:* Re: [GeoNode-users] Google Earth (Satellite) doesn't work
> anymore on Geonode 2.6.3
>
> Today I have received the following information from Google support:
>
>
>
>
>
>
> *We are in the process of completely disallowing keyless usage, but
> currently, it will work intermittently.  It will break again.  Please keep
> in mind that keyless usage was deprecated about a year ago, but it was only
> with changes starting June 11th that we started to cause it to break [1].
> The code from that Github page is 1) not passing a key, 2) using a really
> obsolete method of loading the API and 3) redundantly trying to load the
> API after it was already loaded.  The Github code is outside of our scope
> of support, but you may want to reach out to the issues section there [2].
> I do note that that code hasn't been updated in 3 years, so you may need to
> investigate a more modern solution to do what you are trying to do.
> [1] https://developers.google.com/maps/billing/important-updates#starting_june_11th
> <https://developers.google.com/maps/billing/important-updates#starting_june_11th>
> [2] https://github.com/boundlessgeo/gxp/issues
> <https://github.com/boundlessgeo/gxp/issues>*
>
> hope it clarifies things
>
> On Fri, Oct 5, 2018 at 9:45 AM Paolo Corti <pcorti at gmail.com> wrote:
>
>> Dear Ana
>> I am not sure about Google Earth.
>> But about the API error: we started experiencing the same error
>> yesterday. Google base layers were not working. But this morning they are
>> back.
>> In our case we also get this error: "You have included the Google Maps
>> JavaScript API multiple times on this page. This may cause unexpected
>> errors."
>> Let's monitor the situation...
>> ps Thanks to Bart who helped us to debug the issue with the second error
>> message.
>> Paolo
>>
>> On Thu, Oct 4, 2018 at 2:52 AM Ana Boljevic <ana.boljevic at cedis.me>
>> wrote:
>>
>>> Dear Paolo,
>>>
>>>
>>>
>>> Yes, I can find GOOGLE_API_KEY in html source of the page (see
>>> paolo.JPG).
>>>
>>> Please answer does Geonode 2.6.3 work with Google Earth anymore?
>>>
>>> If Yes, how can we fix this issue? What to change in what file?
>>>
>>>
>>>
>>> Regards,
>>>
>>>
>>>
>>> *Ana Boljević*
>>>
>>> Direkcija za razvoj, pristup mreži i ICT
>>>
>>> Sektor za ICT
>>>
>>> Služba za GIS i tehničku bazu podataka
>>>
>>> *[image: CEDIS]*
>>>
>>> *DOO „Crnogorski elektrodistributivni sistem“ Podgorica*
>>>
>>> Ivana Milutinovića br.12, Podgorica
>>>
>>> Tel: +382 20 408 473
>>>
>>> *www.cedis.me <http://www.cedis.me/>*
>>>
>>> [image: jelkica]Please do not print this e-mail unless you really need
>>> to
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *From:* Paolo Corti [mailto:pcorti at gmail.com]
>>> *Sent:* Wednesday, October 3, 2018 4:12 PM
>>> *To:* Ana Boljevic <ana.boljevic at cedis.me>
>>> *Cc:* geonode-users-bounces at lists.osgeo.org; geonode-users <
>>> geonode-users at lists.osgeo.org>
>>> *Subject:* Re: [GeoNode-users] Google Earth (Satellite) doesn't work
>>> anymore on Geonode 2.6.3
>>>
>>>
>>>
>>> Hello Ana
>>>
>>> if you look at the html source of the page, can you see if the Google
>>> API is called using your GOOGLE_API_KEY?
>>>
>>> By the way it is not a good practice to manually change the main GeoNode
>>> settings file. The recommended approach is setting the variable (in your
>>> case GOOGLE_API_KEY) as an environment variable of your wsgi processor of
>>> your web server (for example uwsgi).
>>>
>>> best
>>>
>>> Paolo
>>>
>>>
>>>
>>> On Wed, Oct 3, 2018 at 3:50 AM Ana Boljevic <ana.boljevic at cedis.me>
>>> wrote:
>>>
>>> Dear Geonode Community,
>>>
>>>
>>>
>>> We have one issue, if someone can help.
>>> We have put into file:
>>>  /usr/local/lib/python2.7/dist-packages/geonode/settings.py
>>>
>>>    GOOGLE_API_KEY = '***************************'
>>>
>>> Inside MAP_BASELAYERS code lines, insert and save the following:
>>> {
>>>     "source": {"ptype": "gxp_googlesource",
>>>     "apiKey": GOOGLE_API_KEY},
>>>     "group":"background",
>>>     "name":"SATELLITE",
>>>     "visibility": False,
>>>     "fixed": True},
>>>
>>> When we try to reach google satellite Baselayer from Chrome (Developer
>>> tools) we receive the following message (attachment google_satellite.JPG):
>>> Google Maps JavaScript API warning: NoApiKeys
>>> https://developers.google.com/maps/documentation/javascript/error-messages
>>>
>>>
>>>
>>> If you can give us any help or idea how to resolve this problem we would
>>> be very thankful.
>>>
>>>
>>>
>>> Best regards,
>>>
>>>
>>>
>>> *Ana Boljević*
>>>
>>> Direkcija za razvoj, pristup mreži i ICT
>>>
>>> Sektor za ICT
>>>
>>> Služba za GIS i tehničku bazu podataka
>>>
>>> *DOO „Crnogorski elektrodistributivni sistem“ Podgorica*
>>>
>>> Ivana Milutinovića br.12, Podgorica
>>>
>>> Tel: +382 20 408 473
>>>
>>> *www.cedis.me <http://www.cedis.me/>*
>>>
>>> Please do not print this e-mail unless you really need to
>>>
>>>
>>>
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>
>>>
>>>
>>>
>>> --
>>>
>>> Paolo Corti
>>> Geospatial software developer
>>> web: http://www.paolocorti.net
>>> twitter: @capooti
>>> skype: capooti
>>>
>>
>>
>> --
>> Paolo Corti
>> Geospatial software developer
>> web: http://www.paolocorti.net
>> twitter: @capooti
>> skype: capooti
>>
>
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
>


-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181008/0eb8b648/attachment-0001.html>


More information about the geonode-users mailing list