overlay-symbol-arrow.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html ng-app="myApp">
  3. <head>
  4. <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
  5. <script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
  6. <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.min.js"></script>
  7. <script src="scripts/app.js"></script>
  8. <!-- build:js scripts/ng-map.min.js -->
  9. <script src="../app/scripts/app.js"></script>
  10. <script src="../app/scripts/directives/map_controller.js"></script>
  11. <script src="../app/scripts/directives/map.js"></script>
  12. <script src="../app/scripts/directives/marker.js"></script>
  13. <script src="../app/scripts/directives/shape.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. <script src="USGSOverlay.js"></script>
  19. <script>
  20. var app = angular.module('myApp', ['ngMap']);
  21. app.controller('OverlaySymbolArrowCtrl', function($scope) {
  22. });
  23. </script>
  24. </head>
  25. <body>
  26. <div ng-controller="OverlaySymbolArrowCtrl">
  27. <map zoom="6" center="20.291, 153.027" map-type-id="TERRAIN">
  28. <shape name="polyline" id="foo"
  29. path="[[22.291, 153.027], [18.291, 153.027]]"
  30. icons="[{
  31. icon: {
  32. path: 'FORWARD_CLOSED_ARROW'
  33. },
  34. offset: '100%'
  35. }]">
  36. </shape>
  37. </map>
  38. </div>
  39. </body>
  40. </html>