123456789101112131415161718192021222324252627282930313233343536373839 |
- <!DOCTYPE html>
- <html ng-app="ngMap">
- <head>
- <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
- <script src="https://maps.google.com/maps/api/js?sensor=false"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular.min.js"></script>
- <script src="scripts/app.js"></script>
- <!-- build:js scripts/ng-map.min.js -->
- <script src="../app/scripts/app.js"></script>
- <script src="../app/scripts/directives/map_controller.js"></script>
- <script src="../app/scripts/directives/map.js"></script>
- <script src="../app/scripts/directives/marker.js"></script>
- <script src="../app/scripts/directives/shape.js"></script>
- <script src="../app/scripts/services/geo_coder.js"></script>
- <script src="../app/scripts/services/navigator_geolocation.js"></script>
- <script src="../app/scripts/services/attr2_options.js"></script>
- <!-- endbuild -->
- </head>
- <body>
- Marker Symbol Custom<br/>
- This example uses SVG path notation to add a vector-based symbol
- as the icon for a marker. The resulting icon is a star-shaped symbol
- with a pale yellow fill and a thick yellow border.
- <map center="-25.363882,131.044922" zoom="4">
- <marker position="-25.363882,131.044922"
- icon="{
- path: 'M 125,5 155,90 245,90 175,145 200,230 125,180 50,230 75,145 5,90 95,90 z',
- fillColor: 'yellow',
- fillOpacity: 0.8,
- scale: 1,
- strokeColor: 'gold',
- strokeWeight: 14
- }"
- dragglele="true"></marker>
- </map>
- </body>
- </html>
|