Sorry to hear that.  It was a good site.
Here is how I implement the selection rectangle in Flex with Google Maps.

Step 1. Declare some global variables

*//selection box stuff*

*private* *var* selectionRectangle:Canvas;

*private* *var* startlatlng:LatLng;

*private* *var* endlatlng:LatLng;

*private* *var* curpolygon:Polygon;

*private* *var* bolBox:Boolean = *false*;

*private* *var* bolAfterMouseDown:Boolean = *false*;

Step 2. Import the following classes

*import* com.google.maps.overlays.Polyline;

*import* com.google.maps.overlays.PolylineOptions;

*import* com.google.maps.overlays.Polygon;

*import* com.google.maps.overlays.PolygonOptions;

*import* com.google.maps.LatLngBounds;


Step 3.  Create two buttons, one for setting the rectangle, the other for
clearing.  The click event functions will be doSetRectangle and
doClearRectangle.


Here is the code for doSetRectangle (it depends on the other mouse event
handler functions listed below)


On Thu, Sep 16, 2010 at 1:01 AM, Mr <[email protected]> wrote:

> it says the page has been suspended!!!!!!!!!!!!!!!!!!!!!!!!
>
> - Mr
>
> On Thu, Sep 16, 2010 at 12:27 AM, Bruce Ralston <[email protected]> wrote:
>
>> Anther good example is
>> http://blog.jeethukarthik.com/flex-selection-rectangle/
>>
>>
>> On Wed, Sep 15, 2010 at 1:53 PM, Elisheva <[email protected]> wrote:
>>
>>> Take a look at this demo source
>>>
>>>
>>> http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/ResizingSmartInfoWindow/ResizingSmartInfoWindow.html
>>>
>>> You can draw the rect  in the program and then listen for the next
>>> events...
>>>
>>> Hope this helps
>>>
>>> Elisheva
>>>
>>> On Sep 15, 1:31 pm, Ashutosh <[email protected]> wrote:
>>> > I like to draw a rectangle over google map using flex. User needs to
>>> > click on map, so map click point is the starting point of rectangle
>>> > and as mouse moves over map rectangle gets bigger. on double click,
>>> > rectangle creation completed.
>>> >
>>> > Can anyone help on this using google flex apis. I am stuck on this.
>>> >
>>> > Thanks in advance.
>>>
>>> --
>>> 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.
>>>
>>>
>>
>>
>> --
>> Bruce Ralston
>> Professor
>> 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]<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]<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.
>



-- 
Bruce Ralston
Professor
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.

Reply via email to