[GeoNode-users] Adding Google Maps as default background in Mapstore - Geonode 2.10 (docker version)
Alessio Fabiani
alessio.fabiani at geo-solutions.it
Wed Jul 8 06:33:02 PDT 2020
Hello Chiara,
I guess the gxp_googlesource is not working anymore on MapStore2.
You should probably write something similar to this
{
"type": "google",
"title": "Google HYBRID",
"name": "SATELLITE",
"source": "google",
"group": "background",
"apiKey": "{{apiKey}}",
"visibility": True
},
Nevertheless, if I remember correctly, MapStore2 dropped google support due
to their legal policies.
Could you maybe try asking on MapStore2 mailing list directly?
Generally speaking, whenever the preview thumbnail is not clickable that
means that for some reason the configuration is wrong or cannot be applied
because something is missing.
Il giorno mer 8 lug 2020 alle ore 12:58 Chiara Sammarco <
chiara.sammarco at geodatalab.it> ha scritto:
> Hi all,
>
> I'm trying to add google maps to the default background. I'm currently
> using Geonode 2.10 (dockerized version).
> By adding at the end of DEFAULT_MS2_BACKGROUNDS in settings.py the
> following lines
>
> {
> "source": "google",
> "group": "background",
> "title": "Google HYBRID",
> "name": "HYBRID",
> "thumbURL": "%sstatic/mapstorestyle/img/google-icon-preview.png" % SITEURL,
> "visibility": False
> }
>
> I can see the icon for the google background in Mapstore, but it's not
> clickable, and still, I cannot see the preview thumbnail.
>
> I've also added GOOGLE_API_KEY in my env file and then fixed the BASEMAP
> ptype with "gxp_googlesource" in this way:
>
> if GOOGLE_API_KEY:
> BASEMAP = {
> 'source': {
> 'ptype': 'gxp_googlesource',
> 'apiKey': GOOGLE_API_KEY
> },
> 'name': 'SATELLITE',
> 'fixed': True,
> 'visibility': False,
> 'group': 'background'
> }
> MAP_BASELAYERS.append(BASEMAP)
>
> Am I on the right way? What can be missing? Should I have to be in
> production for testing this?
> Why is the "Google HYBRID" square not clickable?
>
>
> Thanks in advance for your help,
>
> Chiara Sammarco
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon> Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link>
> <#m_5190481197454899136_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
--
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==
Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A - 55054 Massarosa (LU) - Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 331 6233686
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20200708/972775bd/attachment-0001.html>
More information about the geonode-users
mailing list