Hi Fred, thanks very much for the nice feedback! The "snap to road"
feature is definitely a useful thing! In case of the Vidmap editor I
chose to use the <shift> key to switch between snapping and straight
lines. You might have a better idea to achieve the same effect? Let me
know.

Regarding the intermediate waypoints, I've so far chosen the following
way:
-There's a small circle next to the cursor snapping to the (already
existing) polyline
-This circle can be dragged anywhere
-When released, an intermediate waypoint is inserted in an internal
array of points
-The adjacent two waypoints are then connected to the new waypoint

This is kind of similar to the usual behavior of the Google Maps JS
directions editor, except that I found it useful for Vidmap to have
the possibility to optionally add straight lines instead of a routed
path.

I just created a screencast for you, demonstrating the described
behaviour. You can find it on the vidmap blog:
http://blog.vidmap.de/2009/07/screencast-how-to-geo-tag-video.html

Just tell me if you need more information.

-mario

On Jul 28, 3:01 pm, Fred <[email protected]> wrote:
> Juguang  - thanks for the feedback! I had some trouble with the
> DOUBLE_CLICK event handler as it wasn't getting triggered when a
> marker is added to the screen. I also think that my users might double-
> click on the map to start drawing a line, rather than single clicking.
> Perhaps a small info window on the latest marker with a 'finish
> drawing' link or similar might be a clear way to stop drawing?
>
> Mario - Just checked outvidmap.de - great site, I like the clean,
> uncluttered design. I'm going to add the 'snap to road' feature as an
> option to the demo which can be switched on or off (my use case is for
> a cycling map which might have on or off-road routes). Did you find an
> easy way to insert intermediate waypoints?
>
> On Jul 28, 9:47 am, MP <[email protected]> wrote:
>
> > I've also implemented editable polylines in flash for a project. The
> > advantage is that points snap to roads automatically. Lines between
> > the points are following the roads as well, which is very useful in
> > many cases. It is also possible to insert an unlimited number of
> > intermediate waypoints.
>
> > An open source demo is in the works.
>
> > You can view the output of the editor right onwww.vidmap.deorsign
> > in to try it yourself.
>
> > -Mario
>
> > On Jul 27, 11:34 pm, 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
--~--~---------~--~----~------------~-------~--~----~
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