polygon-autoclose.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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="5"
  21. center="24.886436490787712, -70.2685546875"
  22. map-type-id="TERRAIN">
  23. <shape name="polygon"
  24. paths="[
  25. [25.774252, -80.190262],
  26. [18.466465, -66.118292],
  27. [32.321384, -64.75737]
  28. ]"
  29. stroke-color="#FF0000"
  30. stroke-opacity="0.8"
  31. stroke-weight="2"
  32. fill-color="#FF0000"
  33. fill-opacity="0.35">
  34. </shape>
  35. </map>
  36. </body>
  37. </html>