Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Icon not centered #8

Open
chriseckman opened this issue Sep 6, 2015 · 0 comments
Open

Icon not centered #8

chriseckman opened this issue Sep 6, 2015 · 0 comments

Comments

@chriseckman
Copy link

Just thought I'd post this to help anyone out that's having issues with the placement of the icon. You can set the anchor point of the icon with: anchor: new google.maps.Point(18.25, -5).

Here's an example:

var fontAwesomeIcon = {
path: fontawesome.markers.MAP_MARKER,
scale: 0.8,
strokeWeight: 0.2,
strokeColor: 'black',
strokeOpacity: 1,
fillColor: '#f8ae5f',
fillOpacity: 0.7,
anchor: new google.maps.Point(18.25, -5)
};

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants