Total Complexity | 3 |
Complexity/F | 1.5 |
Lines of Code | 21 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | |||
2 | $(document).ready(function () { |
||
3 | |||
4 | function initMap() { |
||
5 | var myLatLng = new google.maps.LatLng(50.451144, 30.445346); |
||
6 | var map = new google.maps.Map(document.getElementById('map'), |
||
7 | { |
||
8 | zoom: 17, |
||
9 | center: myLatLng, |
||
10 | mapTypeId: google.maps.MapTypeId.ROADMAP |
||
11 | }); |
||
12 | var marker = new google.maps.Marker( |
||
13 | { |
||
14 | position: myLatLng, |
||
15 | map: map |
||
16 | }); |
||
17 | } |
||
18 | |||
19 | if ($('#map').length > 0) { |
||
20 | initMap(); |
||
21 | } |
||
22 | }); |