Skip to content

Commit

Permalink
Merge pull request #42722 from pathmapper/backport-42697-to-release-3_16
Browse files Browse the repository at this point in the history
[Backport release-3_16] Use recommended osm tile url for server API - Features and landingpage
  • Loading branch information
elpaso committed Apr 8, 2021
2 parents c1b0036 + 97faffe commit 0dd9b67
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"> <script type="text/javascript">
jQuery( document ).ready(function( $ ) { jQuery( document ).ready(function( $ ) {
var map = L.map('mapid').setView([0, 0], 13); 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' attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map) }).addTo(map)
var west = {{ extent.spatial.bbox.0.0 }}; 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"> <script type="text/javascript">
jQuery( document ).ready(function( $ ) { jQuery( document ).ready(function( $ ) {
var map = L.map('mapid').setView([0, 0], 13); 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' attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map) }).addTo(map)
$.get( "{{ metadata.geojsonUrl }}", function( data ) { $.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)" @ready="loadMap(project, $event)"
> >
<l-tile-layer <l-tile-layer
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" url="https://tile.openstreetmap.org/{z}/{x}/{y}.png"
v-if=" v-if="
project.capabilities.wmsOutputCrsList.includes('EPSG:3857') 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 <l-tile-layer
:visible="baseMap == 'openstreetmap'" :visible="baseMap == 'openstreetmap'"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" url="https://tile.openstreetmap.org/{z}/{x}/{y}.png"
v-if=" v-if="
project && project &&
project.capabilities.wmsOutputCrsList.includes('EPSG:3857') project.capabilities.wmsOutputCrsList.includes('EPSG:3857')
Expand Down
Expand Up @@ -131,7 +131,7 @@ <h3>Links</h3>
<script type="text/javascript"> <script type="text/javascript">
jQuery( document ).ready(function( $ ) { jQuery( document ).ready(function( $ ) {
var map = L.map('mapid').setView([0, 0], 13); 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' attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map) }).addTo(map)
var west = 8.203459307036344; 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"> <script type="text/javascript">
jQuery( document ).ready(function( $ ) { jQuery( document ).ready(function( $ ) {
var map = L.map('mapid').setView([0, 0], 13); 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' attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map) }).addTo(map)
$.get( "http://server.qgis.org/wfs3/collections/testlayer%20%C3%A8%C3%A9/items.geojson", function( data ) { $.get( "http://server.qgis.org/wfs3/collections/testlayer%20%C3%A8%C3%A9/items.geojson", function( data ) {
Expand Down

0 comments on commit 0dd9b67

Please sign in to comment.