Hi Mori- I tried that code in Flash CS3, and it produced a normal looking set of buttons for me. There is one possible related bug about MapTypeControl labels: http://code.google.com/p/gmaps-api-issues/issues/detail?id=446
It's never been replicated on a live map however, so it's not currently a high priority issue. - pamela On Thu, Mar 19, 2009 at 8:00 PM, Mori W <[email protected]> wrote: > > Greets. > > I set up a simple google maps and put a simple > > map.addControl(new MapTypeControl()); > > in the code but the result is 3 buttons with no text. Can you think of > a reason why that would happen? > > Here's the whole code I'm using > > import com.google.maps.LatLng; > import com.google.maps.Map; > import com.google.maps.MapEvent; > import com.google.maps.MapType; > import com.google.maps.LatLngBounds; > import com.google.maps.MapMouseEvent; > import com.google.maps.controls.MapTypeControl; > import com.google.maps.controls.MapTypeControlOptions; > import com.google.maps.InfoWindowOptions; > > var map:Map = new Map(); > map.key = "..."; > map.setSize(new Point(450, 250)); > map.x = -50; > map.y = 40; > map.addEventListener(MapEvent.MAP_READY, onMapReady); > this.addChild(map); > > function onMapReady(event:Event):void { > map.setCenter(new LatLng (..., ...), 15, MapType.NORMAL_MAP_TYPE); > > map.enableScrollWheelZoom(); > map.removeMapType(MapType.PHYSICAL_MAP_TYPE); > > map.addControl(new MapTypeControl()); > map.openInfoWindow(new LatLng (..., ...), > new InfoWindowOptions({contentHTML: "<img src=\"http://...\" /><br / >><br /><br /><br /><br /><br />"})); > } > > Thank you. > Mori > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-api-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
