go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Step 4) Display the map with the initial location
 
Subject: Step 4) Display the map with the initial location
Author: WebSpider
In response to: Step 3) Specify the location where the map resides
Posted on: 06/19/2009 09:37:52 PM


   <script type="text/javascript">
      var map = new GMap2(document.getElementById("map"));
      map.setCenter(new GLatLng(37.4419, -122.1419),8);
   </script>





 

> On 06/19/2009 09:34:32 PM WebSpider wrote:

At anywhere within <body></body>, type in:


    <div id="map" style="width: 550px; height: 450px"></div>





References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.