Google Groups Home
Help | Sign in
Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 30 - Collapse all   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
pamela (Google Employee)  
View profile
(2 users)  More options May 16, 10:01 pm
From: "pamela (Google Employee)" <pamela....@gmail.com>
Date: Fri, 16 May 2008 19:01:22 -0700 (PDT)
Local: Fri, May 16 2008 10:01 pm
Subject: Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!
Hi all-

When MyMaps was introduced last year, there were lots of developers
clamoring for the really nifty editing and drawing functions in the
API. Well, happy friday!

Here's a blog post from the engineer, with an iframed example and
linked mapplet:
http://googlemapsapi.blogspot.com/2008/05/love-my-maps-use-its-line-a...

The API reference is updated; the mapplets reference will be updated
next week. Let me know if you have any questions.

- pamela


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dfd (Trustworthy from experience)  
View profile
(1 user)  More options May 17, 2:59 am
From: "dfd (Trustworthy from experience)" <dfddurstew...@googlemail.com>
Date: Fri, 16 May 2008 23:59:57 -0700 (PDT)
Local: Sat, May 17 2008 2:59 am
Subject: Re: Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!
This is nice! Very nice.

I've done nearly the same functionality a few month ago, but my thing
slows down with many vertices ( > ~ 300) and after some time of
editing the polygon. I'll try immediatly this enhancement. At least it
could not be slower than mine :-)

Thanks for that!

Kindly regards, Frank aka dfd

On 17 Mai, 04:01, "pamela (Google Employee)" <pamela....@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephan Wehner  
View profile
 More options May 17, 5:39 pm
From: Stephan Wehner <stephanweh...@gmail.com>
Date: Sat, 17 May 2008 14:39:49 -0700 (PDT)
Local: Sat, May 17 2008 5:39 pm
Subject: Re: Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!
Hey there,

This function looks very good!

I see you allow changing the color. I found it very powerful to also
be able to set width and opacity also.

I have an implementation at stephansmap.org; see

  http://stephansmap.org/vancouver_hikes.html

for an example with a closed, wide, yet semi-transparent lines.

I went with a wizard style implementation to prevent confusion, as I
found myself getting into with other implementations - there are a bit
too many options, and I wanted it to work for people who are not
familiar with Paint/Photoshop/etc. applications. (I feel it still
needs work.)

With the Google implementation, I found it difficult to remember to
double-click when done. So I had to remove the "one-after-the-last-
one" quite often. Also, (on my list too), should probably add Undo/
Redo functionality.

Here is a link to see the wizard

  http://stephansmap.org/mapping/add_drawing?name=car_free_vancouver_20...

(in case you want to play around, just don't "Save")

Would your team add support for width/opacity? Any feedback about
wizard / no-wizard?

Thanks!

Stephan

On May 16, 7:01 pm, "pamela (Google Employee)" <pamela....@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephan Wehner  
View profile
 More options May 17, 5:43 pm
From: Stephan Wehner <stephanweh...@gmail.com>
Date: Sat, 17 May 2008 14:43:39 -0700 (PDT)
Local: Sat, May 17 2008 5:43 pm
Subject: Re: Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!

On May 17, 2:39 pm, Stephan Wehner <stephanweh...@gmail.com> wrote:

> Hey there,

> This function looks very good!

> I see you allow changing the color. I found it very powerful to also
> be able to set width and opacity also.

I overlooked  -- you do mention setStrokeStyle(..) / setFillStyle(...)

Stephan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BenTremblay  
View profile
 More options May 17, 8:46 pm
From: BenTremblay <ab...@chebucto.ns.ca>
Date: Sat, 17 May 2008 17:46:21 -0700 (PDT)
Local: Sat, May 17 2008 8:46 pm
Subject: Re: Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!
On May 16, 8:01 pm, "pamela (Google Employee)" <pamela....@gmail.com>
wrote:
[...]

> Here's a blog post from the engineer, with an iframed example and
> linked mapplet:http://googlemapsapi.blogspot.com/2008/05/love-my-maps-use-its-line-a...

/*editorial - I'm often shocked at how some google-related functions
are so painfully counter-intuitive. Having found this group (cuz I'm a
stick-to-it kinda guy) and having found this post (cuz I make an
effort to observe basic netiquette) I found, Lo! and behold! that it
was linked back to that Jim-dandy post. But there wasn't the more
obviously necessary linkage i.e. from that post on blogspot to this
post in groups. Pour-quoi non?! */

That's a great set of functions ... I look forward to setting up a
reader / editor / administrator sorta interface.

But here's why I bothered to come here and join the group:
that the interface does the math to read-back the shape's area ...
that blew my socks off.
That leads me to this RFE: that the interface do the math and read
back the length of a line.

regards
ben

p.s. if I can pull it all together "maps" will be front end for a new
family of SAR|EMS communications.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dfd (Trustworthy from experience)  
View profile
 More options May 18, 4:51 am
From: "dfd (Trustworthy from experience)" <dfddurstew...@googlemail.com>
Date: Sun, 18 May 2008 01:51:39 -0700 (PDT)
Local: Sun, May 18 2008 4:51 am
Subject: Re: Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!
Hi Pamela.

While playing around with the new functions, i think i found a bug or
at least a weird behaviour: The vertice-markers don't pass the "click"-
event to the poly, when making the poly editable

poly.enableEditing({onEvent: "mouseover"});
poly.disableEditing({onEvent: "mouseout"});

If i use

poly.enableDrawing(options);
poly.enableEditing({onEvent: "mouseover"});
poly.disableEditing({onEvent: "mouseout"});

the poly gets the "click"-event, but i get the unwanted behaviour of
enableDrawing, too

So what to do, if one want to have a editable poly which pass thru the
clickevent of a vertice-marker to the poly?

I tried with no luck

poly.enableDrawing(options);
GEvent.trigger(poly, "endline"); // resp. cancelline
poly.enableEditing({onEvent: "mouseover"});
poly.disableEditing({onEvent: "mouseout"});

May i ask you to investigate or ask the developer of this functions
how this can be done? At best the click-event of the markers would be
passed to the poly when enableEditing, so we can fetch them?

TIA, Frank aka dfd

PS: An event which triggers when all markers (vertice and ghost) are
displayed / loaded would be nice to have, too.

On 17 Mai, 04:01, "pamela (Google Employee)" <pamela....@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dfd (Trustworthy from experience)  
View profile
 More options May 18, 5:19 am
From: "dfd (Trustworthy from experience)" <dfddurstew...@googlemail.com>
Date: Sun, 18 May 2008 02:19:00 -0700 (PDT)
Subject: Re: Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!
Forget the prev post of mine...

In the moment i found a workaround which triggers to call and
functions to use to get the wanted behavior.

Kind regards, Frank aka dfd

On 18 Mai, 10:51, "dfd (Trustworthy from experience)"


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lostexpectation  
View profile
 More options May 18, 10:04 am
From: lostexpectation <expectationl...@yahoo.ie>
Date: Sun, 18 May 2008 07:04:08 -0700 (PDT)
Local: Sun, May 18 2008 10:04 am
Subject: Re: Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!

fantastic stuff, really impressive still when i tried to encourage
other people to collaborate on maps they get turned off by teh fact it
still very fiddly to manipulate the handles on the lines.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
puff the magic dragon  
View profile
 More options May 18, 1:29 pm
From: puff the magic dragon <scooby.snacks2...@gmail.com>
Date: Sun, 18 May 2008 10:29:17 -0700 (PDT)
Local: Sun, May 18 2008 1:29 pm
Subject: Re: Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!
Thank you Google its been long requested ever since MyMaps was
introduced and now finally in the API.
This looks impressive and hopefully many, many applications can be
produced using this.
This is potentially the first steps towards a Google Maps GIS API.

Can we have a Link in the 'Resources' or 'Demo Gallery' for this
please, it's nice to be able to refer to them rather than searching
through the groups.

Next >Offsetting, buffeing of the polylines, polygons.

Mapperz
http://mapperz.blogspot.com/

On May 16, 8:01 pm, "pamela (Google Employee)" <pamela....@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BenTremblay  
View profile
 More options May 18, 7:49 pm
From: BenTremblay <ab...@chebucto.ns.ca>
Date: Sun, 18 May 2008 16:49:00 -0700 (PDT)
Subject: Re: Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!
On May 17, 6:46 pm, BenTremblay <ab...@chebucto.ns.ca> wrote:

> [...]
> But here's why I bothered to come here and join the group:
> that the interface does the math to read-back the shape's area ...
> that blew my socks off.
> That leads me to this RFE: that the interface do the math and read
> back the length of a line.

I've been crawling the docs on "line" but coming up empty on length.

But then looking at a presentation that incorporates photos [1] I
noticed the "Distance Measuring Tool" in the sidebar.
I searched with that as a term but came up empty.
More as I find it.

[1]
http://maps.google.com/maps?f=q&hl=en&q=ss+Great+Britain+Ferry+Landin...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Smith  
View profile
 More options May 19, 5:08 am
From: Nick Smith <nickconsci...@googlemail.com>
Date: Mon, 19 May 2008 02:08:27 -0700 (PDT)
Local: Mon, May 19 2008 5:08 am
Subject: Re: Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!
I really like this feature of being able to draw & edit lines.
However, does anyone know of a suitable javascript library for drawing
these sorts of editable lines on top of normal photos? Nothing to do
with maps I'm afraid! ;)

Many thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Chadwick  
View profile
 More options May 19, 5:18 am
From: Bill Chadwick <bill.chadw...@thalesgroup.com>
Date: Mon, 19 May 2008 02:18:47 -0700 (PDT)
Local: Mon, May 19 2008 5:18 am
Subject: Re: Blog post: Love My Maps? Use its Line and Shape Editing in your API Apps!