Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ok-dmr/aprs-symbols

CSS library and JS helpers providing rendering interface for APRS icons
https://github.com/ok-dmr/aprs-symbols

Last synced: 2 days ago
JSON representation

CSS library and JS helpers providing rendering interface for APRS icons

Awesome Lists containing this project

README

        

# aprs-symbols
CSS library with optional JS providing rendering means for APRS icons, rendering square icons of sizes 24px, 48px, 64px and 128px

## Usage

Include the resources in your app
```html

```

Plain HTML/CSS
```html


```

JS helper function to get image tag string by symbol
```javascript
// helper function returns string ""
let imageTagString = getAPRSSymbolImageTag('/[');
// helper function returns string "", ie. same symbol as above, but 64x64px size
let imageTagString = getAPRSSymbolImageTag('/[', 64);
```

JS helper function to get image tag by known address (format [table, column, row])
```javascript
// helper function returns string ""
let imageTagString = getAPRSSymbolImageTagByAddress([0, 3, 10]);
// helper function returns string "", ie. same symbol as above, but 48x46px size
let imageTagString = getAPRSSymbolImageTagByAddress([0, 3, 10], 48);
```

## Using symbols sprites from OH7LZB
PNG images used to render aprs symbols borrowed from OH7LZB repository
see source http://github.com/hessu/aprs-symbols/