()
| 65 | } |
| 66 | |
| 67 | function initMap () { // eslint-disable-line no-unused-vars |
| 68 | map = new google.maps.Map(document.getElementById('map'), { |
| 69 | center: { |
| 70 | lat: centerLat, |
| 71 | lng: centerLng |
| 72 | }, |
| 73 | zoom: Store.get('zoomLevel'), |
| 74 | fullscreenControl: true, |
| 75 | streetViewControl: false, |
| 76 | mapTypeControl: false, |
| 77 | clickableIcons: false, |
| 78 | mapTypeControlOptions: { |
| 79 | style: google.maps.MapTypeControlStyle.DROPDOWN_MENU, |
| 80 | position: google.maps.ControlPosition.RIGHT_TOP, |
| 81 | mapTypeIds: [ |
| 82 | google.maps.MapTypeId.ROADMAP, |
| 83 | google.maps.MapTypeId.SATELLITE, |
| 84 | google.maps.MapTypeId.HYBRID, |
| 85 | 'nolabels_style', |
| 86 | 'dark_style', |
| 87 | 'style_light2', |
| 88 | 'style_pgo', |
| 89 | 'dark_style_nl', |
| 90 | 'style_light2_nl', |
| 91 | 'style_pgo_nl' |
| 92 | ] |
| 93 | } |
| 94 | }) |
| 95 | |
| 96 | var styleNoLabels = new google.maps.StyledMapType(noLabelsStyle, { |
| 97 | name: 'No Labels' |
| 98 | }) |
| 99 | map.mapTypes.set('nolabels_style', styleNoLabels) |
| 100 | |
| 101 | var styleDark = new google.maps.StyledMapType(darkStyle, { |
| 102 | name: 'Dark' |
| 103 | }) |
| 104 | map.mapTypes.set('dark_style', styleDark) |
| 105 | |
| 106 | var styleLight2 = new google.maps.StyledMapType(light2Style, { |
| 107 | name: 'Light2' |
| 108 | }) |
| 109 | map.mapTypes.set('style_light2', styleLight2) |
| 110 | |
| 111 | var stylePgo = new google.maps.StyledMapType(pGoStyle, { |
| 112 | name: 'PokemonGo' |
| 113 | }) |
| 114 | map.mapTypes.set('style_pgo', stylePgo) |
| 115 | |
| 116 | var styleDarkNl = new google.maps.StyledMapType(darkStyleNoLabels, { |
| 117 | name: 'Dark (No Labels)' |
| 118 | }) |
| 119 | map.mapTypes.set('dark_style_nl', styleDarkNl) |
| 120 | |
| 121 | var styleLight2Nl = new google.maps.StyledMapType(light2StyleNoLabels, { |
| 122 | name: 'Light2 (No Labels)' |
| 123 | }) |
| 124 | map.mapTypes.set('style_light2_nl', styleLight2Nl) |
nothing calls this directly
no test coverage detected