私のアプリケーションでGoogleマップを使用しています。あなたがこの画像で見ることができるように、私はカスタムマーカーが表示されており、すべてFirefox上で見えます。Google ChromeのGoogleマップのぼかしマーカー
しかし、その後クロムですべてがぼやけています。マーカーはぼやけています。ここでは、私は基本的にクロムが最適化されたGoogleマップにしようとしている。この
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