我在我的谷歌地圖上有一些標記,一些標記在另一個標記的陰影下。陰影中的標記不起作用。我如何去除陰影或任何其他解決方案。如何在JavaScript中刪除谷歌地圖上的標記陰影?
在此先感謝。
enter code here
function createMarker(){
var s;
for (var i = 0, j=0; i < markers_array.length; i++, j++) {
// obtain the attribues of each marker
var lat = parseFloat(markers_array[i][0]);
var lng = parseFloat(markers_array[i][1]);
//alert(markers_array[i][2]);
//alert(markers_array[i][3]);
var trailhead_name = markers_array[i][2];
var trailhead_name1 = markers_array[i][3];
var image = markers_array[i][4];
var myLatlng = new google.maps.LatLng(lat, lng);
var contentString = trailhead_name;
var contentString1= trailhead_name1;
var marker=[];
marker[i] = new google.maps.Marker({
position: myLatlng,
map: map,
icon: image,
clickable: true,
title:markers_array[i][5],
});
google.maps.event.addListener(map, 'click', function(e) {
infobox.close();
infobox1.close();
infobox2.close();
});
marker[i]['infowindow'] = contentString;
marker[i]['infowindow1']= contentString1;
global_markers[i] = marker[i];
var la;
var lt;
google.maps.event.addListener(global_markers[i], 'click', function(e) {
infobox.close();
infobox1.close();
infobox2.close();
la=this.getPosition().lat();
lt=this.getPosition().lng();
infobox.setPosition(e.latLng);
infobox.setContent(this['infowindow']);
infobox.boxStyle_ = {
background: "url('images/tipbox.gif') no-repeat scroll 0 0 #E1E3E4",
width: "270px"
};
infobox.open(map);
var title=this.title;
s=this['infowindow1'];
$(document).delegate("#content", "mouseenter touchstart", function() {
map.setOptions({
draggable: false,
scrollwheel: false
});
});
$(document).delegate("#content", "mouseleave touchend", function() {
map.setOptions({draggable: true,scrollwheel: true});
});
});
}
檢查此網址 - http://stackoverflow.com/questions/4201804/how-can-i-remove-the-shadow-on-the-markers-on-my-map –