Thank you for the example. This seems to work too, but I need to find a way to send different variables (latitude and longitude) for each map. The page will ultimately be generated from info stored in a database, with the map code generated with a PHP loop.
On Jun 20, 11:39 am, Ralph Ames <[email protected]> wrote: > Try this, I have added two lines to the example > > <html> > <head> > <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> > <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> > <title>Google Maps JavaScript API v3 Example: Dynamic Loading</title> > <script type="text/javascript"> > function handleApiReady() { > var myLatlng = new google.maps.LatLng(-34.397, 150.644); > var myOptions = { > zoom: 8, > center: myLatlng, > mapTypeId: google.maps.MapTypeId.ROADMAP > } > var map1 = new google.maps.Map(document.getElementById("map_canvas1"), > myOptions); > var map2 = new google.maps.Map(document.getElementById("map_canvas2"), > myOptions); > } > </script> > </head> > <body style="margin:0px; padding:0px;"> > <div id="map_canvas1" style="width:400px; height:400px"></div> > <div id="map_canvas2" style="width:400px; height:400px"></div> > <script type="text/javascript" > src="http://maps.google.com/maps/api/js?sensor=false&callback=handleApiReady > "></script> > </body> > </html> > > Ralph > -www.easypagez.com/maps/map_index.htmlwww.easypagez.com/maps/v3_basicmap.html > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
