map-geolocation.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!DOCTYPE html>
  2. <html ng-app="ngMap">
  3. <head>
  4. <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
  5. <script src="https://maps.google.com/maps/api/js?sensor=false"></script>
  6. <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular.js"></script>
  7. <!-- build:js scripts/ng-map.min.js -->
  8. <script src="../app/scripts/app.js"></script>
  9. <script src="../app/scripts/directives/map_controller.js"></script>
  10. <script src="../app/scripts/directives/map.js"></script>
  11. <script src="../app/scripts/directives/marker.js"></script>
  12. <script src="../app/scripts/directives/shape.js"></script>
  13. <script src="../app/scripts/directives/info-window.js"></script>
  14. <script src="../app/scripts/services/geo_coder.js"></script>
  15. <script src="../app/scripts/services/navigator_geolocation.js"></script>
  16. <script src="../app/scripts/services/attr2_options.js"></script>
  17. <!-- endbuild -->
  18. </head>
  19. <body>
  20. <div>
  21. Showing current location with infoWindow<br/>
  22. Note: This example requires that you consent to location sharing when
  23. prompted by your browser. If you see a blank space instead of the map, this
  24. is probably because you have denied permission for location sharing.
  25. <br/>
  26. <map center="current-location" zoom="6">
  27. <info-window position="current-location" visible="true">
  28. <span>Loation found using HTML5.</span>
  29. </info-window>
  30. </map>
  31. </div>
  32. </body>
  33. </html>