Hi there,
I want to style the Scrolltrack of the ZoomControl. I'm not sure this is
possible. I can style the + & - buttons with the buttonStyle object which
I've done but the scrolltrack is not styled accordingly:
var zoomControlPosition : ControlPosition = new
ControlPosition(ControlPosition.ANCHOR_TOP_RIGHT, 40, 83);
var positionControlPosition : ControlPosition = new
ControlPosition(ControlPosition.ANCHOR_TOP_RIGHT, 16, 10);
var style:ButtonStyle = new ButtonStyle({
allStates: {
fillStyle: {
color: 0xe3f5fb,
alpha: .6
},
strokeStyle: {
color: 0x7fd0ee,
thickness: 2
},
labelFormat: {
size: 10,
font: "_sans",
background:0xFFFFFF,
borderColor:0x7fd0ee
},
bevelThickness: 4.5,
bevelRoundness: 4.5,
bevelAlpha: 0.5,
highlightColor: 0x00a1de,
shadowColor: 0xe6f5fc
},
upState: {
bevelStyle: BevelStyle.BEVEL_RAISED
},
overState: {
bevelStyle: BevelStyle.BEVEL_RAISED
},
downState: {
bevelStyle: BevelStyle.BEVEL_LOWERED,
labelFormat: {
bold: true
}
}
});
var zoomControl : ZoomControl = new ZoomControl(new
ZoomControlOptions({position:
zoomControlPosition,buttonStyle:style,hasScrollTrack: true,buttonSize:new
Point(20, 20)}));
var positionControl : PositionControl = new PositionControl(new
PositionControlOptions({position:
positionControlPosition,buttonStyle:style,buttonSize:new Point(20, 20)}));
map.addControl(zoomControl);
map.addControl(positionControl);
I can only make the Scrolltrack not visible by setting the hasScrolltrack
property to false but I want to have a styled ScrollTrack is this possible?
Tnx,
Marien van Os
--
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.