PHPackages                             durich/fontawesome-markers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. durich/fontawesome-markers

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

durich/fontawesome-markers
==========================

Iconic markers for Map, based on the Font-Awesome icons

v4.7.0(8y ago)078PHP

Since Aug 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/durich/fontawesome-markers)[ Packagist](https://packagist.org/packages/durich/fontawesome-markers)[ RSS](/packages/durich-fontawesome-markers/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)DependenciesVersions (3)Used By (0)

fontawesome-markers
===================

[](#fontawesome-markers)

An export of the fontawesome glyphs into named SVG Paths in javascript.

All glyphs have the same names as font-awesome, except they are capitalised, and underscored, eg "exclamation-circle" becomes "EXCLAMATION\_CIRCLE"

Usage
-----

[](#usage)

Install on bower with `bower install fontawesome-markers`Or, install with NPM with `npm install fontawesome-markers`Or, just add `fontawesome-markers.min.js` to your page and reference it like the examples below.

If you're a masochist, you can try extracting other webfonts (or newer versions of Font Awesome) using the scripts in `extractor/`

Example - Font Awesome on Google Maps
-------------------------------------

[](#example---font-awesome-on-google-maps)

You can use these paths, in products like Google Maps, for example:

```
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)
});
```

Example - Font Awesome on Canvas
--------------------------------

[](#example---font-awesome-on-canvas)

You can also draw them to canvas, using the new Path2D api, you may need to use a [polyfill for unsupported browsers](https://github.com/google/canvas-5-polyfill)

```
var canvas = document.getElementsByTagName('canvas')[0];
var ctx = canvas.getContext("2d");
var path = new Path2D(fontawesome.markers.EXCLAMATION_CIRCLE);
ctx.strokeStyle="#ff0000";
ctx.lineWidth=2;
ctx.fillStyle="#0000ff";
ctx.translate(0, 64);
ctx.fill(path);
ctx.stroke(path);
```

Example - Loading Font Awesome Markers via JSON/ XHR
----------------------------------------------------

[](#example---loading-font-awesome-markers-via-json-xhr)

Instead of including it as an inline script, you can also load it with JSON/XHR.

```
var fontawesome = {
   markers: null
};
var xhr = new XMLHttpRequest();
xhr.onload = function(){
  fontawesome.markers = JSON.parse(this.responseText);
}
xhr.open("get", "fontawesome-markers.json", true);
xhr.send();
```

Update
======

[](#update)

- 18th April 2016 - Made it super easy to build for new versions of fontawesome. Released on Bower &amp; NPM.
- 16th October 2014 - Updated to fontawesome 4.2.0
- 7th August 2014 - Updated to fontawesome 4.1.0, see the [Fontawesome Upgrade Guide](https://github.com/FortAwesome/Font-Awesome/wiki/Upgrading-from-3.2.1-to-4) for the list of changed names.
- 26th September 2013 - Changed font extraction process - Glyph size is a much more manageable 64px now, and rotation / flip corrected.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 86.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

2

Last Release

3225d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1930892?v=4)[Ricardo Guevara](/maintainers/durich)[@durich](https://github.com/durich)

---

Top Contributors

[![nathan-muir](https://avatars.githubusercontent.com/u/3112329?v=4)](https://github.com/nathan-muir "nathan-muir (19 commits)")[![durich](https://avatars.githubusercontent.com/u/1930892?v=4)](https://github.com/durich "durich (2 commits)")[![ShaneHarvey](https://avatars.githubusercontent.com/u/5015933?v=4)](https://github.com/ShaneHarvey "ShaneHarvey (1 commits)")

---

Tags

mapsbootstrapiconfontFontAwesomeawesomemarkers

### Embed Badge

![Health badge](/badges/durich-fontawesome-markers/health.svg)

```
[![Health](https://phpackages.com/badges/durich-fontawesome-markers/health.svg)](https://phpackages.com/packages/durich-fontawesome-markers)
```

###  Alternatives

[fortawesome/font-awesome

The iconic font, CSS, and SVG framework

76.7k7.5M141](/packages/fortawesome-font-awesome)[kartik-v/bootstrap-star-rating

A simple yet powerful JQuery star rating plugin for Bootstrap.

1.1k4.6M5](/packages/kartik-v-bootstrap-star-rating)[rmrevin/yii2-fontawesome

Asset Bundle for Yii2 with Font Awesome

1474.2M135](/packages/rmrevin-yii2-fontawesome)[kartik-v/yii2-icons

Set of icon frameworks for use in Yii Framework 2.0

691.0M34](/packages/kartik-v-yii2-icons)[symfony/ux-map

Easily embed interactive maps in your Symfony application

19212.1k9](/packages/symfony-ux-map)[swissup/module-font-awesome

FontAwesome for Magento2

117.1k1](/packages/swissup-module-font-awesome)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
