nathan-muir / fontawesome-markers Goto Github PK
View Code? Open in Web Editor NEWAn export of the fontawesome glyphs into named SVG Paths.
License: Other
An export of the fontawesome glyphs into named SVG Paths.
License: Other
Hi,
first of all thank you for that magical tool/modue, that runs perfectly.
As far as I know, currently only fonatawesome 4.2.0 is supported. Is there a plan to support the current version of fontawesome (4.3.x)?
Thank you,
B0rner
Font Awesome icons are often transparent (e.g. arrow-circle-right) and when we use this library to lay the marker onto the map the icons are difficult to see because of this transparency.
Ideally there would be a way with this to add a background color behind the transparency so that the font awesome marker comes out solid. For example, with arrow-circle-right, I would want the circle to be green and the arrow to be white, not transparent.
I've tried CSS, but something about how these are generated is prohibiting CSS as well.
I am trying to fill marker with some color, but fail to implement.
Was trying like this:
google.maps.event.addListener(marker, 'click', function() {
this.fillColor('black');
});
But surely it didn't work :(
๐
I noticed when doing the build for 4.3 that I could use "hotel" but not "bed". I would wager that in FontAwesome's SVG, one is referencing the other instead of being written out twice? In transform-webfont.php
, if I do something like:
if($names[$hex] == 'fa-var-bed') echo $names[$hex];
I get an undefined index error. That may be something to go on.
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)
};
Hi, great plugin!
I had an error using ... path: fontawesome.markers.EXCLAMATION but if I write path: fontawesome.EXCLAMATION works well.
Maybe is wrong at your explanation or I'm missing something?
Thanks, Federico
Is EXCLAMATION_CIRCLE the only option. I am not able to find any documentation for other options of paths.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.