-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
324 additions
and
17 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
53 changes: 53 additions & 0 deletions
53
samples-src/pages/leaflet/Default/pages-leaflet-bundle-getconfig.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{{#extend "layout-leaflet-sample-bundle-getconfig"}} | ||
|
||
{{#content "head"}} | ||
<title>Sample Leaflet</title> | ||
{{/content}} | ||
|
||
{{#content "style"}} | ||
<style> | ||
div#map { | ||
width: 100%; | ||
height: 500px; | ||
} | ||
</style> | ||
{{/content}} | ||
|
||
{{#content "body"}} | ||
<h2>Ajout de tous les widgets</h2> | ||
<!-- map --> | ||
<div id="map"></div> | ||
{{/content}} | ||
|
||
{{#content "js"}} | ||
// on cache l'image de chargement du Géoportail. | ||
document.getElementById("map").style.backgroundImage = "none"; | ||
|
||
// Création de la map | ||
var layer = L.geoportalLayer.WMTS({ | ||
layer : "ORTHOIMAGERY.ORTHOPHOTOS" | ||
}); | ||
|
||
var map = L.map('map', { | ||
zoom : 2, | ||
center : L.latLng(48, 2) | ||
}); | ||
|
||
layer.addTo(map); | ||
|
||
var iso = L.geoportalControl.Isocurve(); | ||
map.addControl(iso); | ||
var layerSwitcher = L.geoportalControl.LayerSwitcher(); | ||
map.addControl(layerSwitcher); | ||
var mp = L.geoportalControl.MousePosition(); | ||
map.addControl(mp); | ||
var route = L.geoportalControl.Route(); | ||
map.addControl(route); | ||
var reverse = L.geoportalControl.ReverseGeocode(); | ||
map.addControl(reverse); | ||
var search = L.geoportalControl.SearchEngine(); | ||
map.addControl(search); | ||
var measureProfil = L.geoportalControl.ElevationPath(); | ||
map.addControl(measureProfil); | ||
{{/content}} | ||
{{/extend}} |
78 changes: 78 additions & 0 deletions
78
samples-src/pages/openlayers/Default/pages-ol-bundle-getconfig.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{{#extend "ol-sample-bundle-getconfig-layout"}} | ||
|
||
{{#content "head"}} | ||
<title>Sample openlayers - multikeys</title> | ||
{{/content}} | ||
|
||
{{#content "style"}} | ||
<style> | ||
div#map { | ||
width: 100%; | ||
height: 500px; | ||
} | ||
</style> | ||
{{/content}} | ||
|
||
{{#content "body"}} | ||
<h2>Ajout de tous les widgets</h2> | ||
<!-- map --> | ||
<div id="map"> | ||
</div> | ||
{{/content}} | ||
|
||
{{#content "js"}} | ||
// on cache l'image de chargement du Géoportail. | ||
document.getElementById("map").style.backgroundImage = "none"; | ||
|
||
// Création de la map | ||
var map = new ol.Map({ | ||
target : "map", | ||
layers : [ | ||
new ol.layer.GeoportalWMTS({ | ||
layer : "GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2" | ||
}), | ||
new ol.layer.GeoportalWMTS({ | ||
layer : "GEOGRAPHICALGRIDSYSTEMS.ETATMAJOR40" | ||
}), | ||
new ol.layer.GeoportalWMTS({ | ||
layer : "LIMITES_ADMINISTRATIVES_EXPRESS.LATEST" | ||
}) | ||
], | ||
view : new ol.View({ | ||
center : [288074.8449901076, 6247982.515792289], | ||
zoom : 13 | ||
}) | ||
}); | ||
|
||
var drawing = new ol.control.Drawing(); | ||
map.addControl(drawing); | ||
var iso = new ol.control.Isocurve(); | ||
map.addControl(iso); | ||
var layerImport = new ol.control.LayerImport(); | ||
map.addControl(layerImport); | ||
var layerSwitcher = new ol.control.LayerSwitcher(); | ||
map.addControl(layerSwitcher); | ||
var mp = new ol.control.GeoportalMousePosition(); | ||
map.addControl(mp); | ||
var route = new ol.control.Route(); | ||
map.addControl(route); | ||
var reverse = new ol.control.ReverseGeocode({}); | ||
map.addControl(reverse); | ||
var search = new ol.control.SearchEngine({}); | ||
map.addControl(search); | ||
var feature = new ol.control.GetFeatureInfo({}); | ||
map.addControl(feature); | ||
|
||
var measureLength = new ol.control.MeasureLength(); | ||
map.addControl(measureLength); | ||
var measureArea = new ol.control.MeasureArea(); | ||
map.addControl(measureArea); | ||
var measureAzimuth = new ol.control.MeasureAzimuth(); | ||
map.addControl(measureAzimuth); | ||
var measureProfil = new ol.control.ElevationPath(); | ||
map.addControl(measureProfil); | ||
|
||
var attributions = new ol.control.GeoportalAttribution(); | ||
map.addControl(attributions); | ||
{{/content}} | ||
{{/extend}} |
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
45 changes: 45 additions & 0 deletions
45
samples-src/templates/leaflet/layout-leaflet-sample-bundle-getconfig.hbs
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,45 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
{{#extend "partials-common-head"}} | ||
{{/extend}} | ||
{{#extend "partials-leaflet-common-head"}} | ||
{{/extend}} | ||
{{#block "vendor"}} | ||
{{/block}} | ||
|
||
{{#extend "partials-leaflet-bundle-getconfig-head"}} | ||
{{/extend}} | ||
|
||
{{#block "head"}} | ||
{{/block}} | ||
{{#block "style"}} | ||
{{/block}} | ||
|
||
</head> | ||
<body> | ||
<h1>Extension Géoportail pour Leaflet (mode bundle)</h1> | ||
|
||
{{#block "body"}} | ||
{{/block}} | ||
|
||
<script> | ||
var createMap = function () { | ||
{{#block "js"}} | ||
{{/block}} | ||
}; | ||
Gp.Services.getConfig({ | ||
// callbackSuffix : '', | ||
apiKey: "{{ apikey }}", | ||
timeOut: 20000, | ||
onSuccess: createMap, | ||
onFailure: function (e) { | ||
console.error(e); | ||
} | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.