google maps load polygon with drawing library

245 views
Skip to first unread message

mardif

unread,
Jan 12, 2012, 5:00:09 AM1/12/12
to Google Maps JavaScript API v3
Hi,
I'm using gmap api v3 drawing library for draw polygons and
polylines directly on map by mouse user interactions.

Well, all works fine, I save all data created. So good!

Next, I reload my page, that read data from db, and I want to restore
saved polygon/polylines in map with drawing libraries.

I've created these objects using new google.maps.Polygon()/Polyline(),
but I can't control their point for move it or create another points
inside polygon with drawingmanager controls...

I've read google api documentation, but I've found anything!
Drawing Library is for draw directly on gmap only?

Thx a lot!

mardif

unread,
Jan 12, 2012, 9:27:37 AM1/12/12
to Google Maps JavaScript API v3
I reply to myself, writing the response ...
The solution was infinitly simple: just create a polygon specifying
the option editable:true.

Bye

netsracs

unread,
Jan 22, 2012, 3:57:20 PM1/22/12
to google-map...@googlegroups.com
Hello, can you post your code to save the polygon?
Reply all
Reply to author
Forward
0 new messages