aboalkhair

gmap

Mar 23rd, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script src="jquery.js"></script>
  4. <script src="https://rawgit.com/HPNeo/gmaps/master/gmaps.js"></script>
  5. <script src="http://maps.google.com/maps/api/js?sensor=true&.js"></script>
  6. <script>
  7. $(function(){
  8. var map = new GMaps({
  9. div: '#map',
  10. lat: -12.043333,
  11. lng: -77.028333
  12. });
  13.  
  14. map.addMarker({
  15. lat: -12.043333,
  16. lng: -77.028333,
  17. title: 'Lima',
  18. click: function(e) {
  19. alert('You clicked in this marker');
  20. }
  21. });
  22. });
  23.  
  24. </script>
  25. </head>
  26. <body>
  27. <div id="map"></div>
  28. <style>
  29.  
  30. #map {
  31. display: block;
  32. width: 50%;
  33. height: 100%;
  34. }
  35.  
  36. #map {
  37. background: #58B;
  38. }
  39. </style>
  40. </body>
  41. </html>
Advertisement
Add Comment
Please, Sign In to add comment