Custom Marker ID & Custom Marker Set In Google Maps

Hi everyone,

I’m working on a project that involves integrating a Google Maps component, and I’m trying to customize it by setting a custom icon for markers and assigning a custom ID to them for easier reference in my code. However, I’m running into some challenges and could use some guidance.

Here’s what I’m aiming to achieve:

  1. Custom Icon: I want to use a custom image (e.g., a PNG file) as the marker icon instead of the default Google Maps pin.

  2. Custom ID: I need to assign a unique ID to each marker to handle events (like clicks) or manipulate specific markers programmatically.

Guide Me Please