-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2809 from Geoportail-Luxembourg/GSLUX-434
Update OpenLayers in API
- Loading branch information
Showing
86 changed files
with
4,596 additions
and
11,274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
geoportal/geoportailv3_geoportal/templates/api/apiv3loader.js
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...geoportal/templates/api/apiv3example.html → ...geoportal/templates/api/apiv4example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
geoportal/geoportailv3_geoportal/templates/api/apiv4loader.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## -*- coding: utf-8 -*- | ||
<% | ||
settings = request.registry.settings | ||
proxy_wms_url = settings.get('proxy_wms_url') | ||
hasSC = ('sc' in request.params) | ||
%>\ | ||
|
||
(function() { | ||
function writeScript(src) { | ||
document.write('<script src="' + src + '"></script>'); | ||
} | ||
|
||
document.write('<link rel="stylesheet" type="text/css" href="' | ||
+ "${request.static_url('geoportailv3_geoportal:static-ngeo/build/apiv4.css')}" + '" />'); | ||
writeScript("${request.static_url('geoportailv3_geoportal:static-ngeo/build/apiv4.js')}"); | ||
|
||
document.write('<script type="text/javascript">' | ||
+ "lux.setBaseUrl('${request.route_url('base')}', '${request.scheme}');" + '</script>'); | ||
document.write('<script type="text/javascript">' | ||
+ "lux.setI18nUrl('${request.static_url('geoportailv3_geoportal:static-ngeo/build/fr.json')}');" + '</script>'); | ||
% if hasSC: | ||
document.write('<script type="text/javascript">' | ||
+ "lux.setWmtsCrossOrigin(null);" + '</script>'); | ||
% endif | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.