[Commits] r2089 - sandbox/cmoullet/publicapi
commits at geoext.org
commits at geoext.org
Mon Apr 19 16:08:33 CEST 2010
Author: cmoullet
Date: 2010-04-19 16:08:33 +0200 (Mon, 19 Apr 2010)
New Revision: 2089
Added:
sandbox/cmoullet/publicapi/map_bing.html
Modified:
sandbox/cmoullet/publicapi/map_google.html
sandbox/cmoullet/publicapi/map_yahoo.html
Log:
Add Bing
Added: sandbox/cmoullet/publicapi/map_bing.html
===================================================================
--- sandbox/cmoullet/publicapi/map_bing.html (rev 0)
+++ sandbox/cmoullet/publicapi/map_bing.html 2010-04-19 14:08:33 UTC (rev 2089)
@@ -0,0 +1,46 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <title>Bing Map</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+
+ <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"></script>
+
+ <script type="text/javascript">
+ var map = null;
+ var latLong = null;
+
+ function GetMap()
+ {
+ map = new VEMap('myMap');
+
+ map.AttachEvent("oncredentialserror", MyHandleCredentialsError);
+ map.AttachEvent("oncredentialsvalid", MyHandleCredentialsValid);
+
+ map.SetCredentials("Aq5iKX74RozeorqtIW44_gdknjehuo-f8HHsKsg0U-xVSq-9PPBMc75zqD3-fpKy");
+
+ map.LoadMap();
+
+ latLong = new VELatLong(48.8402, 2.5838);
+ map.SetCenterAndZoom(latLong, 17);
+ }
+
+
+ function MyHandleCredentialsError()
+ {
+ alert("The credentials are invalid.");
+ }
+
+ function MyHandleCredentialsValid()
+ {
+
+ }
+
+
+ </script>
+</head>
+<body onload="GetMap();">
+<div id='myMap' style="position:relative; width:100%; height:800px;"></div>
+</body>
+</html>
Modified: sandbox/cmoullet/publicapi/map_google.html
===================================================================
--- sandbox/cmoullet/publicapi/map_google.html 2010-04-19 13:50:45 UTC (rev 2088)
+++ sandbox/cmoullet/publicapi/map_google.html 2010-04-19 14:08:33 UTC (rev 2089)
@@ -1,5 +1,6 @@
<html>
<head>
+ <title>Google Map</title>
<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>
Modified: sandbox/cmoullet/publicapi/map_yahoo.html
===================================================================
--- sandbox/cmoullet/publicapi/map_yahoo.html 2010-04-19 13:50:45 UTC (rev 2088)
+++ sandbox/cmoullet/publicapi/map_yahoo.html 2010-04-19 14:08:33 UTC (rev 2089)
@@ -1,5 +1,6 @@
<html>
<head>
+ <title>Yahho Map</title>
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=7hkG5l3V34FMXizccH3TD3aYPurAC1U_irE.81LMyWruKFx2WpHgFN6tshTBrP0HN2GEq1k-"></script>
<style type="text/css">
@@ -19,6 +20,12 @@
// Add map type control
map.addTypeControl();
+ // Add map zoom (long) control
+ map.addZoomLong();
+
+ // Add the Pan Control
+ map.addPanControl();
+
// Set map type to either of: YAHOO_MAP_SAT, YAHOO_MAP_HYB, YAHOO_MAP_REG
map.setMapType(YAHOO_MAP_REG);
More information about the Commits
mailing list