GeoNode / geonode-mapstore-client

MapStore Client for GeoNode
http://geonode.org/geonode-mapstore-client/master
Other
15 stars 109 forks source link

The google maps background doesn't appear in the geonode 4.0 #1110

Open dvgeo opened 2 years ago

dvgeo commented 2 years ago

Expected Behavior

When I add the google maps api key following the geonode documentation, I can't see the google maps background.

Actual Behavior

The option to choose the google background appeared, but when you click on the option the background is empty.

geonode geonode1 geonode2

Steps to Reproduce the Problem

  1. I edited the settings.py file, adding the lines...

if GOOGLE_API_KEY: BASEMAP = { "type":"google", "title": "Google HYBRID", "name": "HYBRID", "source": "google", "group": "background", "apiKey": GOOGLE_API_KEY, "visibility": False } DEFAULT_MS2_BACKGROUNDS = [BASEMAP,] + DEFAULT_MS2_BACKGROUNDS

  1. I edited the base.html file, adding the line...

    {% block head %} {% if DEBUG_STATIC %}

    1. I edited the .env file, adding the line...

GOOGLE_API_KEY = 'MY_GOOGLEA_PI_KEY'

Specifications

t-book commented 2 years ago

This smells like a mapstore client issue. I'm moving it there.