Nice work, Fred!! You can make 'finish line' operation easier than this, by defining it in DOUBLE_CLICK event listener. (Even DOUBLE_CLICK may causes Map to zoom and/or pan, that can be resolved)
I read your code. I think it is nice to make it more modular and reusable, such as (1) moving lineArray in MapContainer into Line (Overlay), (2) add Markers into the same pane as Line is in. Just name few. Juguang On Tue, Jul 28, 2009 at 5:34 AM, Fred <[email protected]> wrote: > > I've had a chance to put a simple editable polyline example together, > which can be viewed here: > > http://emu.appspot.com/code/editablePolylines/EditablePolylines.html > > Right-click to view source. > > Fred. > > > > On Jul 27, 10:42 am, Fred <[email protected]> wrote: > > Thanks for the tips - I'll take a look the cloud/sparkles demo as a > > start, and let you know how I get on. > > > > Fred. > > > > On Jul 27, 9:40 am, "pamela (Google Employee)" <[email protected]> > > wrote: > > > > > Good point, Jugang. > > > > > In the cloud/sparkles trail demo, the cloudy trail is very similar to > > > a polyline - it's a line drawn with increasing thickness and then > > > blurred after. It could help inspire you if you were to write your own > > > polyline class: > http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/CloudOverla... > > > > > Otherwise, you could make polyline editable with markers for draggable > > > vertices and such. > > > > > - pamela > > > > > On Mon, Jul 27, 2009 at 9:04 AM, Juguang XIAO<[email protected]> > wrote: > > > > Hi Fred, > > > > > > You can get what you want without reading the source. I think. You > may not > > > > even need to extend Polyline, if I were you. You can create your > custom > > > > overlay, which gains you more control on almost everything of > overlay. > > > > Juguang > > > > On Mon, Jul 27, 2009 at 1:08 AM, Fred <[email protected]> > wrote: > > > > > >> Hi, > > > > > >> Is it possible to download the actionscript source code for the > > > >> compiled Flash API SWC file? (an SVN url would be ideal). I'm > > > >> interesting in extending the Polyline class to enable editing. > > > > > >> Thanks, > > > > > >> Fred. > > > > > > -- > > > > ============= > > > > Juguang XIAO > > > > Beijing, China > > > -- ============= Juguang XIAO Beijing, China --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
