It shouldn't matter, I don't think. Because it's the same event
listener as when the polygon is rolled over on the map. The only
difference is that one event is from the map and the other is manually
dispatched.
Anyway, here's my polygonOptions setting.
var tt:String = new String(event.currentTarget.getOptions().tooltip);
var options:PolygonOptions = new PolygonOptions({strokeStyle:
{thickness: 4, color: 0xFFFFFF, alpha: 1.0, pixelHinting: true},
fillStyle: {color: 0xFFFFB3, alpha: 0.5}, tooltip: tt})
event.target.setOptions(options);
On Feb 25, 4:20 pm, Javier de la Torre <[email protected]> wrote:
> How are you setting the polygonOptions?
>
> Javierwww.vizzuality.com
>
> On 25/02/2010, at 21:33, mta138 <[email protected]> wrote:
>
> > I have a map with three sets of information: a tilelayeroverlay,
> > polygons, and point markers.
>
> > I have added MapMouseEvent listeners to the polygons, so that when a
> > user mouses over them, they're highlighted, by changing the
> > PolygonOptions.
>
> > Now, when the user mouses over the point markers, which are in
> > locations on top of the polygons, the polygons aren't hit. I think
> > this is because I'm using a simple MouseEvent on the UIComponents that
> > are used as the icons for the Markers.
>
> > So, I attempt to manually dispatch a MapMouseEvent at the polygons.
> > And they register the event, it goes through. But the changes to the
> > PolygonOptions that I make and set aren't reflected on the map.
>
> > Is there a map refresh that happens on a native MapMouseEvent? Is
> > there some way to force these changes to the PolygonOptions to
> > reappear? I know the event is firing and being received by the
> > intended listener.
>
> > Thanks!
> > Tom Auer
>
> > --
> > 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
> > athttp://groups.google.com/group/google-maps-api-for-flash?hl=en
> > .
--
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.