From b705fe1b10b9de90e55c47d8acc006f4cf00e474 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 15 Jun 2021 15:19:28 +0200 Subject: [PATCH] changed default world map style to OpenStreetMap --- HISTORY.md | 1 + snap.html | 2 +- src/maps.js | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 459d5dc1..279f4b7f 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -22,6 +22,7 @@ * fixed #2850 (occasional invisible error message), thanks, Ken, for the bug report! * extensions: added long-form xhr primitive * extensions: added geolocation extension primitive +* maps: changed default style to OpenStreetMap ### 2021-06-14 * new dev version diff --git a/snap.html b/snap.html index 19cbb729..81433588 100755 --- a/snap.html +++ b/snap.html @@ -18,7 +18,7 @@ - + diff --git a/src/maps.js b/src/maps.js index be9eab70..4781b520 100644 --- a/src/maps.js +++ b/src/maps.js @@ -7,7 +7,7 @@ written by Jens Mönig jens@moenig.org - Copyright (C) 2020 by Jens Mönig + Copyright (C) 2021 by Jens Mönig This file is part of Snap!. @@ -38,7 +38,7 @@ // Global stuff //////////////////////////////////////////////////////// -modules.maps = '2020-March-25'; +modules.maps = '2021-June-15'; // WorldMap ///////////////////////////////////////////////////////////// @@ -147,7 +147,7 @@ function WorldMap(host) { 'CC-BY-SA, Imagery \u00A9 Mapbox' } }; - this.api = this.tileServers[host || 'Wikimedia']; + this.api = this.tileServers[host || 'OpenStreetMap']; this.lon = -122.257852; this.lat = 37.872099; this.zoom = 13;