|
8 | 8 |
|
9 | 9 | import L from 'leaflet/dist/leaflet-src';
|
10 | 10 |
|
| 11 | +import arenaMarkerIconUrl |
| 12 | + from '../../images/leaflet/arena-marker-icon.png'; |
| 13 | +import arenaMarkerIcon2xUrl |
| 14 | + from '../../images/leaflet/arena-marker-icon-2x.png'; |
| 15 | +import clusterMarkerIconUrl |
| 16 | + from '../../images/leaflet/cluster-marker-icon.png'; |
| 17 | +import endedMarkerIconUrl |
| 18 | + from '../../images/leaflet/ended-marker-icon.png'; |
| 19 | +import endedMarkerIcon2xUrl |
| 20 | + from '../../images/leaflet/ended-marker-icon-2x.png'; |
| 21 | +import markerIconUrl |
| 22 | + from '../../images/leaflet/marker-icon.png'; |
| 23 | +import markerIcon2xUrl |
| 24 | + from '../../images/leaflet/marker-icon-2x.png'; |
| 25 | +import religiousMarkerIconUrl |
| 26 | + from '../../images/leaflet/religious-marker-icon.png'; |
| 27 | +import religiousMarkerIcon2xUrl |
| 28 | + from '../../images/leaflet/religious-marker-icon-2x.png'; |
| 29 | +import stadiumMarkerIconUrl |
| 30 | + from '../../images/leaflet/stadium-marker-icon.png'; |
| 31 | +import stadiumMarkerIcon2xUrl |
| 32 | + from '../../images/leaflet/stadium-marker-icon-2x.png'; |
| 33 | +import studioMarkerIconUrl |
| 34 | + from '../../images/leaflet/studio-marker-icon.png'; |
| 35 | +import studioMarkerIcon2xUrl |
| 36 | + from '../../images/leaflet/studio-marker-icon-2x.png'; |
| 37 | +import venueMarkerIconUrl |
| 38 | + from '../../images/leaflet/venue-marker-icon.png'; |
| 39 | +import venueMarkerIcon2xUrl |
| 40 | + from '../../images/leaflet/venue-marker-icon-2x.png'; |
| 41 | + |
11 | 42 | import DBDefs from './DBDefs-client';
|
12 | 43 |
|
13 | 44 | const iconsUrls = {
|
14 |
| - 'arena-marker-icon.png': |
15 |
| - require('../../images/leaflet/arena-marker-icon.png'), |
16 |
| - 'arena-marker-icon-2x.png': |
17 |
| - require('../../images/leaflet/arena-marker-icon-2x.png'), |
18 |
| - 'cluster-marker-icon.png': |
19 |
| - require('../../images/leaflet/cluster-marker-icon.png'), |
20 |
| - 'ended-marker-icon.png': |
21 |
| - require('../../images/leaflet/ended-marker-icon.png'), |
22 |
| - 'ended-marker-icon-2x.png': |
23 |
| - require('../../images/leaflet/ended-marker-icon-2x.png'), |
24 |
| - 'marker-icon.png': require('../../images/leaflet/marker-icon.png'), |
25 |
| - 'marker-icon-2x.png': require('../../images/leaflet/marker-icon-2x.png'), |
26 |
| - 'religious-marker-icon.png': |
27 |
| - require('../../images/leaflet/religious-marker-icon.png'), |
28 |
| - 'religious-marker-icon-2x.png': |
29 |
| - require('../../images/leaflet/religious-marker-icon-2x.png'), |
30 |
| - 'stadium-marker-icon.png': |
31 |
| - require('../../images/leaflet/stadium-marker-icon.png'), |
32 |
| - 'stadium-marker-icon-2x.png': |
33 |
| - require('../../images/leaflet/stadium-marker-icon-2x.png'), |
34 |
| - 'studio-marker-icon.png': |
35 |
| - require('../../images/leaflet/studio-marker-icon.png'), |
36 |
| - 'studio-marker-icon-2x.png': |
37 |
| - require('../../images/leaflet/studio-marker-icon-2x.png'), |
38 |
| - 'venue-marker-icon.png': |
39 |
| - require('../../images/leaflet/venue-marker-icon.png'), |
40 |
| - 'venue-marker-icon-2x.png': |
41 |
| - require('../../images/leaflet/venue-marker-icon-2x.png'), |
| 45 | + 'arena-marker-icon.png': arenaMarkerIconUrl, |
| 46 | + 'arena-marker-icon-2x.png': arenaMarkerIcon2xUrl, |
| 47 | + 'cluster-marker-icon.png': clusterMarkerIconUrl, |
| 48 | + 'ended-marker-icon.png': endedMarkerIconUrl, |
| 49 | + 'ended-marker-icon-2x.png': endedMarkerIcon2xUrl, |
| 50 | + 'marker-icon.png': markerIconUrl, |
| 51 | + 'marker-icon-2x.png': markerIcon2xUrl, |
| 52 | + 'religious-marker-icon.png': religiousMarkerIconUrl, |
| 53 | + 'religious-marker-icon-2x.png': religiousMarkerIcon2xUrl, |
| 54 | + 'stadium-marker-icon.png': stadiumMarkerIconUrl, |
| 55 | + 'stadium-marker-icon-2x.png': stadiumMarkerIcon2xUrl, |
| 56 | + 'studio-marker-icon.png': studioMarkerIconUrl, |
| 57 | + 'studio-marker-icon-2x.png': studioMarkerIcon2xUrl, |
| 58 | + 'venue-marker-icon.png': venueMarkerIconUrl, |
| 59 | + 'venue-marker-icon-2x.png': venueMarkerIcon2xUrl, |
42 | 60 | };
|
43 | 61 |
|
44 | 62 | L.Icon.Default.prototype._getIconUrl = function (name) {
|
|
0 commit comments