Guest User

Untitled

a guest
Nov 18th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. function initMap() {
  2. var mapCanvas = document.getElementById('map');
  3. var myLatlng = new google.maps.LatLng(43.235501, 13.633698);
  4. var mapOptions = {
  5. center: myLatlng,
  6. zoom: 17,
  7. disableDefaultUI: true,
  8. styles: [
  9. {
  10. featureType: "all",
  11. elementType: "all",
  12. stylers: [
  13. { saturation: -100 } // <-- THIS
  14. ]
  15. }
  16. ]
  17. };
  18. var map = new google.maps.Map(mapCanvas, mapOptions);
  19.  
  20. var marker = new google.maps.Marker({
  21. position: myLatlng,
  22. map: map,
  23. icon: 'img/map-marker.png'
  24. });
  25. }
  26. if ($('#map').length > 0) {
  27. google.maps.event.addDomListener(window, 'load', initMap);
  28. }
Add Comment
Please, Sign In to add comment