[Commits] r2090 - sandbox/cmoullet/publicapi

commits at geoext.org commits at geoext.org
Mon Apr 19 16:23:42 CEST 2010


Author: cmoullet
Date: 2010-04-19 16:23:42 +0200 (Mon, 19 Apr 2010)
New Revision: 2090

Added:
   sandbox/cmoullet/publicapi/map_map24.html
Log:
Add map24


Added: sandbox/cmoullet/publicapi/map_map24.html
===================================================================
--- sandbox/cmoullet/publicapi/map_map24.html	                        (rev 0)
+++ sandbox/cmoullet/publicapi/map_map24.html	2010-04-19 14:23:42 UTC (rev 2090)
@@ -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>
+<head>
+    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
+    <title>Hello World</title>
+    <script type="text/javascript" language="javascript"
+            src="http://api.maptp.map24.com/ajax?appkey=FJX8bd693e2c0784ae3a9e86908121c7X50">
+    </script>
+    <script type="text/javascript" language="javascript">
+
+        function goMap24() {
+            //Load core and wrapper classes and specify a callback method. This method is called when the API is loaded and the map
+            //can be shown.
+            Map24.loadApi(["core_api", "wrapper_api"], map24ApiLoaded);
+        }
+
+        //Callback function called when the API is loaded. The map can now be shown.
+        function map24ApiLoaded() {
+            //Initialize mapping client and show map.
+            Map24.MapApplication.init({ NodeName: "maparea" });
+            Map24.MapApplication.center( { Coordinate: new Map24.Coordinate( 48.8402, 2.5838 ), MinimumWidth: 460 } );
+        }
+    </script>
+</head>
+
+<body onload="goMap24()">
+<div id="maparea" style="width:700px;height:500px;background-color:#E0E0E0;"></div>
+</body>
+</html>
\ No newline at end of file



More information about the Commits mailing list