Grow your CSS skills. Land your dream job.

google map API remove “poi.business”

  • # August 29, 2011 at 2:35 pm

    Im trying to remove the layer/overlay (not sure what it is called) that shows hotels on a google map. This is my code:

    
    src="http://maps.google.com/maps/api/js?sensor=false">

    It has something to do with this, but cant work out how to integrate it:

    [
    {
    featureType: "poi.business",
    elementType: "labels",
    stylers: [
    { visibility: "off" }
    ]
    }
    ]
    # November 14, 2011 at 10:36 am

    try this :


    ...

    var myOptions=
    {
    scrollwheel: false,
    zoom: 16,
    center: myLatlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP,
    styles:
    [
    {
    featureType: "poi.business",
    elementType: "labels",
    stylers:
    [
    {
    visibility: "off"
    }
    ]
    }
    ]
    }

    ...
    # January 15, 2012 at 10:59 pm

    For me , this works just to let the others know//

    mapTypeId: google.maps.MapTypeId.ROADMAP,
    styles:
    [
    {
    featureType: "poi.business",
    elementType: "labels",
    stylers:
    [
    {
    visibility: "off"
    }
    ]
    }
    ]
    Thank you Koshinae

    # April 3, 2013 at 2:47 pm

    This last one worked beautifully for me.
    Many thanks.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".