我在我的應用程序中使用谷歌地圖。我有自定義標記正在顯示,所有在Firefox上看起來都很好,因爲您可以在此圖像中看到谷歌Chrome中的谷歌地圖模糊標記
但是,在Chrome中,它都是模糊的。標記是模糊的。在這裏你可以看到
我加入廠商這樣
var marker = new google.maps.Marker({
position: location.position(),
map: map,
draggable: drag,
icon: getLocationMarker(loc),
animation: google.maps.Animation.DROP
});
function getLocationMarker(loc) {
var icon = marker_icon_default;
if (!loc.organization().hasFancyMarkers()) // if the organization doesn't have fancy markers module
return icon;
if (!loc.checkIfOrderHasRemainingAmount()) // if there is no remaining amount for the orders then we take the default icon
return icon;
var hasTentativeMatches = loc.anyOrderHasPotentialMatches();
switch (hasTentativeMatches) {
case true:
icon = getIconWithTentativeMatches(loc);
break;
case false:
icon = getIconWithoutTentativeMatches(loc);
break;
}
return getImageMarker(icon);
}
function getImageMarker(icon) {
var image = {
url: icon,
// This marker is 40 pixels wide by 40 pixels high.
size: new google.maps.Size(40, 40),
// The origin for this image is (0, 0).
origin: new google.maps.Point(0, 0),
// The anchor for this image is the base of the flagpole at (15, 32).
anchor: new google.maps.Point(15, 32),
scale: 2
};
return image;
}
所以基本上鉻一直試圖優化的谷歌地圖。他們做一個重複的標記,你可以在下面的圖片中看到。模糊的那個是我看到的那個,因爲那個不透明度是0.01,所以它是模糊的。另一個根本不可見。希望鉻能很快解決它。
請提供[MCVE]演示該問題。 – geocodezip