Is it possible to remove business information from the map?

23 views
Skip to first unread message

J M

unread,
Sep 29, 2011, 3:47:48 PM9/29/11
to Google Maps JavaScript API v3
Hi, I have a mapping application and would like to remove business
information from the map. Is this possible?

http://th-staging.herokuapp.com/

Thank you,
John

BruceB

unread,
Sep 29, 2011, 5:51:00 PM9/29/11
to google-map...@googlegroups.com
From another recent response to a similar question:


This will disable all pois

new google.maps.Map(mapDiv, {
 center: new google.maps.LatLng(...),
 zoom: ...,
 mapTypeId: google.maps.MapTypeId.ROADMAP,
 styles: [
   {
     featureType: "poi",
     stylers: [
       { visibility: "off" }
     ]
   }
 ]

});

Have a look at the reference for disabling/enabling certain types

http://code.google.com/apis/maps/documentation/javascript/reference.html#MapTypeStyle
Reply all
Reply to author
Forward
0 new messages