always thanks for everyone of stackoverflow
I made a div and it includes background-image: url(imageURL) such like this codes
HTML >
<div ref={mapRef} className="image-container" style={{ backgroundPosition: '0 0' }} >
{markersState}
</div>
CSS >
.image-container {
width: 1024px;
height: 768px;
cursor: grab;
user-select: none;
background-image: url("/images/map.png");
background-position: 0 0;
background-repeat: no-repeat;
}
I want to get background-image source(='/images/map.png')'s size How can I get it? (source's width: 2907px, height: '3460px')
if I need to use instead of background-image, that solution can be good for me Also, is there good library, recommend me please
Thank you, have a nice day