OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Could not add custom image to my Pin when using googles maps API?

  • Thread starter Thread starter user25711213
  • Start date Start date
U

user25711213

Guest
i need to add a custom image to my pin, but Pin element does not except images. i also need to be able to switch between images based on some criteria, so ill have mixed images of pin.

tried this:

` <Pin background={'#FBBC04'} glyphColor={'#575'} borderColor={'#000'} >

Code:
        <Image src="/pin-icon.png" alt="Pin Icon" layout="fill" objectFit="contain"/>        
    
</Pin>

`

but got nothing. if any one can help me find a solution.

<p>i need to add a custom image to my pin, but Pin element does not except images.
i also need to be able to switch between images based on some criteria, so ill have mixed images of pin.</p>
<p>tried this:</p>
<p>`
<Pin background={'#FBBC04'} glyphColor={'#575'} borderColor={'#000'} ></p>
<pre><code> <Image src="/pin-icon.png" alt="Pin Icon" layout="fill" objectFit="contain"/>

</Pin>
</code></pre>
<p>`</p>
<p>but got nothing.
if any one can help me find a solution.</p>
 
Top