You close, just need to give it the proper variable names like in the docs.

 map.setOptions({styles: [
   {
     featureType: "poi.business",
     elementType: "labels",
     stylers: [
       { visibility: "off" }
     ]
   }
 ]});


Also you need to put it after you create the map. The link you showed
had it after.

There is absolutly no need for the complicated(ish) function that Pil showed

http://www.nearby.org.uk/google/temp/no-hotels1.php


On Wed, Aug 31, 2011 at 5:48 PM, bigfoot1 <[email protected]> wrote:
> Thanks, but I'm still learning, I tried this but it still didn't work:
>
> map.setOptions
>   {
>     featureType: "poi.business",
>     elementType: "labels",
>     stylers: [
>       { visibility: "off" }
>     ]
>   }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/Yk6ak13VsAsJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to