diff --git a/src/GoogleMapView.web.tsx b/src/GoogleMapView.web.tsx index 3ebc8de..f53df06 100644 --- a/src/GoogleMapView.web.tsx +++ b/src/GoogleMapView.web.tsx @@ -1,5 +1,5 @@ import { useEffect, useRef, useState } from 'react'; -import { mapViewStateInternal } from '@mapconductor/js-sdk-core'; +import { mapViewStateInternal, markerIconExtentPx } from '@mapconductor/js-sdk-core'; import { MapContext, MapViewScope, @@ -262,12 +262,12 @@ export function GoogleMapView({ const screenOffset = holder.toScreenOffset(pos); if (!screenOffset) return null; const icon = entry.icon; - const iconPixelSize = icon ? icon.iconSize * icon.scale : 0; + const iconPixelSize = markerIconExtentPx(icon); return (