www.webdeveloper.com
Results 1 to 3 of 3

Thread: Google Map in Black and White

  1. #1
    Join Date
    Dec 2008
    Posts
    126

    Google Map in Black and White

    I used the below script for google API map on my page. I want to make it black and white. Can I please get some help on making that?

    thanks.


    Code:
    function load() {
    var locMap = {center: new google.maps.LatLng(45.544167, -122.524607), zoom: 14,
    mapTypeId: google.maps.MapTypeId.ROADMAP, streetViewControl: false,	 
    mapTypeControl: false};
    map = new google.maps.Map(document.getElementById("map"), locMap);
    marker = new google.maps.Marker
    ({position: new google.maps.LatLng(45.544167, -122.524607), map: map});}

  2. #2
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    you can use CSS to turn an element black and white, look into "svg filters css3".

  3. #3
    Join Date
    Nov 2010
    Posts
    1,043
    you should probably look at the API's built in map styling methods before building your own:
    https://developers.google.com/maps/d...script/styling

    it appears they even have a wizard that will do it for you:
    http://gmaps-samples-v3.googlecode.c...ard/index.html

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles