How to add border to custom marker icon in Angular2, agm-marker?

Viewed 1632

enter image description here

Hi everyone, I need help in this. I am trying this from yesterday. Actually my requirement is to add custom marker icons dynamically to each lat/lng and there are additional values with each marker icon like a "color name" which I have to use as border color. In agm-marker I can set url and icon height/width in [iconUrl] as

[iconUrl]='{
  "url":  imgurl, 
  "scaledSize": {
      "height": 100, 
      "width": 100
  }
}'

but I unable to find anything in which I can add border to the marker icon. However I have done this before using Rickmarker script in javascript. Below is the screenshot of desired output enter image description here

1 Answers

ISSUE RESOLVED :)

agm-overlays

It helped me to achieve required output. Thanks to the developer.

Related