I'm using agm and agm snazzy-info window. Since the marker I'm using is small, the info window is too far from the marker. Looking at snazzy-info-window docs - https://github.com/atmist/snazzy-info-window#offset seems like they let you set the offset from the marker. It seems like agm snazzy-info-window hide this option, see https://angular-maps.com/api-docs/agm-snazzy-info-window/.
Is there any way to control the offset using agm snazzy-info window?
Indeed,
offset
property according to angular-google-maps repository is not exposed viaAgmSnazzyInfoWindow
component. One option to circumvent this limitation would be to introduce a custom component which extendsAgmSnazzyInfoWindow
component and supports to specifyoffset
property, for example:Now offset could be specified like this:
Here is a demo