function InitiallizeMap(){ var myLatLng = new google.maps.LatLng(-33.903236,151.142783); var myOptions = { zoom: 16, center: myLatLng, mapTypeId: google.maps.MapTypeId.ROADMAP, mapTypeControl: false, zoomControl:false, streetViewControl:false, } var styles = [ { "stylers": [ { "invert_lightness": true }, { "saturation": -47 }, { "lightness": -9 } ] },{ "featureType": "road", "stylers": [ { "saturation": -91 }, { "lightness": 25 }, { "gamma": 0.92 } ] } ]; var image = '/images/img_map-overlay-icon.png'; var map = new google.maps.Map(document.getElementById("googleMap"),myOptions); var marker = new google.maps.Marker({ position: new google.maps.LatLng(-33.903236,151.142783), map : map, icon: image }); map.setOptions({styles: styles}); google.maps.event.addListener(marker,'click', function() { window.open("https://maps.google.com/maps?q=The+Hub+House,+412+New+Canterbury+Road,+Dulwich+Hill,+NSW,+2203,+Australia&hl=en&ll=-33.903245,151.142778&spn=0.00976,0.021007&sll=-33.903485,151.143653&sspn=0.00244,0.005252&oq=hub410-412+New+canterbury+Road,Dulwich+hill.+NSW+2203&hq=The+Hub+House,&hnear=412+New+Canterbury+Rd,+Dulwich+Hill+New+South+Wales+2203,+Australia&t=m&z=16"); }); }
Thursday, July 6, 2017
Custom Google Map
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment