Skip to content

website
2019.09.30 10:31

구글 어쓰 수정

Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

cd /var/www/html/modules/board/skins/koreamet/

vi _read.html

 

        <!-- Google Map -->
        <!--@if($oDocument->getExtraEidValue(latitude))-->
        {@
                list($lat_degree, $lat_min_ns) = explode("°", $oDocument->getExtraEidValue(latitude));
                list($lat_minute, $north_south) = explode("&#039;", $lat_min_ns);
                list($lng_degree, $lng_min_ew) = explode("°", $oDocument->getExtraEidValue(longitude));
                list($lng_minute, $east_west) = explode("&#039;", $lng_min_ew);

                $lat_deg_decimal = $lat_minute / 60;
                $lng_deg_decimal = $lng_minute / 60;
                $lat_decimal = $lat_degree + $lat_deg_decimal;
                $lng_decimal = $lng_degree + $lng_deg_decimal;
        }
                <!--@if (strcmp($north_south, S) == 0)-->
                        {@ $lat_decimal = -$lat_decimal; }
                <!--@else-->
                        {@ $lat_decimal = $lat_decimal; }
                <!--@end-->
                <!--@if (strcmp($east_west, W) == 0)-->
                        {@ $lng_decimal = -$lng_decimal; }
                <!--@else-->
                        {@ $lng_decimal = $lng_decimal; }
                <!--@end-->
                <script type="text/javascript">
                var map;
                function initialize() {
                   var mapOptions = {
                      zoom: 10,
                      streetViewControl: false,
                      scaleControl: true,
                      center: new google.maps.LatLng({$lat_decimal},{$lng_decimal}),
                      mapTypeId: google.maps.MapTypeId.SATELLITE
                };

                   map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
                   var myLatlng = new google.maps.LatLng({$lat_decimal},{$lng_decimal});
                   var marker = new google.maps.Marker({
                      position: myLatlng,
                      map: map,
                      title: '{$oDocument->getExtraEidValue(abbreviation)}'
                   });
                }
                function loadScript() {
                   var script = document.createElement('script');
                   script.type = 'text/javascript';
                   script.src = 'https://maps.googleapis.com/maps/api/js?region=kr&key=AIzaSyBV-Pv1xJGAfkg6QF-4wilGa7xJfVWx7C8&callback=initialize';
                   document.body.appendChild(script);
                }
                window.onload = loadScript;
                </script>
                <div id="map-canvas" style="width: 600px; height: 450px;"></div>
                                <!--@else-->
        No coordinate info!
        <!--@end-->
 

 


List of Articles
No. Category Subject Author Date Views
7 8530F+PfE Stage error curator 2019.10.31 3
» website 구글 어쓰 수정 curator 2019.09.30 11
5 6610+CL+EDS SEM 이전 file curator 2015.03.27 692
4 6610+CL+EDS Water chiller 청소 curator 2015.05.08 367
3 8530F+PfE CH3 모터 연결부 교체 file curator 2015.05.06 376
2 8530F+PfE CH3 모터 연결부 고장 curator 2015.04.15 523
1 Carbon coater 카본 코터 터보 펌프 교체 file curator 2015.02.06 434
Board Pagination Prev 1 Next
/ 1

Korea Curation of Antarctic Meteorities
Korea Polar Research Institute
26, Songdomirae-ro, Yeonsu-gu, Incheon, Korea
Curator: changkun"at"kopri.re.kr

Copyright (C) Korea Polar Research Institute. All rights reserved.

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소