Trying a simple clearmap function but it doesn't work?

83 views
Skip to first unread message

123gotoandplay

unread,
May 31, 2013, 9:40:18 AM5/31/13
to google-map...@googlegroups.com
Hello,

For a website i need to make the map editable again. After an user has saved his route in the database, i like to make it editable again.
I have got the reading and displaying the route going. Now for the editable part i start with a simple clearmap function, like

 function clearMarkers() {
jQuery("#distKm").val("");
theRoute.setMap(null);
routeCoords = [];
}

Now the line (theRoute) is cleared but the markers on the routeCoords are still there? How do i clear all the markers?

regards

geoco...@gmail.com

unread,
May 31, 2013, 1:13:53 PM5/31/13
to Google Maps JavaScript API v3
How are you creating the route?

If you follow the posting guidelines and provide a link to your map,
you stand a better chance of getting useful help. Posting Guidelines:
https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/6a024bd70557baf5

-- Larry

>
> regards

강일수일수

unread,
Oct 12, 2013, 1:55:03 PM10/12/13
to google-map...@googlegroups.com


2013. 6. 1. 오전 2:13에 "geoco...@gmail.com" <geoco...@gmail.com>님이 작성:

> --
> You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-a...@googlegroups.com.
> To post to this group, send email to google-map...@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages