Skip to content

Commit

Permalink
Use recommended osm tile url for server API - Features and landingpage (
Browse files Browse the repository at this point in the history
#42697)

* Use recommended osm tile url
  • Loading branch information
pathmapper committed Apr 8, 2021
1 parent 84e6bae commit ca0a8ae
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Expand Up @@ -44,7 +44,7 @@ <h3>Links</h3>
<script type="text/javascript">
jQuery( document ).ready(function( $ ) {
var map = L.map('mapid').setView([0, 0], 13);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map)
var west = {{ extent.spatial.bbox.0.0 }};
Expand Down
2 changes: 1 addition & 1 deletion resources/server/api/ogc/templates/wfs3/leaflet_map.html
Expand Up @@ -5,7 +5,7 @@
<script type="text/javascript">
jQuery( document ).ready(function( $ ) {
var map = L.map('mapid').setView([0, 0], 13);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map)
$.get( "{{ metadata.geojsonUrl }}", function( data ) {
Expand Down
2 changes: 1 addition & 1 deletion resources/server/src/landingpage/src/views/Catalog.vue
Expand Up @@ -63,7 +63,7 @@
@ready="loadMap(project, $event)"
>
<l-tile-layer
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
url="https://tile.openstreetmap.org/{z}/{x}/{y}.png"
v-if="
project.capabilities.wmsOutputCrsList.includes('EPSG:3857')
"
Expand Down
2 changes: 1 addition & 1 deletion resources/server/src/landingpage/src/views/WebGis.vue
Expand Up @@ -45,7 +45,7 @@
>
<l-tile-layer
:visible="baseMap == 'openstreetmap'"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
url="https://tile.openstreetmap.org/{z}/{x}/{y}.png"
v-if="
project &&
project.capabilities.wmsOutputCrsList.includes('EPSG:3857')
Expand Down
Expand Up @@ -131,7 +131,7 @@ <h3>Links</h3>
<script type="text/javascript">
jQuery( document ).ready(function( $ ) {
var map = L.map('mapid').setView([0, 0], 13);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map)
var west = 8.203459307036344;
Expand Down
Expand Up @@ -126,7 +126,7 @@ <h2><a href="http://server.qgis.org/wfs3/collections/testlayer èé/items/2.html
<script type="text/javascript">
jQuery( document ).ready(function( $ ) {
var map = L.map('mapid').setView([0, 0], 13);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map)
$.get( "http://server.qgis.org/wfs3/collections/testlayer%20%C3%A8%C3%A9/items.geojson", function( data ) {
Expand Down

0 comments on commit ca0a8ae

Please sign in to comment.