// Javascript library for the /plugin page, a maximized Google Map view with the
// photo layer enabled.
// TODO(erikc): [post-launch] Add unittests.

// Set up the Google Map view maximized in the given container.
function setupGMap(map_container_name, lat, lng, zoom, map_type) {
  var map_container = document.getElementById(map_container_name);

  map = new GMap2(map_container);
  map.setCenter(new GLatLng(lat, lng), zoom)
  map.addOverlay(new GLayer('lmc:com.panoramio.p.public'));


map.enableScrollWheelZoom();

        map.addControl(new GLargeMapControl());
        map.addControl(new GScaleControl());

map.enableDoubleClickZoom(); 
map.enableContinuousZoom(); 

}


