Dear Rossko,
Thank you for the link I am now reading through this link
http://gmaps-samples.googlecode.com/svn/trunk/poly/mymapstoolbar.html. I
have few things to ask you. How can I enable that the list of drawing option
to be in the map itself at top right edge when only I press a particular
button below my map. Secondly I have been playing this funtion in the sample
link. What I need it that once I have completed the polygon I need pop-up
window with the option to give a name, description etc to be inserted into
my mysql database. Is it possible to format it into this kind of format e.g.
POLYGON((100.30695140361786 5.379924108386956,100.30693262815475
5.379811951847182,100.30695140361786 5.379534230802661,100.3071928024292
5.3795422419884105,100.30712574720382 5.379988197828936,100.30695140361786
5.379924108386956))
function startDrawing(poly, name, onUpdate, color) {
map.addOverlay(poly);
poly.enableDrawing(options);
//poly.enableEditing({onEvent: "mouseover"});
poly.disableEditing({onEvent: "mouseout"});
GEvent.addListener(poly, "endline", function() {
select("hand_b");
alert("on click");
var cells = addFeatureEntry(name, color);
GEvent.bind(poly, "lineupdated", cells.desc, onUpdate);
});
}
On Mon, Aug 9, 2010 at 4:43 PM, Rossko <[email protected]> wrote:
> > What I would like to do is that I want a button outside my
> > map, thus when I click the button say e.g. "Geofence" I want the
> > geofence tools to appear at the upper right corner. The tools I want
> > is just one to draw a circle and polygon. How can I achive that?
>
> Modify the examples, like
> http://code.google.com/articles/support/ezdigitizer.htm
> or
> http://gmaps-samples.googlecode.com/svn/trunk/poly/mymapstoolbar.html
> or
> http://maps.forum.nu/gm_drag_polygon.html
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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?hl=en.