[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
bem
/
assets
/
tema
/
assets
/
js
/
[
Home
]
File: custom.map.js
function initMap() { // Create a new StyledMapType object, passing it an array of styles, // and the name to be displayed on the map type control. var styledMapType = new google.maps.StyledMapType( [ { "featureType": "water", "elementType": "geometry.fill", "stylers": [ { "color": "#65ac4c" } ] } ], {name: 'Styled Map'}); // Create a map object, and include the MapTypeId to add // to the map type control. var map = new google.maps.Map(document.getElementById('map'), { center: {lat: 55.864237, lng: -4.251806}, zoom: 9, scrollwheel: false, icon: 'assets/images/map-icon.png', mapTypeControlOptions: { mapTypeIds: ['roadmap', 'satellite', 'hybrid', 'terrain', 'styled_map'] } }); var myLatlng = new google.maps.LatLng(55.864237, -4.251806); var marker = new google.maps.Marker({ position: myLatlng, icon: "assets/images/home01/map-icon.png", title:"Hello World!" }); marker.setMap(map); //Associate the styled map with the MapTypeId and set it to display. map.mapTypes.set('styled_map', styledMapType); map.setMapTypeId('styled_map'); }