I'm having the same problem!  I want to display a 'HYBRID_MAP_TYPE' 
featuring towns, but not roads.  But whenever I add the style rules, my 
basic map type reverts to 'NORMAL_MAP_TYPE'.  Does anyone know if it's 
possible to apply styles to HYBRID_MAP_TYPE?  And if so, does anyone know 
what I'm doing wrong here?

private function onMapPreinitialize( event:MapEvent ):void 
{
   var mapOptions:MapOptions = new MapOptions;
   mapOptions.mapType = MapType.HYBRID_MAP_TYPE;
   _map.setInitOptions( mapOptions );
}

private function onMapReady( event:MapEvent ):void
{
    var mapStyles:Array = [
        new MapTypeStyle(   MapTypeStyleFeatureType.ROAD,
                            MapTypeStyleElementType.ALL,
                            [MapTypeStyleRule.visibility( "off" )]) 
                ];
               
    var styledMapType:StyledMapType = new StyledMapType( mapStyles );
  
    _map.addMapType( styledMapType );
    _map.setMapType( styledMapType );             
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-api-for-flash/-/dnIkwkEZ4cYJ.
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-api-for-flash?hl=en.

Reply via email to