Skip to content

Commit fcc1bf9

Browse files
[Fixes #13222] Removed deprecated support for Bing Maps (#13690)
* Removed deprecated support for Bing Maps * Add dump logs on failure --------- Co-authored-by: Mattia <[email protected]>
1 parent 6ed4658 commit fcc1bf9

File tree

10 files changed

+5
-73
lines changed

10 files changed

+5
-73
lines changed

.devcontainer/.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ API_LIMIT_PER_PAGE=1000
178178
# GIS Client
179179
GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY=mapstore
180180
MAPBOX_ACCESS_TOKEN=
181-
BING_API_KEY=
182181
GOOGLE_API_KEY=
183182

184183
# Monitoring

.env.sample

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ API_LIMIT_PER_PAGE=1000
190190
# GIS Client
191191
GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY=mapstore
192192
MAPBOX_ACCESS_TOKEN=
193-
BING_API_KEY=
194193
GOOGLE_API_KEY=
195194

196195

.env_dev

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ API_LIMIT_PER_PAGE=1000
189189
# GIS Client
190190
GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY=mapstore
191191
MAPBOX_ACCESS_TOKEN=
192-
BING_API_KEY=
193192
GOOGLE_API_KEY=
194193

195194
# Other Options/Contribs

.env_local

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ API_LIMIT_PER_PAGE=1000
192192
# GIS Client
193193
GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY=mapstore
194194
MAPBOX_ACCESS_TOKEN=
195-
BING_API_KEY=
196195
GOOGLE_API_KEY=
197196

198197
# Other Options/Contribs

.env_test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ API_LIMIT_PER_PAGE=1000
201201
# GIS Client
202202
GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY=mapstore
203203
MAPBOX_ACCESS_TOKEN=
204-
BING_API_KEY=
205204
GOOGLE_API_KEY=
206205

207206
# Other Options/Contribs

.github/workflows/run-test-suite.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
${{ inputs.test_command }}
4747
BASH
4848
49+
- name: Dump docker logs on failure
50+
if: failure()
51+
uses: jwalton/gh-docker-logs@v2
52+
4953
- name: Codecov
5054
run: |
5155
docker compose --env-file .env_test -f docker-compose-test.yml exec django bash -c "bash <(curl -s https://codecov.io/bash) -t 2c0e7780-1640-45f0-93a3-e103b057d8c8"

geonode/client/templatetags/client_lib_tags.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ def mapbox_access_token():
2929
return getattr(settings, "MAPBOX_ACCESS_TOKEN", None)
3030

3131

32-
@register.simple_tag
33-
def bing_api_key():
34-
return getattr(settings, "BING_API_KEY", None)
35-
36-
3732
@register.simple_tag
3833
def google_api_key():
3934
return getattr(settings, "GOOGLE_API_KEY", None)

geonode/local_settings.py.geoserver.sample

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ DEFAULT_MAP_CENTER = (os.environ.get("DEFAULT_MAP_CENTER_X", 0), os.environ.get(
259259
DEFAULT_MAP_ZOOM = int(os.environ.get("DEFAULT_MAP_ZOOM", 3))
260260

261261
MAPBOX_ACCESS_TOKEN = os.environ.get("MAPBOX_ACCESS_TOKEN", None)
262-
BING_API_KEY = os.environ.get("BING_API_KEY", None)
263262
GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY", None)
264263

265264
GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY = os.getenv("GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY", "mapstore")
@@ -393,52 +392,6 @@ if GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY == "mapstore":
393392
MAPBOX_BASEMAPS,
394393
] + DEFAULT_MS2_BACKGROUNDS
395394

396-
if BING_API_KEY:
397-
BING_BASEMAPS = [
398-
{
399-
"type": "bing",
400-
"title": "Bing Aerial",
401-
"name": "AerialWithLabels",
402-
"source": "bing",
403-
"group": "background",
404-
"apiKey": "{{apiKey}}",
405-
"visibility": True,
406-
},
407-
{
408-
"type": "bing",
409-
"title": "Bing RoadOnDemand",
410-
"name": "RoadOnDemand",
411-
"source": "bing",
412-
"group": "background",
413-
"apiKey": "{{apiKey}}",
414-
"thumbURL": "%sstatic/mapstorestyle/img/bing_road_on_demand.png" % SITEURL,
415-
"visibility": False,
416-
},
417-
{
418-
"type": "bing",
419-
"title": "Bing AerialWithLabelsOnDemand",
420-
"name": "AerialWithLabelsOnDemand",
421-
"source": "bing",
422-
"group": "background",
423-
"apiKey": "{{apiKey}}",
424-
"thumbURL": "%sstatic/mapstorestyle/img/bing_aerial_w_labels.png" % SITEURL,
425-
"visibility": False,
426-
},
427-
{
428-
"type": "bing",
429-
"title": "Bing CanvasDark",
430-
"name": "CanvasDark",
431-
"source": "bing",
432-
"group": "background",
433-
"apiKey": "{{apiKey}}",
434-
"thumbURL": "%sstatic/mapstorestyle/img/bing_canvas_dark.png" % SITEURL,
435-
"visibility": False,
436-
},
437-
]
438-
DEFAULT_MS2_BACKGROUNDS = [
439-
BING_BASEMAPS,
440-
] + DEFAULT_MS2_BACKGROUNDS
441-
442395
MAPSTORE_BASELAYERS = DEFAULT_MS2_BACKGROUNDS
443396
# MAPSTORE_BASELAYERS_SOURCES allow to configure tilematrix sets for wmts layers
444397
MAPSTORE_BASELAYERS_SOURCES = os.environ.get("MAPSTORE_BASELAYERS_SOURCES", {})

geonode/settings.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,6 @@
14531453
DEFAULT_MAP_ZOOM = int(os.environ.get("DEFAULT_MAP_ZOOM", 0))
14541454

14551455
MAPBOX_ACCESS_TOKEN = os.environ.get("MAPBOX_ACCESS_TOKEN", None)
1456-
BING_API_KEY = os.environ.get("BING_API_KEY", None)
14571456
GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY", None)
14581457

14591458
GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY = os.getenv("GEONODE_CLIENT_LAYER_PREVIEW_LIBRARY", "mapstore")
@@ -1544,20 +1543,6 @@ def get_geonode_catalogue_service():
15441543
BASEMAP,
15451544
] + DEFAULT_MS2_BACKGROUNDS
15461545

1547-
if BING_API_KEY:
1548-
BASEMAP = {
1549-
"type": "bing",
1550-
"title": "Bing Aerial",
1551-
"name": "AerialWithLabels",
1552-
"source": "bing",
1553-
"group": "background",
1554-
"apiKey": "{{apiKey}}",
1555-
"visibility": False,
1556-
}
1557-
DEFAULT_MS2_BACKGROUNDS = [
1558-
BASEMAP,
1559-
] + DEFAULT_MS2_BACKGROUNDS
1560-
15611546
MAPSTORE_BASELAYERS = DEFAULT_MS2_BACKGROUNDS
15621547
# MAPSTORE_BASELAYERS_SOURCES allow to configure tilematrix sets for wmts layers
15631548
MAPSTORE_BASELAYERS_SOURCES = os.environ.get("MAPSTORE_BASELAYERS_SOURCES", {})

geonode/templates/developer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h3>What are OGC Services?</h3>
2929
<p>The data in this application is served using open standards endorsed by ISO and the <a href="http://opengeospatial.org/">Open Geospatial Consortium</a>; in particular, WMS (Web Map Service) is used for accessing maps, WFS (Web Feature Service) is used for accessing vector data, and WCS (Web Coverage Service) is used for accessing raster data. WMC (Web Map Context Documents) is used for sharing maps. You can use these services in your own applications using libraries such as OpenLayers, GeoTools, and OGR (all of which are open-source software and available at zero cost). Additionally, CSW (Catalog Service for the Web) supports access to collections of descriptive information (metadata) about data and services.</p>
3030

3131
<h3>What is GeoWebCache?</h3>
32-
<p>GeoWebCache provides mapping tiles that are compatible with a number of mapping engines, including Google Maps, Bing Maps and OpenLayers. All the data hosted by GeoNode is also available through GeoWebCache. GeoWebCache improves on WMS by caching data and providing more responsive maps.</p>
32+
<p>GeoWebCache provides mapping tiles that are compatible with a number of mapping engines, including Google Maps, OpenLayers. All the data hosted by GeoNode is also available through GeoWebCache. GeoWebCache improves on WMS by caching data and providing more responsive maps.</p>
3333

3434
<h3>CSW Example Code</h3>
3535
<p>To interact with GeoNode's CSW you can use any CSW client (QGIS MetaSearch, GRASS, etc.). The following example illustrates a simple invocation using the OWSLib Python package:</p>

0 commit comments

Comments
 (0)