
class Map {

  constructor({
    el      = document.getElementById('location'),
    content = document.getElementById('infowindow-template').innerHTML,
    zoom    = 14,
    lat     = msGeo.lat,
    lng     = msGeo.lng,
    scrollwheel = false
  } = {}) {
    let center     = new google.maps.LatLng(lat, lng);
    let map        = new google.maps.Map(el, { zoom, center, scrollwheel });
    let infowindow = new google.maps.InfoWindow({ content });
    let marker     = new google.maps.Marker({
      position: center,
      map: map,
      title: 'Microservices day location'
    });

    infowindow.open(map, marker);
  }


}

module.exports = Map;


class Map {

  constructor({
    el      = document.getElementById('location'),
    content = document.getElementById('infowindow-template').innerHTML,
    zoom    = 14,
    lat     = msGeo.lat,
    lng     = msGeo.lng,
    scrollwheel = false,
    draggable = false
  } = {}) {
    let center     = new google.maps.LatLng(lat, lng);
    let map        = new google.maps.Map(el, { zoom, center, scrollwheel, draggable });
    let infowindow = new google.maps.InfoWindow({ content });
    let marker     = new google.maps.Marker({
      position: center,
      map: map,
      title: 'Microservices day location'
    });

    infowindow.open(map, marker);
  }


}

module.exports = Map;

fix draggable maps issues on mobile devices for #16