overlay-symbol-custom.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.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. </head>
  19. <body>
  20. <map zoom="6" center="20.291, 153.027" map-type-id="TERRAIN">
  21. <shape name="polyline" id="foo"
  22. path="[[22.291, 153.027], [18.291, 153.027]]"
  23. icons="[
  24. {
  25. icon: {
  26. path: 'M -2,0 0,-2 2,0 0,2 z',
  27. strokeColor: '#F00',
  28. fillColor: '#F00',
  29. fillOpacity: 1
  30. },
  31. offset: '0%'
  32. },
  33. {
  34. icon: {
  35. path: 'M -1,0 A 1,1 0 0 0 -3,0 1,1 0 0 0 -1,0M 1,0 A 1,1 0 0 0 3,0 1,1 0 0 0 1,0M -3,3 Q 0,5 3,3',
  36. strokeColor: '#00F',
  37. rotation: 45
  38. },
  39. offset: '50%'
  40. },
  41. {
  42. icon: {
  43. path: 'M -2,-2 2,2 M 2,-2 -2,2',
  44. strokeColor: '#292',
  45. strokeWeight: 4
  46. },
  47. offset: '100%'
  48. }
  49. ]">
  50. </shape>
  51. </map>
  52. </body>
  53. </html>