One gentle update, Styled map is working for me.

Following code helped me to achieve the goal.


 // Create an array of styles.
  var noPOIStyles = [
  {
    featureType: "poi",
    stylers: [
      { visibility: "off" }
    ]
  }
];

  // Create a new StyledMapType object, passing it the array of
styles,
  // as well as the name to be displayed on the map type control.
  var noPOIType = new google.maps.StyledMapType(noPOIStyles,
    {name: "No POI"});

  // Create a map object, and include the MapTypeId to add
  // to the map type control.
  var mapOptions = {
    zoom: 11,
    center: new google.maps.LatLng(12.544, 77.542412),
    mapTypeControlOptions: {
      mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'no_poi']
    }
  };
  var map = new google.maps.Map(document.getElementById('map_canvas'),
    mapOptions);

  //Associate the styled map with the MapTypeId and set it to display.
  map.mapTypes.set('no_poi', noPOIType);
  map.setMapTypeId('no_poi');
      }


--Ashish

On Oct 28, 11:05 am, "[email protected]" <[email protected]>
wrote:
> On Oct 27, 7:22 pm, Ashish Aggarwal <[email protected]> wrote:
>
> > Hi Larry,
>
> > Yeah I am talking about "POI" infowindows, like if a plane Map is
> > there(without any marker ) and  if we click on any cafe or church on
> > the map, it shows a pop  up with name and a link saying "more info".
>
> > Will this styled map disable or disallow these infowindows to popup?
>
> It will make the POIs so you can't see them.  Note that styled maps
> are more "expensive" than unstyled maps. 2500 for free vs. 25000 for
> free.
>
> http://code.google.com/apis/maps/faq.html#tos_pricing
>
>   -- Larry
>
>
>
>
>
>
>
>
>
> > > Are you asking about the new "POI" infowindows?

-- 
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