The API is up to v 2 and does not like, map.setMapType (G_SATELLITE_TYPE);
On Dec 24, 10:18 am, infostaclara <[email protected]> wrote: > I am installing the Google Maps API on my site, is to look at some > tutorials net. The most interesting was the link: > > http://www.criarweb.com/artigos/basico-para-desenvolver-google-maps-i... > > this is the code: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 > Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas- > microsoft-com:vml"> > <head> > <meta http-equiv="content-type" content="text/html; > charset=UTF-8"/> > > <title>Introdu o a Google Maps - Criarweb</title> > > <script src="http://maps.google.com/maps?file=api&v=1&key= > ADICIONE_SUA_SENHA_AQUI" type="text/javascript"></script> > </head> > > <body> > <div id="map" style="width: 400px; height: 300px"></div> > <script type="text/javascript"> > > var map = new GMap(document.getElementById("map")); > map.setMapType(G_SATELLITE_TYPE); > map.addControl(new GLargeMapControl()); > map.addControl(new GMapTypeControl()); > > //Puerta de Alcal > var point = new GPoint (-3.688788414001465, 40.41996541363825); > var marker = new GMarker(point); > map.addOverlay(marker); > //Plaza de Neptuno > var point = new GPoint (-3.6941099166870117, 40.4154238545226); > var marker = new GMarker(point); > map.addOverlay(marker); > //Plaza de Cibeles > var point = new GPoint (-3.693079948425293, 40.41940998761056); > var marker = new GMarker(point); > map.addOverlay(marker); > map.centerAndZoom(point, 3); > > </script> > > </body> > </html> > > following all the details of the author, the map does not appear. > > Someone with more experience could indicate whether there is any flaw > in the script? the author said is correct ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
