[Commits] r2088 - sandbox/cmoullet/publicapi

commits at geoext.org commits at geoext.org
Mon Apr 19 15:50:46 CEST 2010


Author: cmoullet
Date: 2010-04-19 15:50:45 +0200 (Mon, 19 Apr 2010)
New Revision: 2088

Added:
   sandbox/cmoullet/publicapi/index.html
   sandbox/cmoullet/publicapi/map_google.html
   sandbox/cmoullet/publicapi/map_yahoo.html
Log:
Add first examples


Added: sandbox/cmoullet/publicapi/index.html
===================================================================
--- sandbox/cmoullet/publicapi/index.html	                        (rev 0)
+++ sandbox/cmoullet/publicapi/index.html	2010-04-19 13:50:45 UTC (rev 2088)
@@ -0,0 +1,30 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" >
+<head>
+  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+  <meta name="description" content="Camptocamp SA" />
+  <title>API Grand Publics</title>
+
+</head>
+
+<body>
+
+<div id="logo"><a href="/"><img src="http://www.camptocamp.com/templates/camptocamp/images/logo-camptocamp.png" alt="logo camptocamp"/></a></div>
+
+<h1> Les API's Grands Publics</h1>
+
+Exemples préparés pour la rencontre SIG la Lettre 2010
+
+
+<h2>Affichage d'une carte</h2>
+
+<li><a href="map_google.html">Google Maps</a></li>
+<li><a href="map_yahoo.html">Yahoo Maps</a></li>
+<li><a href="map_bing.html">Bing Maps</a></li>
+<li><a href="map_map24.html">Map24</a></li>
+<li><a href="map_ign.html">IGN</a></li>
+
+
+</body>
+
+</html>

Added: sandbox/cmoullet/publicapi/map_google.html
===================================================================
--- sandbox/cmoullet/publicapi/map_google.html	                        (rev 0)
+++ sandbox/cmoullet/publicapi/map_google.html	2010-04-19 13:50:45 UTC (rev 2088)
@@ -0,0 +1,22 @@
+<html>
+<head>
+    <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
+    <script type="text/javascript"
+            src="http://maps.google.com/maps/api/js?sensor=false&key=ABQIAAAAY-I0w1WyNCVHbxpuwQWMpRTv_-xvSZ6KJmWSkQfCJoxbiB7tyBQ1ey_kgwA_p7sbTQSTOBeMyXtXkA"></script>
+    <script type="text/javascript">
+        function initialize() {
+            var latlng = new google.maps.LatLng(48.8402, 2.5838);
+            var myOptions = {
+                zoom: 17,
+                center: latlng,
+                mapTypeId: google.maps.MapTypeId.ROADMAP
+            };
+            var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
+        }
+
+    </script>
+</head>
+<body onload="initialize()">
+<div id="map_canvas" style="width:100%; height:100%"></div>
+</body>
+</html>
\ No newline at end of file

Added: sandbox/cmoullet/publicapi/map_yahoo.html
===================================================================
--- sandbox/cmoullet/publicapi/map_yahoo.html	                        (rev 0)
+++ sandbox/cmoullet/publicapi/map_yahoo.html	2010-04-19 13:50:45 UTC (rev 2088)
@@ -0,0 +1,30 @@
+<html>
+<head>
+    <script type="text/javascript"
+            src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=7hkG5l3V34FMXizccH3TD3aYPurAC1U_irE.81LMyWruKFx2WpHgFN6tshTBrP0HN2GEq1k-"></script>
+    <style type="text/css">
+        #map {
+            height: 100%;
+            width: 100%;
+        }
+    </style>
+</head>
+<body>
+<div id="map"></div>
+
+<script type="text/javascript">
+    // Create a map object
+    var map = new YMap(document.getElementById('map'));
+
+    // Add map type control
+    map.addTypeControl();
+
+    // Set map type to either of: YAHOO_MAP_SAT, YAHOO_MAP_HYB, YAHOO_MAP_REG
+    map.setMapType(YAHOO_MAP_REG);
+
+    var center = new YGeoPoint(48.8402, 2.5838);
+    // Display the map centered on a geocoded location
+    map.drawZoomAndCenter(center, 1);
+</script>
+</body>
+</html>
\ No newline at end of file



More information about the Commits mailing list