google.load("maps", "2");

function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(35.6736456, 139.7123355), 15);
   
    
/*コントロール*/
var mapControl = new GMapTypeControl();
map.addControl(mapControl);
map.addControl(new GSmallMapControl());




/*マーカー*/
var icon = new GIcon();
icon.image = "http://camp4.jp/admin/wp-content/themes/camp4/medias/png/AccessMapLogo.png";
icon.shadow = "";
icon.iconSize = new GSize(64,64);
icon.shadowSize = new GSize(64,64);
icon.iconAnchor = new GPoint(32, 64);
icon.infoWindowAnchor = new GPoint(32,0);

var marker = new GMarker(new GLatLng(35.6736456, 139.7123355),icon);



/*吹き出し*/
var html = "株式会社キャンプフォー<br />〒150-0001東京都渋谷区神宮前2-9-11　シオバラ外苑ビル3F";
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(html);
});



/*マーカーセット*/
map.addOverlay(marker);




/*ポリライン  
    
    var polyline = new GPolyline([
    new GLatLng(35.66327614333874, 139.7325325012207),
    new GLatLng(35.66228243084052, 139.73421692848206),
    new GLatLng(35.66148701609164, 139.73708152770996),
    new GLatLng(35.66160469438954, 139.7371056675911)
], "#ff0000", 9,0.7);
    
    var polylineB = new GPolyline([
     new GLatLng (35.665032543514144, 139.73859429359436),
     new GLatLng (35.6614499691842, 139.73776817321777),
     new GLatLng (35.66137151685285, 139.73756432533264),
     new GLatLng (35.66151534606809, 139.73707616329193),
     new GLatLng (35.661619948970994, 139.73709762096405)
 ], "#0066cc", 9,0.7);
    
    
    var polylineC = new GPolyline([
     new GLatLng (35.65652911542491, 139.7373068332672),
     new GLatLng (35.65758392094824, 139.73677039146423),
     new GLatLng (35.65800235233763, 139.7365665435791),
     new GLatLng (35.658342326227185, 139.73653435707092),
     new GLatLng (35.65841206428201, 139.73655581474304),
     new GLatLng (35.65950171347918, 139.73681330680847),
     new GLatLng (35.65990270064115, 139.73697423934937),
     new GLatLng (35.6604344413809, 139.73755359649658),
     new GLatLng (35.661044631309295, 139.73793983459473),
     new GLatLng(35.66125383821133, 139.73742485046387),
     new GLatLng(35.66140856379671, 139.73747044801712),
     new GLatLng(35.66152842143846, 139.73709762096405),
     new GLatLng(35.66160905284168, 139.73711639642715)
 ], "#669900", 9,0.7);
   

map.addOverlay(polyline);
map.addOverlay(polylineB);
map.addOverlay(polylineC);      

*/
  }

}

google.setOnLoadCallback(initialize);  
  

