-
Notifications
You must be signed in to change notification settings - Fork 14
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 #25 from IGNF/feature-autoPan
Adaptation SDK à la version 1.0 de l'extension pour OpenLayers
- Loading branch information
Showing
26 changed files
with
242 additions
and
105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<link rel="stylesheet" href="../../dist/ol3/GpOl3-src.css" type="text/css"> | ||
<style> | ||
body { | ||
width : 100% !important; | ||
} | ||
#geoportalMap { | ||
height: 500px; | ||
width: 100%; | ||
} | ||
</style> | ||
<script src="../../dist/ol3/GpOl3-src.js"></script> | ||
</head> | ||
<body> | ||
<h1>Get Feature Info</h1> | ||
<p>Exemple de mise en oeuvre du widget getFeatureInfo avec une couche WMS (école) et WMTS (photos).</p> | ||
<p>Ici l'évènement par défault est le simple click.</p> | ||
<div id="geoportalMap"></div> | ||
<script type="text/javascript"> | ||
|
||
var map = Gp.Map.load('geoportalMap',{ | ||
apiKey : "jhyvi0fgmnuxvfv0zjzorvdn", | ||
// proxyUrl : "http://localhost/proxy/php/proxy.php?url=", | ||
// noProxyDomains : ["wxs.ign.fr"/*,"gpp3-wxs-v-ign-fr.aw.atosorigin.com"*/], | ||
center : { | ||
x : 22700, | ||
y : 6395900 | ||
}, | ||
zoom : 15, | ||
controlsOptions : { | ||
"layerSwitcher" : {}, | ||
"mousePosition" : {}, | ||
"getfeatureinfo" : { | ||
options : { | ||
active : true, | ||
hidden: false, | ||
defaultEvent : "singleclick", | ||
cursorStyle : "pointer" | ||
}, | ||
layers : { | ||
'ecoles' : {}, | ||
'ORTHOIMAGERY.ORTHOPHOTOS' : {} | ||
} | ||
} | ||
}, | ||
layersOptions : { | ||
'ORTHOIMAGERY.ORTHOPHOTOS' : { | ||
queryable : true | ||
}, | ||
'ecoles' : { | ||
minZoom : 14, | ||
maxZoom : 21, | ||
format : "wms", | ||
title : "Ecoles maternelles et élémentaires", | ||
description : "L'école maternelle peut accueillir les enfants avant l'instruction obligatoire qui débute à 6 ans. L'école élémentaire accueille les enfants scolarisés de 6 à 11 ans. Elle est mixte et gratuite si elle est publique. <a href='http://www.education.gouv.fr/pid24/les-niveaux-et-les-etablissements-d-enseignement.html'>En savoir plus.</a>. Source des données : MENESR février 2014, BD TOPO 2016", | ||
url : "http://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/v/wms", | ||
layers : ["UTILITYANDGOVERNMENTALSERVICES.IGN.POI.ENSEIGNEMENTPRIMAIRE"], | ||
outputFormat : "image/png", | ||
queryable : true, | ||
gfiFormat : "text/html", | ||
originators: [{ | ||
"name":"IGN", | ||
"attribution":"Institut national de l'information géographique et forestière", | ||
"url":"http://www.ign.fr", | ||
} | ||
] | ||
} | ||
} | ||
}); | ||
|
||
</script> | ||
</body> | ||
</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
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
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
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
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.