[Commits] r2095 - sandbox/cmoullet/publicapi
commits at geoext.org
commits at geoext.org
Mon Apr 19 17:08:08 CEST 2010
Author: cmoullet
Date: 2010-04-19 17:08:08 +0200 (Mon, 19 Apr 2010)
New Revision: 2095
Added:
sandbox/cmoullet/publicapi/map_ign.html
Log:
Add IGN Example
Added: sandbox/cmoullet/publicapi/map_ign.html
===================================================================
--- sandbox/cmoullet/publicapi/map_ign.html (rev 0)
+++ sandbox/cmoullet/publicapi/map_ign.html 2010-04-19 15:08:08 UTC (rev 2095)
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>IGN</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <script
+ type="text/javascript"
+ src="http://api.ign.fr/geoportail/api?v=1.0&key=9068624171319277469&instance=VISU">
+ <!-- -->
+ </script>
+
+ <script type="text/javascript">
+ function initGeoportalMap() {
+ // Par défaut on se positionne sur la France métropolitaine :
+ // Default to France main land :
+ geoportalLoadVISU("GeoportalVisuDiv");
+
+ // Avec un code territoire (ici la Guadeloupe), on peut choisir son point de vue
+ // Snapshot with a territory code (here Guadeloupe island)
+ // geoportalLoadVISU("GeoportalVisuDiv", "normal", "GLP");
+
+ if (VISU) {
+ VISU.addGeoportalLayers();
+ }
+
+ //VISU.getMap().setCenter(VISU.viewerOptions.defaultCenter, VISU.viewerOptions.defaultZoom);
+ VISU.getMap().setCenterAtLonLat(2.5838,48.8402,15);
+ }
+ </script>
+ <style type="text/css">
+ div#GeoportalVisuDiv {
+ width: 800px;
+ height: 600px;
+ }
+ </style>
+</head>
+<body>
+<div id="GeoportalVisuDiv"></div>
+</body>
+</html>
+
More information about the Commits
mailing list