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!
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:
> 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!
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.
> 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!
/*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.
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
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:
> 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!
<dfddurstew...@googlemail.com> wrote:
> 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
> 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:
> > 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!
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.
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.
> 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!
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.
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! ;)