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

Ana Boljevic ana.boljevic at cedis.me
Wed Oct 3 23:52:42 PDT 2018


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
[CEDIS]
DOO „Crnogorski elektrodistributivni sistem“ Podgorica
Ivana Milutinovića br.12, Podgorica
Tel: +382 20 408 473
www.cedis.me<http://www.cedis.me/>
[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<mailto: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<mailto: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181004/62e8de96/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2178 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181004/62e8de96/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1092 bytes
Desc: image002.jpg
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181004/62e8de96/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: paolo.JPG
Type: image/jpeg
Size: 221519 bytes
Desc: paolo.JPG
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181004/62e8de96/attachment-0001.jpe>


More information about the geonode-users mailing list