Hello Matze,
I don't know German, but fortunately Google can translate it :)
You can change the size the buttons in the MapTypeControl by passing
options to the constructor.
Try:
var width:int = 50;
var height:int = 20;
var bottomRight:ControlPosition = new ControlPosition
(ControlPosition.ANCHOR_BOTTOM_RIGHT, 50, 15);
var options:MapTypeControlOptions = new MapTypeControlOptions
( { buttonSize: new Point(width, height), position: bottonRight } );
var myMapTypeControl:MapTypeControl = new MapTypeControl(options);
map.addControl(myMapTypeControl);
-Arothian
On Apr 30, 5:49 am, Matze <[email protected]> wrote:
> Hallo an alle die sich die Mühe machen.
> Ich möchte gerne Buttons auf meine Flash-Map legen.
> Dessen Größe soll jedoch nicht von google sondern von mir festgelegt
> werden können.
>
> Hier meine Buttons:
>
> ***********************************************
> var bottomRight:ControlPosition = new ControlPosition
> (ControlPosition.ANCHOR_BOTTOM_RIGHT, 50, 15);
> var myMapTypeControl:MapTypeControl = new MapTypeControl();
> myMapTypeControl.setControlPosition(bottomRight);
>
> map.addControl(myMapTypeControl);
> ***********************************************
>
> so weit so gut, doch wie beeinflusse ich die Größe der Schaltflächen?
>
> Habe schon sehr viel gegoogelt und leider nicht passendes gefunden.
>
> Mit freundlichen Grüßen und herzlichen Dank.
>
> Matze
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---