Skip to content

Commit

Permalink
[UPD] examples / https
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Dec 14, 2023
1 parent f0a10b3 commit af5cfec
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 27 deletions.
4 changes: 2 additions & 2 deletions dist/ol-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -30939,13 +30939,13 @@ ol.source.DBPedia = class olsourceDBPedia extends ol.source.Vector {
constructor(opt_options) {
var options = opt_options || {}
/** Default attribution */
if (!options.attributions) options.attributions = [ '&copy; <a href="http://dbpedia.org/"">DBpedia</a> CC-by-SA']
if (!options.attributions) options.attributions = [ '&copy; <a href="https://dbpedia.org/"">DBpedia</a> CC-by-SA']
// Bbox strategy : reload at each move
if (!options.strategy) options.strategy = ol.loadingstrategy.bbox
super(options)
this.setLoader(this._loaderFn)
/** Url for DBPedia SPARQL */
this._url = options.url || 'http://fr.dbpedia.org/sparql'
this._url = options.url || 'https://fr.dbpedia.org/sparql'
/** Max resolution to load features */
this._maxResolution = options.maxResolution || 100
/** Result language */
Expand Down
2 changes: 1 addition & 1 deletion dist/ol-ext.min.js

Large diffs are not rendered by default.

9 changes: 1 addition & 8 deletions examples/layer/map.dbpedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@
<meta name="description" content="DBPedia layer for OL3" />
<meta name="keywords" content="ol3, layer, source, vector, wikipedia, dbpedia" />

<!-- SparQL server only works on http -->
<script>
if (location.protocol == 'https:') {
location.href = window.location.href.replace(/^https:/,"http:");
}
</script>

<!-- jQuery -->
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script>

Expand Down Expand Up @@ -73,7 +66,7 @@
<h1>ol-ext: DBPedia layer</h1>
</a>
<p class="info">
<i>ol.layer.DBPedia</i> is a tile vector layer that use RDF of the <a href="http://fr.dbpedia.org/">french DBpedia project</a>.
<i>ol.layer.DBPedia</i> is a tile vector layer that use RDF of the <a href="https://fr.dbpedia.org/">french DBpedia project</a>.
<br />
Symbolisation use Fontawesome with an <a href="../style/map.style.font.html">ol.style.Font</a>.
</p>
Expand Down
7 changes: 0 additions & 7 deletions examples/layer/map.overpass.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@
<meta name="description" content="DBPedia layer for OL3" />
<meta name="keywords" content="ol3, layer, source, vector, wikipedia, dbpedia" />

<!-- SparQL server only works on http -->
<script>
if (location.protocol == 'https:')
{ location.href = window.location.href.replace(/^https:/,"http:");
}
</script>

<!-- jQuery -->
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script>

Expand Down
7 changes: 0 additions & 7 deletions examples/map/map.dbpedia.photo.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@
<meta name="description" content="DBPedia layer for OL3" />
<meta name="keywords" content="ol3, layer, source, vector, wikipedia, dbpedia" />

<!-- SparQL server only works on http -->
<script>
if (location.protocol == 'https:') {
location.href = window.location.href.replace(/^https:/,"http:");
}
</script>

<!-- jQuery -->
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script>

Expand Down
4 changes: 2 additions & 2 deletions src/source/DBPedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var ol_source_DBPedia = class olsourceDBPedia extends ol_source_Vector {
var options = opt_options || {}

/** Default attribution */
if (!options.attributions) options.attributions = [ '&copy; <a href="http://dbpedia.org/"">DBpedia</a> CC-by-SA']
if (!options.attributions) options.attributions = [ '&copy; <a href="https://dbpedia.org/"">DBpedia</a> CC-by-SA']

// Bbox strategy : reload at each move
if (!options.strategy) options.strategy = ol_loadingstrategy_bbox
Expand All @@ -44,7 +44,7 @@ var ol_source_DBPedia = class olsourceDBPedia extends ol_source_Vector {
this.setLoader(this._loaderFn)

/** Url for DBPedia SPARQL */
this._url = options.url || 'http://fr.dbpedia.org/sparql'
this._url = options.url || 'https://fr.dbpedia.org/sparql'

/** Max resolution to load features */
this._maxResolution = options.maxResolution || 100
Expand Down

0 comments on commit af5cfec

Please sign in to comment.