관리 메뉴

moozi

구글맵 본문

TIS_2016/주말반_1기

구글맵

moozi 2016. 4. 2. 13:25

<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css" />
        <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
        <script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
       
        <title>TIS정보기술교육센터</title>
       
        <style type="text/css">
            h2, h3 {
                color:#1168B2;
            }
           
            .float_style{
                float:left;
                padding-right:10px;
                padding-bottom:10px;
            }
           
            .map_style{
                padding:0px;
                height: 100%;
                width: 100%;
            }
        </style>
       
        <!-- jquery ui map -->
        <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
        <script type="text/javascript" src="ui/jquery.ui.map.js"></script>
       
        <script type="text/javascript">
            $(document).ready(
                function(){
                    var StartLatLng=new google.maps.LatLng(37.533978, 126.899016);
                   
                    var StartLatLng2=new google.maps.LatLng(37.501547, 127.026281);
                   
                   
                    $("#map_canvas").gmap({"center":StartLatLng, "zoom":12});
                    var markerRed="http://www.google.com/intl/en_us/mapfiles/ms/icons/red-dot.png";
                   
                    var marker=$("#map_canvas").gmap("addMarker",{"position":StartLatLng,"icon":markerRed});
                   
                    marker.click(function() {
                        var htmlCode="<a href='http://www.tisedu.co.kr'>TIS정보기술교육센터</a><br/>02-2069-1930"
                        $('#map_canvas').gmap('openInfoWindow', {'content': htmlCode}, this);
                    });
                   
                    var marker2=$("#map_canvas").gmap("addMarker",{"position":StartLatLng2,"icon":markerRed});
                   
                   
                   
                    marker2.click(function() {
                        $('#map_canvas').gmap('openInfoWindow', {'content': 'CSV강남'}, this);
                    });
                  
                }
            ); 
        </script>
       
       
    </head>  
   
    <body>
        <div data-role="page" class="map_style">
            <div data-role="header">
                <a href="index.html" data-icon="back" rel="external">back</a>
                <a href="index.html" data-icon="home"
                   data-iconpos="notext">home</a>
                <h1>교육센터위치</h1>                
            </div>
           
            <div data-role="content" class="map_style">
                <div id="map_canvas" class="map_style"></div>
            </div>
       
        </div>
    </body>
</html>

'TIS_2016 > 주말반_1기' 카테고리의 다른 글

4/9 company 시작파일  (0) 2016.04.09
무비 전체 소스  (0) 2016.04.02
구글맵  (0) 2016.04.02
movie.html  (0) 2016.04.02
4/2 introduce.html  (0) 2016.04.02
movie작업예제  (0) 2016.04.02
0 Comments
댓글쓰기 폼