Hi
Well if you use a movieclip as an icon for the marker you can do
whatever you do with movieclips
For example:
var mcIcon:MovieClip = new icon1() // 'icon1' is the linkage name of
your icon on the library
var marker:Marker = new Marker(
new LatLng(48.858842, 2.346997),
new MarkerOptions({ icon: mcIcon,
hasShadow: false }));
map.addOverlay(marker);
Then, when you want to change its size you only need to tween the
movieclip, not the marker:
TweenLite.to(mcIcon, 0.6, {scaleX:2,scaleY:2})
You may put the markers and icons in two arrays if you have many, so
you can use the array indexes to relate each pair of marker and icon.
Cheers
Carol
On 7 set, 17:20, Anthony <[email protected]> wrote:
> Is it possible to tween the size of a google marker? i.e. create a
> custom circle icon with a size of 3 and tween to a size of 5.
>
> I have tried using TweenLite via the following:
> var loc:Point = map.fromLatLngToViewport(marker.getLatLng());
> TweenLite.to(marker.foreground, 2, {x:loc.x, y:loc.y, scaleX:scale,
> scaleY:scale, ease:Elastic.easeOut});
>
> But I run into problems because the scaling action is based on (I
> believe) the wrong registration point which causes the markers to fly
> off screen.
>
> I would be more than willing to try something new. Anything to simply
> make the circles "grow" :)
>
> thanks,
> Anthony
--
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.