MCPcopy Create free account
hub / github.com/RocketMap/RocketMap / initMap

Function initMap

static/js/statistics.js:287–363  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285
286// Override map.js initMap
287function initMap () {
288 map = new google.maps.Map(document.getElementById('location_map'), {
289 zoom: 16,
290 center: {
291 lat: centerLat,
292 lng: centerLng
293 },
294 fullscreenControl: false,
295 streetViewControl: false,
296 mapTypeControl: true,
297 clickableIcons: false,
298 mapTypeControlOptions: {
299 style: google.maps.MapTypeControlStyle.DROPDOWN_MENU,
300 position: google.maps.ControlPosition.RIGHT_TOP,
301 mapTypeIds: [
302 google.maps.MapTypeId.ROADMAP,
303 google.maps.MapTypeId.SATELLITE,
304 google.maps.MapTypeId.HYBRID,
305 'nolabels_style',
306 'dark_style',
307 'style_light2',
308 'style_pgo',
309 'dark_style_nl',
310 'style_light2_nl',
311 'style_pgo_nl'
312 ]
313 }
314 })
315
316 var styleNoLabels = new google.maps.StyledMapType(noLabelsStyle, {
317 name: 'No Labels'
318 })
319 map.mapTypes.set('nolabels_style', styleNoLabels)
320
321 var styleDark = new google.maps.StyledMapType(darkStyle, {
322 name: 'Dark'
323 })
324 map.mapTypes.set('dark_style', styleDark)
325
326 var styleLight2 = new google.maps.StyledMapType(light2Style, {
327 name: 'Light2'
328 })
329 map.mapTypes.set('style_light2', styleLight2)
330
331 var stylePgo = new google.maps.StyledMapType(pGoStyle, {
332 name: 'PokemonGo'
333 })
334 map.mapTypes.set('style_pgo', stylePgo)
335
336 var styleDarkNl = new google.maps.StyledMapType(darkStyleNoLabels, {
337 name: 'Dark (No Labels)'
338 })
339 map.mapTypes.set('dark_style_nl', styleDarkNl)
340
341 var styleLight2Nl = new google.maps.StyledMapType(light2StyleNoLabels, {
342 name: 'Light2 (No Labels)'
343 })
344 map.mapTypes.set('style_light2_nl', styleLight2Nl)

Callers 1

showOverlayFunction · 0.70

Calls 1

redrawAppearancesFunction · 0.85

Tested by

no test coverage detected