{"id":1136,"date":"2016-06-09T01:18:07","date_gmt":"2016-06-09T01:18:07","guid":{"rendered":"http:\/\/themes.g5plus.net\/pithree\/?page_id=1114"},"modified":"2016-06-09T01:18:07","modified_gmt":"2016-06-09T01:18:07","slug":"google-map","status":"publish","type":"page","link":"https:\/\/tritunggalfondasi.com\/id\/google-map\/","title":{"rendered":"Google Map"},"content":{"rendered":"<div class=\"fullwidth\"><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><div id=\"map-6a4036d8270cb\" class=\"g5plus-google-map\" style=\"height: 456px\">\n<\/div>\n<script>\n\tjQuery(document).ready(function() {\n\t\tvar bounds = new google.maps.LatLngBounds();\n\t\tvar mapStyle  = [{\"featureType\": \"administrative\", \"elementType\": \"labels.text.fill\", \"stylers\": [{\"color\": \"#444444\"}]},{\"featureType\": \"landscape\", \"elementType\": \"all\", \"stylers\": [{\"color\": \"#f2f2f2\"}]},{\"featureType\": \"poi\", \"elementType\": \"all\", \"stylers\": [{\"visibility\": \"off\"}]},{\"featureType\": \"road\", \"elementType\": \"all\", \"stylers\": [{\"saturation\": -100}, {\"lightness\": 45}]}, {\"featureType\": \"road.highway\", \"elementType\": \"all\", \"stylers\": [{\"visibility\": \"simplified\"}]},{\"featureType\": \"road.arterial\", \"elementType\": \"labels.icon\", \"stylers\": [{\"visibility\": \"off\"}]},{\"featureType\": \"transit\", \"elementType\": \"all\", \"stylers\": [{\"visibility\": \"off\"}]},{\"featureType\": \"water\", \"elementType\": \"all\", \"stylers\": [{\"color\": '#cadfaa'}, {\"visibility\": \"on\"}]}];\n\t\tvar w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);\n\t\tvar isDraggable = w > 1024 ? true : false;\n\t\tvar mapOptions = {\n\t\t\tmapTypeId: 'roadmap',\n\t\t\tstyles: mapStyle,\n\t\t\tdraggable: isDraggable,\n\t\t\tscrollwheel: false\n\t\t};\n\t\tvar map = new google.maps.Map(document.getElementById(\"map-6a4036d8270cb\"), mapOptions);\n\t\tvar markers = [\n\t\t\t[\"Kensington, London\",\"UK\", 51.501032,-0.194401,\"\"],[\"96 Harbour Quay\",\"London E14, UK\", 51.502081,-0.011714,\"\"]];\n\t\tvar infoWindow = new google.maps.InfoWindow(), marker, i;\n\t\tfor( i = 0; i < markers.length; i++ ) {\n\t\t\tvar position = new google.maps.LatLng(markers[i][2], markers[i][3]);\n\t\t\tbounds.extend(position);\n\t\t\tmarker = new google.maps.Marker({\n\t\t\t\tposition: position,\n\t\t\t\tmap: map,\n\t\t\t\ttitle: markers[i][0],\n\t\t\t\ticon: markers[i][4],\n\t\t\t\tanimation: google.maps.Animation.DROP\n\t\t\t});\n\t\t\tgoogle.maps.event.addListener(marker, 'click', (function(marker, i) {\n\t\t\t\treturn function() {\n\t\t\t\t\tinfoWindow.setContent('<h6>'+ markers[i][0]+'<\/h6><div>'+ markers[i][1]+'<\/div>');\n\t\t\t\t\tinfoWindow.open(map, marker);\n\t\t\t\t\tif (marker.getAnimation() !== null) {\n\t\t\t\t\t\tmarker.setAnimation(null);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmarker.setAnimation(google.maps.Animation.BOUNCE);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t})(marker, i));\n\t\t\tmap.fitBounds(bounds);\n\t\t}\n\t\tvar boundsListener = google.maps.event.addListener((map), 'bounds_changed', function(event) {\n\t\t\tthis.setZoom(map.getZoom()-1);\n\t\t\tif (this.getZoom() > 15) {\n\t\t\t\tthis.setZoom(15);\n\t\t\t}\n\t\t\tgoogle.maps.event.removeListener(boundsListener);\n\t\t});\n\t});\n<\/script><div class=\" heading-wrap text-center dark has-underline  mg-bottom-60 mg-top-60 \"   >\n            <h2>Custom color, custom marker icon<\/h2>\n        <\/div>\n<div id=\"map-6a4036d82732b\" class=\"g5plus-google-map\" style=\"height: 456px\">\n<\/div>\n<script>\n\tjQuery(document).ready(function() {\n\t\tvar bounds = new google.maps.LatLngBounds();\n\t\tvar mapStyle  = [{\"featureType\": \"administrative\", \"elementType\": \"labels.text.fill\", \"stylers\": [{\"color\": \"#444444\"}]},{\"featureType\": \"landscape\", \"elementType\": \"all\", \"stylers\": [{\"color\": \"#f2f2f2\"}]},{\"featureType\": \"poi\", \"elementType\": \"all\", \"stylers\": [{\"visibility\": \"off\"}]},{\"featureType\": \"road\", \"elementType\": \"all\", \"stylers\": [{\"saturation\": -100}, {\"lightness\": 45}]}, {\"featureType\": \"road.highway\", \"elementType\": \"all\", \"stylers\": [{\"visibility\": \"simplified\"}]},{\"featureType\": \"road.arterial\", \"elementType\": \"labels.icon\", \"stylers\": [{\"visibility\": \"off\"}]},{\"featureType\": \"transit\", \"elementType\": \"all\", \"stylers\": [{\"visibility\": \"off\"}]},{\"featureType\": \"water\", \"elementType\": \"all\", \"stylers\": [{\"color\": '#ffa60a'}, {\"visibility\": \"on\"}]}];\n\t\tvar w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);\n\t\tvar isDraggable = w > 1024 ? true : false;\n\t\tvar mapOptions = {\n\t\t\tmapTypeId: 'roadmap',\n\t\t\tstyles: mapStyle,\n\t\t\tdraggable: isDraggable,\n\t\t\tscrollwheel: false\n\t\t};\n\t\tvar map = new google.maps.Map(document.getElementById(\"map-6a4036d82732b\"), mapOptions);\n\t\tvar markers = [\n\t\t\t[\"Kensington, London\",\"UK\", 51.501032,-0.194401,\"https:\/\/tritunggalfondasi.com\/wp-content\/uploads\/2016\/06\/marker-hi.png\"],[\"96 Harbour Quay\",\"London E14, UK\", 51.502081,-0.011714,\"https:\/\/tritunggalfondasi.com\/wp-content\/uploads\/2016\/06\/marker-hi.png\"]];\n\t\tvar infoWindow = new google.maps.InfoWindow(), marker, i;\n\t\tfor( i = 0; i < markers.length; i++ ) {\n\t\t\tvar position = new google.maps.LatLng(markers[i][2], markers[i][3]);\n\t\t\tbounds.extend(position);\n\t\t\tmarker = new google.maps.Marker({\n\t\t\t\tposition: position,\n\t\t\t\tmap: map,\n\t\t\t\ttitle: markers[i][0],\n\t\t\t\ticon: markers[i][4],\n\t\t\t\tanimation: google.maps.Animation.DROP\n\t\t\t});\n\t\t\tgoogle.maps.event.addListener(marker, 'click', (function(marker, i) {\n\t\t\t\treturn function() {\n\t\t\t\t\tinfoWindow.setContent('<h6>'+ markers[i][0]+'<\/h6><div>'+ markers[i][1]+'<\/div>');\n\t\t\t\t\tinfoWindow.open(map, marker);\n\t\t\t\t\tif (marker.getAnimation() !== null) {\n\t\t\t\t\t\tmarker.setAnimation(null);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmarker.setAnimation(google.maps.Animation.BOUNCE);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t})(marker, i));\n\t\t\tmap.fitBounds(bounds);\n\t\t}\n\t\tvar boundsListener = google.maps.event.addListener((map), 'bounds_changed', function(event) {\n\t\t\tthis.setZoom(map.getZoom()-1);\n\t\t\tif (this.getZoom() > 15) {\n\t\t\t\tthis.setZoom(15);\n\t\t\t}\n\t\t\tgoogle.maps.event.removeListener(boundsListener);\n\t\t});\n\t});\n<\/script><\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"jQuery(document).ready(function() { var bounds = new google.maps.LatLngBounds(); var mapStyle = [{\"featureType\": \"administrative\", \"elementType\": \"labels.text.fill\", \"stylers\": [{\"color\": \"#444444\"}]},{\"featureType\": \"landscape\", \"elementType\": \"all\", \"stylers\": [{\"color\": \"#f2f2f2\"}]},{\"featureType\": \"poi\", \"elementType\": \"all\", \"stylers\": [{\"visibility\": \"off\"}]},{\"featureType\": \"road\", \"elementType\": \"all\", \"stylers\": [{\"saturation\": -100}, {\"lightness\": 45}]}, {\"featureType\": \"road.highway\", \"elementType\": \"all\", \"stylers\": [{\"visibility\": \"simplified\"}]},{\"featureType\": \"road.arterial\", \"elementType\": \"labels.icon\", \"stylers\": [{\"visibility\": \"off\"}]},{\"featureType\": \"transit\", \"elementType\": \"all\", \"stylers\": [{\"visibility\": [...]","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1136","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/tritunggalfondasi.com\/id\/wp-json\/wp\/v2\/pages\/1136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tritunggalfondasi.com\/id\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tritunggalfondasi.com\/id\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tritunggalfondasi.com\/id\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tritunggalfondasi.com\/id\/wp-json\/wp\/v2\/comments?post=1136"}],"version-history":[{"count":0,"href":"https:\/\/tritunggalfondasi.com\/id\/wp-json\/wp\/v2\/pages\/1136\/revisions"}],"wp:attachment":[{"href":"https:\/\/tritunggalfondasi.com\/id\/wp-json\/wp\/v2\/media?parent=1136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}