Skip to content

Commit 0e21d00

Browse files
committed
feat(app): change map marker icon
1 parent 73c0f3f commit 0e21d00

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/components/main/list/list.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import './list.scss';
22
import template from './list.html';
3-
import '../../../images/marker.png';
43

54
const ListComponent = { controller, template };
65

src/components/main/monument/monument.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import _ from 'lodash';
22

33
import './monument.scss';
44
import template from './monument.html';
5-
import '../../../images/marker.png';
65

76
const MonumentComponent = { controller, template };
87

src/images/marker-red.png

1.77 KB
Loading

src/images/marker-shadow.png

797 Bytes
Loading

src/services/map.service.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import '../images/marker.png';
1+
import '../images/marker-red.png';
2+
import '../images/marker-shadow.png';
23

34
const MapService = () => {
45
const service = {
@@ -12,12 +13,13 @@ const MapService = () => {
1213

1314
function getMapIcon(options) {
1415
return angular.extend({
15-
iconUrl: 'assets/images/marker.png',
16-
shadowUrl: undefined,
17-
iconSize: [40, 40],
18-
shadowSize: [0, 0],
19-
iconAnchor: [20, 20],
20-
shadowAnchor: [0, 0],
16+
iconUrl: 'assets/images/marker-red.png',
17+
shadowUrl: 'assets/images/marker-shadow.png',
18+
iconSize: [29, 41],
19+
shadowSize: [41, 41],
20+
iconAnchor: [15, 41],
21+
shadowAnchor: [12, 41],
22+
popupAnchor: [0, -43],
2123
}, options);
2224
}
2325

0 commit comments

Comments
 (0)