O'Reilly logo
  • Stijn Dreezen thinks this is interesting:

initializeMap() { let minZoomLevel = 3; this.map = new google.maps.Map(document.getElementById('map_canvas'), { zoom: minZoomLevel, center: new google.maps.LatLng(39.833, -98.583), mapTypeControl: false, streetViewControl: false, mapTypeId: google.maps.MapTypeId.ROADMAP }); }

From

Cover of Mobile App Development with Ionic 2, 1st Edition

Note

import { Component, ViewChild, ElementRef } from '@angular/core';

@ViewChild('map_canvas') mapElement: ElementRef;
map: any;

this.map = new google.maps.Map(this.mapElement.nativeElement, {