How to get the functionality to create a new polyline and store old in 
array each time when click on button "New Polyline", leave old polylines on 
map and draw new after click "New Polyline" button?Other case is how to 
clean and restore only when click right button? Array is in global scope 
but can't setMap null on last polyline, works only via clearOverlays 
function. I created additional global object newPoly but don't know whether 
is good idea may better get object from myPolyline class? In other side 
restore case can't set on map stored in array polylines. May you have to 
approach this differently? I was looking for a solution but all are how to 
draw polylines from the json file etc.

Bad demo but highlight what I mean I hope: 
jsfiddle<http://jsfiddle.net/bartek/x8A7V/>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/w8JbLb8fnF4J.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to