Can I give an anchor to a marker in agm/core?

Srikanth

I created a marker with a custom image, but the image is anchored to the bottom of the image. I want to give the the centre if the image as the anchor point so that even if I rotate the image, it rotates around the centre.

I followed this excellent solution Rotating image / marker image on Google map V3 to rotate the custom image on the marker in agm/core (angular 4).

thanks to @ErDmKo

thanks in advance

Simon Hansen

It is possible by using the Object like in the official Google Maps Doc instead of the string like in the AGM Doc.

It works like:

<agm-marker [iconUrl]="{url: '/assets/icons/icon-map-home.png',  anchor : {x:19, y:19}}">

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Can I make an anchor tag overlay another anchor tag?

From Dev

Can I anchor individual items in a YAML collection?

From Dev

How can I anchor widgets in Qt Creator?

From Dev

How can I anchor a component to the top of the toolbar?

From Dev

How can I disable "Welcome to mapbox" marker

From Dev

SVG marker - can I set length and angle?

From Dev

How can I correct the marker on google map

From Dev

Where Can I Give Feedback on Ubuntu?

From Dev

Can I give two ranges of number for a plot

From Dev

Can I give this Django form an author?

From Dev

Can I give space between UITableViewCell

From Dev

How I can give a description for an AMI image?

From Dev

Can i give dangerous permissions from settings?

From Dev

Can I give a click option another name?

From Dev

Can I give an if statement by subtracting time?

From Dev

Where Can I Give Feedback on Ubuntu?

From Dev

Can I give two keyboards different layouts?

From Dev

Can I give two ranges of number for a plot

From Dev

How can I give ScrollContentPresenter a backgroundcolor?

From Dev

How can I safely give a shell to somebody?

From Dev

How can I give "Japanese/Chinese" data?

From Dev

How can I give a flag to PHAsset?

From Dev

How can I give Interface a boolean variable?

From Dev

How can i give numbering for option values

From Dev

Can i give dangerous permissions from settings?

From Dev

How can I give dynamic width for ul

From Dev

How can i give colors to google charts

From Dev

Can I give an estimate content length header?

From Dev

How can I serialize an object and give it an identifier