I'm using the following Code for creating my markers:
<pre>
var marker = new google.maps.Marker({
position: siteLatLng,
map: map,
icon: 'https://maps.google.com/mapfiles/kml/shapes/schools_maps.png',
title: value2["title"],
zIndex: 4,
html: value2["content"]
});
</pre>
Now I want to remove all Markers from my map, that was created by
<pre>
var centerMap = new google.maps.LatLng(50, 10);
var myOptions = {
zoom: 4,
center: centerMap,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById('gMapsPreview'), myOptions);
</pre>