Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use a font to provide the marker picture #553

Open
nickkellet opened this issue Nov 30, 2017 · 0 comments
Open

Is it possible to use a font to provide the marker picture #553

nickkellet opened this issue Nov 30, 2017 · 0 comments

Comments

@nickkellet
Copy link

I was looking at this example for Fontawesome Markers.

http://fontawesome.io/icon/map-marker/
https://github.com/nathan-muir/fontawesome-markers

new google.maps.Marker({
map: map,
icon: {
path: fontawesome.markers.EXCLAMATION_CIRCLE,
scale: 0.5,
strokeWeight: 0.2,
strokeColor: 'black',
strokeOpacity: 1,
fillColor: '#f8ae5f',
fillOpacity: 0.7,
},
clickable: false,
position: new google.maps.LatLng(lat, lng)
});

I could not see how to do this as all the examples provide a icon as URL.

eg
markers = handler.addMarkers([
{
lat: 0,
lng: 0,
picture: {
url: "https://addons.cdn.mozilla.net/img/uploads/addon_icons/13/13028-64.png",
width: 36,
height: 36
},
infowindow: "hello!"
}
I've been using http://chart.apis.google.com/chart , but I see it's now deprecated, I'd much rather use a font than making custom images for all the colors etc.

Thanks

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

No branches or pull requests

1 participant