Hi Rick,

The asterisk are throwing me off a little,

What steps do i need to take in order to implement the extension:
-how do i import this? (save as an .as file?)

regarding the dataRow, what is expected to be returned? (instance
name?)


Bridh

On Feb 19, 4:44 am, Rick Bullotta <[email protected]> wrote:
> Thanks for both of your suggestions.  I actually found a much easier and
> more powerful mechanism by trail and error.
>
> To attach user data to a Marker, simply create an Actionscript class that
> extends Marker, as below.  It works great!
>
> Rick
> **
> *package* mystuff
> {
> *  import* com.google.maps.overlays.Marker;
> *  import* com.google.maps.overlays.MarkerOptions;
> *  import* com.google.maps.LatLng;
>
> *  public* *class* DataBoundMarker *extends* Marker
>   {
>
>     [*Bindable*]
> *    public* *var* data : Object;
>
> *    public* *function* DataBoundMarker(arg0:LatLng, arg1:MarkerOptions=*
> null*, dataRow:Object=*null)
> *    {
>
> *      super*(arg0, arg1);
>       *this*.data = dataRow;
>
>     }
>
>   }
>
> }
> On Wed, Feb 17, 2010 at 3:34 PM, RickB <[email protected]> wrote:
> > Is there any way to attach additional data to a Marker (or via
> > MarkerOptions) that can be later retrieved in the context of a click
> > event on the Marker?
>
> > --
> > 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]<google-maps-api-for-flash%[email protected]>
> > .
> > For more options, visit this group at
> >http://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.

Reply via email to