I have put polygon overlays on maps based on KMLs. As each polygon is added
to the map, I create several listener functions: one for roll on, one for
roll off, and one for click events. Here is the click event listener:
polygon.addEventListener(MapMouseEvent.CLICK,
function(e:MapMouseEvent):void{
var mkr:Marker = new Marker(e.latLng,new MarkerOptions({
strokeStyle: new StrokeStyle({color: 0x000000}),
fillStyle: new FillStyle({color: 0x0033FF, alpha: 0.8}),
radius: 0,
hasShadow: true
;))};
var html:String = "<b>FIPS CODE = " + obj.name;
html = html + "\n POP100 =" +GetGroup(obj.name, 1).toString();
map.addOverlay(mkr);
mkr.openInfoWindow(new InfoWindowOptions({contentHTML:html}));
map.removeOverlay(mkr);
;)};
You can read the details at http://tnatlas2.geog.utk.edu/tutorhome. Look at
the chapter 6 pdf file.
On Mon, Mar 21, 2011 at 10:25 PM, Cameron Ellis <[email protected]
> wrote:
> ...no thoughts here? can I get an info window to show up when I roll
> over a polygon overlay? Can a marker support text/hyperlink? Any
> thoughts would be extremely appreciated.
>
> Thanks soooooooooo much for any help. I am a long time GIS user,
> finally getting around to Flash development and completely stumped.
>
> Thanks again,
>
> Cameron
>
> On Mar 18, 10:04 pm, Cameron Ellis <[email protected]>
> wrote:
> > New to Google Maps Flash API, and I came across an older post (2008)
> > on this that mentioned that polygon overlays are not clickable, is
> > this still the case? Are there any good workarounds? any roll-over
> > functionality? Can I just tag a polygon with a marker?
> >
> > Thanks!
> >
> > Cameron
>
> --
> 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.
>
>
--
Bruce Ralston
Professor Emeritus
Department of Geography
University of Tennessee
Knoxville, TN 37996-0925
Phone: 865-974-6043
FAX: 865-974-6025
--
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.