/Prototipo/Servlet/web/ValidadorMapa.html

http://prototipomemoria.googlecode.com/ · HTML · 74 lines · 69 code · 5 blank · 0 comment · 0 complexity · 978513e3f0abd0abea25deac5b547141 MD5 · raw file

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
  5. <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
  6. <title>Validador de la Memoria de Franklin</title>
  7. <link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css" />
  8. <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
  9. <script type="text/javascript">
  10. /**
  11. * Estos son los datos (o los puntos) que se muestran
  12. */
  13. var datosMarkers = [
  14. ['1', -34.9076176308619, -56.2108833928569],
  15. ['2', -34.9091463582541, -56.189797961465],
  16. ['3', -34.902072480964, -56.1898905897867],
  17. ['4', -34.893391896412, -56.1770443790436],
  18. ['5', -34.9067022818552, -56.1698559416807],
  19. ['6', -34.8864939736956, -56.1915795849116],
  20. ['7', -34.8643752477568, -56.2088400966317],
  21. ['8', -34.842474885017, -56.2084413941446],
  22. ['9', -34.8938919563232, -56.1531962174975],
  23. ['10', -34.9070689417253, -56.1501383436793],
  24. ['11', -34.893772052941, -56.1115126950238],
  25. ['12', -34.8546372906647, -56.1968320542949],
  26. ['13', -34.8695923112669, -56.1714750015559],
  27. ['14', -34.8831542264783, -56.0898580643667],
  28. ['15', -34.8755829847927, -56.1412284298246],
  29. ['16', -34.8507433854871, -56.1437734149929],
  30. ['17', -34.7951566970967, -56.1640550543778],
  31. ['18', -34.8000649110918, -56.0857163432116],
  32. ['19', -34.8577594292786, -56.2256302197846],
  33. ['20', -34.7895328089479, -56.3532982105572],
  34. ['21', -34.8046584018717, -56.2212584236229],
  35. ['22', -34.7990295904935, -56.2566066336919],
  36. ['23', -34.8242821804401, -56.2972010426787],
  37. ['24', -34.8872343041937, -56.2528570388232],
  38. ['25', -34.8646690651676, -56.1540180865859],
  39. ['26', -34.8255182178453, -56.2036160641542],
  40. ['27', -34.9074891094488, -56.1796730488755],
  41. ['28', -34.9069929392124, -56.19185882366]
  42. ];
  43. function inicializar() {
  44. var opciones = {
  45. zoom: 10,
  46. center: new google.maps.LatLng(-34.911427, -56.159062),
  47. mapTypeId: google.maps.MapTypeId.ROADMAP
  48. }
  49. var map = new google.maps.Map(document.getElementById("map_canvas"), opciones);
  50. cargarMarkers(map, datosMarkers);
  51. }
  52. function cargarMarkers(map, ubicaciones) {
  53. for (var i = 0; i < ubicaciones.length; i++) {
  54. var dato = ubicaciones[i];
  55. var ubicacion = new google.maps.LatLng(dato[1], dato[2]);
  56. var marker = new google.maps.Marker({
  57. position: ubicacion,
  58. map: map,
  59. icon: 'http://maps.google.com/mapfiles/kml/pal2/icon8.png',
  60. title: dato[0]
  61. });
  62. }
  63. }
  64. </script>
  65. </head>
  66. <body onload="inicializar()">
  67. <div id="map_canvas"></div>
  68. </body>
  69. </html>